您的位置:首页 > Web前端

安装完Fedora 18后需要做的事情

2013-05-23 09:54 330 查看
转自: /article/5704885.html

一、添加 yum 源

1、添加搜狐的源:进入网站http://mirrors.sohu.com/,在左边找到fedora目录,点击该行右边的help,
然后下载fedora-sohu.repo和fedora-updates-sohu.repo, 放入/etc/yum.repos.d/

2、添加163的源:进入网站 http://mirrors.163.com/,在左边找到fedora目录,点击该行右边的使用帮助,然后下载fedora-163.repo和fedora-updates-163.repo,
放入/etc/yum.repos.d/

3、运行yum makecache生成缓存

4、安装添加第三方源:

$ sudo rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm

5、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

6、运行命令

$ ls /etc/yum.repos.d 查看

二、安装 fastestmirror YUM 插件

当YUM源很多时,安装fastestmirror插件可以使得yum从速度最快的yum源下载。

在终端中输入命令:

$ sudo yum install axel yum-plugin-fastestmirror

三、升级系统并重启:

$ sudo yum -y update

四、删除Fedora旧内核

由于Fedora更新升级非常的频繁, 有必要清除旧的内核,方法如下:

1、查看当前系统中已安装的内核相关包:rpm -qa | grep kernel

2、查看当前使用的内核:uname -r

3、确定要删除的内核:

4、删除内核:

$ sudo yum remove kernel-... $(VERSION)---> 会自动移除:/boot/grub/menu.lst 中的相关启动项。

五、删除系统提交bug的软件abrt

$ sudo yum remove abrt*

六、修改hostname主机名

主机名配置由 /etc/sysconfig/network 移至 /etc/hostname

目前在给定系统中存在有三种独立的主机名。计算机主机名(pretty hostname)级别最高,通常根据用户的桌面环境和 shell 呈现给用户。静态主机名(static hsotname)在引导时由内核使用,而且它一般是系统的完全合格域名。系统中可能还有临时主机名(transient hostname),它由 dhcp 服务器分配。hostnamectl 用于这些主机名的管理:

设置 pretty 主机名:hostnamectl set-hostname fedorasystem --pretty

设置静态主机名:hostnamectl set-hostname fedorasystem.example.org --static

设置临时主机名:hostnamectl set-hostname fedora-dhcp-client.example.org --transient

没有参数时,hostnamectl 将接受所有主机名类型:hostnamectl set-hostname fedorasystem.example.org

显示当前主机名设置:hostnamectl status

有关主机名的更多信息请参考 man hostname 和 man hostnamectl

七、时间设置,

1、设置时区 :

$ system-config-date

2、设置NTP时间服务

$ sudo yum -y install ntp

$ sudo vi /etc/ntp.conf  在第19行添加允许接收请求的网络范围

$ sudo restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap

3、设置服务器进行同步

$ sudo server ntp1.jst.mfeed.ad.cn

$ sudo server ntp2.jst.mfeed.ad.cn

$ sudo server ntp3.jst.mfeed.ad.cn

4、启动服务

$sudo systemctl start ntpd.service

$sudo systemctl enable ntpd.service

5、查询一下

$sudo ntpq -p

八、安装些开源字体 避免一些字体乱码:

$ sudo yum install wqy-bitmap-fonts wqy-zenhei-fonts wqy-unibit-fonts wqy-microhei-fonts

九、桌面应用

1、安装和配置GNOME-tweak-tool:sudo yum install gnome-tweak-tool

2、打开gnome-tweak-tool,让桌面显示文件,激活右键等功能。

十、安装鼠标右键"在终端中打开":

$ sudo yum install nautilus-open-terminal

十一、安装一些有用的软件包,可以根据自己的需要进行选择

$sudo yum -y install vim valgrind unrar thunderbird ibus-table ibus-pinyin RedHat-lsb compat-libstdc++-33 NetworkManager-devel python-gevent tracker-ui-tools qemu libpciaccess-devel xorg-x11-util-macros
llvm-devel mtdev* mutt msmtp tftp tftp-server policycoreutils-gui mtd-utils mtd-utils-ubi ckermit stardict stardict-dic-zh_CN stardict-dic-en samba

1、配置samba

$sudo smbpasswd -a -U $USER #设置登陆的用户名和密码

$sudo systemctl enable smb.service #开机启动samba

$sudo systemctl start smb.service #立即启动samba

$sudo systemctl restart smb.service #立即重启samba

$firewall-cmd --add-service=samba --timeout=10 #配置防火墙,让其它电脑能访问你的电脑。

2、下面是一个简单配置示例:

$mkdir /home/public

$chmod 777 /home/public

[share]

comment = Galen's Share

path = /home/public

writable = yes

valid users = your_username # 你可以运行 whoami 查看你的用户

3、配置好后,记得重启samba (sudo systemctl restart smb.service)

十二、安装外源软件包google chrome

google专门为Fedora提供了一个repo,可以手动建立一个repo,再使用命令安装。

1、在 /etc/yum.repos.d/目录下添加google-chrome.repo文件,输入以下代码:

32位系统输入:

[google-chrome]

name=google-chrome - 32-bit

baseurl=http://dl.google.com/linux/chrome/rpm/stable/i386

enabled=1

gpgcheck=1

gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

64位系统输入:

[google-chrome]

name=google-chrome - 64-bit

baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64

enabled=1

gpgcheck=1

gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

2、终端输入如下命令:

$ sudo yum install google-chrome-stable

十三、安装 flash plugin:

$ sudo yum -y install flash-plugin

十四、安装音视频解码器:

$sudo yum install gstreamer-plugins-good gstreamer-plugins-bad gstreamer-plugins-ugly libtunepimp-extras-freeworld xine-lib-extras-freeworld

$sudo yum install gnash smplayer vlc ffmpeg ffmpeg-libs gstreamer-ffmpeg libmatroska xvidcore

十五、更改selinux设置,关闭selinux:

修改/etc/selinux/config ,设置SELINUX=disabled

十六、配置NFS

$sudo systemctl enable nfs-server.service #开机启动NFS

$sudo systemctl start nfs-server.service #立即启动NFS

$sudo systemctl restart nfs-server.service #立即重启NFS

#关闭防火墙, 否则会出现(mount: RPC: Unable to receive; errno = No route to host)

$sudo systemctl status firewalld.service

$sudo systemctl stop firewalld.service

$sudo systemctl disable firewalld.service

十七、Yum 增加自动移除无用依赖包功能

和已经存在一段时间的 remove-with-leaves 插件不同,此次合并入 Yum 本身的无用依赖包移除功能直接通过Yumdb的信息获取依赖关系,无需进行常常出错的额外依赖性检验。包含该功能的 Yum 3.2.28-13已推送 Fedora Rawhide 仓库,安装后在 /etc/yum.conf 中添加cleanrequirementson_remove = 1 选项即可体验

十八、安装剪贴板

使用下面命令安装剪贴板工具parcellite:

$sudo yum install parcellite
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: