Notice here that we've changed the username as well as the 1 to a 2 specifying a new sever to listen on. # Add the following line to the end of the config file. # Edit the VNCSERVERS line to look like this: First we would add a new user and set a password then edit our server configuration, set a VNC user password and restart the server. In the server field of the client you can enter the port like this :5901Īdding a new VNC user that is able to connect to the server follows much the same process as above. If using the configuration above this port will be 5901. When connecting using this software, you will need to specify the port for connecting. For a more advanced client, you can alternatively use the TightVNC client. TigerVNC is compatible with most VNC clients and also provide their own basic client. To connect to your newly operational server, you will need a VNC client. # We're almost done! Just need to start the service one last timeĬonnecting to your VNC server from your local PC We'll start it once just to generate some configuration files, stop it and if all is okay set it to start on boot Using the vncpasswd command you will be prompted to generate a password that is only used for connecting to the VNC server. # Now we must switch to the user we have just added and generate a VNC connection password. # Save your changes in nano by using the Ctrl+X shortcut and hitting Y to accept the changes and write to the file. # Add the following lines to the end of the file: You may want to reduce these values slightly less than your local PC's screen resolution (Example: if using 1920x1080 at home, try setting your VNC resolution to 1900x960). You can change the screen resolution to any value. # After adding the user, we will need to edit the VNC server configuration to specify which user will be able to connect as well as what screen resolution they will use. Please choose a strong password of minimum 8 characters in length using uppercase, lowercase, numbers and symbols. # Now we need to add a user that the desktop will be running under as well as create a password for it. # Using yum install TigerVNC and optionally a command-line text editor, nano, which we will be using later on. # Replace the contents of the file with the following: # Now we must reset our DNS resolvers so that we can perform domain name resolutins # Remove NetworkManager as this will overwrite our local name server settings and cause you to be unable to resolve domains. This installs all packages needed for a minimal desktop installation. # Using the yum package manager, install GNOME using groupinstall. To begin, SSH into your VPS using the root username and password. Recommended VPS Specifications: Minimum 1 GB of RAM, 20 GB HDD Comments in this article will be preceded by a hash tag (#). NOTE: This guide uses CentOS version 6.3 so there may be extra steps when using CentOS version 5. For this guide we will be using a one user VNC set up, though adding additional users will also be explained. This guide will walk you through all the steps necessary to install the GNOME desktop as well as the TigerVNC server for remote desktop access on your CentOS 6 VPS. Installing GNOME desktop environment and VNC server
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |