centos 安装

hp按F11,lenon的按F12,选CD-ROM(第二项目)从光盘进入安装系统,选skip跳国系统的检查,其他默认,选择时区,

use all space

webserver选customize now (只选base,其它都不选)language加入chinese。

输入root的密码,最后点击reboot重启。

为了下次开机时在命令行下输入用户名和密码,startx启动图形界面,需设置

vi /etc/inittab 里把5改为3

vi /etc/selinux/config里把selINX="disable"

ping通网络需要设置

vi /etc/sysconfig/network-script/ifcfg-eth0

修改:ONBOOT="yes"

         BOOTPROTO="dhcp"

         IPV6INIT="no"

正常改目录下的配置如下:

DEVICE="eth0"
BOOTPROTO="dhcp"
HWADDR="44:37:E6:7A:00:A1"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
UUID="45651d3d-5cbb-400c-94cf-e49e6dfe70a9"

开机不启动防火墙

chkconfig iptables off

这次关闭防火墙

chkconfig iptables stop

安装桌面:

yum groupinstall "Desktop"

yum groupinstall "Desktop Platform"

yum groupinstall "X Window System"

yum groupinstall "GNOME Desktop Environment"

修改visudo,增加root权限,以后用sudo即可。

例:zdf    ALL=(ALL)    ALL

     root    ALL-(ALL)    ALL  

yum install telnet

yum install ibus-pinyin

猜你喜欢

转载自zdflgl.iteye.com/blog/1828415