HomeBrainDump Page 4 - Secure Remote Desktop Sharing with VNC on Linux
More Useful VNC Commands - BrainDump
This article is the second half of a two-part series on secure remote desktop sharing with VNC. If you missed the first part, which appeared Monday on ASP Free, I'd suggest skimming through it, at least. The first part was an introduction to VNC connections and it focused on Windows. This one will get into the depths of configuration, optimization and explain ways to set up and benefit from VNCs on Linux platforms too.
One might ask how can we close and stop the vncserver service if it's running. You can kill it using the following command:
vncserver -kill :# //where # is the display no.
Also, another useful tip is that you can set up your vncserver to start automatically every time your Linux system boots up. One of the ways to do this is by adding a new line to your "/etc/rc.d/rc.local." This shouldn't surprise you if you're familiar with Linux. A quick example would be adding the following line:
In the above command you need to replace "user_name" with the specific user on which you want to run your VNC Server. The command "su" basically runs the command in "" (quotation marks) at the specified username-when executing more than one command, you need to separate each of them with &&. In our case, it changes the current directory to /home/user_name and executes the "vncserver :1 -geometry 1024x768 -depth 16" command.
We shouldn't forget about the "vncpasswd" command that allows us to change the password for our VNC Server.