You are on page 1of 16

NETWORK

ADMINISTRATI
SUB CODE: KS_C_FC-592
9TH SEM M.SC. (CA & IT)

ON
• CONFIGURING
REMOTE
DESKTOP
SERVICES
• CONFIGURING

UNIT 5:
ADDRESSING &
SERVICES
• CONFIGURING
NAME
RESOLUTION
• MONITORING &
MANAGEMENT
CONFIGURING
REMOTE
DESKTOP
SERVICES
 TigerVNC (Tiger Virtual Network
Computing) is a system for graphical
CONFIGURING desktop sharing which allows you to
REMOTE remotely control other computers.
DESKTOP  TigerVNC works on the client-server
SERVICES principle: a server shares its output
( vncserver) and a client (vncviewer)
connects to the server.
 VNC SERVER
 vncserver is a utility which starts a VNC
(Virtual Network Computing) desktop.
CONFIGURING  Itruns Xvnc with appropriate options
REMOTE and starts a window manager on the
DESKTOP VNC desktop.
SERVICES  vncserver allows users to run separate
sessions in parallel on a machine which
can then be accessed by any number of
clients from anywhere.
 Installing VNC Server
 To install the TigerVNC server, run the
following command as root:
~]# yum install tigervnc-server
CONFIGURING
 Configuring VNC Server
REMOTE
DESKTOP  The VNC server can be configured to
SERVICES start a display for one or more users,
provided that accounts for the users exist
on the system, with optional parameters
such as for display settings, network
address and port, and security settings.
 Configuring a VNC Display for a Single
User
CONFIGURING
 Specify the user name and the display
REMOTE
number by editing
DESKTOP /etc/sysconfig/vncservers and adding a
SERVICES line in the following format:
VNCSERVERS="display_number:user"
 Example: Setting the Display Number
for a User
 For example, to configure display
CONFIGURING number 3 for user joe, open the
REMOTE configuration file for editing:
DESKTOP ~]# vi /etc/sysconfig/vncservers
SERVICES  Add a line as follows:
VNCSERVERS="3:joe"
 Save and close the file.
 Configuring a VNC Display for Multiple
Users:
CONFIGURING  Todo this, edit /etc/sysconfig /vncservers
REMOTE and add a line in the following format:
DESKTOP VNCSERVERS="display_number:us
SERVICES er display_number:user"
 TheVNC user names must correspond to
users of the system.
 Example:Setting the Display Numbers
for Two Users
CONFIGURING  Forexample, to configure two users,
REMOTE open the configuration file for editing:
DESKTOP ~]# vi /etc/sysconfig/vncservers
SERVICES  Add a line as follows:
VNCSERVERS="3:joe 4:jill"
 Example: Setting vncserver Arguments
 To add arguments for two users, edit
the /etc/sysconfig/vncservers file as
follows:
CONFIGURING VNCSERVERS="3:joe 4:jill“
REMOTE
DESKTOP VNCSERVERARGS[1]="-geometry
SERVICES 800x600 -nolisten tcp -localhost“

VNCSERVERARGS[2]="-geometry
1920×1080 -nolisten tcp -
localhost"
 Configuring VNC User Passwords:
 For all users defined in the
/etc/sysconfig/vncservers file, use
following command as root:
~]# vncpasswd
CONFIGURING Password:
REMOTE Verify:
DESKTOP  To set the VNC password individually
SERVICES for a user:
~]# su - user
~]$ vncpasswd
Password:
Verify:
 Starting VNC Server:
 There are three ways to start vncserver:
1. You can allow vncserver to choose the
CONFIGURING first available display number
REMOTE
~]$ vncserver
DESKTOP
2. You can specify a specific display
SERVICES
number:
vncserver :display_number
~]$ vncserver :20
3. Alternately, to start VNC server with
CONFIGURING
displays for the users configured in
REMOTE the /etc/sysconfig/vncservers
DESKTOP configuration file, as root enter:
SERVICES ~]# service vncserver start
 Terminating a VNC Session
 Similarly to enabling the vncserver
service, you can disable the automatic
CONFIGURING start of the service at system start:
REMOTE
~]# chkconfig vncserver off
DESKTOP
 Or, when your system is running, you
SERVICES
can stop the service by issuing the
following command as root:
~]# service vncserver stop
 Terminating a VNC Session
 Toterminate a specific display, terminate
CONFIGURING
vncserver using the -kill option along
REMOTE with the display number.
DESKTOP  Forexample, to terminate display
SERVICES number 2, run:
~]# vncserver -kill :2

You might also like