Avahi can be installed for automatic discovery:
sudo apt-get install avahi-daemon
Then you should be able to connect to the rpi through its hostname
ssh pi@raspberrypi.local
Install vncserver on RPI:
sudo apt-get install tightvncserver
Launch vncserver:
vncserver :1 -name RasPi -depth 16 -geometry 1368x768
Create a script in /etc/init.d:
sudo nano /etc/init.d/vncserver
With this content:
#! /bin/sh # /etc/init.d/vncserverd ### BEGIN INIT INFO # Provides: vncserver # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: VNC server ### END INIT INFO VNCUSER='pi' case "$1" in start) echo -n "Starting vncserver..." su $VNCUSER -c '/usr/bin/vncserver :1 -name RasPi -depth 16 -geometry 1368x768' echo -n "Starting VNCServer for $VNCUSER [OK]" ;; stop) echo -n "Stoping vncserver..." su $VNCUSER -c '/usr/bin/vncserver -kill :1' echo -n "[OK]" ;; restart) $0 stop sleep 5 $0 start ;; *) echo "Usage: /etc/init.d/vncserverd {start|stop}" exit 1 ;; esac exit 0
Then give the credentials and update-rc :
sudo chmod 755 /etc/init.d/vncserverd sudo update-rc.d vncserverd defaults