Xmanager 5 远程连接linux6图形界面

准备环境:

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

[[email protected] ~]# 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地址

查看是否生效

[[email protected] ~]# 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允许远程连接

[[email protected] ~]# gdm &
[1] 4139
[[email protected] ~]# 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.****.net/fgf00/article/details/50965686

 RHEL7 单独安装图形 X11 

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

Xmanager 5 远程连接linux6图形界面

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


[[email protected] mnt]# rpm --import RPM-GPG-KEY-redhat-release

执行以下命令

[[email protected] 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

[[email protected]uZhen mnt]#

 

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

[[email protected] 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

 

 

[[email protected] 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/