You are not logged in.

#1 2009-09-05 15:18:50

vinoman2
Member
From: Portland Oregon
Registered: 2009-05-21
Posts: 236
Website

init numbers

What are the init numbers for logging in and out of X ?

I remember that in sidux init 3 logged you out of X and init 5 brought you back. But Debian was different. What is it in Arch?

Offline

#2 2009-09-05 15:24:23

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: init numbers

It's 3 and 5 in Arch as well. By the way there's a description for this listed as comments in /etc/inittab

Offline

#3 2009-09-05 15:31:33

vinoman2
Member
From: Portland Oregon
Registered: 2009-05-21
Posts: 236
Website

Re: init numbers

mcmillan wrote:

It's 3 and 5 in Arch as well. By the way there's a description for this listed as comments in /etc/inittab

Good to know. So the next time I run an upgrade and it mentions that you can't install some nvidia update in X, I should go to # init3 which gets me out of X then run #pacman -Syu . Then run init5 to go back to X windows.

Last edited by vinoman2 (2009-09-05 15:36:14)

Offline

#4 2009-09-05 15:33:26

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: init numbers

vinoman2 wrote:

Good to know. So the next time I run an upgrade and it mentions that you can't install some nvidia update in X, I should go to # init3 which gets me out of X then run #pacman -Syu . Then run init5 to go back to X windows. Is this correct?

correct. but only if you use the inittab way. having gdm/kdm in rc.conf in daemons will not work as you wanted.


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2009-09-05 15:38:40

vinoman2
Member
From: Portland Oregon
Registered: 2009-05-21
Posts: 236
Website

Re: init numbers

so what is the inittab way? I don't know what you mean. So with gdm in my Daemon list it wouldn't work?

Offline

#6 2009-09-05 16:02:29

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: init numbers

vinoman2 wrote:

so what is the inittab way? I don't know what you mean. So with gdm in my Daemon list it wouldn't work?

with inittab way i wanted to say that you get rid of gdm from rc.conf, modify the default runlevel from 3 to 5 and uncomment at the button of the file gdm.in this way you can enter in runlevel 3 without starting gdm.

if you start gdm from rc.conf then this daemon will start in _any_ runlevel. so doing telinit 3 will not kill xorg.


Give what you have. To someone, it may be better than you dare to think.

Offline

#7 2009-09-05 16:40:52

vinoman2
Member
From: Portland Oregon
Registered: 2009-05-21
Posts: 236
Website

Re: init numbers

so to use inittab, you have to take gdm out of the Daemon list, then when you are done, put it back in?

at this point my video works fine and I don't need any new nvidia upgrades. I'll leave it alone for now.

Offline

#8 2009-09-05 16:46:44

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: init numbers

no. gdm in rc.conf is gone for ever. smile


Give what you have. To someone, it may be better than you dare to think.

Offline

#9 2009-09-05 16:50:43

vinoman2
Member
From: Portland Oregon
Registered: 2009-05-21
Posts: 236
Website

Re: init numbers

wonder wrote:

no. gdm in rc.conf is gone for ever. smile

so that means I don't have the usual gnome login screen, correct? I would be logging in everytime in a plain black boot screen?

Offline

#10 2009-09-05 16:54:04

t4k1t
Member
Registered: 2009-07-19
Posts: 123

Re: init numbers

No:
http://wiki.archlinux.org/index.php/Add … mmended.29

You change inittab to 5 and change the default login-manager to gdm

Last edited by t4k1t (2009-09-05 16:54:46)


Who we are is but a stepping stone to what we can become.

Offline

#11 2009-09-05 17:17:42

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: init numbers

You won't see any differences when you boot, other than the gdm daemon will no longer be started (you'll have to remove it from rc.conf or stick a ! in front of it).  You will then be able to do what you describe above.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#12 2009-09-05 22:39:00

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: init numbers

Starting gdm from inittab and starting GDM from DAEMON's are 2 different methods, mutually exclusive of each other. You start it one way or the other. If you want to be able to use 'init 3' and 'init 5' to switch between X and CLI, then you need to use the inittab method, as described in the wiki link posted above by t4k1t

Offline

Board footer

Powered by FluxBB