折腾了好久,在网上查看了好多资料,总算吧安装好的Fedora 18配置得差不多了,现在将过程记录下来,供以后查看用,同时也许还能帮助到和我遇到同一问题的朋友们,以后再有什么再继续添加吧。

一、添加 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

 

安装完Fedora 18后需要做的事情的更多相关文章

  1. 安装完CentOS 7 后必做的七件事

    CentOS是最多人用来运行服务器的 Linux 版本,最新版本是 CentOS 7.当你兴趣勃勃地在一台主机或 VPS 上安装 CentOS 7 后,首要的工作肯定是加强它的安全性,以下列出的七件事 ...

  2. 安装完CentOS 7 后必做的七件事[转]

    CentOS是最多人用来运行服务器的 Linux 版本,最新版本是 CentOS 7.当你兴趣勃勃地在一台主机或 VPS 上安装 CentOS 7 后,首要的工作肯定是加强它的安全性,以下列出的七件事 ...

  3. 一看就懂的 安装完ubuntu 18.04后要做的事情和使用教程

    一看就懂的 安装完ubuntu 18.04后要做的事情和使用教程原创CrownP 最后发布于2019-02-05 00:48:30 阅读数 2982 收藏展开1.更改为阿里云的源点击软件和更新 点击其 ...

  4. 转载:安装Ubuntu 15.10后要做的事

    转载:安装Ubuntu 15.10后要做的事 原文转载于:http://blog.csdn.net/skykingf/article/details/45267517 Ubuntu 15.10发布了, ...

  5. 安装完Ubuntu 14.04要做的九件事

    www.linuxidc.com/Linux/2014-04/100411.htm 1.看看有哪些新特性 安装完之后的第一件事肯定是看看Ubuntu 14.04有哪些新的特性. Ubuntu 14.0 ...

  6. 安装Ubuntu 14.04后要做的5件事情

    转自安装Ubuntu 14.04后要做的5件事情 Ubuntu目前是世界上最流行的Linux操作系统,它提供了桌面版本和服务器版本,其他流行的Linux发行版本如Linux Mint也是基于Ubunt ...

  7. 安装完sql server 后修改计算机名后不能进行发布的订阅的解决办法

    由于需要需要配置一个发布订阅,可是一直报告:" sql server 复制需要有实际的服务器名称才能连接到服务器,不支持通过别名.ip地址或其他任何备用名称进行连接.请指定实际的服务器名称“ ...

  8. Eclipse安装完findbugs插件后,SVN插件不可用有关问题解决

    Eclipse安装完findbugs插件后,SVN插件不可用问题解决: 安装findbugs插件后,SVN插件就消失了.后来从网上查到解决方案:eclipse/configuration目录下的org ...

  9. 安装完Linux Mint后,发现系统中竟没有中文输入法

    安装完Linux Mint后,发现系统中竟没有中文输入法,语言支持之后自动更新过程中有些安装包下载失败. 可以采取下面的方法安装上中文输入法. 1. 安装iBus: sudo add-apt-repo ...

随机推荐

  1. Linux hostname 主机名篇

    主机名修改(以主机名为config为例) 1.修改文件/etc/sysconfig/network,内容为 [root@config ~]# cat /etc/sysconfig/network# C ...

  2. MyBatis框架 课程笔记

    MyBatis框架 课程笔记   第1章 MyBatis简介 1.1 MyBatis历史 1)MyBatis是Apache的一个开源项目iBatis, 2010年6月这个项目由Apache Softw ...

  3. 如何配置vsftpd服务器

    1,通过yum查看本地是否存在vsftpd rpm -qa|grep vsftpd [root@node2 ~]# rpm -qa |grep vsftpdvsftpd-3.0.2-25.el7.x8 ...

  4. Django中Model进阶操作

    一.字段 AutoField(Field) - int自增列,必须填入参数 primary_key=True BigAutoField(AutoField) - bigint自增列,必须填入参数 pr ...

  5. 最长公共子序列(LCS) Medium1

    In a few months the European Currency Union will become a reality. However, to join the club, the Ma ...

  6. ThinkPHP中的display()和fetch()的区别

    fetch()传入的参数是模板名,用模板文件来输出; display()传入的是字符串,输出传递的内容.

  7. 把excel中的数据导入到Oracle数据库中

    从事工作以来,数据库一直使用oracle,却不知道excel导入oracle,今天看了一篇文章,分享给大家,希望对大家有用. https://jingyan.baidu.com/article/0f5 ...

  8. ie10兼容问题 -- 将div定位absolute在图片img上面,导致div点击事件无效

    ie10兼容问题: 将div定位absolute在图片img上面,发现div若不加背景色,导致div点击事件(任何事件)无效. <div class="paper-box"& ...

  9. Centos 7 Mysql 最大连接数超了问题解决

    错误:Can not connect to MySQL server. Too many connections  -mysql 1040错误 这是因为对 Mysql 进行访问,未释放的连接数已经达到 ...

  10. 神经风格转换Neural Style Transfer a review

    原文:http://mp.weixin.qq.com/s/t_jknoYuyAM9fu6CI8OdNw 作者:Yongcheng Jing 等 机器之心编译 风格迁移是近来人工智能领域内的一个热门研究 ...