VNC or Virtual Network Computing is a tool I like to use when I want to "remote desktop" into my Ubuntu machine.
1. sudo apt-get install vnc4server
2. sudo apt-get install gnome-session gnome-panel metacity nautilus gnome-terminal
3. type 'vncserver' and enter password
4. sudo nano ~/.vnc/xstartup
Edit the xstartup file with the following:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
def
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
gnome-session --session=gnome-classic &
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
5. sudo nano /etc/rc.local (you can set npropes to your username)
Edit /etc/rc.local with the following:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
su -c "vncserver -geometry 1600x900 :1" npropes
exit 0
6. sudo reboot (to reboot server)
7. I use VNC Viewer software to login via VNC from a Windows machine. The address is
<ip address of server>:59xx where xx is the number you assigned (e.g. 01).
I believe MAC has one built in through it's finder (e.g. vnc://<ip address of server>:5901).