Home arrow BrainDump arrow 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.

  1. Secure Remote Desktop Sharing with VNC on Linux
  2. Getting Started
  3. Setting up the Environment
  4. More Useful VNC Commands
  5. Final Words
By: Barzan "Tony" Antal
Rating: starstarstarstarstar / 16
April 24, 2007

print this article



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:

su - user_name -c "cd /home/user_name && vncserver :1 -geometry 1024x768 -depth 16"

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.

>>> More BrainDump Articles          >>> More By Barzan "Tony" Antal

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- Apple Founder Steve Jobs Dies
- Steve Jobs` Era at Apple Ends
- Google's Chrome Developer Tool Updated
- Google's Chrome 6 Browser Brings Speed to th...
- New Open Source Update Fedora 13 is Released...
- Install Linux with Knoppix
- iPad Developers Flock To SDK 3.2
- Managing a Linux Wireless Access Point
- Maintaining a Linux Wireless Access Point
- Securing a Linux Wireless Access Point
- Configuring a Linux Wireless Access Point
- Building a Linux Wireless Access Point
- Migrating Oracle to PostgreSQL with Enterpri...
- Demystifying SELinux on Kernel 2.6
- Yahoo and Microsoft Create Ad Partnership

Developer Shed Affiliates


Dev Shed Tutorial Topics: