With the help of VNC you can access the server or client remotely and it also helps to get the graphical desktop sharing. This makes it easy to access the server than working on the server and that too remotely.
[symple_box color=”blue” fade_in=”false” float=”center” text_align=”left” width=””]
Things to do
[/symple_box]
– You need to check for the installed packages of the VNC server.
– Configure VNC
– Enable VNC services
Steps to configure VNC is as follows.
[symple_box color=”gray” fade_in=”false” float=”center” text_align=”left” width=””]
pkginfo -x | grep -i VNC
svcs -a | grep -i vnc #to check if the package is install and service status
gedit /etc/services # open the editor
vnc-server 5900/tcp # Xvnc ##add this line under the port number order and save the file
gedit /etc/X11/gdm/custom.conf
#add these lines
[xdmcp]
Enable=true
[security]
DisallowTCP=false
AllowRoot=true
AllowRemoteRoot=true
svcadm enable xvnc-inetd#
svcs xvnc-inetd #shows the online status of the service
[/symple_box]
There are still possibilities that the system is accessed through VNC but you get the error which states “not on system console root login rejected”. This error occurs because you are not allowed to access via root login and works fine with other user. To fix this you need to make few more changes.
[symple_box color=”gray” fade_in=”false” float=”center” text_align=”left” width=””]
netstat -anP tcp | grep -i 5900 # this show you that this port is live error is with authentication
gedit /etc/default/login
#CONSOLE=/dev/console #comment this line by prefix the hash(#)
[/symple_box]
[symple_divider style=”solid” margin_top=”20px” margin_bottom=”20px”]
[symple_box color=”gray” text_align=”left” width=”100%” float=”none”]
If you like the blog please follow us [icon name=”icon-facebook”] [icon name=”icon-twitter”] [icon name=”icon-google-plus-sign”]
[/symple_box]