Chinaunix首页 | 论坛 | 博客
  • 博客访问: 174133
  • 博文数量: 17
  • 博客积分: 299
  • 博客等级: 下士
  • 技术积分: 292
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-24 12:11
文章分类
文章存档

2017年(1)

2013年(1)

2012年(15)

我的朋友

分类: LINUX

2012-09-21 14:57:47

  • XDMCP (X-manager访问)简单配置

编辑运行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服务器的机器上检查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,480

InstallMedia这个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

阅读(8235) | 评论(2) | 转发(1) |
给主人留下些什么吧!~~

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 上面是配置,一直连接不上,求解释。