Yum install vncserver xterm




















Run the command: rpm -q vnc-server. The result will be either package vnc-server is not installed or something like vnc-server If the server is not installed, install it with the command: yum install vnc-server. The client program is 'vnc'.

You can use the command: yum install vnc to install the client if: rpm -q vnc shows that it is not already installed. Make sure to install a window manager in order to get a full-featured GUI desktop. If you are a minimalist, or simply testing, however, it is sufficient to have yum install a simple XTERM client: yum install xterm. If you are running CentOS 6, the command is yum groupinstall Desktop. This is a known bug. If you are running CentOS 6, the server is: tigervnc-server not: vnc-server.

Switch user into the account for each user, and run: vncpasswd This will create a. Login to each user and edit the xstartup script. To use Larry as an example, first login as larry. Add the line indicated below to assure that an xterm is always present, and uncomment the two lines as directed if you wish to run the user's normal desktop window manager in the VNC. Note that in the likely reduced resolution and color depth of a VNC window the full desktop will be rather cramped and a look bit odd.

If you do not uncomment the two lines you will get a gray speckled background to the VNC window. Let us assume that mymachine has an IP address of The URL to connect to each of the users will be:. A java applet window will pop-up showing a connection to your machine at port 1.

Click the [ok] button. Enter larry's VNC password, and a x window should open using the default window manager selected for larry. To test larry using vncviewer, vncviewer The vncviewer client will connect to port X where X is an offset of 1,2,3 for Larry, Moe, and Curly respectively, so these ports must be open in the firewall for the IP addresses or subnets of the clients.

For basic VNC configuration the procedure is now complete. The following sections are optional refinements to enhance security and functionality. You will be connecting through an ssh tunnel. You will need to be able to ssh to a user on the machine. Start the VNC service. Test each VNC user. Additional optional enhancements 2. Curly will have an by screen. Note: This step is NOT out of sequence, but is placed here so that the next following step will fall adjacent to the step in which failure to perform it, will permit immediate fault diagnosis.

Confirm that the vncserver will start and stop cleanly We will create the xstartup scripts by starting and stopping the vncserver as root. We also enable the vncserver service to be automatically started. Create xstartup scripts You may omit this step for CentOS 6 Login to each user and edit the xstartup script.

Note that in the likely reduced resolution and color depth of a VNC window the full desktop will be rather cramped and a look bit odd. If you do not uncomment the two lines you will get a gray speckled background to the VNC window.

Add the following line to ensure you always have an xterm available. Start the VNC server Start the vncserver as root. Test each VNC user 2. Testing with a java enabled browser Let us assume that mymachine has an IP address of A java applet window will pop-up showing a connection to your machine at port 1. Click the [ok] button. Enter larry's VNC password, and a x window should open using the default window manager selected for larry.

Testing with a vnc client For Larry: vncviewer Once authenticated, a x window should open using Larry's default window manager. The vncviewer client will connect to port X where X is an offset of 1,2,3 for Larry, Moe, and Curly respectively, so these ports must be open in the firewall for the IP addresses or subnets of the clients.

The following sections are optional refinements to enhance security and functionality. VNC encrypted through an ssh tunnel You will be connecting through an ssh tunnel. You will need to be able to ssh to a user on the machine. For this example, the user on the vncserver machine is: larry That account username needs to exist on the target machine, and either password, or keyed ssh access needs to be functional. To install Remmina Remote Desktop client in Debian based distros issue the following command.

In case you need to run a new parallel VNC session under the same user, open a Terminal console, log in with the user you want to start the new VNC session and execute the below command.

When you first start the server you will be asked to supply a new password for this session. However, be aware that this session runs with your logged-in user permissions and independently from the started systemd VNC server session.

To display the opened ports, execute ss command without root privileges as illustrated in the below excerpt.

It will list only the started VNC sessions owed by your user. In order to stop the VNC server instances started with this logged in user permissions, issue the following command without any root privileges. This command will destroy all started VNC instances owned only by the user who stated them. You can now access your CentOS 7 system and perform administrative tasks by using the graphical user interface provided by the operating system.

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! If you like what you are reading, please consider buying us a coffee or 2 as a token of appreciation. We are thankful for your never ending support.

I execute the command sudo yum install tiger-vnc server , as listed at the top of this column, it goes out to a bad destination to find the file. I try to install the program the other option when downloading and I get a file not supported error.

I need access to this server from a remote location. I am facing a problem when I have finished with these steps and connect to the vnc server, blue screen appears to me, and this error on the log file:.



0コメント

  • 1000 / 1000