|
[Introduction] Many people are accustomed to the way the graphical interface to install Oracle database, with the rise of Ali cloud, and some database began deploying to Ali cloud top, but then faced with the question: Ali cloud server is the public face of the Internet but inside personal computers belonging to the network, thus making the setting of the DISPLAY environment variable when there is no way to install from the public network to send the drawing to the PC.
[Operating system] CentOS 6.5
[Tools] Xmanager4
[Workaround] direct remote login to the server installation, after all, Linux is also a graphical interface, detailed as follows:
1, using the command yum install xdm installed XDM
[Root @ db01 ~] # yum install xdm
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* Base: mirrors.pubyun.com
* Extras: mirrors.163.com
* Updates: mirrors.163.com
base | 3.7 kB 00:00
base / primary_db | 4.6 MB 01:02
extras | 3.4 kB 00:00
extras / primary_db | 33 kB 00:00
updates | 3.4 kB 00:00
updates / primary_db | 2.6 MB 00:37
Setting up Install Process
Resolving Dependencies
-> Running transaction check
---> Package xorg-x11-xdm.x86_64 1: 1.1.6-14.1.el6 will be installed
-> Processing Dependency: libXpm.so.4 () (64bit) for package: 1: xorg-x11-xdm-1.1.6-14.1.el6.x86_64
-> Processing Dependency: libXaw.so.7 () (64bit) for package: 1: xorg-x11-xdm-1.1.6-14.1.el6.x86_64
-> Running transaction check
---> Package libXaw.x86_64 0: 1.0.11-2.el6 will be installed
---> Package libXpm.x86_64 0: 3.5.10-2.el6 will be installed
-> Finished Dependency Resolution
2, edit / etc / X11 / xdm / Xaccess file, locate the following statement: # * #any host can get a login window cancel #
* #any Host can get a login window
3, modify the file /etc/gdm/custom.conf
[Root @ db01 ~] # cat /etc/gdm/custom.conf
# GDM configuration storage
[Daemon]
RemoteGreeter = / usr / libexec / gdmgreeter
[Security]
AllowRemoteRoot = true
[Xdmcp]
Enable = true
Port = 177
[Greeter]
Browser = true
4, turn off the firewall: service iptables stop
Allow or add ports:
In -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT increase in the following two lines below this line
-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
5, testing, open software Xbrowser
The pop-up window that displays the already remote login. |
|
|
|