使用原版的Firefox,主要解決flash播放問題
有 些朋友可能嫌ubuntu版的firefox更新太慢,也可能是不喜歡那個logo,或者乾脆就是喜歡“原汁原味”的firefox。這樣的話,就要自 己安裝和設置firefox,小弟經過奮戰,終於摸索出一套方案,不敢私藏,特拿出來,與大家分享。由於小弟才疏學淺,難免有疏漏之處,還請各位海涵。 (注意:代碼可能在不同的情況下要修改,例如軟件包的版本,必須和你下載的符合,而不一定要符合我的,所以請不要照搬)
- 到http://www.mozilla.com/firefox/下載firefox。
- 解壓至/opt
代碼:
tar zxvf firefox-1.5.0.7.tar.gz -C /opt
- 設置圖標
代碼:
sudo cp -f /opt/firefox/icons/mozicon128.png /usr/share/pixmaps/firefox.png
- 製作桌面圖標
代碼:
sudo gedit /usr/share/applications/firefox-1.5.0.7.desktop
粘貼以下內容到gedit窗口,並保存
代碼:
[Desktop Entry]
Encoding=UTF-8
Name=Firefox Web Browser 1.5.0.7
GenericName[zh_CN]=火狐瀏覽器
Comment=Firefox web browser
Exec=/opt/firefox/firefox %u
Icon=firefox.png
Terminal=false
Type=Application
StartupWMClass=Firefox-bin
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;
Categories=Network;Application;
現在,可以從“應用程序”-->“Internet”-->“Firefox Web Browser 1.5.0.7”啓動firefox
- 到http://www.adobe.com/shockwave/downl...ShockwaveFlash
下載install_flash_player_7_linux.tar.gz。將文件解壓。
代碼:
tar zxvf install_flash_player_7_linux.tar.gz -C /tmp && cd /tmp/install_flash_player_7_linux
把flashplayer.xpt和libflashplayer.so移至/opt/firefox/plugins
代碼:
sudo cp flashplayer.xpt /opt/firefox/plugins && sudo cp libflashplayer /opt/firefox/plugins
重啓firefox,應該就可以播放flash了。
- 有的人可能能播放的事後沒有聲音。在終端下輸入
代碼:
sudo ln -s /usr/lib/libesd.so.0 /usr/lib/libesd.so && ln -s /tmp/.esd-1000 /tmp/.esd
重啓firefox即可!
另外,建議在第一次啓動firefox前先把ubuntu版的firefox刪掉。