最近比较无聊,因此在在家里补习一下英语。找到一个不错的网站http://www.wwenglish.com,里面很多免费的资源。里面很多资源都需要realplay播放的。其中有些是rtsp的资源。以前忙一直没有没有时间好好配置firefox,今天刚好配一下。
如果想播放各种格式的文件。首先需要考虑的是mplayer,ubuntu的源上有,安装了以后再安装一下w32codecs,基本上各种文件都可以播放全了。还有一个考虑就是realplayer,我是两个都安装了。不管是从源安装还是下载了文件安装,都注意需要修改realplayer文件。在#!/bin/sh下一行添加一行export GTK_IM_MODULE=xim,就像这样:
#!/bin/sh
#add by erjing for SCIM have conflict with realplayer
export GTK_IM_MODULE=xim
安装全部过程:
sudo apt-get install realplayer
sudo apt-get install mplayer
sudo apt-get install w32codecs
然后启动firefox,在浏览器里输入:
about:config
这个时候可以出现一个配置界面,添加如下两个新值:
network.protocol-handler.app.rtsp
/usr/bin/realplay
network.protocol-handler.app.mms /usr/bin/gmplayer
意思就是rtsp:用realplayer播放,mms:用mplayer播放。
在打开链接时会出现一个提示,保存一下确认就可以了。
说简单点,我的Ubuntu一直使用UTF-8,原因简单:标准,在wine下也好用。
这里从别人那边复制过来一篇emacs的设置,设置utf-8。
#.emacs
;; For my language code setting (UTF-8)
(setq current-language-environment "UTF-8")
(setq default-input-method "chinese-py")
(setq locale-coding-system ‘utf-8)
(set-terminal-coding-system ‘utf-8)
(set-keyboard-coding-system ‘utf-8)
(set-selection-coding-system ‘utf-8)
(prefer-coding-system ‘utf-8)
;; get around the Ctrl+SPACE key binding for inputing method
(global-set-key "\C-cm" ’set-mark-command)
;; highlight marked region
(transient-mark-mode t)
;; enable syntax highlight
(global-font-lock-mode t)
;; show column number on status bar
(setq column-number-mode t)
;; close toolbar
(tool-bar-mode)
;; enable mouse wheel support
(mouse-wheel-mode)
(put ‘upcase-region ‘disabled nil)
如果希望用scim在emacs里面输入中文,简单的方法就是运行emacs -nw,这样是在终端模式下使用emacs,scim可以输入没有问题。
还有就是安装mule-ucs
sudo apt-get install mule-ucs
可以直接用Ctrl+\调用拼音输入法,不过我认为没有人会喜欢这个内置的输入法的。
不建议大家使用gb2312 or GBK编码,个人认为国际化一些比较好。自己用起来也方便。