Xmanager 5 远程连接linux6图形界面

准备环境:

Windows客户端安装 Xmanager 软件我用的Xmanager Enterprise 5 
Linux系统环境

[root@localhost ~]# cat /etc/issue
CentOS release 6.6 (Final)
Kernel \r on an \m

一、若未安装桌面,先安装下桌面环境

  • 安装桌面系统
yum groupinstall "Desktop"
yum groupinstall "X Window System"
  • 安装中文支持
yum groupinstall "Chinese Support"

 注意:minial CentOS安装,如果默认选择的是英文,需要修改/etc/sysconfig/i18n,将LANG修改为LANG=”zh_CN.UTF-8”

sed -i 's/LANG=.*/LANG="zh_CN.UTF-8"/' /etc/sysconfig/i18n

 

二、Xmanager远程连接linux图形界面

注意:本地windows防火墙一定要关闭,或者加入177端口

方法1:使用Xmanager的Xmanager -> Passive
  • 客户端打开 Xmanager - Passive
  • linux上命令临时修改环境变量
export DISPLAY=192.168.198.132:0.0   ---客户端windows的ip地址

查看是否生效

[root@localhost ~]# xdpyinfo |head -1  
xdpyinfo:  unable to open display "192.168.198.132:0.0".

 

或者添加到 .bash_profile文件,永久生效

  • 远程连接Linux桌面,比如应用程序图像化安装
gnome-session 或者startkde   ----这两个命令都可以启动一个桌面,在桌面中启动应用程序
xclock  ----也可以直接调用应用程序
方法2:使用Xmanager的Xbrower–》XDMCP远程桌面
  • 在CentOS上,编辑/etc/gdm/custom.conf,添加如下内容:
[daemon] 

RemoteGreeter=/usr/libexec/gdmgreeter  #“远程登录界面与本地登录界面相同”功能,若没有此项及[greeter]项则登录界面为简洁型 

[security] 

AllowRemoteRoot=true  #允许root用户远程登录 

[xdmcp] 

Enable=true  #允许远程登录本地
Port=177     #xdmcp默认端口177,此处没有显示的加入

[greeter] 

Browser=true  #远程登录界面为“带头像浏览器的简洁主题”,若定义了[daemon]项本行不起作用 

保存后,终端输入gdm允许远程连接

[root@localhost ~]# gdm &
[1] 4139
[root@localhost ~]# netstat -anpu |grep 177
udp        0      0 0.0.0.0:177                 0.0.0.0:*   

/etc/inittab –>启动模式改为图形启动:5,则开机177端口打开,或在/etc/rc.d/rc.local文件尾部加入下边gdm的路径

  • 客户端打开Xmanager -> Xbrowser 

文件 -> 新建 -> XDMCP会话 -> 输入LInux主机ip等信息

转自http://blog.csdn.net/fgf00/article/details/50965686

 RHEL7 单独安装图形 X11 

RHEL7 默认是最小化安装(Minimal Install),没有图形界面,
我们应该选择Server with GUI。若已错过此步骤,我们采用以下方式补充安装GUI界面。

先配置yum源
可以参考我的这篇文章
http://blog.itpub.net/27771627/viewspace-1223153/


[root@LiuZhen mnt]# rpm --import RPM-GPG-KEY-redhat-release

执行以下命令

[root@LiuZhen mnt]# yum group list

Loaded plugins: langpacks, product-id, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

There is no installed groups file.

Maybe run: yum groups mark convert (see man yum)

Available environment groups:

   Minimal Install

   Infrastructure Server

   File and Print Server

   Basic Web Server

   Virtualization Host

   Server with GUI

Available Groups:

   Compatibility Libraries

   Console Internet Tools

   Development Tools

   Graphical Administration Tools

   Legacy UNIX Compatibility

   Scientific Support

   Security Tools

   Smart Card Support

   System Administration Tools

   System Management

Done

[root@LiuZhen mnt]#

 

 列出的组包中 Server with GUI 就是安装图形所需要的,继续执行以下命令

[root@LiuZhen mnt]# yum -y groupinstall "Server with GUI"

Loaded plugins: langpacks, product-id, subscription-manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

There is no installed groups file.

Maybe run: yum groups mark convert (see man yum)

Package 1:NetworkManager-config-server-0.9.9.1-12.git20140326.4dba720.el7.x86_64 already installed and latest version

Warning: Group core does not have any packages to install.

Warning: Group gnome-desktop does not have any packages to install.

Warning: Group guest-agents does not have any packages to install.

Package gtk2-immodule-xim-2.24.22-5.el7.x86_64 already installed and latest version

Package imsettings-gsettings-1.6.3-9.el7.x86_64 already installed and latest version

Package ibus-gtk3-1.5.3-11.el7.x86_64 already installed and latest version

Package ibus-gtk2-1.5.3-11.el7.x86_64 already installed and latest version

Package gtk3-immodule-xim-3.8.8-5.el7.x86_64 already installed and latest version

Warning: Group input-methods does not have any packages to install.

Group input-methods does have 2 conditional packages, which may get installed.

Warning: Group guest-desktop-agents does not have any packages to install.

Warning: Group fonts does not have any packages to install.

Warning: Group print-client does not have any packages to install.

Warning: Group desktop-debugging does not have any packages to install.

Warning: Group dial-up does not have any packages to install.

Warning: Group base does not have any packages to install.

Group base does have 1 conditional packages, which may get installed.

Package gstreamer1-plugins-bad-free-1.0.7-4.el7.x86_64 already installed and latest version

Package gstreamer1-plugins-good-1.0.7-5.el7.x86_64 already installed and latest version

Warning: Group multimedia does not have any packages to install.

Warning: Group internet-browser does not have any packages to install.

Warning: Group x11 does not have any packages to install.

Maybe run: yum groups mark install (see man yum)

No packages in any requested group available to install or update

 

 

[root@LiuZhen mnt]# show-installed

WARNING: The following packages are installed but not in the repository:

cups-pdf

 

WARNING: The following groups contain packages not found in the repositories:

XXX base

yum-plugin-security

XXX core

ql2100-firmware

ql23xx-firmware

ql2200-firmware

bfa-firmware

XXX gnome-desktop

unoconv

polkit-gnome

gvfs-obexftp

 

@base

-yum-plugin-security

@core

-bfa-firmware

-ql2100-firmware

-ql2200-firmware

-ql23xx-firmware

@dial-up

@fonts

@gnome-desktop

-gvfs-obexftp

-polkit-gnome

-unoconv

@guest-agents

@guest-desktop-agents

@input-methods

@internet-browser

@multimedia

@print-client

@x11

# Others

Red_Hat_Enterprise_Linux-Release_Notes-7-zh-CN

Red_Hat_Enterprise_Linux-Release_Notes-7-zh-TW

clucene-core

cups-pdf

grub2

lftp

samba-client

screen

# 1196 package names, 228 leaves

# 12 groups, 8 leftovers, 8 excludes

# 32 lines

可以执行startx看下效果。

 

转自http://blog.itpub.net/27771627/viewspace-1223155/

  

  

  

 

  

  

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值