Wednesday, December 6, 2017

How to run 9Hits Viewer on Centos

Hi !
In this tutorial, we will show you how to install GUI, remote desktop and download the viewer.
Requirement: Centos 7, (32/64 bit).
You may wanna download Bitvise Client

Step 1: Installing GNOME Desktop
sudo yum groupinstall -y "GNOME Desktop"
Once the package group is installed, reboot the server:
sudo reboot

Step 2: Installing TigerVNC Server and Libraries
sudo yum install -y tigervnc-server libXScrnSaver p7zip p7zip-plugins


Step 3: Create new user account
sudo useradd _9hits
Change password for created user
sudo passwd _9hits

Step 4: Configuring VNC Service for the new user
make a copy of the generic VNC service unit file under /etc/system/system.
sudo cp /lib/systemd/system/[email protected] /etc/systemd/system/vncserver@:1.service
The addition of a number in the file name tells VNC to run that service as a sub-port of 5900. So in our case, _9hits's VNC service will run on port 5901
Next edit the service unit file for the client. Open the /etc/systemd/system/vncserver@:1.service file with the vi editor:
sudo vi /etc/systemd/system/vncserver@:1.service
change all <USER> to _9hits then save

Next, run the following commands to reload the systemd daemon and also to make sure VNC starts up for the new user at boot time.
sudo systemctl daemon-reload
sudo systemctl enable vncserver@:1.service


Step 5: Configuring Your Firewall
Configure the firewall to allow VNC traffic through ports 5901
sudo firewall-cmd --permanent --zone=public --add-port=5901/tcp
sudo firewall-cmd --reload


Step 6: Setting VNC Passwords
Open another terminal connection to the CentOS 7 server, and this time log in as user _9hits
ssh _9hits@localhost
Start vncserver
vncserver
Enter your password for remote desktop. Then back to the main terminal, reload the services:
sudo systemctl daemon-reload
sudo systemctl restart vncserver@:1.service

Step 7: Connecting to Remote Desktops with a VNC Client
I use Tight VNC Viewer
for VNC Server address, enter yourserverip:5901 and use the password you set from step 6
Once connected, you can now download and run the viewer !
------------------------------------------------------------------------------------------------------






5 comments:

  1. missing :

    sudo yum install -y tigervnc-server

    ReplyDelete
  2. ERROR:gpu_process_transport_factory.cc(1026)] Lost UI shared context.

    ReplyDelete
  3. I do everything according to the instructions, but when I try to connect to the server via TightVNC Viewer, no response is received. What could I have done wrong?

    ReplyDelete