Quantcast
Channel: Tutorials — LowEndTalk
Viewing all articles
Browse latest Browse all 1028

[TUTORIAL] How To Setup VNC Server Linux For Remote Desktop ur Machine

$
0
0

This Tutorial Worked Fine For Centos Any Version

1 Installation

From the root ssh we gonna install VNC-server.

first install desktop package

yum groupinstall Desktop

Further install

yum install gnome-core xfce4 firefox

yum install tigervnc-server

Now make the service on after every reboot

chkconfig vncserver on

==============

3 Adding VNC user

For security reasons i suggest add new vnc user..

Or u can Still using user=root if want keep using root for vnc user just skip the Adding VNC user part below and go directly to vnc password set and continue to the configuration part

vncpasswd


In my case I am i will use new user for vnc. user=XTony it will differ in your case. You can use any username for the same.

useradd XTony

Now I will assign the vncpassword for the user with the user I just created before as:

su - XTony

vncpasswd

the output:

[root@server1 ~]# su - XTony

[XTony@server1 ~]$ vncpasswd

Password:<--yourvncpassword

Verify:<--yourvncpassword

[XTony@server1 ~]$

===============

Now I will make the configuration file for the vncserver by creating file as follows:

nano /etc/sysconfig/vncservers

at the last two line of the file uncomment it and give the entries like this.

[...]

VNCSERVERS="1:XTony"

VNCSERVERARGS[1]="-geometry 1024x768"

Here your port comes to be 5901 & 1024x768 resolution for the VNC client, you can choose resolution of your own choice.

===============

Now I will restart the VNC server service as root user:

service vncserver restart

=================

output :

[root@server1 ~]# service vncserver restart Shutting down VNC server: [ OK ] Starting VNC server: 1:XTony xauth: creating new authority file /home/XTony/.Xauthority

New 'server1.example.com:1 (XTony)' desktop is server1.example.com:1

Creating default startup script /home/XTony/.vnc/xstartup Starting applications specified in /home/XTony/.vnc/xstartup Log file is /home/XTony/.vnc/server1.example.com:1.log [ OK ] [root@server1 ~]#

==================

If you need any help post below.

GBSSDVPS.COM


Viewing all articles
Browse latest Browse all 1028

Trending Articles