分类: LINUX
2012-09-21 14:57:47
编辑运行XDMCP的服务器的/etc/gdm/custom.conf:
[root@server gdm]# more /etc/gdm/custom.conf
# GDM configuration storage
[daemon]
[security]
[xdmcp]
Enable=true[greeter]
[chooser]
[debug]
打开server上的防火墙,也开放客户端的防火墙,使用命令重新启动XDMCP:
#init 3;init 5
然后使用Xmanager 连接即可。
在用作NFS服务器的机器上检查nfs相关软件是否存在:
[root@demo1]# rpm -qa|grep nfs
nfs-utils-lib-1.1.5-3.el6.x86_64
nfs-utils-1.2.3-7.el6.x86_64
nfs4-acl-tools-0.3.3-5.el6.x86_64[root@demo1]# rpm -qa|grep rpc
rpcbind-0.2.0-8.el6.x86_64检查NFS服务状态:
[root@demo1]# service nfs status
rpc.svcgssd is stopped
rpc.mountd (pid 2168) is running...
nfsd (pid 2165 2164 2163 2162 2161 2160 2159 2158) is running...
rpc.rquotad (pid 2152) is running...改为nfs自动启动:
[root@demo1]# chkconfig nfs on
关闭防火墙:
chkconfig iptables off
chkconfig ip6tables off输出要被远程mount的文件系统(Exports:)
[root@demo1]#vi /etc/exports
/nfsdisk client1(rw)[root@demo1]# exportfs -a
[root@demo1]# exportfs
/nfsdisk client1
客户端远程Mount这个磁盘:
[root@client1]# mkdir /nfs
[root@client1]# mount demo1:/nfsdisk /nfs改为启动时自动mount:
[root@client1]#vi /etc/fstab
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
demo1:/nfsdisk /nfs nfs
Mount光盘:
#mount -t iso9660 /dev/scd0 /media
首先添加一个yum repository, 使用命令yum-config-manager:
#yum-config-manager --add-repo repository_url
例如:
# yum-config-manager --add-repo或是添加本地光盘:
[root@mhvtlserver yum.repos.d]# yum-config-manager --add-repo file:///media/media.repo
Loaded plugins: product-id, refresh-packagekit
adding repo from: file:///media/media.repo
grabbing file file:///media/media.repo to /etc/yum.repos.d/media.repo
media.repo | 114 B 00:00 ...
repo saved to /etc/yum.repos.d/media.repo[root@mhvtlserver yum.repos.d]# ls
media.repo packagekit-media.repo redhat.repo rhel-source.repo修改本地光盘的描述media.repo,添加:
[InstallMedia]
baseurl=file:///media/ (/media是光盘所mount的目录)
..列出所有repository:
[root@mhvtlserver yum.repos.d]# yum repolist all
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
repo id repo name status
InstallMedia Red Hat Enterprise Linux 6.1 disabled
rhel-source Red Hat Enterprise Linux 6Server - x86_64 - Source disabled
rhel-source-beta Red Hat Enterprise Linux 6Server Beta - x86_64 – Sourc disabled
repolist: 0因为目前 InstallMedia repository是disabled,所以需要enable 它:
[root@mhvtlserver yum.repos.d]# yum-config-manager --enable InstallMedia
Loaded plugins: product-id, refresh-packagekit
============================== repo: InstallMedia ==============================
[InstallMedia]
...再列一下repository:
[root@mhvtlserver yum.repos.d]# yum repolist all
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
repo id repo name status
InstallMedia Red Hat Enterprise Linux 6.1 enabled: 3,480
rhel-source Red Hat Enterprise Linux 6Server - x86_64 - Sour disabled
rhel-source-beta Red Hat Enterprise Linux 6Server Beta - x86_64 - disabled
repolist: 3,480InstallMedia这个repository变成了enabled,可以使用了。
测试安装:
看需要的软件libXm.so.3(这个是部分名字即可,不一定是全名)是由那个可以安装的模块提供的:
[root@mhvtlserver ~]# yum whatprovides libXm.so.3
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
openmotif22-2.2.3-19.el6.i686 : Open Motif runtime libraries and executables
Repo : InstallMedia
Matched from:
Other : libXm.so.3安装openmotif22-2.2.3-19.el6.i686:
[root@mhvtlserver ~]# yum install openmotif22-2.2.3-19.el6.i686
ma.yu2013-09-18 16:22:35
string2020:[root@rhel /]# cat /etc/gdm/custom.conf
# GDM configuration storage
[daemon]
[security]
AllowRemoteRoot=true
[xdmcp]
Enable=true
Port=177
[greeter]
[chooser]
[debug]
[root@rhel /]#
系统是rhel6.x 上面是配置,一直连接不上,求解释。
可以用#netstat -na 检查下177端口,同时打开防火墙,SElinux等,XDMCP重启过么?
回复 | 举报string20202013-09-09 12:49:43
[root@rhel /]# cat /etc/gdm/custom.conf
# GDM configuration storage
[daemon]
[security]
AllowRemoteRoot=true
[xdmcp]
Enable=true
Port=177
[greeter]
[chooser]
[debug]
[root@rhel /]#
系统是rhel6.x 上面是配置,一直连接不上,求解释。