LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   how do i logout? (https://www.linuxquestions.org/questions/debian-26/how-do-i-logout-339948/)

howarddevore 07-04-2005 02:04 PM

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

darkleaf 07-04-2005 02:27 PM

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.

Tons of Fun 07-04-2005 02:58 PM

Make sure you are logged in as root or it won't let you reboot or shut down.

howarddevore 07-04-2005 03:11 PM

You can use the shutdown command.


thankyou darkleaf

//
howard

FreeThinkerJim 07-04-2005 11:44 PM

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.

archtoad6 07-05-2005 05:17 AM

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.

sys-fire 07-05-2005 08:45 AM

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".

C4bo 07-05-2005 10:54 AM

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


All times are GMT -5. The time now is 12:08 AM.