Skip to main content

Posts

Showing posts with the label desktop

Toggle btw compiz&metacity with fusion-icon in Ubuntu Hardy

Since gusty, compiz-fusion will start by default. I love eye candy but for resource shortage reason on my old box, sometime i need to switch to metacity. with alt-f2 and run 'metacity replace' is just work but not convenion. Thank for Tom that point me . Fusion-icon is use to switch between compiz and metacity window manager. For hardy, fusion-icon is in repos. installation is easy like pnix@pnix-a7n:~$ sudo aptitude install fusion-icon Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Building tag database... Done The following NEW packages will be installed: fusion-icon 0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 29.8kB of archives. After unpacking 270kB will be used. ... Building tag database... Done pnix@pnix-a7n:~$ Running : alt-F2 and type 'fusion-icon -n' or if you want this everytime...

sopcast on gutsy

To celebrate liverpool winning today[not yet but I'm so sure :D],this post will show you how to watch tv on gutsy. First goto sopcast download page and get these two rpm files, qsopcast-0.3.5-2mgc.i686.rpm and sp-sc-1.0.2-1mgc.i686.rpm. Then to convert rpm packages to deb we need alien pnix@pnix-a7n:sopcast$ sudo aptitude install alien [sudo] password for pnix: Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Building tag database... Done The following NEW packages will be automatically installed: libbeecrypt6 libneon25 librpm4 rpm The following NEW packages will be installed: alien libbeecrypt6 libneon25 librpm4 rpm 0 packages upgraded, 5 newly installed, 0 to remove and 0 not upgraded. Need to get 1911kB of archives. After unpacking 6488kB will be used. Do you want to continue? [Y/n/?] y ... Building tag database... Done pnix@pnix-a7n:sop...

Install win32 codecs for mplayer in Ubuntu Gutsy

If you have trouble in playing media file, stream [like me] may be this will help. Today I try open video stream with mplayer and get no sound. So I go to run mplayer from terminal and get errors about codecs below pnix@pnix-a7n:progdl$ mplayer mms://61.47.35.66/NTTV MPlayer 2:1.0~rc1-0ubuntu13 (C) 2000-2006 MPlayer Team CPU: AMD Athlon(tm) (Family: 6, Model: 8, Stepping: 1) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 ... Opening video decoder: [dmo] DMO video codecs Win32 LoadLibrary failed to load: wmv9dmod.dll, /usr/lib/win32/wmv9dmod.dll, /usr/local/lib/win32/wmv9dmod.dll IMediaObject ERROR: 0x8773d96 could not open DMO DLL (0x0 : 0) Failed to create DMO filter ERROR: Could not open required DirectShow codec wmv9dmod.dll. You need to upgrade/install the binary codecs package. Go to http://www.mplayerhq.hu/dload.html VDecoder init failed :( Opening video decoder: [dmo] DMO video codecs Win32 LoadLibrary failed to load: wmvdmod.dll, /usr/lib/win32/wmvdmod.dll, /usr/...

Avidemux on ubuntu feisty

Video editing on ubuntu will be not too hard, thanks for Nathan's comment in last post that remind me about avidemux. On feisty you can find avidemux from multiverse repos. pnix@pnix-a7n:~$ sudo aptitude install avidemux Password: Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Building tag database... Done The following NEW packages will be automatically installed: lame libfaad2-0 libmjpegtools0c2a libmozjs0d libnspr4-0d libquicktime0 mjpegtools toolame The following NEW packages will be installed: avidemux lame libfaad2-0 libmjpegtools0c2a libmozjs0d libnspr4-0d libquicktime0 mjpegtools toolame 0 packages upgraded, 9 newly installed, 0 to remove and 0 not upgraded. Need to get 5403kB of archives. After unpacking 13.8MB will be used. Do you want to continue? [Y/n/?] y ... Setting up toolame (02l-3) ... localepurge: Disk space freed in /usr/share/loca...

3D Windows, Cube Atlantis and more effects for Compiz Fusion on Ubuntu Feisty

When I looked at others screenshot posted on the web I noticed that some have window float off the cube when rotating. I love it and looking for what effect to do like that. Someone on ubuntuforums said "just enable 3D windows effect" but my "compizconfig setting manager" didn't has that effect to enable :(. or others said "it's for beryl only" that hard to believe. I try to search for plugin package and found that I miss two of four plugins packages, unofficial and unsupported[on tuxfamily.org]. Pick the leftover packages. pnix@pnix-a7n:~$ sudo aptitude install compiz-fusion-plugins-unofficial compiz-fusion-plugins-unsupported Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Building tag database... Done The following NEW packages will be installed: compiz-fusion-plugins-unofficial compiz-fusion-plugins-unsupported 0 pa...

Customize icons on ubuntu desktop

One thing I want to do for a long time is remove mounted partition icons that default show on my ubuntu desktop. Nothing wrong with those icons, it's just too many icons and some I never go to browse into it. Now what to do. Open gconf-editor by hit [Alt+F2] and type gconf-editor. Go to apps->nautilus->desktop then check out "volume_visible". You can also customize others as you want like adding computer and trash icon to your desktop.

Add truetype fonts on X client side

The pdf file [as I understand] encapsulate text, images and fonts so it should give me same result on any os. Many of pdf files I have are generated on windows and use windows fonts. When I open these files with evince [default document viewer] some can't render fonts correctly because windows fonts aren't embedded and not exist on ubuntu too. What I need to do is make application has correct fonts to use. There are two places that we can add fonts, the first is on server[Xserver] side and the second is on client side. Here I choose second choice by copy fonts required by the document from windows to $HOME/.fonts then caching new fonts by run command 'fc-cache -fv .fonts'. Below is result after adding fonts. pnix@pnix-a7n:~$ ls .fonts ANGSAB.TTF ANGSA.TTF ANGSAUI.TTF ANGSAUZ.TTF timesbd.ttf timesi.ttf ANGSAI.TTF ANGSAUB.TTF ANGSAU.TTF ANGSAZ.TTF timesbi.ttf times.ttf pnix@pnix-a7n:~$ fc-cache -fv .fonts /home/pnix/.fonts: caching, 12 fonts, 0 dirs /var/cac...

No window border, window title in compiz-fusion

Update I just found that this problem is about xorg.conf. After add code below it gone Section "Extensions" Option "Composite" "Enable" EndSection ------------------- Sometime when enable compiz-fusion with compiz --replace Window border will disappear and it's not comeback after restart X or even restart system[in my case]. To bring window border back, Alt-F2 then type metacity --replace Don't know why but it's work beleive me. After run this command your desktop will have no 3D effect, now you can try enable compiz again.

My choice for music player on ubuntu.

Today I'm looking for mp3 player for my ubuntu. Feisty come with rhythmbox but after few months using I think it's time to try something better. Rhythmbox does not let me edit idv3 tags and [for me]it's hard to manage library so it's not acceptable. All I wants are a) idv3 tags must editable. This is important for me because some of my mp3 collection don't have info in tags or some have a wrong info. b) full support thai language. c) gtk+ application will be good. I found this blog [http://onlyubuntu.blogspot.com/2007/03/media-players-available-for-ubuntu.html] list some media players in ubuntu. I choose some to try[all are easy to install in Feisty just 'sudo aptitude install <packagename>'] Beep Media Player is like xmms. If I'm not wrong I think the project is stop now. Amarok come with great interface, full of features but it's KDE app so it's need some other kde package to install and run. Exaile, like KDE's Amarok but it's G...

convert mp3 id3 tags to unicode.

The problem about playlist on media player are unreadable when it use thai character. This is caused by different encoding used in id3 tags and in media player. Id3 tags use cp874[don't know why] but in current linux distribution, player use unicode. This will not be a problem if tags are english characters that cp874 and unicode has the same value e.g. 'A' is '0x41' for cp874 and '0x0041' for unicode, but not for thai character. To correct thai character in playlist. There is a script to convert 1-byte charsets to unicode[ download ] by Kopats Andrei. Now what to do: 1. download the script. You'll get 'tag2utf.py'. 2. install requirement software sudo apt-get install python-eyed3 3. in the script, looking for charsets = {'cp1251':'c','koi8-r':'k' } and replace with your language encoding[ for thai change it to charsets = {'tis-620':'t' } ] Now we ready to convert mp3 tags. run script by 'tag2u...

Compiz Fusion on Fiesty

Two weeks ago, I read on ubuntuforums and found this thread about how to get compiz fusion work on ubuntu fiesty . It show you clearly step by step how to. Today I'm just decide to try and it's real amazing. 3D Cube and many effect feel smoother than the old compiz from repos. It's work on my asus n6200td 128M card, my memory is 512M, athlon xp 1700+ and A7N8X-E mobo. Compiz fusion still development version but for me it's very very very stable. So I urge you to try it now. Compiz Fusion is merging of compiz and beryl project. It's not on feisty repos yet but may be on Gutsy Gibbon.

Desktop effects on Feisty, Cube and JAVA Swing problems

Even the "desktop effects" is just technology preview on Feisty. It still has some bugs but I like it. To enable go to System > Preferences > Destop Effects, then click "Enable Desktop Effects" button. It has two effects for now[as I known], "Windows wobble when move" and "Workspaces on a Cube". After enable it, windows wobble is work fine but not the cube effect. Notice that number of workspace will change to 1. If set it back to 2, when I change workspace[e.g. Ctrl+Alt+->] sometime it loose both panels[top and bottom] or sometime it give me blank screen[no panel,no icon] To make cube effect work open terminal and pnix@pnix-a7n:~$ gconftool-2 --type int --set /apps/compiz/general/screen0/options/hsize 4 pnix@pnix-a7n:~$ gconftool-2 --type int --set /apps/compiz/general/screen0/options/number_of_desktops 1 or use gui tool by type "gconf-editor" in terminal And navigate to: apps > compiz > general > screen0 > optio...

Mount ISO, CUE/BIN, NRG, IMG, MDF files in ubuntu

I known that to mount iso file pnix@pnix-a7n:~$ sudo mount -o loop file.iso mountpoint or pnix@pnix-a7n:~$ sudo mount -o loop -t iso9660 file.iso mountpoint and for cue/bin file ,I convert it to iso first use bchunk pnix@pnix-a7n:~$ bchunk file.bin file.cue file.iso but how about the others. After some search, I collect tips to handle many types of image file in linux. For nrg [ nero image ], img [ clone cd] and mdf [ alcohol 120% ] files, We need nrg2iso, ccd2iso and mdf2iso to convert those image files to iso image. Luckily, All are in Feisty repos. pnix@pnix-a7n:~$ sudo aptitude install nrg2iso ccd2iso mdf2iso Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Building tag database... Done The following NEW packages will be installed: ccd2iso mdf2iso nrg2iso 0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 19.1kB of archiv...

RealPlayer on Feisty

Today I try to open ptvthai.com[ the website that live broadcast rally against "council for national security" from sanamluang bangkok, uhh no politic here, Pls don't censor me ha ha ]. It needs realplayer plugin for firefox but "Plugin Finder Service" can't install it automatically. RealPlayer isn't on feisty repos yet for now and i can't wait. So to install i download RealPlayer10GOLD.bin, add execute permission and install it in $HOME/app/RealPlayer[ without sudo privileges ]. pnix@pnix-a7n:~/progdl$ wget http://forms.real.com/real/player/download.html?f=unix/RealPlayer10GOLD.bin --23:26:37-- http://forms.real.com/real/player/download.html?f=unix/RealPlayer10GOLD.bin => `download.html?f=unix%2FRealPlayer10GOLD.bin' . . Connecting to software-dl.real.com|66.203.123.22|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 5,802,563 (5.5M) [application/octet-stream] 100%[========================================...

Converting dat to mpeg file, to burn vcd on ubuntu

Creating vcd [from dat file] on WinXP, I use "Nero Burning Rom". It can burn dat file to vcd directly. On ubuntu, AFAIK, No burning cd software to burn dat to vcd. I use k3b but it can't burn dat file. It support only mpeg-1 and mpeg-2 format. Dat file need to convert to mpeg first. Thist post will show how I install and use vcdgear to convert dat file to mpeg file. pnix@pnix-a7n:~/progdl$ wget http://www.vcdgear.com/files/vcdgear176-040415_linux.tar.gz --04:21:14-- http://www.vcdgear.com/files/vcdgear176-040415_linux.tar.gz => `vcdgear176-040415_linux.tar.gz' Resolving www.vcdgear.com... 66.98.192.104 Connecting to www.vcdgear.com|66.98.192.104|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 442,937 (433K) [application/x-tar] 100%[====================================>] 442,937 105.23K/s ETA 00:00 04:21:20 (87.02 KB/s) - `vcdgear176-040415_linux.tar.gz' saved [442937/442937] pnix@pnix-a7n:~/progdl$ tar xzf vcdgear...

chm file in ubuntu

To open chm file in ubuntu, you need need to install gnochm[for ubuntu] or kchmviewer[for kubuntu]. Packages are already in repos. pnix@pnix-a7n:~$ sudo aptitude install gnochm Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Building tag database... Done The following NEW packages will be automatically installed: libchm1 python-chm The following NEW packages will be installed: gnochm libchm1 python-chm 0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 210kB of archives. After unpacking 1077kB will be used. Do you want to continue? [Y/n/?] y Writing extended state information... Done Get:1 http://th.archive.ubuntu.com feisty/universe libchm1 2:0.39-2 [28.0kB] Get:2 http://th.archive.ubuntu.com feisty/universe python-chm 0.8.4-0.1 [34.5kB] Get:3 http://th.archive.ubuntu.com feisty/universe gnochm 0.9.9-0ubuntu1 [147kB] Fet...