红联Linux门户
Linux帮助

新手安装fedora21

发布时间:2015-01-23 17:08:08来源:红联作者:batle007
[font=楷体_GB2312]同要钱的windows相比,fedora有说不尽的优势,感谢本论坛各位大侠的帖子,本人一直用fedora作为主要系统,现将各位大侠帖子精华选出,供同我一样的新手参考。
一、系统安装
在官方下载ISO镜像刻盘,注意校验,否则可能安装不成功。新手暂时不要硬盘安装或者优盘安装,否则很可能打消您的积极性。fedora21先是通过光盘启动,然后桌面上有“安装到硬盘”(英文)的提示,双击,开始了。注意选择“中文”,喜欢英文的安装后可以修改语言。到了硬盘分区的时候,注意一下不要选择自动,自己手动分区,也不要它默认的方式,选择“标准分区”,以后升级的时候可以不要格式化“/home”,数据得以保持。现在硬盘超大,可以铺张浪费,点击分区界面下面的“+”号开始分区:/boot为1G(当然200M就够了);/为50G;/home越大越好;/swap为内存的2倍。比较麻烦的引导方式新手不用考虑,因为有免费程序easybcd,有两块硬盘实在不知道怎么安装引导程序的,在windows中安装easybcd,想怎么引导就怎么引导。
二、配置
1、安装各种源
Fedora 14的源:
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-14.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-14.noarch.rpm
Fedora 15的源:
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-15.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-15.noarch.rpm
Fedora 16的源:
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-16.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-16.noarch.rpm
Fedora 17的源:
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-17.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-17.noarch.rpm

Fedora 18的源:
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-18.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-18.noarch.rpm

rpm -ivh \
http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
rpm -ivh \
http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
2、更新块的插件及yum的图形客户端
yum install yum-plugin-fastestmirror yumex axel presto -y
3、gnome3优化工具
yum install gnome-tweak-tool nautilus-open-terminal -y
4、停止SELinux
(1)vi /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#
enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX= disabled # change

# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

(2)以root身份编辑/etc/selinux/config文件,更改其中的SELINUX项的值就可以关闭和启用SELinux服务了。
修改成 SELINUX=disable 禁用SeLinux
修改成 SELINUX=enforcing 使用SeLinux
如果只是想临时关闭selinux,可以在终端中输入:$ sudo setenforce 0
5、多系统改变启动顺序
sudo gedit /boot/grub2/grub.cfg命令,然后找到set default="0"这一行,如果你安装的是xp和fedora双系统并且默认的是fedora启动,那么把“0”改成“1”就可以了,然后保存退出
6、各种用得上的软件
yum install mplayer mplayer-gui mplayer-fonts mplayerplug-in mencoder compat-libstdc++-33 -y

yum install qt4* -y
yum install smplayer* gnome mplayer* -y

yum install chmsee -y
yum install stardict* -y


yum install compiz* ccsm* fusion-icon awn-* emerald -y
yum install ccsm*
yum install fusion-icon
yum install fusion-icon*
yum install awn-*
emerald
yum install compiz-bcop compiz-devdl compiz-fusion-gnome compiz-fusion-plugins-extracompiz-fusion-plugins-main-devel compiz-gnome ompiz-manager compiz compiz fusion icon compizconfig-settings-manager libcompizconfig-backend-gconflibcompizconfig-devdl libcompizconfig python-compizconfig compiz-emerald-devel compiz-emerald-themes compiz-emerald
7、关闭UTC时间(这个会导致win7双系统时,两个系统时间总有一个不对的),用命令:
sudo system-config-date
8、gedit打开文件乱码
方法一:
终端输入命令:
$ 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']"
方法二:
安装dconf-editor(gconf-editor的升级版):
终端中输入命令:$ sudo yum install dconf-tools
终端中输入命令:$ dconf-editor
依次点开->org->gnome->gedit->preferences->encodings
在auto-detected的value项中加入'GB18030', 写在第二位;
在shown-in-menu的value项中加入'GB18030', 写在第二位。
(对应着方法一中括号中的值)
(在fedora14及之前的版本中在终端中输入命令:$ sudo yum install gconf-editor安装gconf-editor,然后输入命令:$ gconf-editor 依次点开apps->gedit-2->preferences->encodings 中的auto-detected,在双击弹出对话框中加入GB18030,GBK,GB2312就可以了)
9、vim是vi的加强版,可以高亮显示程序源码中的函数变量等。
在终端中输入命令:$ sudo yum install vim
安装完成。
10、安装显卡驱动升级内核进不系统
Alt+Ctrl+F2进入命令界面
删除/etc/X11/xorg.conf文件
重启。

11、fedora21可以直接进入root,进入后,把/home改成自己这个用户的。
12、各种好玩的桌面,在YUMEX里面选。

[/font]
文章评论

共有 3 条评论

  1. cyszzbd 于 2015-09-22 09:45:30发表:

    谢谢楼主分享

  2. Saroth 于 2015-01-31 16:51:25发表:

    感谢分享经验~

  3. satisfy 于 2015-01-24 09:36:10发表:

    经验之谈啊,/boot不是做服务器都不需要分的现在