当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > Fedora Core 8中yum设置

Unix/Linux
linux查看内存的大小
在linux下写的代码,用的是utf-8,结果拿到XP下运行的时候,所有的中文都成乱码
linux su和sudo命令的区别
linux cron 下的定时执行工具使用技巧
linux 查找进程及终止进程操作的相关命令
redhat linux 安装 gcc编译器
Linux Mplayer播放各种格式的电影
一起回顾一下linux常用命令
Linux 网站项目发布要做哪些配置
linux SSH配合SecureCRT的密匙完美使用方法
GD 编译出错解决方法
Facebook Open Platform编译FAQ
Linux 系统硬盘 优化
linux 挂载详解
linux crontab定时命令
Linux 系统中确保访问三级域名畅通的方法
Linux 特权帐号VS普通帐号
确保Linux系统安全的前提条件 漏洞防护
Linux 监视系统资源使用率
Red Hat Linux上使用BIND建立DNS服务器

Unix/Linux 中的 Fedora Core 8中yum设置


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-15   浏览: 36 ::
收藏到网摘: n/a

推荐安装时选择中文,即使你喜欢用英文界面的操作系统,例如我,因为要是默认用英文安装的话,很多中文字体不会装上,中文输入法也不会装上,后期设置很麻烦。用中文语言安装后,进如系统,将语言设置成英语即可实现英文操作系统,再在系统设置下就可以在英文环境下用中文输入法了,设置如下:


 

现在设置源吧,首先你要google一下livna的源,把 它加进去 。如下:

su
Password:
# rpm -ivh http://rpm.livna.org/livna-release-8.rpm

安装fastestmirror插件。

yum install yum-fastestmirror

好了,该到设置yum了:

gedit /etc/yum/yum-updatesd.conf

其配置如下:

[main]
# how often to check for new updates (in seconds)
run_interval = 604800

#多久检查更新,我设置成了7天

# how often to allow checking on request (in seconds)
updaterefresh = 600
#更新刷新周期,这个是为了避免服务器负担太重,建议保持默认,或者设置大点。

# how to send notifications (valid: dbus, email, syslog)
emit_via = dbus
# should we listen via dbus to give out update information/check for
# new updates
dbus_listener = yes
#以下三项为:是否自动安装更新,是否自动下载更新,是否自动下载依赖,建议全部设置成no,否则系统会在后台自动更新,导致前台的所有安装和更新程序被锁死。

# automatically install updates
do_update = no
# automatically download updates
do_download = no
# automatically download deps of updates
do_download_deps = no

设置fastestmirror

默认的fastestmirror并不是每次都能找到最快的源。

要进行一点算是优化的设置

gedit /etc/yum/pluginconf.d/fastestmirror.conf

配置如下:

[main]
enabled=1
verbose=0
socket_timeout=1
hostfilepath=/var/cache/yum/timedhosts.txt
maxhostfileage=1

#设置成1,即每一天刷新一次镜像的速度

maxthreads=15
#exclude=.gov, facebook

做了如上设置后也许你还是连不上最快的镜像,这时就要RP和刷新了

yum clean all

这样可以清除镜像的记录,让yum重新刷新

看下system monitor里面的网卡速度,平均100K,比设置前的3~4K快多了

试着装个MPLAYER:
yum install mplayer mplayer-skins mplayer-fonts mplayerplug-in mplayer-gui
不过我们需要将解码器拷贝到/usr/lib/codecs当中去,如果你安装的路径不是这个,你可以在终端下用MPLAYER  播放试试它报的错误就有路径