OS + Centos7.6 gdm / xmanager xstart


s

問題1:Redhat 6.3 已拒絕x11轉移申請

已拒絕x11轉移申請

要解決此問題請激活遠程SSH服務器的X11轉移功能

[root@mockstubsitapp01 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.3 (Santiago)

[root@sctssitdb03 ~]# export DISPLAY=你的IP地址:0.0

[root@sctssitdb03 ~]# firefox
 

問題2: Centos 7.3 WARNING! The remote SSH server rejected X11 forwarding request.

WARNING! The remote SSH server rejected X11 forwarding request.
Last failed login: Fri Jul 12 19:42:25 CST 2019 from 10.49.2.219 on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Tue Jul 9 09:39:34 2019

[root@sctssitapp77 ~]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)

[root@sctssitapp50 ~]# firefox
Error: GDK_BACKEND does not match available displays

XAuthLocation

  specifies the full pathname of the xauth(1) program. The default is /usr/bin/xauth.

解決2:

[root@sctssitapp50 ~]#  yum install xorg-x11-xauth -y

 

問題3:Centos 7.6 Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 Running without a11y support!

[root@centos7 ~]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)

[root@centos7 ~]# firefox
Failed to open connection to "session" message bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
Running without a11y support!
Error: no DISPLAY environment variable specified

問題3:Centos 7.6 XManager5基於gdm連接centos圖形界面

https://blog.csdn.net/lijunwyf/article/details/52527010 

待驗證.

 

[root@centos7 ~]# xhost +
access control disabled, clients can connect from any host

[root@centos7 ~]# printenv | grep DISPLAY
DISPLAY=localhost:11.0

 

https://www.cnblogs.com/amoyzhu/p/6603959.html

XManager5連接CentOS6的方法已經行不通了,那么如何用XManager5連接CentOS7

Xmanger官網博客得知: 
“Gnome in CentOS 7 tries to use local hardware acceleration and this becomes a problem when trying to connect remotely using XDMCP. To avoid this problem, you have to use an alternative display manager (other than ‘gdm’) and desktop environment.” 
“This guide explains how you can change the display manager to lightdm from gdm and desktop environment from Gnome to Xfce.” 
這就是使用Xfce而不用gdm的原因(僅限CentOS7),嗯,不懂的可以百度一下。

參考: 
http://blog.netsarang.com/89/connecting-to-centos-7/ 
http://blog.csdn.net/lic95/article/details/48948099 
http://blog.csdn.net/wuzhimang/article/details/51523867

 

1.安裝源

# yum install epel-release -y

2.安裝lightdm

# yum install lightdm -y

3.編寫配置文件

# vi /etc/lightdm/lightdm.conf

[XDMCPServer]

enabled=true

port=177

4.設置默認顯示為lightdm

# systemctl disable gdm ; systemctl enable lightdm

5.啟動lightdm

#systemctl start lightdm

 

6.安裝xfce桌面,

#yum groupinstall -y xfce

7.刪除gnome文件

關鍵的一步,刪除gnome文件,不然啟動的時候還是gnome而不是xfce

# cd /usr/share/xsessions/
# mkdir bak
# mv gnome* bak
# systemctl restart lightdm

8.將Display Manager切換為lightdm

#systemctl disable gdm && systemctl enable lightdm
9.啟動lightdm

#systemctl start lightdm

10.關閉防火牆

#systemctl stop firewalld.service

11、查看可用的中文安裝包

#  yum list kde*chinese

12、安裝中文包

# yum install kde-l10n-Chinese.noarch

13、修改開啟啟動模式
[root@k8smaster /]# vi /etc/inittab

# multi-user.target: analogous to runlevel 3
graphical.target: analogous to runlevel 5

上面multi-user.target是命令行模式
上面graphical.target圖形界面模式

14、設置啟動模式
[root@k8smaster /]# systemctl set-default graphical.target

 

"D:\Program Files (x86)\NetSarang\Xmanager Enterprise 5\Xstart.exe"

方法1、打開xstart,配置命令:/etc/gdm/Xsession

方法2、打開xstart,配置命令:/usr/bin/gnome-session --display $DISPLAY

window用Xmanager4.0的Xstart連接linux遠程桌面

https://www.cnblogs.com/shengs/p/4838949.html

 

end


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM