Showing posts with label cli. Show all posts
Showing posts with label cli. Show all posts

Saturday, August 16, 2008

Shutdown and Restart from the command line.

I had some problems recently where two OSes (Ubuntu Intrepid Alpha 3 and KuruminNG) did NOT shutdown by means of the panel icon. Instead in both cases I was brought to the login screen. Of course, here I could select Restart from the menu but it was a bit of a roundabout way to reboot.
However, there are CLI commands you can use to shutdown and startup as follows:

Shutdown

sudo init 0

Restart
sudo init 6

Of course, you could always make a small script to execute these commands from an icon, if necessary.

Sunday, June 22, 2008

Kurumin screen resolution -- CLI to change

I´ve just found that the screen resolution problem I have in Kurumin can be overcome much more easily by just typing

xrandr -s 1280x1024

in a terminal.
You don´t even have to do this as root.
I´m going to make a bash script of this so I can get it to automatically change to a 1280x1024 screen res. on startup.