VNC Server On Ubuntu
#sudo apt-get install vnc4serverNow setup a password to login using the following command. It will prompt to setup a password and verify it
#vncpasswd
Than run the vnc server using
#vncserver :1
Now before you proceed kill it once using
#vncserver -kill :1
Now open the config file from .vnc/xstartup or ~/.vnc/xstartup
using editor .vnc/xstartup
Than uncomment the line which says
unset SESSION_MANAGER
And add sh to the line below it like this
exec sh /etc/X11/xinit/xinitrc
Exit the file and run the command as below
#vncserver :1 -depth 16 -geometry 1024×768
connect using <ip-addr>:1 (:1 is for the vnc server window)
You now have GUI access to your server.
Comments
Post a Comment