歡迎您光臨本站 註冊首頁

Linux基礎自學記錄三3

←手機掃碼閱讀     火星人 @ 2014-03-09 , reply:0

v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} Normal 0 7.8 磅 0 2 false false false MicrosoftInternetExplorer4 st1\:*{behavior:url(#ieooui) }

反覆安裝 上網百度,終於發現虛擬機安裝CentOS6.2不能進入圖形化安裝的問題,竟然是內存小於1G的問題CentOS5.5在內存512M時也能進行圖形化安裝).

所需工具:UltraISO9CentOS-6.2-i386-netinstall.isoCentOS-6.2-i386-bin-DVD1.iso512M-SD 讀卡器;EasyWebSvr迷你Web伺服器或其它任何Web服務軟體.

安裝步驟:

前面還是一樣的

1、製作U盤啟動引導

2、本地搭建CentOS 6.2Web安裝伺服器

3、安裝CentOS 6.2

在虛擬機內存設置為1G

前面還是一樣的啟動安裝,選URL,設置IP,加入Web地址,等裝載install.img后就不是下圖了:

而是出現以下圖形:

繼續向後選默認設置,在選重新初始化的硬碟時選8G硬碟,注意:不要選錯了U盤.

CentOS預設給了分區模式,選創建自定義布局.

創建

“/”,按下創建后,就會出現如下的畫面.選擇標準分區后,點擊生成.掛載點:選擇“/”;文件系統類型:可選Ext3Ext4;大小:5G;點

確定按鈕.

創建“swap” 交換空間,再用人全部可用空間創建“/home”

選擇安裝的軟體包:可選的伺服器類型更多,而且默認安裝是一個非常小的甚至不完整的系統.選中

“Desktop”,然後單擊下一步按鈕,如下圖所示.

可選的類型說明如下:
Desktop
 :基本的桌面系統,包括常用的桌面軟體,如文檔查看工具.
Minimal Desktop
 :基本的桌面系統,包含的軟體更少.
Minimal
 :基本的系統,不含有任何可選的軟體包.
Basic Server
 :安裝的基本系統的平台支持,不包含桌面.


Database Server
 :基本系統平台,加上MySQLPostgreSQL資料庫,無桌面.
Web Server
基本系統平台,加上PHP,Web server,還有MySQLPostgreSQL資料庫的客戶端,無桌面.
Virtual Host
 

:基本系統加虛擬平台.
Software Development Workstation
 :包含軟體包較多,基本系統,虛擬化平台,桌面環境,開發工具.

20分鐘左右拷貝完文件后,重啟進入以下幾步,Kdump出錯,估計內存不夠:

再重啟,將正常進入:

4、啟動

CentOS 6.2,查看安裝配置及硬碟分區信息,整個虛擬機硬碟只有3.2G.

[root@localhost ~]# cat anaconda-ks.cfg

# Kickstart file automatically generated by anaconda.

#version=DEVEL

install

url --url=http://113.194.75.214

lang zh_CN.UTF-8

keyboard us

network --onboot yes --device eth0 --bootproto static --ip 113.194.75.210 --netmask 255.255.255.248 --gateway 113.194.75.209 --ipv6 auto --nameserver 10.72.255.131

rootpw --iscrypted $6$HtL.57oG3IQA9M/J$/K.L.T4QdavVrYPLlVSmtalrFMuyOLVBNa1VcM8skWttXFDLrwpRtNKTxZFXc7Q9OpfV16eAZeNsHkdJLp69B.

firewall --service=ssh

authconfig --enableshadow --passalgo=sha512

selinux --enforcing

timezone --utc Asia/Shanghai

bootloader --location=mbr --driveorder=sda --append=" rhgb crashkernel=auto quiet"

# The following is the partition information you requested

# Note that any partitions you deleted are not expressed

# here so unless you clear all partitions first, this is

# not guaranteed to work

#clearpart --none

#part / --fstype=ext3 --size=5000

#part swap --size=1000

#part /home --fstype=ext3 --grow --size=200

repo --name="CentOS" --baseurl=http://113.194.75.214 --cost=100

%packages

@base

@chinese-support

@client-mgmt-tools

@core

@debugging

@basic-desktop

@desktop-debugging

@desktop-platform

@directory-client

@fonts

@general-desktop

@graphical-admin-tools

@input-methods

@internet-applications

@internet-browser

@java-platform

@legacy-x

@network-file-system-client

@office-suite

@print-client

@remote-desktop-clients

@server-platform

@server-policy

@x11

mtools

pax

oddjob

sgpio

genisoimage

wodim

abrt-gui

certmonger

pam_krb5

krb5-workstation

gnome-pilot

libXmu

%end[root@localhost ~]# [root@localhost ~]# cat anaconda-ks.cfg

# Kickstart file automatically generated by anaconda.

#version=DEVEL

install

url --url=http://192.194.75.4

lang zh_CN.UTF-8

keyboard us

network --onboot yes --device eth0 --bootproto static --ip 192.194.75.3 --netmask 255.255.255.0 --gateway 192.194.75.1 --ipv6 auto --nameserver 10.72.255.131

rootpw --iscrypted $6$zht4IIaC9cLqX06o$f7IutYQjUN9EYVYpTPoW82Vn4cTGhTuW/WEAsQDwwoKzq5U3Lj.10u22A9W3y0RJUDW9rJOmqDavR/LiMKGMt0

firewall --service=ssh

authconfig --enableshadow --passalgo=sha512

selinux --enforcing

timezone --utc Asia/Shanghai

bootloader --location=mbr --driveorder=sda --append=" rhgb crashkernel=auto quiet"

# The following is the partition information you requested

# Note that any partitions you deleted are not expressed

# here so unless you clear all partitions first, this is

# not guaranteed to work

#clearpart --all --drives=sda

#volgroup VolGroup --pesize=4096 pv.008002

#logvol / --fstype=ext4 --name=lv_root --vgname=VolGroup --grow --size=1024 --maxsize=51200

#logvol swap --name=lv_swap --vgname=VolGroup --grow --size=512 --maxsize=1024

#part /boot --fstype=ext4 --size=500

#part pv.008002 --grow --size=1

repo --name="CentOS" --baseurl=http://192.194.75.4 --cost=100

%packages --nobase

@core

%end[root@localhost ~]#

本文出自 「空魔方」 博客,請務必保留此出處http://74516.blog.51cto.com/64516/790902


[火星人 ] Linux基礎自學記錄三3已經有519次圍觀

http://coctec.com/docs/linux/show-post-47331.html