使用默认配置安装 RHEL Server 6.2 x86_64
问题1:如何启动startx图形用户界面
要使用startx命令启动X图形,所有要解决问题2.
1 执行yum grouplist | grep -i x\ window\
执行yum groupinstall X\ Window\ System
2 执行yum grouplist | grep -i desktop
执行yum groupinstall Desktop
3 执行完毕后使用startx命令启动图形用户界面
问题2:如何创建本地yum源和远程yum源
本地源
a.光盘/镜像文件
1 执行dd if=/dev/cdrom of=/opt/rhel-server-6.2-x86_64-dvd.iso bs=1024
将光盘内容写成iso镜像文件
2 新建/media/source/目录
3 将iso镜像文件mount到/mnt/
mount -o loop /opt/rhel-server-6.2-x86_64-dvd.iso /mnt
4 cp -r /mnt/* /media/source/拷贝镜像文件内容到/media/source/
5 切换到/etc/yum.repo.d/目录 新建source.repo文件
文件内容如下
[source]
name=source
baseurl=file:///media/source/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
6 执行yum clean all
7 执行yum grouplist试试是否成功
远程源
1 在远程源所在的主机下 新建/media/source/ 参考问题1 把镜像(光盘)内容复制到/media/source/下
2 切换到/media/source/目录下 执行python -m SimpleHTTPServer 80 (注意 如果iptables开启 注意此端口)
3 在远程的客户端的/etc/yum.repo.d/目录下新建source.repo
[source]
name=source
baseurl=http://10.1.40.63/media/source
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
3 执行yum grouplist测试下
1.安装vsftpd,启动vsftpd服务
2.在/var/ftp/目录下新建source文件夹
3.挂载rhel-server-6.2-x86_64-dvd.iso的光盘镜像到/mnt/
4.cp -r /mnt/* 到 /var/ftp/source/
5.在远程客户端的/etc/yum.repo.d/目录中新建source.repo
[source]
name=source
baseurl=ftp://10.1.40.63/source/
enabled=1
gpgcheck=0
即可
10.1.40.63关闭防火墙 或 添加相应规则
1 安装createrepo包(依赖包为deltarpm 和 python-deltarpm),切换到/media/source/Packages/下
使用rpm -ivh deltarpm*和rpm -ivh python-deltarpm*
当然也可以用yum install createrepo
2 删除/media/source/目录中除Packages所有的其他文件
在/media/source/目录中执行createrepo .
3 切换到/media/source/目录下 执行python -m SimpleHTTPServer 80 (注意 如果iptables开启 注意此端口)
4 在远程的客户端的/etc/yum.repo.d/目录下新建source.repo
[source]
name=source
baseurl=http://10.1.40.63/media/source
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
5 执行yum grouplist测试下
如果配置远程源后,无法读取到repomd.xml说明 要么关闭iptables
要么 使用iptables命令修改规则
使用yum install firefox 打开中文网页 为乱码
执行yum grouplist | grep -i chinese
使用yum groupinstall Chinese\ Support即可解决乱码问题
如果是默认安装的系统 有几个group得装
首先,想要有图形用户界面,就得安装X Window System和Desktop
其次,想要有基本开发的工具,就得安装Development tools
再次,想要显示中文,就得安装Chinese Support
再次,想要输入中文,就得安装Input Methods
再次,想要字体正常,就得安装Fonts
再次,想要安装浏览器,就得Internet Browser
再次 ,想要有邮件客户端,就得..
转自:http://hi.baidu.com/chengmoys/item/aa5820d6b0a659c71a72b43f