Michael Wheeler

VNC your FreeBSD

A few days ago I showed you how-to store your data on a samba share for windows, this time I’ve decided to do something a bit different. The aim of the project is that I get the same session with everything still running from when i logged off no matter which computer im on including area’s out side my home network. I setup on my freebsd server, vncserver by going

$ sudo pkg_add -r vnc

and then ran it with this command

$ vncserver

On first start it’ll ask you to supply a password to protect from strangers controlling your PC. To VNC you need a VNC client like tight vnc for windows or vncviewer, the address is ipaddres:1 (some times you might have to replace the 1 with the number it reports back in the terminal when started, but usually its 1) . It didn’t really look to pretty. I dediced to pretty it up with gnome, though the steps should be the same for kde.

$ pkg_add -r gnome2

After that finished I had to tweak the ~/.vnc/xstartup file so that the right window manger and that started. Comment out twm and xterm and add this to the end of the file.

gnome-session &

Then kill the vncserver and restart it :

killall Xvnc


vncserver

And you can login into your nice gnome desktop. I decided to osxify my desktop by following a ubuntu walk throughbut it doesn’t have anything that stops you doing it in other operating system. It can be found at http://www.supriyadisw.net/2006/09/ultimate-ubuntu-dapper-look-like-osx .

And here is my current desktop, I need have a nice OS X type wallpaper but decided to go with one of mine.