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 Desktopsudo yum groupinstall -y "GNOME Desktop"
Once the package group is installed, reboot the server:sudo rebootStep 2: Installing TigerVNC Server and Librariessudo yum install -y tigervnc-serve libXScrnSaver p7zip p7zip-pluginsStep 3: Create new user accountsudo useradd _9hits
Change password for created usersudo passwd _9hitsStep 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/[email protected]: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/[email protected]:1.service file with the vi editor:sudo vi /etc/systemd/system/[email protected]: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-reloadsudo systemctl enable [email protected]:1.serviceStep 5: Configuring Your Firewall
Configure the firewall to allow VNC traffic through ports 5901sudo firewall-cmd --permanent --zone=public --add-port=5901/tcpsudo firewall-cmd --reloadStep 6: Setting VNC Passwords
Open another terminal connection to the CentOS 7 server, and this time log in as user _9hitsssh [email protected]
Start vncservervncserver
Enter your password for remote desktop. Then back to the main terminal, reload the services:sudo systemctl daemon-reloadsudo systemctl restart [email protected]:1.serviceStep 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 !
------------------------------------------------------------------------------------------------------