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
·
实验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间的远程桌面访问
更多推荐
已为社区贡献2条内容
所有评论(0)