The contents of this article are transferred to other Web pages for learning only:
Typically, the Linux display does not have a workaround set up to execute #xhost + in the root user directory:
[root@TEST144239 ~]# xhost +
Access control disabled, clients can connect from any host
Then, switch users:
[Email protected] ~]# su-oracle
[Email protected] ~]$ display=:0.0;export DISPLAY
[Email protected] ~]$ cd/home/oracle/orainstall/database
[email protected] database]$ LL
Total Dosage 64
Drwxr-xr-x. Oracle Oinstall 4096 September doc
Drwxr-xr-x. 4 Oracle Oinstall 4096 September Install
-rwxr-xr-x. 1 Oracle oinstall 28122 September readme.html
Drwxr-xr-x. 2 Oracle Oinstall 4096 September response
Drwxr-xr-x. 2 Oracle Oinstall 4096 September rpm
-rwxr-xr-x. 1 Oracle oinstall 3226 September Runinstaller
Drwxr-xr-x. 2 Oracle Oinstall 4096 September Sshsetup
Drwxr-xr-x. Oracle Oinstall 4096 September Stage
-rwxr-xr-x. 1 Oracle oinstall 5466 August welcome.html
[Email protected] database]$./runinstaller
Starting Oracle Universal Installer ...
Check for temporary space: must be greater than + MB. Actually up to a MB pass
Check swap space: must be greater than. The actual 4031 MB passed
Check monitor: The monitor configuration must display at least 256 colors. The actual 16777216 Pass
Prepare to start Oracle Universal installer/tmp/orainstall2015-09-22_09-23-58am from the address below. Please wait ... [[Email protected] Data
Then, using Xstart to connect to the Linux Remote Desktop, the server does not have to do what settings, open ssh. server to have desktop environment, and X Window with XDMCP connection, server side have to do some configuration, trouble.
Menu: Xmanager Enterprise 4--Xbrowser
Create a new Xstart session
protocol Select SSH,
Select GNOME in the "Execute command" and Open this session to connect to the Remote Desktop when it is built, very simple.
There are three menus in the taskbar after the connection,
One is to display the Linux header menu, one is to display the Linux taskbar, one is to display the Linux desktop
How to Exit
Right-click on the taskbar (right) to close Xmanager, you can also use the following methods to build Xstart session, Menu Xmanager Enterprise 4-Xstart
Question 1: If an error: x11 transfer request has been denied,
First check the settings in etc/ssh/sshd_config x11forwarding Yes but on some hosts, no matter how you set up on the client, you will not be able to properly enable X11 Forwarding function, display is always empty after login. The Sshd_config file also does not disable the X11 forwarding feature.
Workaround: The original X11 forwarding relies on the "Xorg-x11-xauth" package, so the "Xorg-x11-xauth" package must be installed first. Yum Install Xorg-x11-xauth
: http://rpmfind.net/linux/rpm2html
Xmanager Introduction
Xmanager Full name Netsarang Xmanager, is a very good foreign set of remote monitoring software. In Linux and Windows networking environments, Xmanager is the best connectivity solution. I recommend you to download Enterprise version, business version with the tools more powerful. Our graphical management of the Xmanager connection to the Linux Remote Desktop is in fact the use of the Xbrowser program inside the Xmanager suite.
because of the thought of using CentOS, instead of Redhat. So here I'm going to take CentOS6.4 and Redhat 5.4来 as an example. before you connect to the Linux graphical interface with Xmanager on the win platform, you need to do some work on Linux first.
CentOS 6.4
Environment:
系统:CentOS 6.4
系统经过基础优化,iptables和selinux都为关闭状态
First, install the XDm
The default mini installation and server-installed CentOS 6.4 system do not have XDM on it. Because using Xmanager requires that there must be XDM in the Linux system, we need to install XDM first.
[[email protected] ~]
# yum install xdm -y
Second, modify the parameters
1, modify XDM related parameters
[[email protected] ~]
# vim /etc/X11/xdm/Xaccess
将该文件中如下行,解除注释
#* #any host can get a login windo
2. Modify GDM Related parameters
[[email protected] ~]
# vi /etc/X11/xdm/Xaccess
# right hand sides can match.
*
#any host can get a login window
# use an entry of the form:
#
#terminal-a host-a
[[email protected] ~]
# vi /etc/gdm/custom.conf
# GDM configuration storage
[daemon]
[security]
AllowRomoteRoot=
true
#添加上的,允许远程root登录
[xdmcp]
Port=177
#添加上的,指定端口177
Enable=1
#添加上的,允许
[greeter]
[chooser]
[debug]
After the configuration is complete, it is best to reboot the system.
Third, win client configuration
1. Installing Xmanager Software
Step slightly
2. Related Settings
In the open Xbrowser interface, the mouse point in the XDMCP, and then click "New ", to do the operation (the steps in the picture)
Once created, double-click to open to make the connection
Thus, for the CentOS 6.4 system, we have been able to use Xmanager for the remote connection operation of the graphical interface.
RedHat 5.4
Environment:
系统:RedHat 5.4
已做过基础优化,iptables和selinux都为关闭状态
First, modify the GDM configuration
[[email protected] ~]
# yum install xdm -y
[[email protected] ~]
# vim /usr/share/gdm/defaults.conf
Modify the following configuration line in this file
Enable=
true
DisplaysPerHost=2
Port=177
#配置默认端口,此行需要解锁
AllowRemoteRoot=
true
#这里默认是false,如果不改为true,则root用户就不能远程登录
After you have completed the above changes, you need to restart the GDM
[[email protected] ~]
# gdm-restart
Second, modify the/etc/inittab configuration
The last line of the/etc/inittab file needs to be
x:5:respawn:
/etc/X11/prefdm
-nodaemon
Revision changed to
x:5:respawn:
/usr/sbin/gdm
So the Linux side is ready to be configured.
Third, win client configuration
Refer to the third step of CentOS 6.4 above.
This article reproduced: http://nolinux.blog.51cto.com/4824967/1330148
Install graphical interface with VNC service
1. Install X window and GNOME desktop environment:
Yum groupinstall "X window System"
Yum groupinstall "GNOME Desktop Environment"
After the installation is complete, the terminal executes the STARTX command to enter the graphical user interface.
2. Install Vncserver:
Usually after x Window is installed, Vncserver has been installed by default and can check Rpm-qa|grep Vnc-server
Yum-y Install if not installed Vnc-server
(1) Now edit/etc/sysconfig/vncservers, add the following two lines at the end of the file:
servers= "1:root" vncserverargs[2]= "-geometry 1280x800-nolisten Tcp-nohttpd-localhost" (2) First use vncserver will prompt for password
(3) Open the file in the current user's home directory . Vnc/xstartup, because the root user is used here, the file in the/root directory, after opening the file, comment out all the lines, add a row gnome-session &, save exit.
(4) using the command vncserver-kill:1
(5) Restart the service using the command Vncserver again
(6) Vncserver default port is 5900, this port is open in the firewall here
Vi/etc/sysconfig/iptables
Locate the following statement:
-A rh-firewall-1-input-j Reject--reject-with icmp-host-prohibited
Before this line, add the following:
-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 5900:5903-j ACCEPT
Then restart Iptables Services: Service iptables restart.
(7) Open the VNC Viewer link in Windows OK. 118.126.16.219: 1
Remote access Linux Environment installation graphical interface FAQ