联想昭阳E43A笔记本电脑Centos6.2系统配置历程笔记 ——Centos6.2操作系统的安装
建立管理员组内一般用户
[root@localhost ~]# usermod -G wheel vignaos
[root@localhost ~]# vim /etc/pam.d/su
去掉#改成auth required /lib/security/$ISA/pam_wheel.so use_uid
[root@localhost ~]# echo "SU_WHEEL_ONLY yes" >> /etc/login.defs
配置root邮件的转送
[root@localhost ~]# vi /etc/aliases
加入root: yourname@yourserver.com ← 加入自己的邮箱地址
[root@localhost ~]# newaliases
[root@localhost ~]# echo test | mail root
停止打印服务
[root@localhost ~]# /etc/rc.d/init.d/cups stop
停止 cups: [确定]
[root@localhost ~]# chkconfig cups off
[root@localhost ~]# chkconfig --list cups
cups 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭
使用第三方软件库(EPEL与RPMForge软件库)
一、安装yum-priorities插件
[root@localhost ~]# yum install yum-priorities
安装完后需要设置/etc/yum.repos.d/ 目录下的.repo相关文件(如CentOS-Base.repo),在这些文件中插入顺序指令:priority=N (N为1到99的正整数,数值越小越优先)
[base], [addons], [updates], [extras] … priority=1
[CentOSplus],[contrib] … priority=2
其他第三的软件源为:priority=N (推荐N>10)
二、下载与安装EPEL的rpm文件包
32位:http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm
[root@localhost ~]# vim /etc/yum.repos.d/epel.repo 添加priority=11
三、下载rpmforge的rpm文件包
32位:http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
[root@localhost ~]# vim /etc/yum.repos.d/rpmforge.repo 添加priority=12
四、测试升级
[root@localhost ~]# yum check-update
1114 packages excluded due to repository priority protections
[root@localhost ~]# yum update
现在可以用yum install flash-plugin或yum install mplayer命令了
注:后来感觉源有点慢,更换的163源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
http://mirrors.163.com/.help/centos.html
下载CentOS6版本repo文件, 放入/etc/yum.repos.d/
运行yum makecache生成缓存