歡迎您光臨本站 註冊首頁

我的FC8安裝配置之路-菜鳥篇

←手機掃碼閱讀     火星人 @ 2014-03-25 , reply:0

小弟也是剛接觸linux,以下便是我安裝FC8的全部過程及配置過程,希望對新手有幫助,也是為了自己留個記錄。
我把FC8安裝鏡像文件放在E盤(FAT32),把系統裝在F盤(FAT32)。
一。WINGRUB的安裝配置
首先我們找一個FAT 32的分區,把下載下來的ISO直接放到分區的下面,不要放在任何目錄中;
2]還是在這個分區,建一個目錄,比如是linux,從下來下來的第一張ISO中isolinux中抽取 vmlinuz 和 initrd.img 兩個文件,放到linux目錄中;

配置 grub
簡單的 menu.lst 配置 linux 引導說明;通過menu.lst ,我們可以配置 Linux的啟動和引導;不只是安裝的引導,也可以引導已經安裝好的Linux系統;語法結構有下的四條

格式
title fc4install
root (hd0,1)
kernel (hd0,1)/linux/vmlinuz
initrd (hd0,1)/linux/initrd.img
title 這行就是我們在開機時,所看到的菜單 ,顯示的就是 fc4install ,要加在 title 的後面,title是必須保留的,是grub的語法的標籤 ,我們可以在title 後面寫我們想要加的東西,這是自己可以定義的,比如 title fc4setup也是可以的;
root (hd0,1) 這行能用 以root開頭,然後加一個空格,至於您把vmlinuz和initrd.img 放在哪個分區了,用打開 wingrub,點tools =》partioinlist (分區列表) 中查到
kernel 這行,以kernel 開頭,然後加一個空格,主要說的是vmlinuz文件放在哪個分區,哪個目錄了;除了kernel 後面有一個空格外,在這行中,其它地方沒有空格;這行說的是我們用放在(hd0,1)分區下的linux目錄中的kernel 來內核來啟動;
initrd 這行, 和 kernel 那行類似;沒有什麼難的,自己的文件放在哪個分區,哪個目錄了,自己最知道吧;
詳見
http://www.blog.edu.cn/user4/plumsoup/archives/2007/1871195.shtml



裝好grub后就可以硬碟安裝了


二。添加YUM
Fedora8教育網源的配置

1.用root登錄,進到/etc/yum.repos.d里,把裡面的文件刪除(注意刪的時候做好備份啊!),然後建立一個叫edu.repo的文件,名字隨便起,但是後綴要是repo。

然後在文件里添加一下內容:
複製內容到剪貼板
代碼:
[updates]
name=Fedora updates
baseurl=ftp://ftp.sjtu.edu.cn/fedora/linux/updates/$releasever/$basearch/
enabled=1
gpgcheck=0
[fedora]
name=Fedora $releasever - $basearch
baseurl=ftp://ftp.sjtu.edu.cn/fedora/linux/releases/$releasever/Everything/$basearch/os/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
file:///etc/pki/rpm-gpg/RPM-GPG-KEY
然後保存。

2.在終端下輸入:yum makecache
3。安裝 yum-fastestmirror 插件

yum install yum-fastestmirror -y
4.安裝圖形化的yum
yum install yumex
詳見:
http://www.linuxdiyf.com/bbs/thread-71524-1-9.html





三。MPLAYER安裝
用YUM安裝好。
就OK但會有可能會出現以下些錯誤:

錯誤1.Fedora 8下Mplayer不能播放rmvb的解決方法
詳見:
http://www.linuxdiyf.com/bbs/thread-71179-1-10.html

故障原因:yum方式安裝了mplayer。下載了all -codecs解碼包,解壓到readme中所說的/usr/local/lib/codecs/目錄仍然不能播放rmvb。只有聲音沒有圖像,提示 Cannot find codec matching selected -vo and video format 0x30345652。其實mplayer官方的解碼包名稱模糊,all-codecs並不含有rmvb解碼所需的全部解碼器。另外由於非源碼安裝的mplayer路徑並不是/usr/local/lib/codecs/。

解決方法:正確安裝適用64位系統的解碼器

解決步驟:
1、從http://www.mplayerhq.hu/MPlayer/releases/codecs/下載下面四個文件
all-20071007.tar.bz2
essential-amd64-20071007.tar.bz2
windows-all-20071007.zip
windows-essential-20071007.zip

2、在命令行模式下用mplayer播放一個rmvb格式的文件,注意查看出錯信息,看mplayer是從哪兒讀取的插件。

我的出錯信息如下
複製內容到剪貼板
代碼:
Opening video decoder: [realvid] RealVideo decoder
Error: /usr/lib64/codecs/drvc.so: cannot open shared object file: No such file or directory
ERROR: Could not open required DirectShow codec drvc.so.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
ERROR: Could not open required DirectShow codec drvc.dll.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
Error: /usr/lib64/codecs/drv4.so.6.0: cannot open shared object file: No such file or directory
ERROR: Could not open required DirectShow codec drv4.so.6.0.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
ERROR: Could not open required DirectShow codec drv43260.dll.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
Error: /usr/lib64/codecs/drvc.bundle/Contents/MacOS/drvc: cannot open shared object file: No such file or directory
ERROR: Could not open required DirectShow codec drvc.bundle/Contents/MacOS/drvc.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Cannot find codec matching selected -vo and video format 0x30345652.
Read DOCS/HTML/en/codecs.html!
所以我的mplayer解碼目錄是/usr/lib64/codecs
3、將上述4個文件解壓到你自己的mplayer提示目錄即可(例如,我的系統就將4個文件解壓到/usr/lib64/codecs目錄)。
注意事項:
1、實際上播放rmvb只要幾個文件,將所有的解碼器放在一起是防止播放其他文件出現類似問題。
2、所有的文件直接在codecs目錄下,而不是在codecs/all-20071007等類似目錄下。






錯誤2:Could not open required DirectShow codec drv4..so.6.0
解決:
詳見:
http://www.linuxdiyf.com/bbs/thread-72529-1-2.html

ERROR:Could not open required DirectShow codec drvc.so
Linux Fedora8 環境下運行Mplayer出現提示:
ERROR:Could not open required DirectShow codec drvc.so.」錯誤
運行:
ldd /usr/lib/codecs/drvc.so
得到

ldd /usr/lib/codecs/drvc.so
linux-gate.so.1 => (0x00110000)
libstdc++.so.5 => not found
libc.so.6 => /lib/libc.so.6 (0x00162000)
/lib/ld-linux.so.2 (0x008ea000)

發現到:libstdc++.so.5 => not found

OK,yum install libstdc++.so.5

在/usr/lib/win32里找到drvc.so、drv2.so.6.0、drv3.so.6.0、drv4.so.6.0,
把這四個文件copy到/usr/lib/codecs文件夾下,
再到shell分?e運行:
1#chcon -t textrel_shlib_t /usr/lib/codecs/drvc.so
2#chcon -t textrel_shlib_t /usr/lib/codecs/drv2.so.6.0
3#chcon -t textrel_shlib_t /usr/lib/codecs/drv3.so.6.0
4#chcon -t textrel_shlib_t /usr/lib/codecs/drv4.so.6.0





錯誤3:MPLAYER雙擊不能打開文件
mplayer雙擊打開含中文路徑文件的解決方法,
前輩們都說修改一下mplayer.desktop,可是我找不到mplayer.desktop文件
方法如下:在需要打開的文件右鍵-屬性-打開方式
單擊添加,在"使用自定命令",輸入gmplayer %f -utf8,添加,選中成為默認的打開方式即可
此方法的缺點就是不同擴展名的文件需要重新設置,比如rmvb設置完了,運行avi的文件需要在重新設置,都設置完問題就解決了,呵呵
詳見:
http://www.linuxdiyf.com/bbs/thread-72446-1-3.html


至於打開MPLAYER后還有問題要看看設置裡面。打開mplayer,右鍵選擇「preferences,進行相關的聲頻和音頻更改。







四。安裝CHMSEE
YUM INSTALL chmsee
仍舊打不開是和firefox的庫文件有關。到/etc/ld.so.conf加如一行:
/usr/lib/firefox-2.0.0.10
保存后執行/sbin/ldconfig
詳見:
http://www.linuxdiyf.com/bbs/viewthread.php?tid=71087


至於聊天,FC8自帶的pidgin就可以。QQ等不上的話該下密碼就好了。

[火星人 ] 我的FC8安裝配置之路-菜鳥篇已經有534次圍觀

http://coctec.com/docs/linux/show-post-167828.html