LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-29-2006, 11:05 AM   #1
js72
Member
 
Registered: Dec 2002
Posts: 102

Rep: Reputation: 15
Howto logout X


form gnome im trying logout from x (i need to install nvidia drivers)
ill try as root command init 3 . What is correct.
 
Old 09-29-2006, 11:14 AM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
In Debian, init levels 2-5 are the same. The proper way to get out of x is to do CTL+ALT+F1, then change to root (or use sudo) and do /etc/init.d/gdm stop. Similarly, to restart it, do /etc/init.d/gdm start (or restart). Note, if you're using xdm or kdm, just change gdm to xdm or kdm...
 
Old 09-29-2006, 11:23 AM   #3
js72
Member
 
Registered: Dec 2002
Posts: 102

Original Poster
Rep: Reputation: 15
Thanks

so fast reply. This really seems good (trying studio64 debian distro)
 
Old 09-29-2006, 12:25 PM   #4
got_nix
Member
 
Registered: Oct 2004
Location: Jamaica
Distribution: Ubuntu 6.0.6 (Dapper Drake)
Posts: 59

Rep: Reputation: 15
Quote:
Originally Posted by pljvaldez
In Debian, init levels 2-5 are the same. The proper way to get out of x is to do CTL+ALT+F1, then change to root (or use sudo) and do /etc/init.d/gdm stop. Similarly, to restart it, do /etc/init.d/gdm start (or restart). Note, if you're using xdm or kdm, just change gdm to xdm or kdm...

isn't that just restarting gdm though and not your actual xserver ctrl alt backspace is what i think i remember seeing for restarting x
 
Old 09-29-2006, 02:11 PM   #5
Volhv
Member
 
Registered: Sep 2006
Distribution: Debian 4.0 and Ubuntu 7.04
Posts: 50

Rep: Reputation: 15
for nvidia intaller x needs to be stopped (/etc/init.d/gdm stop as pljvaldez suggested) and not restarted (Ctrl-Alt-Backspace). another way is ps -aux |grep gdm and then kill corresponding process.
 
Old 09-29-2006, 02:43 PM   #6
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
The right way is, "# telinit 1" (Tell init to go to single user mode.)
 
Old 09-29-2006, 02:47 PM   #7
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Quote:
Originally Posted by rickh
The right way is, "# telinit 1" (Tell init to go to single user mode.)
What services are available at level 1? Isn't single mode stripped down (i.e. networking and stuff also killed)?
 
Old 09-29-2006, 02:49 PM   #8
Volhv
Member
 
Registered: Sep 2006
Distribution: Debian 4.0 and Ubuntu 7.04
Posts: 50

Rep: Reputation: 15
the right way is any way that works.
 
Old 09-29-2006, 06:10 PM   #9
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Networking, apt, etc, all work in init 1 ... It's just like a base install with only one user, root.
 
Old 09-29-2006, 07:04 PM   #10
Volhv
Member
 
Registered: Sep 2006
Distribution: Debian 4.0 and Ubuntu 7.04
Posts: 50

Rep: Reputation: 15
what about firewall?
 
Old 09-29-2006, 07:30 PM   #11
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
A GUI based firewall will definitely shut down. I don't know what would happen if you were running iptables only. If it did shut down, I'm sure you could start it from the prompt.

Edit: In thinking about it, I'm not sure that iptables stopes working anyway. I depend on Firestarter as a software support for the NAT firewall on my browser, but it occurs to me that I'm not sure how to even go about checking to see if iptables is active from a prompt.

Last edited by rickh; 09-29-2006 at 07:35 PM.
 
Old 09-29-2006, 07:34 PM   #12
Volhv
Member
 
Registered: Sep 2006
Distribution: Debian 4.0 and Ubuntu 7.04
Posts: 50

Rep: Reputation: 15
okay so in runlevel 1 the situation is this: firewall is stopped, network is functional and root is logged in.

Last edited by Volhv; 09-29-2006 at 08:00 PM.
 
Old 09-29-2006, 07:46 PM   #13
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
I don't know ... When you say it that way, it sounds ridiculous. Google it.
 
Old 09-29-2006, 07:57 PM   #14
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
The only single user mode in Debian is init 1. Check the rc<runlevel> directories in /etc (/etc/rc1, /etc/rc5, etc) to see what services are started in that runlevel.
WARNING!!!Mess up those directories and you're in serious trouble!
 
Old 09-29-2006, 08:06 PM   #15
Volhv
Member
 
Registered: Sep 2006
Distribution: Debian 4.0 and Ubuntu 7.04
Posts: 50

Rep: Reputation: 15
my opinion is that for nvidia installer it is sufficient to stop gdm (xdm, kdm) without changing runlevel.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
howto re-load my ~/.profile without logout? minike Slackware 4 09-18-2005 12:36 AM
On gnome / x logout run "logout" ?? once here Linux - Software 1 01-09-2004 02:53 PM
Howto update KDE and howto switch off kdm/gdm Canaris Linux - Software 1 06-15-2003 08:40 PM
Gnome 1.4: howto set ATX-shutdown/restart support in the "logout"-dialog? Debianewb Linux - Software 1 11-08-2002 07:36 AM
Logout karunesh LQ Suggestions & Feedback 8 03-28-2002 06:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration