Add the below lines to the file.įor those who used the Gnome Desktop environment, your file should appear as below. This file contains commands that are executed automatically when we start or restart the VNC server. Here we want to configure TigerVNC to work with our Desktop Environment (Gnome Environment) vim ~/.vnc/xstartup Install vim on Debian 11/10 using sudo apt install vim. If the file does not exist, just proceed and create a new xstartup file using the Vim text editor. success!īefore we make changes to the xstartup file, we need to make a backup of the original file. $ vncserver -kill :1 Killing Xtigervnc process ID 1452. Since we are going to make configuration changes to TigerVNC, we first need to stop the TigerVNC service running on port 5901. :1 5901 1452 Xtigervnc Step 3: Configure TigerVNC. Verify if the tigerVNC service is running $ vncserver -list TigerVNC server sessions: If it fails to start, run: tigervncserver -xstartup /usr/bin/xterm Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /home/debian/.vnc/passwd :1 to connect to the VNC server. New Xtigervnc server ':1 (debian)' on port 5901 for display :1. Sample Output: /usr/bin/xauth: file /home/thor/.Xauthority does not exist With the above settings made, start the VNC server using the command: vncserver -localhost no Would you like to enter a view-only password (y/n)? n You will require a password to access your desktops. Your password should be at least 6 characters. You will be required to set your preferred password as below. Replace non-root user with your n on-root-username su - non-root-username Switch to the non-root user and set a VNC password. With TigerVNC installed, you will be required to set a VNC password to access your desktops. Libfile-readbackwards-perl tigervnc-common tigervnc-standalone-serverĠ upgraded, 3 newly installed, 0 to remove and 4 not upgraded.Īfter this operation, 3,148 kB of additional disk space will be used. The following NEW packages will be installed: The following additional packages will be installed: TigerVNC is available in the default Debian package repository and can be installed easily using the command: sudo apt install tigervnc-standalone-server tigervnc-commonĭependency Tree: Building dependency tree. sudo systemctl reboot Step 2: Install TigerVNC Server on Debian 11/10 Now restart your Debian 11/10 system for the changes made to apply. sudo systemctl set-default graphical.target Once the installation is complete, you will be required to set your system to boot into the graphical target. Press Enter and proceed to the installation. I chose to use Gnome Desktop in this guide Your selected item will appear as below with a “ *” on it. Here, you are free to select, download and install a Desktop Environment of your choice by navigating using the keyboard up and down arrow keys. With Tasksel installed, we will launch it using the command: sudo tasksel We will add a Desktop Environment to our server as below.įirst, we will need to install Tasksel, this tool makes it easy to install a Desktop Environment on a Debian system. For TigerVNC to be able to control the remote system, we need to have GUI installed on the server. Step 1: Install Desktop Environment on Debian 11/10 Serverīy default, Debian 11/10 servers do not have a Desktop Environment. A local computer where we will install VNC client.To be able to successfully complete this guide, you will need the following:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |