Using Xmanger to manage CentOS desktops under Windows

Source: Internet
Author: User
Tags ssh centos iptables jupyter jupyter notebook
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


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.