从这里thoughtpolice.co.uk/vmware/可以下载到主流Linux版本的vmdk,其中有CentOS 不过,这个CentOS没有桌面,并且缺少开发工具。下面有两个选择,一个是安装桌面和好的工具,另一种是从光盘或者ISO安装。从ISO安装简单些,时间更短,但需要人全程关注。升级为桌面,依靠光盘倒还快点,但需要把光盘添加为安装源;依靠网络,速度太慢,就不如从光盘安装Linux来得快;同时需要比较懂Linux,在升级过程中可以干别的事情。把比较耗费时间的操做写到文件中,放在那里执行就行了。 因为安装好的vmdk可以作为标准源,以后别人需要vmware的OS,拷贝过去就行了。所以,对于安装过程不做太详细的解释,以后普通员工安装OS的机会很少的。 如果原来安装的是Redhat,那么因为Redhat升级时收费的,需要卸载掉以前的yum相关工具 rpm -aq|grep yum|xargs rpm -e --nodeps 参见:file:///Z:/Document/Fedora-Cent/redhat 6(centos 6)配置 yum 源的两种方法.htm 在1.85的/share/stgconrd/OS/LinuxOS/config/centos6(redhat系列都可以用到)有一些.rpm包。或者从网上下载也行,如果下载就是: wget http://mirrors.163.com/centos/6/ ... 6.centos.noarch.rpm
wget http://mirrors.163.com/centos/6/ ... 14.1.el6.x86_64.rpm
wget http://mirrors.163.com/centos/6/ ... 0-14.el6.noarch.rpm
wget http://mirrors.163.com/centos/6/ ... -2.1.el6.noarch.rpm 用wget或者curl下载rpmforge: i386 http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i386.rpm
如果不行,试试这个
http://pkgs.repoforge.org/rpmfor ... 2.el6.rf.x86_64.rpm
x86_64 http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm进行安装yum rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm
rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
rpm -ivh yum-3.2.27-14.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm 如果是Centos,yum不用装只需下面这个 rpm -ivh yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
or
yum -y install yum-fastestmirror
注意最后两个包必需同时安装,否则会相互依赖。安装CentOS时,yum可以不通过rpm安装,另外,fastestmirror可以通过“yuminstall yum-fastestmirror”来安装。 安装 DAG 的GPG 金钥 rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt安装rpmforge 安装完remi后,Edit the [remi] portion of the file sothat the enabled option is set to 1 yumupdate提示这样的错误时: Error: Package:matahari-net-0.4.0-5.el6.i686(@anaconda-CentOS
可以把matahari-*删掉,再update yum remove matahari-*
#如果rpmforge可以安装上,那么执行yum -y updateyum -y install axel
/share/stgconrd/OS/LinuxOS/config/centos6里面有axel.sh,执行这个。 (axel是Linux下面下载速度最快的命令行工具)。
或者:
cd /etc/yum/pluginconf.d/
wget http://cnfreesoft.googlecode.com/svn/trunk/axelget/axelget.conf
cd /usr/lib/yum-plugins/
wget http://cnfreesoft.googlecode.com/svn/trunk/axelget/axelget.py
最后确认 /etc/yum.conf中plugins=1
#接着可以安装桌面了。
#如安装gnome桌面就是:
yum -y groupinstall Desktop
yum -y groupinstall "X Window System"如果是xfce桌面(轻量级),就是 yum -y groupinstall xfce
xfce,startxfce4 &,发现在虚拟机中控制鼠标挺困难,结果还是把gnome桌面给装了。 安装linux源码、头文件: yum installkernel-devel kernel-headers -y
#安装中文支持
yum -y groupinstall "Chinese Support [zh]"
yum -y groupinstall chinese-support
#安装开发工具,可以
yum groupinstall "Development tools" -y
#或者只需要很少的
yum -y install gcc
#需要VNC
yum -y install vnc tigervnc-server
#安装字体,防止一些关于vncserver因为字体不能启动
yum install libXfont xorg-x11-xinit xorg-x11-fonts-Type1 -y 编辑/etc/sysconfig/vncservers, ……;vncpasswd 设置密码; servicevncserver start; 可以设为随机启动,chkconfig vncserver on .vnc/xstartup末尾可以改成这样: #xterm-geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
gnome-session &
#下面就可以在gnome终端里操作了。根据实际需要安装一些有用的组,当然也可以一个一个包的安装。
yum groupinstall "Desktop Platform"
yum groupinstall "Development tools"
yum groupinstall "Base" "Fonts" "Emacs"上面的内容不少来自于1.85的从最小化centos6.2下安装centos桌面系统gnome.htm,链接地址是:file:///Z:/Document/Fedora-Cent/从最小化centos6.2下安装centos桌面系统gnome.htm。 最后,好的工具安装下 yum -y install firefox geany为了在/usr/src/kernels/2..../下运行 make gconfig,需要安装gtk环境。
那么需要:
Download the latest atrpms-repo rpm fromhttp://dl.atrpms.net/el6-i386/atrpms/stable/
Install atrpms-repo rpm:
# rpm -Uvh atrpms-repo*rpm
Install gtk+-devel rpm package:
# yum install gtk+-devel
yum install gtk2 gtk2-devel glib2 glib2-devel libglade2 libglade2-devel
git应该安装,但是centos6.3中老是无法安装,提示
Error: Package: git-1.7.12.4-1.el5.rf.i386 (rpmforge)
Requires: libcurl.so.3
这样可以解决:
yum install git --disablerepo=rpmforge
除了rpmforge.repo外,还需要些别的源,参考 http://blog.chinaunix.net/uid-20754878-id-3092063.html http://blog.163.com/kingmax_res/ ... 244220141201565656/
http://rpms.famillecollet.com/enterprise/remi-release-6.rpm, refer to http://rpms.famillecollet.com/
http://rpms.famillecollet.com/RPM-GPG-KEY-remi
astyle是很有用的工具,某些环境下无法通过yum安装,必须下载源码安装。
http://sourceforge.net/projects/astyle/files/astyle/astyle 2.04/
网络相关的安装在这里
groupinstall "Server Platform Development"
安装atrpms:
- Create the repository config file /etc/yum.repos.d/slce.repo:[slce]name=Scientific Linux Cyrillic Editionbaseurl=http://downloads.naulinux.ru/pub/SLCE/6x/$basearch/CyrEd/RPMS/enabled=0gpgcheck=1gpgkey=http://downloads.naulinux.ru/pub/SLCE/RPM-GPG-KEY-linux-ink
- Install atrpms-repo rpm package:# yum --enablerepo=slce install atrpms-repo
|