linux 远程可视化

实验linux是vmware上的rhel6.0,安装的是centos社区桌面,ip:192.168.31.223,win设置的固定ip:192.168.31.166,且远程ssh软件用的是SecureCRT
需要提前设置sshd_config开放x11转发,以及在SecureCRT(会话选项里)上同样开放。
在这里插入图片描述
在这里插入图片描述

Xming

在这里插入图片描述

[root@ton ~]#export DISPLAY=192.168.31.166:0.0      #连接到win的ip,可以写到bashrc上固定
[root@ton ~]#xeyes

No protocol specified

[root@ton ~]#xeyes
No protocol specified
Error: Can't open display: 192.168.31.166:0.0

这里需运行XLaugch,且最后一步配置,选No Access Control。
在这里插入图片描述

Xmanager

显示窗体程序

在这里插入图片描述

[root@ton ~]#xclock
#若出现 Warning: Missing charsets in String to FontSet conversion
#则 export LANG=C

xdm远程桌面

参考https://blog.51cto.com/nolinux/1330148

在这里插入图片描述

在这里插入图片描述

[root@ton ~]#vim /etc/X11/xdm/Xaccess
 *                   #any host can get a login window   						#此行去注释
 [root@ton ~]#cat /etc/gdm/custom.conf
# GDM configuration storage
[security]
AllowRemoteRoot=true
[xdmcp]
Port=177
Enable=1
[greeter]

[root@ton ~]#service iptables stop
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Unloading modules:                               [  OK  ]
[root@ton ~]#netstat    -antpu   |   grep 177								#xdmcp working
udp        0      0 0.0.0.0:177                 0.0.0.0:*                               2016/gdm-binary     

VNC

参考https://www.linuxidc.com/Linux/2015-12/126262.htm
在这里插入图片描述

目前是黑屏,待dbug

Centos6.X & RHEL6.X 安装桌面

1.前置环境
yum -y groupinstall 'X Window System'
2.桌面安装
 yum -y groupinstall 'Desktop' 
3.语言包
yum -y groupinstall "Chinese Support"
4.中文套件
编辑/etc/sysconfig/i18n,將 LANG="en_US.UTF-8" 改为 LANG="zh_CN.UTF-8"
如果空白 直接加入
LANG="zh_CN.UTF-8"
[root@ton ~]#yum grouplist       
Loaded plugins: fastestmirror, refresh-packagekit
Setting up Group Process
Repository base is listed more than once in the configuration
Loading mirror speeds from cached hostfile
Installed Groups:
   Compatibility libraries
   Desktop
   Desktop Debugging and Performance Tools
   Dial-up Networking Support
   Fonts
   General Purpose Desktop
   Input Methods
   KDE Desktop
   MySQL Database client
   MySQL Database server
   Remote Desktop Clients
   X Window System

linux间的远程桌面访问

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值