Results 1 to 4 of 4
I am using Xubuntu 10.10 64bit .
When I press the quit or logoff buttons on the desktop it takes me to the logon screen and then at the bottom ...
- 03-24-2011 #1Just Joined!
- Join Date
- Mar 2011
- Posts
- 2
xbuntu shutdown screen
I am using Xubuntu 10.10 64bit .
When I press the quit or logoff buttons on the desktop it takes me to the logon screen and then at the bottom right corner it allows me to shutdown or reboot.
I would like to bypass this screen entirely,and just shutdown reboot from the desktop. Only I use this machine at home ,no none else needs to log on.
Is there any way to do this?
- 03-25-2011 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,977
Q&D way: from terminal screen: sudo shutdown -h now
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 03-25-2011 #3Just Joined!
- Join Date
- Mar 2011
- Posts
- 2
Thanks.That does work.But I am new to linux,and by the time I have found the terminal, and remembered the commands,and typed them in. I might as well have shut down the default way.
Is there in Xubuntu something like a batch language in MSwin? Then I could put these commands into a batch file and put a shortcut on the desktop.
- 03-25-2011 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,977
The bash shell used in the terminal window is a scripting language, much more powerful than Windows .bat files. Here is an example:
Copy/paste that into a text file (no extension necessary) like my_shutdown, change the permissions to executable, and try executing it first from the command line. If that works, then you can try creating a desktop link. To create, enable, and test execute the file (note, this will shut down the machine), do this from the command line:Code:#!/bin/bash sudo shutdown -h now
You might want to move the file to somewhere it can be accessed easily and not deleted by mistake.Code:cat >my_shutdown <<EOF #!/bin/bash sudo shutdown -h now EOF chmod +x my_shutdown ./my_shutdown
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
