Introduction
SLES server physically reside on Data Center
So as administrator , you can access these servers by one of the following :
- the first method : working on server Directly on datacenter , which impractical 🙁 , just Skip it
- the second method : is working on SLES server remotely with text mode using ssh [secure Shell ] : which has been DONE in previous article
- the third method : is working on SLES server remotely with Graphical mode through VNC : which will be DONE in this article
VNC
What is VNC
Virtual Network Computing (VNC) is a graphical desktop-sharing system that uses the Remote Frame Buffer protocol (RFB) to remotely control Linux server
VNC equivalent to Remote Desktop Protocol RDP in Windows Operating System
In order to connect to SLES : VNC require the following to installed :
- Graphic Drive : X11
- Display manager [for example gdm ]
- Desktop Environment like GNOME
The default configuration on SUSE Linux Enterprise Server serves sessions with a resolution of 1024×768 pixels at a color depth of 16-bit. The sessions are available on ports 5901 for “regular” VNC viewers and on port 5801 for Web browsers.
SLES remote administration : network diagram
before moving to configure VNC
let us to have a look to above network diagram
we have user called Sami@pioneers.lab from IT staff who is working on computer IT161 on subnet LAN
Sami would like to access SLES124 on subnet [servers farm ] as graphical mode
OK, configuring VNC process involved with the following steps :
Step01 : install package tigervnc
package tigerVNC is responsible for VNC connection
let us to check if package installed
zypper info tigervnc
if NOT installed then install it
zypper -n install tigervnc
STEP 02 : start services vnc
now we have to check if service vnc is running
use command :
systemctl status xvnc.socket
if NOT started then > start it
systemctl start xvnc.socket
also we have to Enable vnc during system startup
systemctl enable xvnc.socket
Step 03 : Configure vnc
Text
step04 : Enable firewall rule for vnc
create firewall rule to enable vnc
firewall-cmd --permanent --add-service=vnc-server
then reload firewall
firewall-cmd --reload
Step 05 : open vnc port on firewall PF-sense
to it’s time to open port for vnc in network firewall
it’s depend on your network firewall , in networks pioneers : we are using network firewall PFsense
Step 06 : on client computer IT161 install vnc viewer
on client computer install vnc viewer or any remote connection tool