1.VNC remote connection to Linux graphical desktop
2.SSH Secure Shell Client connection to Linux terminal
3. Set FTP and Linux transfer files
1.VNC remote connection to Linux graphical desktop
Run under CentOS:
Yum-y instll VNC Vnc-server
After running, rpm-q Vncserver: Package Vncserver was not installed, do not know what reason, yum search vnc found there are several versions, choose to run
Yum Install Tigervnc-server
Yum Install Tigervnc
Below the command line, the Vncserver vncconfig vncpassword option appears
Start Vncserver (server side)
VNCSERVER:N: N is sessionnumber, does not specify a default of 1, the first prompt to enter a password,
You can change the password later with the Vncpassword command. VNC default port is 5900, Remote Desktop Connection port is 5900+n (specified by Vncserver command)
Close Vncserver:
Vncserver-kill:n
View Connections
Vncserver-list
Modifying a configuration file
Vim/etc/sysconfig/vncservers
# vncservers= "2:myusername"
# vncserverargs[2]= "-geometry 800x600-nolisten tcp-localhost"
vncservers= "1:root 2:kang"
vncserverargs[1]= "-geometry 1024x768"
The port number, which is used when connecting ports, geometry desktop size, and other basic parameters
Configuring firewalls
The VNC server listens on the port is starting from 5900, the display:1 listens for 5901 display:2 the listener is 5902, and so on
Vim/etc/sysconfig/iptables
-A input-m state--state new-m tcp-p TCP--dport 5901 ACCEPT
Restart Firewall: Service iptables restart
Boot start:
Chkconfig Vncserver on
To start the desktop configuration:
Vim/root/.vnc/xstartup Note Backup
#!/bin/sh
#Uncomment the following and lines for normal desktop:
unset Session_manager (Remove the previous comment number)
EXEC/ETC/X11/XINIT/XINITRC (Remove the previous comment number)
[-x/etc/vnc/xstartup] Exec/etc/vnc/xstartup
[-R $HOME/. Xresources] Xrdb $HOME/. Xresources
Xsetroot-solid Grey
Vncconfig-iconic &
Xterm-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &
TWM &
Gnome-session & Set Starting GNOME Desktop (add this line to use the Gnome interface, otherwise the Xfce interface)
Primary service startup:
Service Vncserver Start (only the interface defined by/etc/sysconfig/vncservers is started)
Start multiple interfaces: (second interface for root login)
Vncserver:2 (to add configuration)
To install the client:
Yum-y Install Tigervnc
Vncviewer Start
Input: 192.168.0.120:5901 Password: 123456
Installing Windows-side VNC
Guaranteed to ping remote host
Connection: Server: 192.168.0.120:5901 Password: 123456
: http://www.uzzf.com/soft/53970.html
SECURECRT is used as a terminal, faster.
The difference between VNC and Xmanager:
VNC is a remote connection to the operating system, all operations on the Linux side of the server, even if the network is interrupted, does not affect the operation, and Xmanager is the host server through the port
UI interface to the local computer for presentation, and if the network is interrupted during the operation, the operation fails
VNC Clipboard cannot cross local and remote, while Xmanager can vnc only hundreds of K,XM have dozens of m,xmanage only commercial version
2.SSH Secure Shell Client connection to Linux terminal
PUTTY.SECURECRT, I heard that SSH Secure Shell client is the putty+securecrt of the complex, trial the following, you can directly from the Windows and Linux directory directly transfer files, also provides and SECURECRT similar interface, very convenient, for the moment this is used, and not configured.
3. transferring files with Linux
On the Linux side:
Yum-y Install VSFTPD
Modify Configuration
Vim/etc/vsftpd/vsftpd.conf
Add some of the necessary configuration:
Local_enable = YES
Write_enable = YES Cancels the comments of the two lines
Start vsftpd:vsftpd Start
In this way, the FTP server is ready to log in to the virtual machine with CuteFTP, and the port defaults to 21.
Results find CuteFTP serial number found nearly 10, resolutely abandoned.
VNCSERVER,SSH Secure Shell client,window remote Control Linux