Vnc Client On For Tightvnc

VNC® Connect consists of VNC® Viewer and VNC® Server. Download VNC® Viewer to the device you want to control from, below. Make sure you've installed VNC® Server on the computer you want to control. After installing Xfce on Debian server and confirmed working, TightVNC Server is installed. Client – Windows 10 Professional running TightVNC Client. Issue – cannot copy and paste from TightVNC Client to Windows 10. Checked the log file (./vnc/machine:1.log) generated after vncserver started and found the following two errors.

VNC client on the Android device: androidVNC used here; In ConnectBot, connect to the desired machine. Tap the options key, select Port Forwards and add a port: Type: Local Source port: 5901 Destination: 127.0.0.1:5901 In androidVNC connect to the VNC port, this is the local address following the SSH connection. Advertised as an OS-independent client/server package enabling remote network access to graphical desktops, TightVNC is a free tool organizations can use to solve remote connectivity needs.

Translation(s): English - Español - Português Brasileiro

?Discussion

VNC stands for Virtual Network Computing. It is, in essence, a remote display system which allows you to view a computing `desktop' environment not only on the machine where it is running, but from anywhere on the Internet and from a wide variety of machine architectures.

It is implemented in a client/server model. This package provides a client for XWindow, with this you can connect to a vncserver somewhere in the network and display its content in a window. There are vncserver available for X and for Win95/NT.

The difference between the xtightvncviewer and the normal vncviewer is the data encoding, optimized for low bandwidth connections. If the client does not support jpeg or zlib encoding it can use the default one. Later versions of xvncviewer (> 3.3.3r2) support a new automatic encoding that should be equally good as the tightvnc encoding.

High CPU usage in X when VNC client is connected

Various causes between X versions and display driver may cause this issue. Below solutions attempt to fix:

Add parameters in x11vnc command line

If you are using x11vnc, you may try different parameters, one at a time, to see if it fix the issue

Create / Specify display driver in /etc/X11/xorg.conf

This will force X to use the VESA display driver, which is slow for local display but works great for remote connection.

VNC 'Server side'

  • conspy - Remote control of Linux virtual consoles

  • gnome-rdp - remote desktop client for GNOME

  • krfb - Desktop Sharing for KDE

  • tightvncserver - virtual network computing server software

  • vino - VNC server for GNOME

  • vnc4server - Virtual network computing server software

  • x11vnc - VNC server to allow remote access to an existing X session

  • tigervnc-xorg-extension - 'TigerVNC is a high-performance, platform-neutral implementation of VNC' (see also tigervnc-scraping-server and tigervnc-standalone-server)

VNC 'Client side'

  • directvnc - VNC client using the framebuffer as display

  • gvncviewer - VNC viewer using gtk-vnc

  • krdc - Remote Desktop Connection for KDE

  • python-gtk-vnc - A VNC viewer widget for GTK+ (python binding)

  • ssvnc - Enhanced TightVNC viewer with SSL/SSH tunnel helper

  • tightvnc-java - TightVNC java applet and command line program

  • tkvnc - Displays a list of (defined) machines to start VNC to

  • tsclient - front-end for viewing of remote desktops in GNOME

  • vinagre - remote desktop client for the GNOME Desktop

  • vnc-java - VNC java applet and command line program

  • xrdp - Remote Desktop Protocol (RDP) server

  • xtightvncviewer - virtual network computing client software for X

  • xvnc4viewer - Virtual network computing client software for X

  • tigervnc-viewer - 'TigerVNC is a high-performance, platform-neutral implementation of VNC'

  • remmina-plugin-vnc - the VNC plugin for Remmina

VNC Tools

  • pyvnc2swf - screen recording tool to SWF movie

  • vncsnapshot - A utility that takes JPEG snapshots from VNC servers

  • x2vnc - A dual-screen hack - link an MS-Windows and X display

CategoryNetworkApplicationRemoteDesktopCategoryNetworkCategorySoftware

Tutorial

Introduction

Virtual Network Computing, or VNC, is a connection system that allows you to use your keyboard and mouse to interact with a graphical desktop environment on a remote server. It makes managing files, software, and settings on a remote server easier for users who are not yet comfortable with the command line.

In this guide, you’ll set up a VNC server on a Debian 10 server and connect to it securely through an SSH tunnel. You’ll use TightVNC, a fast and lightweight remote control package. This choice will ensure that our VNC connection will be smooth and stable even on slower internet connections.

Prerequisites

To complete this tutorial, you’ll need:

  • One Debian 10 server set up by following the Debian 10 initial server setup guide, including a non-root user with sudo access and a firewall.
  • A local computer with a VNC client installed that supports VNC connections over SSH tunnels.
    • On Windows, you can use TightVNC, RealVNC, or UltraVNC.
    • On macOS, you can use the built-in Screen Sharing program, or can use a cross-platform app like RealVNC.
    • On Linux, you can choose from many options, including vinagre, krdc, RealVNC, or TightVNC.

Step 1 — Installing the Desktop Environment and VNC Server

By default, a Debian 10 server does not come with a graphical desktop environment or a VNC server installed, so we’ll begin by installing those. Specifically, we will install packages for the latest Xfce desktop environment and the TightVNC package available in the official Debian repository.

On your server, update your list of packages:

Now install the Xfce desktop environment on your server:

During the installation, you’ll be prompted to select your keyboard layout from a list of possible options. Choose the one that’s appropriate for your language and press Enter. The installation will continue.

Once the installation completes, install the TightVNC server:

To complete the VNC server’s initial configuration after installation, use the vncserver command to set up a secure password and create the initial configuration files:

You’ll be prompted to enter and verify a password to access your machine remotely:

The password must be between six and eight characters long. Passwords more than 8 characters will be truncated automatically.

Once you verify the password, you’ll have the option to create a a view-only password. Users who log in with the view-only password will not be able to control the VNC instance with their mouse or keyboard. This is a helpful option if you want to demonstrate something to other people using your VNC server, but this isn’t required.

The process then creates the necessary default configuration files and connection information for the server:

Now let’s configure the VNC server.

Step 2 — Configuring the VNC Server

The VNC server needs to know which commands to execute when it starts up. Specifically, VNC needs to know which graphical desktop it should connect to.

These commands are located in a configuration file called xstartup in the .vnc folder under your home directory. The startup script was created when you ran the vncserver command in the previous step, but we’ll create our own to launch the Xfce desktop.

When VNC is first set up, it launches a default server instance on port 5901. This port is called a display port, and is referred to by VNC as :1. VNC can launch multiple instances on other display ports, like :2, :3, and so on.

Because we are going to be changing how the VNC server is configured, first stop the VNC server instance that is running on port 5901 with the following command:

The output should look like this, although you’ll see a different PID:

Before you modify the xstartup file, back up the original:

Vnc Client On For Tightvnc

Now create a new xstartup file and open it in your text editor:

Commands in this file are executed automatically whenever you start or restart the VNC server. We need VNC to start our desktop environment if it’s not already started. Add these commands to the file:

The first command in the file, xrdb $HOME/.Xresources, tells VNC’s GUI framework to read the user’s .Xresources file. .Xresources is where a user can make changes to certain settings for the graphical desktop, like terminal colors, cursor themes, and font rendering. The second command tells the server to launch Xfce, which is where you will find all of the graphical software that you need to comfortably manage your server.

Vnc client tightvnc

To ensure that the VNC server will be able to use this new startup file properly, we’ll need to make it executable.

Now, restart the VNC server.

You’ll see output similar to this:

With the configuration in place, let’s connect to the server from our local machine.

Step 3 — Connecting the VNC Desktop Securely

VNC itself doesn’t use secure protocols when connecting. We’ll use an SSH tunnel to connect securely to our server, and then tell our VNC client to use that tunnel rather than making a direct connection.

Create an SSH connection on your local computer that securely forwards to the localhost connection for VNC. You can do this via the terminal on Linux or macOS with the following command:

The -L switch specifies the port bindings. In this case we’re binding port 5901 of the remote connection to port 5901 on your local machine. The -C switch enables compression, while the -N switch tells ssh that we don’t want to execute a remote command. The -l switch specifies the remote login name.

Remember to replace sammy and your_server_ip with your non-root username and the IP address of your server.

If you are using a graphical SSH client, like PuTTY, use your_server_ip as the connection IP, and set localhost:5901 as a new forwarded port in the program’s SSH tunnel settings.

Once the tunnel is running, use a VNC client to connect to localhost:5901. You’ll be prompted to authenticate using the password you set in Step 1.

Once you are connected, you’ll see the default Xfce desktop.

Select Use default config to configure your desktop quickly.

Vnc Client Ubuntu Tightvnc

You can access files in your home directory with the file manager or from the command line, as seen here:

On your local machine, press CTRL+C in your terminal to stop the SSH tunnel and return to your prompt. This will disconnect your VNC session as well.

Next let’s set up the VNC server as a service.

Step 4 — Running VNC as a System Service

Next, we’ll set up the VNC server as a systemd service so we can start, stop, and restart it as needed, like any other service. This will also ensure that VNC starts up when your server reboots.

First, create a new unit file called /etc/systemd/system/vncserver@.service using your favorite text editor:

The @ symbol at the end of the name will let us pass in an argument we can use in the service configuration. We’ll use this to specify the VNC display port we want to use when we manage the service.

Add the following lines to the file. Be sure to change the value of User, Group, WorkingDirectory, and the username in the value of PIDFILE to match your username:

/etc/systemd/system/vncserver@.service

The ExecStartPre command stops VNC if it’s already running. The ExecStart command starts VNC and sets the color depth to 24-bit color with a resolution of 1280x800. You can modify these startup options as well to meet your needs.

Vnc Client On For Tightvnc

Save and close the file.

Vnc Viewer For Tightvnc

Next, make the system aware of the new unit file.

Enable the unit file.

The 1 following the @ sign signifies which display number the service should appear over, in this case the default :1 as was discussed in Step 2..

Vnc Client Tightvnc

Stop the current instance of the VNC server if it’s still running.

Then start it as you would start any other systemd service.

You can verify that it started with this command:

If it started correctly, the output should look like this:

Your VNC server will now be available when you reboot the machine.

Start your SSH tunnel again:

Then make a new connection using your VNC client software to localhost:5901 to connect to your machine.

Conclusion

You now have a secured VNC server up and running on your Debian 10 server. Now you’ll be able to manage your files, software, and settings with an easy-to-use and familiar graphical interface, and you’ll be able to run graphical software like web browsers remotely.