Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: VNC server for Linux remote desktop session  (Read 1610 times)

0 Members and 1 Guest are viewing this topic.

vyshakhv

  • Newbie
  • *
  • Posts: 28
  • Karma: +0/-0
VNC server for Linux remote desktop session
« on: September 29, 2017, 01:57:38 am »
Many times we take the Linux session using famous tool Putty. What if you need to take Linux remote desktop session (GUI) session? The answer is VNC server. This post will quickly guide you about how to take remote Linux remote desktop GUI session.

1.Desktop packages installation:

Firstly you need to install the desktop packages on the server.

Code: [Select]
#yum groupinstall "Desktop"
2. Tiger VNC server package installation.

Also, you need to install tiger VNC package on the server which will enable us to take Linux remote desktop.

Code: [Select]
# yum install vnc-server
3. Setting up a VNC user for Linux remote desktop session.

If you want to create any special user for Linux remote desktop session then you can create using the procedure below otherwise you can also use any existing users for the same. Here I am adding new user “vncuser”.

Code: [Select]
# useradd user1
#passwd user1
Changing password for user user1.
New password:
BAD PASSWORD: it is based on your username
Retype new password:
passwd: all authentication tokens updated successfully.

Once you are done with user creation you need set VNC password using vncpasswd command as below:

Code: [Select]
# su - user1
$ vncpasswd user1
Password:
Verify:
$ exit
logout

4. Setting up a screen resolution for the Linux remote desktop session.

Now to set up the screen resolution you need to add below lines of code under the file “/etc/sysconfig/vncservers”

Code: [Select]
VNCSERVERS="1:user1"
VNCSERVERARGS[1]="-geometry 1024x768"