Skip navigation.

Sign up | Lost password? | Help

Beyond the Sky

The place where surface stop and share the experience of life

Posts tagged with "edgy"

Firefox 2.0.0.1 for Ubuntu

, , , ...


Ubuntu do not upgrade your firefox, at least until now still no update from my repository. Firfox released 2.0.0.1 which fix some security bugs, which I think is important. Luckly, you can download from firefox official website, and it works nice.

Pick your preferal language and download it from http://www.mozilla.com/en-US/firefox/all.html

For simple steps after download, you can do it with gnome terminal

sudo tar -zxvf firefox-2.0.0.1.tar.gz -C /opt/


Try out the new firefox first, check the version.
/opt/firefox/firefox


If it is working fine with all your data, now backup the old symlink and create a new symlink to your new firefox
sudo mv /usr/bin/firefox{,-old}
sudo ln -s /opt/firefox/firefox /usr/bin/firefox


If your firefox is not under /usr/bin, check it out where it come from
which firefox


Check whether is it symlink
ls -l `which firefox`


References:
Check out more command line examples at http://lne.blogdns.com/lbe
Symlink example - http://lne.blogdns.com/lbe/archives/19/how-to-create-symlink/
which example - http://lne.blogdns.com/lbe/archives/category/common/which/

Movie subtitle editor, ksubtile

, , , ...


I was wasting all my time yesterday night, trying to find a way to correct the subtitle of a french movie. Some of us may always need subtitle, but sometimes the downloaded movie (oops!) do not sync well with subtitle we can obtain from the net which usually rip from DVD.

My case was, I need subtitle coz i can't understand french. I have few subtitle, which one of them is in correct sync, means the timing is correct. But unfortunately, the one is not english subtitle. I search from the net try to find alternatives subtitle which I can't find the ONE that sync.

Therefore, first thing come into my mind is, write a bash script to copy the correct timing from one subtitle file and copy the english subtitle from another then pasted one new file. I failed to do that, because the sequence of the line skipping is not always the same. (Donno what am I talking about? Forget about it, main point is I failed.)

At last, I search for subtitle editor, I should have done first! I find a good tool, "ksubtile". Okay, the name is funny, and it is KDE based application. But it works! because I just want to change the timing. There is a gnome app for that too, but I couldn't find it in my repo, so give up.

Try ksubtile, its easy! I have correct my subtitle timing less then 5 seconds with ksubtile.

Bellow are imported screenshot, not mine, I am using fluxbox :smile:

skype do not cope well with scim

, , , ...

If you use scim for input, and you want to work with skype, you need to get skype-static. Skype will not work, you will get core dump if you default input is scim! I just wanna cut it short, if your default input is scim, download skype-static from http://www.skype.com/go/getskype-linux-static

You will get a file with filename such as skype_staticQT-1.3.0.53-generic.tar.bz2, then unzip it and do as follow:

Extract to a location, example
sudo tar xjvf skype_staticQT-1.3.0.53-generic.tar.bz2 -C /opt


Make a symlink
sudo ln -s /opt/skype-1.3.0.53/skype /usr/bin/skype


Thats it!

Better Support for Chinese in Ubuntu Edgy

, , , ...

I am too sleepy when I write about Ubuntu Edgy, chinese input in en_US.UTF8 local, why fcitx is better than scim. After chatting and making friends with people at #ubuntu-cn, I have learn how to makes my Ubuntu Edgy support chinese better.

What is better? Ubunutu Edgy by default support chinese viewing, which means you can read chinese website by using firefox, and maybe you can read some text file in chinese. Observed and discover or not, the characters of chinese are ugly by default. The size of the character is not equal, and sometimes some character might be missing or appear in noisy symbolic. Check this screenshot for an example of ugly looking chinese viewing. Ignore the album arts and Amarok.

By default, no chinese input support. Okay that is no big deal, simply install scim and it will works fine. But if you didn't set it properly, you won't feel nice while writing in chinese. Again, some charater is missing, not in a nice shape and not equal size.

You can login to chinese locale gnome, and it maybe makes you feel be better. But all your menu wordings will be in mandarin, which It is not my preference, I do not like it at all. I want to login my default locale but with chinese locale support too.

Thing I hate the most is, xmms no not support chinese viewing. It doesn't seems to work no matter how I configure and I was really gave up but finally I had found the solution and make it right.

If you are looking to solves anyone of those, read further. But bare in mind, the solution bellow might be missing some steps, because I have apt-get a lots of packages while trying. I might miss out some of the steps, please inform me if you discover any.

First, apt-get some chinese locale.
sudo apt-get install language-pack-zh language-support-zh zh-autoconvert


Second, apt-get some chinese fonts.
sudo apt-get install  xfonts-intl-chinese xfonts-intl-chinese-big ttf-arphic-bkai00mp ttf-arphic-bsmi00lp ttf-arphic-gbsn00lp ttf-arphic-gkai00mp


Search for more chinese fonts using apt-cache, and download this one, you really need this one, much much nicer.
sudo apt-get install xfonts-wqy

The full name of this font is call "WenQuanYi Bitmap Song 12", use it, it is a very nice font.

Okay, now can install scim.
sudo apt-get install im-switch libapt-pkg-perl scim-chinese scim-gtk2-immodule scim-qtimm scim-pinyin scim-tables-zh scim-modules-socket scim-modules-table


Play some trick to make scim as a default input for everything.
sudo im-switch -s scim -z default


Okay! This step is going to make your chinese characters looks better! Equal size and nice!
sudo fontconfig-voodoo -f -s zh_CN


What the heck? too simple isn't it? Re-login and have a nice feel first. Oh wait! bookmark this page first, you still need to read further later.

------ Re-login --------

Okay, check out your locale,
locale -a


You should have this two ,"en_US.utf8" and "zh_CN.utf8", you should have more, but at least must including this two. Okay, you are almost done. Anything else? emm... to trigger scim for insert chinese input, press ctrl+space. To temporary turn off chinese input and switch to english, press shift and release (scim-pinyin must triggered for that) and vice versa.

Do you still want your xmms to support chinese viewing or not? Yes, further down.

This is a bit tedious, but it is not difficult.
Check whether you have this file /etc/gtk/gtkrc.zh_CN, if do, copy over with another name.
sudo cp /etc/gtk/gtkrc.zh_CN /etc/gtk/gtkrc.zh_CN.utf-8 


Then goto the font setting at xmms preference and paste this,
-adobe-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1,-*-*-medium-r-normal--16-*-*-*-*-*-gb2312.1980-0,*-r-* 


Before paste it, copy and backup the original one, in case you want to put back. If you don't have that file /etc/gtk/gtkrc.zh_CN, create it and paste the line bellows
 # $(gtkconfigdir)/gtkrc.zh_CN
 #
 # This file defines the fontsets for Chinese language (zh) using
 # the simplified chinese standard GuoBiao as in mainland China (CN)
 #
 # 1999, Pablo Saratxaga <pablo@mandrakesoft.com>
 #

 style "gtk-default-zh-cn" {
        fontset = "-adobe-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1,\
                  -*-*-medium-r-normal--16-*-*-*-*-*-gb2312.1980-0,*-r-*"
 }
 class "GtkWidget" style "gtk-default-zh-cn"


Not yet can view correctly? you need another step.

Download this,
sudo apt-get install xmms-mpg123-ja


After that, check out your xmms preference at audio-plugin, disable xmms-mpg123 and enable xmms-mpg123-ja and then configure xmms-mpg123-ja, switch to "title" tab. Uncheck the disable-id3v2 and select convert input from GB2312 to UTF-8.

Okay, you should be able to view chinese in xmms. If in the case you still can't, it might be your chinese character in id3 have corrupted, rewrite it.

Something I am not cover at this post:

I haven't try chinese input at open office suit, so I have no idea whether will it trigger any problems or not. If you face any problem on that, consider search on keyword "scim-bridge".

Latest Screen shot!

, , , ...

Its been awhile I didn't post my screen shot. This screen shot is about the joy with Amarok and support chinese in en.UTF locale.



Click to see it in real size.

Upgrade to Edgy, nightmare!

, , , ...

Nowadays I am so lazy to blog at here, I usually post up examples at LBE. But for this incident I have to put here.

DON'T UPGRADE TO EDGY IF YOU FEEL COMFORTABLE TO DAPPER.

If anythings goes correctly you have no problem, if you make a mistake, you are dead meat! I screw up when upgrade. Ya one thing, never go and sleep and leave the installation goes. I left my online upgrade running and I sleep yesterday night. When I wake up and so excited, I type my password on screensaver and log in to a new instant of desktop instead of login back to the current login.

I didn't realized that my GUI upgrade program is still not complete, refers to toydi, the upgrader will ask you series of question whether to replace all the stuff or not. That is so idiot, sure i wanna upgrade and replace... haih!

Then I restart my fresh edgy, its gone. the kernel and many configurations are not setup completely. Anyway install fresh edgy is fun! while installing edgy, you still can online in the live cd environment. What kind of installation allow you to do that? Windows never allow you to do that!

Okay fresh install done in a short while, now i am buzying install the programs i need to use, And i discover more stupid stuff such as I need to install vim-full, firefox flash plugin problem etc.

November 2009
S M T W T F S
October 2009December 2009
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30