I recently needed to replace twm as the window manager I used under VNC. I wanted something light so I looked at: blackbox, fluxbox, and flwm. These window managers have been around for some time and are probably available as binary packages for most distributions.
I went with blackbox after installing them all. To change what window manager starts when vnc starts you need to edit the xstartup file in your ~/.vnc directory. To start with it will look something like:
[code lang=”text”]
#!/bin/sh
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
twm &
[/code]
To start blackbox instead of twm you change it to:
[code lang=”text”]
#!/bin/sh
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
blackbox &
[/code]
You can remove some of the extra stuff started by the script if you want so that it looks like:
[code lang=”text”]
#!/bin/sh
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
blackbox &
[/code]
Now enjoy your new window manager.
[tags]window manager, linux, desktop[/tags]
Pingback: Making screencasts with Linux @ IONCANNON