GettingaNicerLinuxInterface - MRC CBU Imaging Wiki

Revision 6 as of 2009-12-22 11:10:20

Clear message
location: GettingaNicerLinuxInterface

How to change your Linux window manager

You may have noticed that the graphical user interface (GUI) on the linux boxes is a far cry from the usual Windows or Mac GUIs. It doesn't have to be this way - it's just that the default GUI on the linux boxes is hideous. There are many alternative GUIs installed on the linux boxes, but for most people the one they will want is Gnome, which is the GUI used in Ubuntu and other sexy Linux distributions.

To change your window manager to Gnome, follow these steps:

1. Open a terminal in your current linux VM

2. Type the following: {{{cd ~ nano .vnc/xstartup}}}

3. An editor will open with the xvnc settings. Use the arrow keys to move the cursor.

4. Comment out anything after the 'xterm -geometry...' line by inserting # (this likely includes references to e.g. icewm)

5. On the line below 'xterm -geometry...' type: exec gnome-session &

6. type Ctrl-x. You'll be prompted to save changes. Type 'y', and hit return/enter to overwrite the file.

EITHER 7 & 8. Type

vncserver -kill :[yourvncdesktopnumber]

OR

7. You should be back in the terminal now. Type ps -u <your username>. Note the process id (PID) next to the Xvnc process. 8. type kill <the Xvnc process id>

9. Your VNC server will now have closed. Start a new one, and you will find yourself in gnomy goodness.

Your final file should look something like this: {{{#!/bin/sh # # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & exec gnome-session & #startkde & #icewm & }}}

(JohanCarlin)