linux上安装arcgis 10_01安装Linux虚拟机及yum源配置
安装人员:xubobo
安装时间:2012-12-15
安装介质:rhel-server-5.5-x86_64.iso 3.44G
VM 版本:VMware Workstation 8.0
账 户: xubobo/admin root/admin
虚拟机版本:Red Hat Enterprise Linux 5_5 64-bit 纯净版.zip 912M
描述:完全纯净版,没有安装其他软件。
创建过程:
- 打开VMware Workstation 8.0,在Home选项卡下点击Create a New Virtual Machine,开始创建虚拟机。
- 选择Typical,点击下一步。
- 选择Installer disc image file(iso),选择操作系统镜像,点击下一步。
- 填写用户名和密码等信息,用户名为xubobo,密码为admin,点击下一步。注意此处创建的密码也是root用户的密码。
- 填写虚拟机名称、选择存放位置,点击下一步。
- 设置虚拟机最大硬盘容积为100G,选择单一文件,点击下一步。
- 虚拟机配置完毕,准备创建虚拟机。点击Customize Hardware...,可以配置CPU和内存等信息。点击完成开始创建虚拟机。
- 等待虚拟机创建完成,启动后用root/admin或者xubobo/admin登录,可看到启动后的界面。
配置本地yum源
local.repo下载地址:http://pan.baidu.com/share/link?shareid=168213&uk=151831364
第一步:挂载镜像
- 在VM->Settings...-CD/DVD(IDE)->Use ISO image file中指定安装文件镜像(例如f:\
rhel-server-5.5-x86_64.iso)。
- 创建挂载目录 [root@localhost ~]# mkdir /mnt/cdrom
- 挂载 [root@localhost ~]# mount /dev/cdrom /mnt/cdrom
第二步:编辑仓库设置
在/etc/yum.repos.d/中新建local.repo,添加以下内容
[Cluster]
name=Red Hat Enterprise Linux $releasever - $basearch - Cluster
baseurl=file:///mnt/cdrom/Cluster
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[ClusterStorage]
name=Red Hat Enterprise Linux $releasever - $basearch - ClusterStorage
baseurl=file:///mnt/cdrom/ClusterStorage
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Server]
name=Red Hat Enterprise Linux $releasever - $basearch - Server
baseurl=file:///mnt/cdrom/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[VT]
name=Red Hat Enterprise Linux $releasever - $basearch - VT
baseurl=file:///mnt/cdrom/VT
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
name=Red Hat Enterprise Linux $releasever - $basearch - Cluster
baseurl=file:///mnt/cdrom/Cluster
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[ClusterStorage]
name=Red Hat Enterprise Linux $releasever - $basearch - ClusterStorage
baseurl=file:///mnt/cdrom/ClusterStorage
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Server]
name=Red Hat Enterprise Linux $releasever - $basearch - Server
baseurl=file:///mnt/cdrom/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[VT]
name=Red Hat Enterprise Linux $releasever - $basearch - VT
baseurl=file:///mnt/cdrom/VT
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
第三步:修改yum代码
修改/usr/lib/python2.4/site-packages/yum/yumRepo.py
找到remote = url + '/' + relative
修改为remote = '/mnt/cdrom/Server' + '/' + relative
找到remote = url + '/' + relative
修改为remote = '/mnt/cdrom/Server' + '/' + relative
备注:修改后,配置CentOS的yum源就不可用,需要改回来。
第四步:导入GPG Key
#rpm --import /etc/pki/rpm-gpg/RPM*
配置CentOS的yum源
CentOS-Base.repo下载地址:http://pan.baidu.com/share/link?shareid=168211&uk=151831364
第一步:编辑仓库设置
在/etc/yum.repos.d/中新建CentOS-Base.repo,添加以下内容
[base]
name=CentOS-$releasever - Base
baseurl=http://centos.ustc.edu.cn/centos/5/os/$basearch/
gpgcheck=1
enabled=1
gpgkey=http:/centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=http://centos.ustc.edu.cn/centos/5/updates/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
baseurl=http://centos.ustc.edu.cn/centos/5/addons/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://centos.ustc.edu.cn/centos/5/extras/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://centos.ustc.edu.cn/centos/5/centosplus/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
name=CentOS-$releasever - Base
baseurl=http://centos.ustc.edu.cn/centos/5/os/$basearch/
gpgcheck=1
enabled=1
gpgkey=http:/centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=http://centos.ustc.edu.cn/centos/5/updates/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
baseurl=http://centos.ustc.edu.cn/centos/5/addons/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://centos.ustc.edu.cn/centos/5/extras/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://centos.ustc.edu.cn/centos/5/centosplus/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5
第二步:导入GPG Key
#rpm --import /etc/pki/rpm-gpg/RPM*
备注:baseurl网上有些写成baseurl=http://centos.ustc.edu.cn/centos/$releasever/os/$basearch/
会提示http://centos.ustc.edu.cn/centos/5Server/addons/x86_64/repodata/repomd.xml找不到,这是因为其将变量$releasever解析为5Server,http://centos.ustc.edu.cn/centos中的资源地址解析5才正确。
中文支持
问题描述:安装完成后,如果把系统语言切换成中文或者打开用浏览器访问中文站点,会发现中文显示都是方框,这是因为没有安装中文字库。
解决方法:配置好yum源后,在终端中执行yum install fonts-chineses安装中文包即可。
附虚拟机创建过程截图