When VNC is first set up, it launches a default server instance on port 5901. The startup script was created when you ran the vncserver in the previous step, but we'll create our own to launch the Xfce desktop. These commands are located in a configuration file called xstartup in the. Specifically, VNC needs to know which graphical desktop it should connect to. The VNC server needs to know which commands to execute when it starts up. Log file is /home/ sammy/.vnc/ your_hostname:1.log Starting applications specified in /home/ sammy/.vnc/xstartup Xauth: file /home/ sammy/.Xauthority does not existĬreating default startup script /home/ sammy/.vnc/xstartup
OutputWould you like to enter a view-only password (y/n)? n The process then creates the necessary default configuration files and connection information for the server: This is a helpful option if you want to demonstrate something to other people using your VNC server, but this isn't required. Users who log in with the view-only password will not be able to control the VNC instance with their mouse or keyboard. Once you verify the password, you'll have the option to create a a view-only password. Passwords more than 8 characters will be truncated automatically. The password must be between six and eight characters long.
OutputYou will require a password to access your desktops. You'll be prompted to enter and verify a password to access your machine remotely: 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:
Once that installation completes, install the TightVNC server: Choose the one that's appropriate for your language and press Enter. Now install the Xfce desktop environment on your server:ĭuring the installation, you'll be prompted to select your keyboard layout from a list of possible options.
On your server, update your list of packages: Specifically, we will install packages for the latest Xfce desktop environment and the TightVNC package available in the official Debian repository. Step 1 - Installing the Desktop Environment and VNC Serverīy default, a Debian 9 server does not come with a graphical desktop environment or a VNC server installed, so we’ll begin by installing those.
You’ll use TightVNC, a fast and lightweight remote control package. In this guide, you’ll set up a VNC server on a Debian 9 server and connect to it securely through an SSH tunnel. It makes managing files, software, and settings on a remote server easier for users who are not yet comfortable with the command line. 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.