Preparation: 1,centos 6.5 minimal Desktop
2, configure CentOS to access the Internet
Starting: 1, using the command yum install XDM installation XDm
Manage X-Monitor collection with XDMCP support
2, modify the/etc/x11/xdm/xaccess file and find the following statement: # * #any host can get a login window,
Remove the front # of this line and become: * #any host can get a login window
3, modify the/etc/gdm/custom.conf file.
Locate the following statement: [XDMCP], add the following two lines under this sentence:
Enable=true
port=177
Add under [Security]
Allowremoteroot=true
After modifying the custom.conf, you must restart GDM before it can take effect.
This step can be skipped--------the specific way is to kill GDM in the process, and then restart GDM,
If you can't kill it, wait for the following steps to complete, restart the virtual machine, reboot
#/usr/sbin/gdm-restart (hard to use)
[Root@localhost ~]#/USR/SBIN/GDM Restart
* * * (gdm-binary:3574): WARNING * *: Failed to acquire Org.gnome.DisplayManager
* * * (gdm-binary:3574): WARNING * *: Could not acquire name; Bailing out
4, open 177 ports in the firewall, modify the/etc/sysconfig/iptables file,
Add the following two lines under the line-a input-m state--state new-m tcp-p TCP--dport 22-j Accept
-A input-m state--state new-m tcp-p TCP--dport 6000:6010-j ACCEPT
-A input-m state--state new-m udp-p UDP--dport 177-j ACCEPT
Finally reboot the firewall (service iptables restart) to experience the remote connection Linux desktop.
5, install the Xmanger on the window .
Xmanager 5 Registration code: 101210-450789-147200 Test Available
Open Xbrowser5, a new XDMCP session, you can see the XDMCP host, double-click in to connect to your virtual host
6, if the centos7.2 version, the above method is not supported, the need to use Pycharm and Jupyter can also be converted, but not the entire virtual machine to convert the desktop
in the home directory
CD ~/.bash_profile Add export DISPLAY = 192.168.1.1:0.0 This IP address is the admin host address (direct SSH connection on the virtual machine, using the W command to view), after completion, open the Xmanger passive And keep it open all the time
Check forwarding to Xmanger under Xshell
log in to SSH and enter it directly into the Pycharm directory./pycharm.sh can be opened on Windows .
pyenv Local 3.5.2 switch to python3.5.2
pip insatll jupyter installation Jupyter
Jupyter Notebook #这个命令是直接打开, Port random, default is 8888, virtual machine directly open Firefox browser
jupyter Notebook--ip = 0.0.0.0--no-browser This command is good, you can open the Jupyter, listen to all the addresses, the virtual machine does not open the browser
Windows browser to enter the IP address and port number of the virtual machine can be opened directly on the Windows desktop