$ mplayer -ass -sub subtitle.ass file.avi
# update-alternatives --config editor
There are 7 alternatives which provide `editor’.
+ 2 /bin/nano
* 4 /usr/bin/vim.basic
Press enter to keep the default[*], or type selection number: 6
$ sudo visudo
Look for line begins with Defaults, and append insults to the end.
Save it, and clear the sudo session (sudo -K), and try sudo with a wrong password. 🙂
Normally, I would install Scim and Anthy for Japanese input method on Debian. Recently, I found an easier way to achieve the same thing, which is to use IBus instead of Scim.
- Install ibus: sudo apt-get install ibus ibus-anthy ibus-gtk
- From the menu, System -> Preferences -> IBus Preference
IBus Preference should detects that you have run IBus daemon yet, click “Yes” to run it.
- You’ll be asked to edit yoru .bashrc and add the following 3 lines:
export GTK_IM_MODULE=ibus export XMODIFIERS=@im=ibus export QT_IM_MODULE=ibus
- Click on “Input Method” tab, if you don’t see “Japanese – Anthy” listed under the Input Method list, select “Japanese -> Anthy” from the “Select an input method” drop down list, then click Add.
- You might want to restart X (logout and log back in)
- Open a text editor, and hit Ctrl + Space to toggle the Japanese input method
Reference: Japanese Input with Karmic?
Thanks to Jayen, there is a better way:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.10
$ cat /etc/issue
Debian GNU/Linux squeeze/sid \n \l
$ cat /proc/version
Linux version 2.6.32-trunk-686 (Debian 2.6.32-5) (email@example.com) (gcc version 4.3.4 (Debian 4.3.4-6) ) #1 SMP Sun Jan 10 06:32:16 UTC 2010
I just installed Ubuntu 9.10 on my desktop. When I tried to play some mp3 files with Amarok 2.2.0, it didn’t make any sound though it played ogg without a problem.
Thanks to this post, mp3 play back can be enabled by installing libxine1-ffmpeg.
$ sudo apt-get install libxine1-ffmpeg
There are probably a gazillion ways to do this. I use FAAC, Freeware Advanced Audio Coder, to do this job.
It works very well:
faac originalfile.wav -o outputfile.m4a