联想昭阳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生成缓存

 

转载于:https://www.cnblogs.com/vignaos/archive/2011/12/25/2300747.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值