I've just installed Xubuntu on an older computer. I want the option of running the GUI some of the time (such as for the Synaptic Package Manager), but I want to boot into text mode all of the time and run startx when needed.
So I go to edit /etc/inittab and change the default runlevel so that the GUI doesn't start on boot, except there is no inittab. Instead, there's this entirely new thing called "Upstart".
I've been on the Upstart pages and on the Ubuntu forums. Everyone is fawning over the new Upstart and how great it is going to be, but no one is saying how you can get rid of the GUI login in Upstart.
All I want to do is change "id:5:initdefault:" to "id:3:initdefault:", but I can't find anything on the Upstart pages to let me know how to do that in Upstart. Before you ask, I have read everything in /etc/event.d, and I still don't understand any of the scripts.
People have said that Upstart will yield to a /etc/inittab you create yourself, but I can't find any information on copying the information out of Upstart and changing it to make a homemade /etc/inittab. I'm a little worried about an /etc/inittab with a single line, if Upstart is going to rely entirely on the /etc/inittab.
____________________________________________________________________________________ Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+ki...
Not sure if this is what you are looking for, but messages 4 and 5 at the following link may hold the key:
http://theos.in/ubuntu-linux-shutdown-the-x-server.html
Good Luck!
Jeffrey A. McCright, A+ 816-210-3107 jmccright@hotmail.com
From: Leo Mauler webgiant@yahoo.com To: kclug@kclug.org Subject: Ubuntu: How do you change default runlevels without inittab? Date: Thu, 12 Jul 2007 03:19:39 -0700 (PDT) MIME-Version: 1.0 Received: from kclug.org ([139.146.133.42]) by bay0-mc8-f19.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Thu, 12 Jul 2007 03:19:48 -0700 Received: from localhost (localhost.localdomain [127.0.0.1])by kclug.org (Postfix) with ESMTP id E4FF4704D5C;Thu, 12 Jul 2007 05:19:46 -0500 (CDT) Received: from kclug.org ([127.0.0.1])by localhost (kclug.org [127.0.0.1]) (amavisd-new, port 10024)with ESMTP id vKUDZqLYHTZm; Thu, 12 Jul 2007 05:19:46 -0500 (CDT) Received: from kclug.org (localhost.localdomain [127.0.0.1])by kclug.org (Postfix) with ESMTP id 957A9704DE7;Thu, 12 Jul 2007 05:19:45 -0500 (CDT) Received: from localhost (localhost.localdomain [127.0.0.1])by kclug.org (Postfix) with ESMTP id CE68A704DC9for kclug@kclug.org; Thu, 12 Jul 2007 05:19:43 -0500 (CDT) Received: from kclug.org ([127.0.0.1])by localhost (kclug.org [127.0.0.1]) (amavisd-new, port 10024)with ESMTP id 3t6p54OyQ9pU for kclug@kclug.org;Thu, 12 Jul 2007 05:19:43 -0500 (CDT) Received: from web56614.mail.re3.yahoo.com (web56614.mail.re3.yahoo.com[66.196.97.58]) by kclug.org (Postfix) with SMTP id 7CDC9704D5Cfor kclug@kclug.org; Thu, 12 Jul 2007 05:19:43 -0500 (CDT) Received: (qmail 40399 invoked by uid 60001); 12 Jul 2007 10:19:39 -0000 Received: from [65.26.55.62] by web56614.mail.re3.yahoo.com via HTTP;Thu, 12 Jul 2007 03:19:39 PDT X-Message-Info: txF49lGdW41p+hX2shx29B+b3Ygkwi17wMDtKHq+0yTG7m6wPVRWP3kPo9R1SKXm X-Original-To: kclug@kclug.org Delivered-To: kclug@kclug.org X-YMail-OSG: QLnvDYEVM1mrUJ31VwP80HLouW9JGMgDASPmVF68u52JmXT1vdhP7WwJDZ3RjG2h4SCJFzDIj7QzgMaD5nW9fNvAgwNjc0agLwgboQ0SAEvmbKdvSZ6kJQzaGbeYm751bhmN4CVcGbd3KOwXibk36.871A-- X-BeenThere: kclug@kclug.org X-Mailman-Version: 2.1.9 Precedence: list List-Id: KCLUG mailing list <kclug.kclug.org> List-Unsubscribe: http://kclug.org/mailman/listinfo/kclug,mailto:kclug-request@kclug.org?subject=unsubscribe List-Archive: http://kclug.org/pipermail/kclug List-Post: mailto:kclug@kclug.org List-Help: mailto:kclug-request@kclug.org?subject=help List-Subscribe: http://kclug.org/mailman/listinfo/kclug,mailto:kclug-request@kclug.org?subject=subscribe Errors-To: kclug-bounces@kclug.org Return-Path: kclug-bounces@kclug.org X-OriginalArrivalTime: 12 Jul 2007 10:19:48.0191 (UTC) FILETIME=[2CE39EF0:01C7C46E]
I've just installed Xubuntu on an older computer. I want the option of running the GUI some of the time (such as for the Synaptic Package Manager), but I want to boot into text mode all of the time and run startx when needed.
So I go to edit /etc/inittab and change the default runlevel so that the GUI doesn't start on boot, except there is no inittab. Instead, there's this entirely new thing called "Upstart".
I've been on the Upstart pages and on the Ubuntu forums. Everyone is fawning over the new Upstart and how great it is going to be, but no one is saying how you can get rid of the GUI login in Upstart.
All I want to do is change "id:5:initdefault:" to "id:3:initdefault:", but I can't find anything on the Upstart pages to let me know how to do that in Upstart. Before you ask, I have read everything in /etc/event.d, and I still don't understand any of the scripts.
People have said that Upstart will yield to a /etc/inittab you create yourself, but I can't find any information on copying the information out of Upstart and changing it to make a homemade /etc/inittab. I'm a little worried about an /etc/inittab with a single line, if Upstart is going to rely entirely on the /etc/inittab.
Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+ki... _______________________________________________ Kclug mailing list Kclug@kclug.org http://kclug.org/mailman/listinfo/kclug
_________________________________________________________________ Need a brain boost? Recharge with a stimulating game. Play now! http://club.live.com/home.aspx?icid=club_hotmailtextlink1
On Thursday 12 July 2007 05:19:39 am Leo Mauler wrote:
All I want to do is change "id:5:initdefault:" to "id:3:initdefault:"
Wouldn't do you any good on a debian branch system - they have runlevels, but everythnig except 0 (halt) and 6 (reboot) are the same.
Better approach with them is to disable the services such as the dm in the default runlevel.
One way to do this is to go to the appropriate /etc/rc?.d directory and change the S to a K for the starting of X script. As Jonathon has noted in
"modern" debian based distros runlevel 2-5 are identical "out of the box". I believe that it defaults to runlevel 2. So I'm surprised that you're actually in runlevel 5. Are you sure of this? While my method won't change your runlevel, you can use it to prevent X from launching in your default runlevel. Which is what I think you're really wanting to accomplish anyway.
Brian --- Leo Mauler webgiant@yahoo.com wrote:
I've just installed Xubuntu on an older computer. I want the option of running the GUI some of the time (such as for the Synaptic Package Manager), but I want to boot into text mode all of the time and run startx when needed.
So I go to edit /etc/inittab and change the default runlevel so that the GUI doesn't start on boot, except there is no inittab. Instead, there's this entirely new thing called "Upstart".
...
On Monday 16 July 2007 06:08:50 pm Jack wrote:
"modern" debian based distros runlevel 2-5 are identical "out of the box". I believe that it defaults to runlevel 2. So I'm surprised that you're actually in runlevel 5. Are you sure of this?
On a real SysV system, level 5 would be the GUI+networking level, so when one sees a fully on-line GUI on Linux, one assumes it's in runlevel 5. Here's the standard table:
# 0 - halt (Do NOT set initdefault to this) # 1 - Single user mode # 2 - Multiuser, without NFS (The same as 3, if you do not have networking) # 3 - Full multiuser mode # 4 - unused # 5 - X11 # 6 - reboot (Do NOT set initdefault to this)
So when someone talks about switching to runlevel three, they mean shut down the GUI completely, but still have full networking.
But we are talking about a debian system, not a SysV system.
I'm well aware of SysV and the relevant runlevels, but that's not relevant to a debian system. One should never assume.
--- Jonathan Hutchins hutchins@tarcanfel.org wrote:
On Monday 16 July 2007 06:08:50 pm Jack wrote:
"modern" debian based distros runlevel 2-5 are identical "out of the box". I believe that it defaults to runlevel 2. So I'm surprised that
you're
actually in runlevel 5. Are you sure of this?
On a real SysV system, level 5 would be the GUI+networking level, so when one sees a fully on-line GUI on Linux, one assumes it's in runlevel 5. Here's the standard table:
Almost forgot!
update-rc.d is your friend. You may find it useful in your situation
Brian
--- Leo Mauler webgiant@yahoo.com wrote:
I've just installed Xubuntu on an older computer. I want the option of running the GUI some of the time (such as for the Synaptic Package Manager), but I want to boot into text mode all of the time and run startx when needed.
...