fedora16配置脚本

辛辛苦苦安装配置的fedora16搞崩溃了,为了配置方便,网上搞了个配置脚本修改了一下,有需要的朋友可添加修改使用,方便大家。使用方法:系统经过软件更新后,打开终端,
su –
在fedora16.sh目录下运行 (或直接点击运行)
sh fedora16.sh
慢慢等吧。。。中间有些要做些选择安装,一段时间后系统用起来就方便多了,当然FCITX,关机按键等还要设置一下。
fedora16.sh内容:
#!/bin/bash

#这是桌面版的配置

REPOS=/etc/yum.repos.d/

#————————————-鉴权

# ‘Fedora 16 自动配置脚本’

# ‘——————————————-‘

# passwd -l root #不用root!

#————————————-开关服务

# ‘关闭 SELinux…’

setenforce 0

# ‘完成,请修改 /etc/selinux/config’

#vi /etc/selinux/config

# ‘完成!’

# ‘启动蓝牙’

systemctl enable bluetooth.service

# ‘完成’

systemctl start bluetooth.service

#————————————-配置软件源

wget http://mirrors.163.com/.help/fedora-163.repo

wget http://mirrors.163.com/.help/fedora-updates-163.repo

cp *.repo $REPOS

yum localinstall –nogpgcheck -y http://mirrors.163.com/rpmfusion … e-stable.noarch.rpm

yum localinstall –nogpgcheck -y http://mirrors.163.com/rpmfusion … e-stable.noarch.rpm

rpm -Uvh http://rpm.livna.org/livna-release.rpm

yum makecache

#————————————-开始安装!

# ‘安装RAR…’

yum install rar unrar #安装RAR

yum install axel

wget http://cnfreesoft.googlecode.com/svn/trunk/axelget/axelget.conf

wget http://cnfreesoft.googlecode.com/svn/trunk/axelget/axelget.py

cp axelget.conf /etc/yum/pluginconf.d

cp axelget.py /usr/lib/yum-plugins

rm axelget.*

# ‘安装 Flash(TM) 插件’

yum install flash-plugin -y

# ‘安装 Chromium 浏览器’

# yum install chromium -y #

# ‘安装字体’

yum install wqy-microhei-fonts -y

# ‘安装配置工具’

yum install gnome-tweak-tool -y

yum install ailurus -y

# ‘安装解码器程序’

yum install gstreamer-ffmpeg –nogpgcheck -y

yum install gstreamer-plugins-ugly –nogpgcheck -y

yum install gstreamer-plugins-bad –nogpgcheck -y

yum install gstreamer-plugins-bad-free-extras –nogpgcheck -y #midi

yum install easytag -y

yum install soundconverter -y

yum install libdvdcss –nogpgcheck -y

yum install mplayer -y

yum install http://download.ppstream.com/linux/PPStream.rpm -y #ppstream安装

wget http://interface-club.12530.com/ … Music_2011Beta1.bin

chmod a+x MiguMusic_2011Beta1.bin

./MiguMusic_2011Beta1.bin

rm MiguMusic_2011Beta1.bin #咪咕音乐安装

# ‘安装Libreoffice中文语言包’

yum install libreoffice-langpack-zh-Hans -y #

# ‘安装anjuta和C++支持’

yum install anjuta automake autoconf gcc-c++ intltool libtool –nogpgcheck -y #

#yum install fcitx -y #五笔

yum install bash-completion -y #命令补完

#yum install gcc-c++ –nogpgcheck -y

# ‘安装Gnome-Shell扩展功能…’

yum install gnome-shell-extensions-alternative-status-menu -y #省得按alt键关机了!

yum install gnome-shell-extensions-user-theme -y #外挂主题支持

yum install gnome-shell-extension-remove-accessibility-icon -y #去掉辅助功能图标

# ‘解决打开TXT乱码’
gsettings set org.gnome.gedit.preferences.encodings auto-detected “[‘UTF-8’, ‘GB18030’, ‘GB2312’, ‘GBK’, ‘BIG5’, ‘CURRENT’, ‘UTF-16’]”

gsettings set org.gnome.gedit.preferences.encodings shown-in-menu “[‘UTF-8’, ‘GB18030’, ‘GB2312’, ‘GBK’, ‘BIG5’, ‘CURRENT’, ‘UTF-16’]”

# ‘尝试升级’

yum upgrade –nogpgcheck -y #

# ‘卸载不需要的软件’

#————————————–卸载

yum remove planner abrt -y

yum remove orca -y

yum remove simple-scan -y

yum remove icedtea-web -y

yum remove vinagre -y

yum remove deja-dup -y

yum clean packages #清除下载的包

# ‘配置完成!’

ppstream这样安装后点节目时会自动退出(系统经过最新更新时),可通过下面操作解决:
下载下面二个文档,解压后
复制ppstream和ppsdaemon到
/opt/pps/bin中
在备份/usr/bin/mplayer
然后将/opt/pps/bin/mplayer
复制到/usr/bin/下即可

转【http://www.linuxdiyf.com/bbs/thread-234719-1-1.html】

转载请注明: 转载自http://jyd.me/

本文链接地址: fedora16配置脚本

Tagged on:

One thought on “fedora16配置脚本

发表评论

电子邮件地址不会被公开。 必填项已用*标注