SmartPtr
本博客已搬至:http://www.cnblogs.com/baiyanhuang/
posts - 29,comments - 176,trackbacks - 0
By SmartPtr(http://www.cppblog.com/SmartPtr/) 
以下经验均学自于网络

   这几天用下来, ubuntu的确很酷, 去使用,了解,钻研windows之外另一个系统,的确是大有裨益的。当然,要想在linux系统,开发方面有所造诣, 基础的基础应该是先成为一个优秀的的用户。
    Ubuntu默认安装已经提供给了我们许多有用的软件, 让windows用户觉得似曾相识,这包括GNOME这个桌面, OpenOffice系列, PDF阅读器, Gaim通讯工具, Evolution邮件收发,firefox等等等等, 这让我们能在Linux下十分方便的工作,学习,娱乐。
    但是,还是有一些不能尽如人意,尤其是amd64这个"后妈养的".  比如firefox无法显示flash, SCIM中文输入无法快速调出, rmvb格式的文件不能播放, 没有默认的中英字典。。。。。。这些是如此的常用以至于有时为了方便, 不得不切换到windows去做,经过一段时间的使用, 逐步解决了这些问题, 从而把自己从windows上解放了出来。
    一、SCIM
    SCIM全称是Smart Common Input Method, 它是一个输入平台。为了能输入中文, 我们首先需要安装中文输入法, 如下:
sudo apt-get install scim scim-chinese  scim-gtk2-immodule scim-tables-zh
这样, 我们就可以输入中文了, 比如在Gedit中, 右键菜单选择SCIM就可以调出SCIM输入法了。但是此时我们只能在有限的一些输入框中输入中文, 且要通过邮件菜单, 其原因是SCIM并没有作为系统的常驻服务被启动起来, 此时我们可以通过终端输入以下代码来启动:
scim -d
但每次开机后都通过这种方式未免太过麻烦, 我们可以把scim设置为随机启动,这是个好方法, 在windows下设置很简单,我相信在ubuntu下也能成功设置, 但是我用了两个方法, 但都未能成功, 不知大家有很意见,如下:
1) 在/home/<yourname>/.config/autostart/ 目录下新建一个文件(文件名随便) ,内容如下:
Exec=scim -d
X
-GNOME-Autostart-enabled=true
2) 在etc/init.d下新建一个文件输入:
#!/bin/bash
/usr/bin/scim
因为ubuntu的runlevel是2,因此在etc/rc2.d下建一个刚才创建的文件的链接, 链接名以S开头。(S开头表示随机启动, K开头表示不随机启动)

    二、  StarDict
    Star Dictionary, 星际译王, Linux平台下的金山词霸。先安装主程序:
sudo apt-get install stardict
装完主程序, 我们还没有任何辞典, 需要到http://stardict.sourceforge.net/Dictionaries_zh_CN.php下载,选择tarball格式的辞典,把解压后的文件拷到: /usr/share/stardict/dic , 当然, 你首先要把该目录设成可写。

    三、mplayer播放rmvb
    现在的播放器如果不能播放rmvb格式,那它基本就废了。ubuntu默认提供的Totem就无法做到。 为了支持rmvb, 我们使用mplayer播放器, 首先安装播放器:
sudo apt-get install mplayer
再下载针对amd64的codec:
http://www2.mplayerhq.hu/MPlayer/releases/codecs/essential-amd64-20061203.tar.bz2 ,并解压到/usr/lib/win32/ 。 打开mplayer-preference, 把audio输入设为alsa, video设为xv。
    ok, 可以播放了, 但是不能拖动进度条。

    四、flashplayer插件
    如果你的浏览器(firefox)没有falshplayer插件,那么对你来上上网会是件比较痛苦的事情, 因为到处都是框框,但MacroMedia至今并没有提供64位的flashplayer插件,为了能够在amd64下显示flash, 我们需要用一个plugin wrapper在64位系统上运行32插件,步骤如下:
1) 安装基本的32位运行库,因为flasherplayer插件是32位的
sudo apt-get install ia32-libs ia32-libs-gtk linux32 lib32asound2
2) 安装plugin wrapper
下载安装文件
http://gwenole.beauchesne.info/proje...2-1.x86_64.rpm
http://gwenole.beauchesne.info/proje...2-1.x86_64.rpm
因为是rpm格式的,我们需要先用alien将其转换为deb格式,然后安装, 如下:
sudo apt-get install alien
sudo alien nspluginwrapper
-0.9.91.2-1.x86_64.rpm 
sudo alien nspluginwrapper
-i386-0.9.91.2-1.x86_64.rpm
sudo dpkg 
-i nspluginwrapper-0.9.91.2-1.x86_64.deb 
sudo dpkg 
-i nspluginwrapper-i386-0.9.91.2-1.x86_64.deb
3)得到flashplayer插件并配置
http://fpdownload.macromedia.com/get...9_linux.tar.gz 下载并解压到/usr/lib/mozilla/plugins,执行如下命令:
nspluginwrapper -/usr/lib/mozilla/plugins/libflashplayer.so
此时, 在/usr/lib/mozilla/plugins 下产生了一个文件npwrapper.libflashplayer.so,创建一个链接或直接拷贝到/usr/lib/mozilla-firefox/plugins/ 下。
总算完了, 打开firefox享受一下吧。

由于经验有限, 以上设置只能说能在我的机子上成功, 如果大家在使用时有什么问题, 欢迎讨论。

posted on 2007-09-26 00:32 SmartPtr 阅读(3158) 评论(8)  编辑 收藏 引用

FeedBack:
# re: Ubuntu & AMD64 常用软件安装
2007-10-16 15:57 | 雨中芭蕉
flasheplayer总是提示安装失败!郁闷啊!
  回复  更多评论
  
# re: Ubuntu & AMD64 常用软件安装
2007-10-24 22:54 | SmartPtr
你的错误提示是什么呢  回复  更多评论
  
# re: Ubuntu & AMD64 常用软件安装
2008-05-12 08:51 | jifengcao
不能拖动进度条是因为你少安装了一个库,用console打开时会提示  回复  更多评论
  
# re: Ubuntu & AMD64 常用软件安装
2008-06-23 15:33 | haiyusimon
我的mplayer还是放不了rmvb阿??错误:initializing the selected video_out(-vo device)   回复  更多评论
  
# re: Ubuntu & AMD64 常用软件安装
2010-08-02 14:05 | McfarlandMarion20
When you're in not good state and have got no money to move out from that point, you would have to take the <a href="http://bestfinance-blog.com">loans</a>. Because it should aid you for sure. I get collateral loan every year and feel myself great just because of it.   回复  更多评论
  
# re: Ubuntu & AMD64 常用软件安装
2010-08-23 04:30 | coursework
It can be simple to satisfy your writing needs if you buy custom coursework at masters coursework writing organization.   回复  更多评论
  
# re: Ubuntu & AMD64 常用软件安装
2011-07-06 19:30 | dissertation
It is a best theme just about study. Some people dream about such perfect talent. But they should buy the dissertation projects suggested by the distinguished dissertation writing service.  回复  更多评论
  
# re: Ubuntu & AMD64 常用软件安装
2011-07-06 20:53 | buy custom essay papers
Present time supposes to be toiling. Thence, how can college students find some time for essays finishing? They surely need certified assistance! For example, they have an opportunity to buy custom essay.   回复  更多评论
  

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理