Turn to xshell to display the graphical interface of Xshell

http://www.cnblogs.com/kellyseeme/p/7965830.html

limit:

The GUI of the machine logged in through the bastion machine cannot be displayed.

Only a graphical interface that can only display the service expiration of direct login

 

Xshell displays a graphical interface

 

foreword

    I haven't used the graphical interface for a long time, and I have forgotten how to use it. . . .

    According to past experience, it is set by the environment variable DISPLAY, and then it can be connected. Every day is in a hurry, and the day goes by. The DISPLAY variable doesn't work. . . Thus, there is a reorganization of how to use the graphical interface.

    The most commonly used scenarios of the graphical interface are: 1. Oracle installation 2. Connection of virtualization scenarios.

Configure and test the connection to the GUI

    The system used here is RHEL6.5, the connection method used is to connect through Xshell 5 + Xmanager , and the test tool used is xclock, so if there is no other graphical test, first install the xclock package.

    Use xclock to test directly, and it appears that the display device cannot be opened. This is mainly because there is no related package group of X window or there is no associated xmanager, so the package must be installed first:

 

1 Install the X Window Pack and Font Pack

[root@RHEL2 ~]# yum -y groupinstall "X Window System" "Fonts" (install x window related packages, and font display packages)

 

2 Set up the tunnel association xmanager

    Mainly in the property settings of xshell, and then select the tunnel to check the X11 forwarding connection, you need to install xmanager locally:

 

3 Open a new window for testing

    When testing, you must open a new xshell window for testing. The following will create a zero-hour authorization file:

 

xhost +

xclock

4 View related processes

    After the above steps are completed, check the sshd process, and you will find that there are related listening ports. The following example is that port 6011 is being monitored. Therefore, in the variable setting of DISPLAY, the first parameter is expressed as an IP address, separated by colons, and the second The parameter is also the offset, and the third parameter indicates which window is displayed.

 

    

    The double-opening windows of xshell 5 are simply love, pretending to have two monitors . . .

foreword

    I haven't used the graphical interface for a long time, and I have forgotten how to use it. . . .

    According to past experience, it is set by the environment variable DISPLAY, and then it can be connected. Every day is in a hurry, and the day goes by. The DISPLAY variable doesn't work. . . Thus, there is a reorganization of how to use the graphical interface.

    The most commonly used scenarios of the graphical interface are: 1. Oracle installation 2. Connection of virtualization scenarios.

Configure and test the connection to the GUI

    The system used here is RHEL6.5, the connection method used is to connect through Xshell 5 + Xmanager , and the test tool used is xclock, so if there is no other graphical test, first install the xclock package.

    Use xclock to test directly, and it appears that the display device cannot be opened. This is mainly because there is no related package group of X window or there is no associated xmanager, so the package must be installed first:

 

1 Install the X Window Pack and Font Pack

[root@RHEL2 ~]# yum -y groupinstall "X Window System" "Fonts" (install x window related packages, and font display packages)

 

2 Set up the tunnel association xmanager

    Mainly in the property settings of xshell, and then select the tunnel to check the X11 forwarding connection, you need to install xmanager locally:

 

3 Open a new window for testing

    When testing, you must open a new xshell window for testing. The following will create a zero-hour authorization file:

 

xhost +

xclock

4 View related processes

    After the above steps are completed, check the sshd process, and you will find that there are related listening ports. The following example is that port 6011 is being monitored. Therefore, in the variable setting of DISPLAY, the first parameter is expressed as an IP address, separated by colons, and the second The parameter is also the offset, and the third parameter indicates which window is displayed.

 

    

    The double-opening windows of xshell 5 are simply love, pretending to have two monitors . . .

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325345798&siteId=291194637