用什麼都的用原生態的,我不想在系統安裝太多無關的東西,一來用不着浪費空間,二來下降了服務器安全性和性能,三是我喜歡最小化安裝。c++
測試環境: VBOX4.2 + CentOS6.3 (32)windows
windows配置了Loopback 做爲鏈接虛擬機的專用網卡(這樣的目的是無線和有線網卡須要自動獲取IP時,能夠順利鏈接互聯網)安全
一、最小化安裝CentOS(再也不詳細說明,安裝光盤用DVD版,不要拿600M的minimalISO 哦)服務器
二、配置LOOPBACK對應網卡的IP地址,讓SSH能順利鏈接,注意不要配置網關,由於這個網卡不會跨網段,配了網關可能自動獲取IP後就不能鏈接哦,本身能夠小測一下)ide
三、將安裝光盤拷貝到系統中,固然只是用一次兩次就不必了,本身看着辦oop
>>cd /media/性能
>>mkdir cdrom測試
>>mkdir CentOSui
>>mount -t iso9660 /dev/cdrom/media/cdrom虛擬機
>>cp -R /media/cdrom/*/media/CentOS/
......................耐心等待一會,喝杯咖啡...........................
四、安裝你須要的包
>>yum install --disablerepo=\*--enablerepo=c6-mediakernel*
>>yum install --disablerepo=\*--enablerepo=c6-mediasetuptool
>>yum install --disablerepo=\*--enablerepo=c6-mediantsysv
>>yum install --disablerepo=\*--enablerepo=c6-mediasystem-config-firewall-tui
>>yum install --disablerepo=\*--enablerepo=c6-mediasystem-config-network-tui
>>yum install --disablerepo=\*--enablerepo=c6-mediasystem-config-keyboard
>>yum install --disablerepo=\*--enablerepo=c6-mediasystem-config-language
.......................................
>>yum install --disablerepo=\*--enablerepo=c6-mediasystem-config-printer
哦,對了不安裝system-config-network-tui可能不能自動獲取IP,我沒詳細測試,應該是這樣
五、安裝編譯環境(可選)
>>yum install --disablerepo=\*--enablerepo=c6-mediakernel*
>>yum install --disablerepo=\*--enablerepo=c6-media makegccgcc-c++
編譯環境:
libstdc++-devel.i686
gcc-c++.i686
glibc.i686
make
ncurses-devel.i686
gtk2-devel.i686
gdb.i686
六、重啓一下
>> init 6
基本的可編譯的環境搞定,看看本身還須要什麼
參考內容(看懂這個,上面的內容也應該理解了,看不懂別罵我):
>>cat /etc/yum.repos.d/CentOS-Media.repo