Deployment Solution

 View Only

Remote Control Linux Client in Deployment Server, Part I 

May 19, 2009 11:36 AM

This article is how to setup a right click event to choose remote control for Linux Servers.

Since Linux Servers already have VNC server installed we just have to enable it.

  1. On Redhat server, login with your username that you want to enable remote access. In this example, I will use 'admin' user.

    imagebrowser image

  2. Open Terminal, type 'vncpasswd'. Type your password and verify password again. This command will use to set you password for remote access for the current user

    imagebrowser image

  3. Before next step, you need to logged on as root by type 'su root'.

    imagebrowser image

  4. Edit the file /etc/sysconfig/vncservers by type ' vi /etc/sysconfig/vncservers'.
    Note: If you are new to Linux, vi is an editor tool in command line mode on Linux.
  5. You'll see text file as in the figure below. Next, I'll edit on the highlight line.

    imagebrowser image

  6. Uncomment on the highlight line. If you have more than one usernames that want to enable remote access, you can change VNCSERVERS value in this format, "1:username1 2:username2 3:username3 ...". In this example, I have only one user which is root so this line of mine is 'VNCSERVERS = "1:admin"'.

    imagebrowser image

  7. Now save the file and exit. To save file, hold ESC + ':' and type 'wq' to write and quit file.

    imagebrowser image

  8. Next, log off the user if you are not user 'root' and log in as root. Enable VNC service by type 'chkconfig vncserver on'. Then, start the VNC service by type 'service vncserver start'.

    imagebrowser image

  9. If you have firewall enable on Redhat, be sure that your firewall configuration won't block connection from remote computer by open port TCP 5901 for remote access. Open Applications ->; System Settings ->; Security Level. Add '5901:tcp' on Other ports.
    Note: VNC uses TCP protocol on port 5901.

NOTE: the Next steps will be done on the deployment server.

  1. Download and install vncviewer and save it in a folder on the express share. I called my folder vncviewer.
  2. Edit the remotecontroltools.ini in the root of the express share and add this section.
[VNC]
Display-Name=&Linux Remote
RemoteToolEXEFilePath=tightvnc\vncviewer.exe
CommandLine="%AGENTIPADDR%"

Now when you right click on a linux machine you can remote control a linux machine. There are options that you can set passwords and resolution sizes on the linux machines. To see more information about additional command line switches see http://www.realvnc.com/products/free/4.1/winvncviewer.html

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.