Let's install CentOS 5.1 x86_64 in VMware.
2008年5月8日:大分書き直しました、
ですがこの部分はなぜかはてなのリンクがあったので、残しておきます
仮想マシン環境に CentOS 5.1 64bit をインストール に書き直しがあります。
申し訳ありません。
VMwareにCentOS 5.1 x86_64をインストールしてみました。
ダウンロードサイト
Download Site
下载网站
http://isoredirect.centos.org/centos/5/isos/x86_64/
ダウンロードファイル
Download File
下载文件
ftp://ftp.jaist.ac.jp/pub/Linux/CentOS/5.1/isos/x86_64/CentOS-5.1-x86_64-bin-DVD.iso
ftp://ftp.twaren.net/Linux/CentOS/5.1/isos/x86_64/CentOS-5.1-x86_64-bin-DVD.iso
ftp://ftp.isu.edu.tw/pub/Linux/CentOS/5.1/isos/x86_64/CentOS-5.1-x86_64-bin-DVD.iso
設定
Setting
设定
コンピュータ名の設定です。
# vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=machine_name
# vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 machine_name localhost.localdomain localhost
::1 machine_name localhost6.localdomain6 localhost6
sshの設定です。
# vi /etc/ssh/sshd_config
39: #PermitRootLogin yes
60: PasswordAuthentication yes
39: PermitRootLogin no
60: PasswordAuthentication no
リポジトリ
Repository
# vi /etc/yum.repos.d/CentOS-Base.repo
51: enabled=0
51: enabled=1
# wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm
# rpm -ivh epel-release-5-2.noarch.rpm
# vi /etc/yum.repos.d/thirds.repo
[dries]
name=Extra Fedora rpms dries - $releasever - $basearch
baseurl=http://ftp.riken.jp/Linux/dag/dries/redhat/el$releasever/en/$basearch/dries/RPMS
http://public.www.planetmirror.com/pub/dag/dries/redhat/el$releasever/en/$basearch/dries/RPMS
http://ftp.freshrpms.net/pub/dag/dries/redhat/el$releasever/en/$basearch/dries/RPMS
enabled=1
gpgcheck=1
gpgkey=http://dries.studentenweb.org/rpm/RPM-GPG-KEY.dries.txt
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el$releasever/en/$basearch/dag
http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
enabled=1
gpgcheck=1
gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
[flash]
name=macromedia.mplug.org - Flash Plugin
baseurl=http://macromedia.mplug.org/rpm
http://sluglug.ucsc.edu/macromedia/rpm
http://ruslug.rutgers.edu/macromedia/rpm
http://macromedia.rediris.es/rpm
enabled=0
gpgcheck=1
gpgkey=http://macromedia.mplug.org/FEDORA-GPG-KEY
[atrpms]
name=Redhat Enterprise Linux $releasever - $basearch - ATrpms
baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable
enabled=0
gpgcheck=1
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
# vi /etc/yum.repos.d/fedora.repo
[fedora-dries]
name=Extra Fedora rpms dries - 6 - $basearch
baseurl=http://ftp.riken.jp/Linux/dries/fedora/fc6/$basearch/dries/RPMS
http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/fc6/$basearch/dries/RPMS
gpgkey=http://dries.ulyssis.org/rpm/RPM-GPG-KEY.dries.txt
enabled=0
gpgcheck=1
[fedora-extras]
name=Fedora Extras 6 - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/6/$basearch/
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=extras-6&arch=$basearch
#mirrorlist=file:///etc/yum.repos.d/local-extras
enabled=0
gpgkey=http://ftp.riken.jp/Linux/fedora/extras/RPM-GPG-KEY-Fedora-Extras
gpgcheck=1
# cd /etc/yum.repos.d/
# wget http://apt.kde-redhat.org/apt/kde-redhat/redhat/kde.repo
# vi /etc/yum.repos.d/kde.repo
8: enabled=1
15: enabled=1
8: enabled=0
15: enabled=0
インストール
Install
安装
最小限必要と思われるもののみ並べてみました。
# yum install yum-fastestmirror
# yum update
# /sbin/service yum-updatesd start
# /sbin/chkconfig yum-updatesd on
# yum install kernel-devel
# yum install gcc* compat-gcc* compat-glibc* compat-lib*
# yum install rpm-build
# yum install yumex yum-utils
# yum install hwbrowser atop
# yum install gconf-editor gnomebaker
# yum install fontforge
# yum --enablerepo=flash install flash-plugin
ダウンロードサイト
Download Site
下载网站
標準ではインストールされないので、載せてみました。
http://www.mozilla-japan.org/products/firefox/all.html
# tar xvfz firefox-2.0.0.11.tar.gz
# mv firefox /usr/local
# ln -s /usr/local/firefox /usr/local/bin/.
マイクロソフトコアフォント
Microsoft Core Fonts
微软核心字体
% wget http://www.mjmwired.net/resources/files/msttcorefonts-2.0-1.noarch.rpm
# rpm -ivh msttcorefonts-2.0-1.noarch.rpm
日本語フォントのインストール
% wget http://www.grass-japan.org/FOSS4G/ipafonts/grass5.0.3_i686-pc-linux-i18n-ipafull-gnu_bin.tar.gz
% wget http://www.grass-japan.org/FOSS4G/ipafonts/grass5_i686-pc-linux-i18n-ipafull-gnu_install.sh
# sh grass5_i686-pc-linux-i18n-ipafull-gnu_install.sh grass5.0.3_i686-pc-linux-i18n-ipafull-gnu_bin.tar.gz /tmp/grass5 /tmp/bin
# mv /tmp/grass5/fonts/*.ttf /usr/share/fonts/japanese/TrueType/
# sh /tmp/bin/grass5uninstall.sh
# cd /usr/share/fonts/japanese/TrueType/
# rm sazanami-mincho.ttf
# rm sazanami-gothic.ttf
# ln -s ipam.ttf sazanami-mincho.ttf
# ln -s ipag.ttf sazanami-gothic.ttf
# fc-cache -fv
# vi /etc/fonts/local.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<test name="family" compare="eq">
<string>IPAPMincho</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<test name="family" compare="eq">
<string>IPAPGothic</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
<alias>
<family>IPAPMincho</family>
<default><family>serif</family></default>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>IPAPMincho</family>
</prefer>
</alias>
<alias>
<family>IPAPGothic</family>
<default><family>sans-serif</family></default>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>IPAPGothic</family>
</prefer>
</alias>
<alias>
<family>IPAGothic</family>
<default><family>monospace</family></default>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>IPAGothic</family>
</prefer>
</alias>
</fontconfig>
% wget http://downloads.sourceforge.jp/mplus-fonts/6650/mplus-TESTFLIGHT-014.tar.gz
% tar xvfz mplus-TESTFLIGHT-014.tar.gz
% cd mplus-TESTFLIGHT-014
% cp /usr/share/fonts/japanese/TrueType/ipag.ttf .
% fontforge -script m++ipa.pe
# mv M*IPAG.ttf /usr/share/fonts/japanese/TrueType/.
# fc-cache -fv /usr/share/fonts/japanese/TrueType
vmware-tools
これがメインかも^^
# tar xvfz VMwareTools-6.0.2-59824.tar.gz
# cd ./vmware-tools-distrib
# ./vmware-install.pl
参考サイト
Reference Site
参考网站
このすばらしいサイトを公開してくださった方に感謝します。

