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


     折騰了好久,在網上查看了好多資料,總算吧安裝好的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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM