• 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)NetSarangXmanager Enterprise 5Xstart.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

  • 相关阅读:
    Select与Epoll的区别
    C++ 多态详解及常见面试题
    Linux进程状态详解及状态转换
    C++ 设计模式之单例模式
    DS 图解归并排序
    TCP三次握手,四次挥手详解及常见面试题
    Linux 进程间通信(管道、共享内存、消息队列、信号量)
    # maven
    # select sort 选择排序
    # gitlab与git私钥公钥
  • 原文地址:https://www.cnblogs.com/lindows/p/11147562.html
Copyright © 2020-2023  润新知