Linux remote desktop artifact --VNC

what's the VNC

  VNC is a very powerful remote control tool, the server after installation and start the service vncserver, vncviewer client installation can remotely operate the server, VNC server-side applications on UNIX and Linux operating systems adaptable, graphics user friendly interface, the software interface looks very similar to Windows, it allows us to operate a cloud server quite Pakistan proper.

 

VNC server installation and configuration

  Here, for example with CentOS, Ubuntu just yum apt-get can be changed

Install vnc 

yum -y install vnc
yum -y install xorg-x11-fonts-misc
yum -y install tigervnc-server

 

Vncservers configuration file

Vim / etc / sysconfig / the vncservers
 # uncomment the following two lines 
VNCSERVERS = " . 1: the root "  
VNCSERVERARGS [ . 1] = " -geometry 1024x768 "

 

Xstartup configuration file

  Before editing the configuration, you need to create the default configuration file using the command vncserver

vncserver
 # password: 123456 (password required a minimum of six) 
# Confirm Password: 123456
/root/.vnc/ vim xstartup 

# added at the end of this line, using gnome interface table, otherwise it is xfce interface 
gnome-session & set starting GNOME desktop

 

Set up remote login password

vncpasswd

 

Service vncserver start

  • The main service starts
    service vncserver start
  • Start multiple interfaces
    vncserver :2 
    vncserver :3
    vncserver :4
    ...... 

     

Service vncserver stop

  • Stop the main service
    STOP vncserver Service # start stop start interface: 1, Kai other other interface: 2 does not stop
  • Stops the specified interface
    -kill vncserver: 1 
    vncserver -kill: 2 
    ...... 
     # can get the process pid number by service vncserver status command, you can start to see how many interface.

     

Set boot

chkconfig --list vncserver
chkconfig vncserver on

 

 

Reference: https://blog.51cto.com/13043516/2055574

 

 

 

 

                       

Guess you like

Origin www.cnblogs.com/zhuminghui/p/12119687.html