LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-04-2005, 02:04 PM   #1
howarddevore
Member
 
Registered: Apr 2005
Distribution: not sure yet
Posts: 117

Rep: Reputation: 15
how do i logout?


hi there
i just managed to install xfree86

...now i don't know how to safely turn the computer off.
previously, when i had only the basic black and white screen (console?) I would hit ctrl-alt-del
and then hit the power button shortly after.

Now, when i try the command 'logout' it says:
bash:logout:not login shell:use 'exit'

which seems fair enough but 'exit' just kills the console(?) window, it doesn't begin the reboot

can you help me please?
I'd like to plug the screen back into the winxp box so i can burn off some files and grin threateningly

//
howard
 
Old 07-04-2005, 02:27 PM   #2
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
You can use the shutdown command.

Code:
#reboot:
shutdown -r now
#turn off pc:
shutdown -h now
You can use time instead of now so it'll delay for x seconds/minutes before doing the command.
 
Old 07-04-2005, 02:58 PM   #3
Tons of Fun
Member
 
Registered: Dec 2004
Location: Orlando, Florida
Distribution: Debian 10 | Kali Linux | Ubuntu 20.04 LTS
Posts: 382

Rep: Reputation: 37
Make sure you are logged in as root or it won't let you reboot or shut down.
 
Old 07-04-2005, 03:11 PM   #4
howarddevore
Member
 
Registered: Apr 2005
Distribution: not sure yet
Posts: 117

Original Poster
Rep: Reputation: 15
You can use the shutdown command.


thankyou darkleaf

//
howard
 
Old 07-04-2005, 11:44 PM   #5
FreeThinkerJim
Member
 
Registered: Apr 2005
Location: Las Vegas, Nevada, USA
Distribution: Ubntu Intrepid Ibex (8.10)
Posts: 129

Rep: Reputation: 15
If you want to shutdown as normal user, type in chmod +4755 /sbin/shutdown (you only need to do it once), and then you won't need to be root to turn off your computer.
 
Old 07-05-2005, 05:17 AM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
You don't say what Window Manager / Desktop Environment you are using. In KDE. and I believe also in Gnome, there is a logout selection at the bottom of the main menu, just click on the icon ("K" on gear, footprint, green lizard, silly red hat, etc) in the lower left corner -- same place as in Winders.

You can also:
Use the beloved three finger salute (Ctrl-Alt-Del), it should still work.
Use "halt" or "reboot" in a terminal.
Go to a console (Ctrl-Alt-F1 to Ctrl-Alt-F6) log in as "root" and ...

If you want to use "shutdown" as a regular user the chmod advice will save a lot of hassle.


You sound new at this, perhaps the following will be helpful:

"halt" & "reboot" are equivalent to "shutdown -h now" & "shutdown -r now", respectively.

Your familiar B&W consoles are still available, they are associated w/ the "F" keys & are accessed w/ Ctrl-Alt-Fn, where n is the number of the console you want. The normal default is 6, 4 in Knoppix, and your X Window is at F7 (F5 in Knoppix).


Warning -- I use mainly KDE, if you are using something else YMMV.
 
Old 07-05-2005, 08:45 AM   #7
sys-fire
LQ Newbie
 
Registered: Nov 2003
Location: USA
Distribution: Debian and Slackware
Posts: 17

Rep: Reputation: 0
logout

If the gui doesn't have a reboot or shutdown choice, you can do either from the console terminal. Just type " /sbin/shutdown -r now" without the quotes to reboot. To shut the computer off use "/sbin/shutdown -h now".
 
Old 07-05-2005, 10:54 AM   #8
C4bo
Member
 
Registered: Feb 2005
Posts: 51

Rep: Reputation: 15
Hello
I'm a n00b, but i use Ctrl+Alt+F1 to kill X, tthen you are back to consol. su to root, and use watt you did befor . I think you downt have kdm or gdm , but if so you have to type your root passwd to reboot or shuttdown if you use gdm.
Bertil
 
  


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
logout others ceph Linux - General 1 10-25-2005 11:37 AM
logout others ceph Linux - Security 3 06-07-2004 11:09 AM
On gnome / x logout run "logout" ?? once here Linux - Software 1 01-09-2004 02:53 PM
cannot logout kalmen Linux - General 1 12-16-2002 06:04 PM
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:19 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