sudo apt-get install vnc4server xinetd
2. Start the vnc4server:
vnc4server
You will be prompted for a password. This password will be used to log into the VNC session.
The server will be running on port 5901. If you search for vnc process by
$ ps aux | grep vnc
you will get vnc:1 or some number after colon.Starting the vnc4server will cause a .vnc directory to be placed in your home directory.
4. Stop the vnc4server ( use the number after colon as a parameter to kill )
vnc4server -kill :1
5. Open the .vnc/xstartup file for editing:
vim ~/.vnc/xstartup
paste the following
xrdb $HOME/.Xresources
xsetroot -solid grey
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession
save the file by :wq
6. Now start the vnc server again by
$ vnc4server
This will start the vnc server by default on 5901 port, with vncviewer you can connect to this running vnc server.
No comments:
Post a Comment