Obviously the folder name is not important so feel free to pick something more suitable. Next we’ll create a folder called MyScripts below your home folder. This command switches us into that directory. So, either from a Putty session or a new Terminal Session within Ubuntu ( Applications -> Accessories) type the following commands: I personally put all my scripts in a directory below my “Home” folder in a folder called MyScripts. A script is basically a file containing a list of commands which will be executed each time you run it. Write a script to launch VNCĪn alternative (some say “better”) way is to create a small script. If you make a mistake editing the file then issue :q! instead of :wq to abort your changes. Your VNC session should now be recreated each time you reboot the server. This should save your changes and bring you back to the command line. Once you’ve done that press the key once and type the following: usr/bin/vncserver -geometry 1280x1024 -depth 24 Next, scroll up until your cursor is one line above the line which reads “exit 0” and then press the key once (to go into “edit” mode). This will open the file called rc.local which lives in the /etc folder.
#Best vnc server ubuntu password
Simply type the following commands to do this:Īnd type your Ubuntu password if prompted. Perhaps the simplest way of ensuring the VNC session is re-created on boot is to add the “vncserver -geom….” command to a file called rc.local. There are a few ways of doing this and we’ll go through each of them in turn below. We can either launch a Putty session and re-type the vncserver -geometry 1280×1024 -depth 24 command after each reboot of the server or we can get the server to issue this command automatically at boot time. Having installed VNC to enable us to administer Ubuntu Server remotely using a GUI (Graphical User Interface) we now need to make sure VNC is launched at boot time. NOTE: If you’re jumping into this guide here then it’s worth mentioning that this guide has been tested on Lucid Lynx 10.04, Karmic Koala 9.10, 9.04 Jaunty, and 8.10 Intrepid.