Monday, November 16, 2009

Installing wine on Ubuntu 9.10 from source

I just upgraded my ubuntu 9.04 to ubuntu 9.10.

Before recompiling wine, we needed to install all the dependencies.

I grabbed the newest dependencies installation script from http://winezeug.googlecode.com/svn/trunk/install-wine-deps.sh

However, when I ran it, it stopped with an error:


Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libcupsys2-dev is a virtual package provided by:
libcups2-dev 1.4.1-5ubuntu2.1
You should explicitly select one to install.
E: Package libcupsys2-dev has no installation candidate


From the error message, the solution is clear, edit the script and replace libcupsys2-dev with libcups2-dev

... and we can enjoy the wine again now
Read more...

Saturday, November 14, 2009

Ubuntu 9.10 hamachi problem

I just installed Ubuntu 9.10 on a fresh new computer for a client.

For this particular computer I install hamachi. Unfortunately, when run it only displayed 'Killed' in console and then a crash report notification appeared on the notification panel.

After some googling, it turned that this new ubuntu doesn't like UPX packed application and unfortunately hamachi for linux (version hamachi-lnx-0.9.9.9-20) is one of it.

The solution is:

  1. Install upx uncompressor:

    $sudo apt-get install upx-ucl

  2. Unpack hamachi (assuming hamachi is installed in /usr/bin):

    $ sudo upx -d hamachi



After that, hamachi ran fine. This solution is also applied for other UPX packed applications. Hopefully, Ubuntu fixes this upx packed application problem which will be the best solution.
Read more...

Saturday, September 5, 2009

Cara mendownload video youtube yang tidak dapat didownload....

Video-video di youtube.com tidak dapat didownload secara langsung, tetapi ada beberapa situs-situs dan program-program utility termasuk addon Mozila firefox dan Widget dari Opera yang memungkinkan kita mendownload video dari youtube.

Namun beberapa video tidak dapat didownload dengan program-program khusus di atas. Kelihatannya youtube melakukan proteksi sehingga beberapa video hanya dapat dimainkan tetapi tidak dapat didownload. Sebagai contoh: http://www.youtube.com/watch?v=_fgURJZebqc

Lalu bagaimana cara kita mendownload video-video yang tidak dapat didownload tersebut?


Apapun proteksi yang dilakukan youtube, sebenarnya komputer kita telah mendownload file video tersebut. Kalau tidak, bagaimana browser kita bisa memainkan video tsb? Jadi kuncinya adalah bagaimana menemukan file yang telah didownload oleh browser kita tsb. Ikuti langkah-langkah ini.


  1. File-file video dari youtube adalah dalam format file .flv, maka pertama-tama kita harus mempunyai player dari file flv. Silahkan search di google player-player yang bisa memainkan file flv, ada banyak dan rasanya semua merupakan freeware yang dapat didownload gratis.


  2. Buka youtube di browser kita dan nikmati videonya sampai selesai.


  3. Tunggu video sampai tuntas dimainkan, lalu cari direktori cache dari browser kita. Untuk Opera direktori tempat browser menyimpan file-file yang didonwload dapat dilihat dengan mengetikan di address barnya opera:about, untuk Firefox kita dapat melihatnya dengan mengetikkan about:cache di address barnya. Sorot textnya dan kemudian copy ke buffer.



  4. Buka Windows Explorer atau My Computer dan Paste di address bar lalu tekan Enter.




  5. Selanjutnya Klik View -> Details dan kemudian View -> Arrange Icons by -> Size dan kemudian ulangi sekali lagi View -> Arrange Icons by -> Size. Setelah ini, file-file yang ada di direktori tsb. akan ditampilkan dari ukurannya yang paling besar ke paling kecil.


  6. Dari Size dan Date Modifiednya, kita tahu bahwa (kemungkinan besar) file yang paling atas adalah file video yang kita cari. Copykan file tsb. ke folder yang kita kehendaki, rename dan berikan extension .flv Pada contoh ini, file yang aku download aku rename menjadi file origami_cow.flv



  7. Buka file origami_cow.flv tersebut di flv player kita.






Read more...

Thursday, August 20, 2009

Problem installing MySQL 5.1.37 on Windows

Last night, I decided to upgrade my MySQL from version 4.1 to version 5 on my Windows XP box. I went to mysql's download area and downloaded the latest windows MSI installer version 5.1.37.

After finished downloading the huge 91MB file, I backed up my MySQL database with mysqldump, uninstalled the old version 4.1 and began installed the new version, unfortunately the installation always failed with this message:

MySQL Server 5.1 Setup Wizard ended prematurely

The wizard was interrupted before MySQL Server 5.1. could be completely installed.

Your system has not been modified. To complete installation at another time, please run
setup again.



Again, the old uncle google came to help. This is MySQL's bug, didn't they test it before releasing the new version? Google pointed me to a solution: you need to download and install orca, a tool for editing MSI files, which can be downloaded from here.

Open the MySQL msi installation file, find and delete the action row SetDateTime and then save the msi file. After that, I had the new MySQL 5.1 installed on my computer. There was also no problem restoring the database.

The next step was copying the libmysql.dll file to my php installation directory. Unfortunately, another problem came! the apache server always crashed whenever I loaded my php application, and again uncle google came to rescue, he leaded me to download this zip file, put down the apache server, copying the libmysql.dll from the zip file to the php directory, restarting the apache and then everything runs well.

Kudos to uncle google!



Read more...

Friday, August 14, 2009

Gnome Network Manager dispatcher.d scripts doesn't run

I just set up a new linux box of Ubuntu 9.04.

This computer will connect to netware servers, so I installed ipx. However, with this particular version of Ubuntu, the ipx won't start at boot time eventhough it has starting script in the /etc/init.d which is correctly linked to startup directories (/etc/rc2.d, /etc/rc3.d, etc). I guessed the reason is Gnome Network Manager, somehow it prevented ipx to be started.

I then wrote a script in /etc/NetworkManager/dispatcher.d, I gave it a name: 02ipx.sh, so it will executed after the built in /etc/NetworkManager/01ifupdown, the content is very simple


#!/bin/bash
if [ "$1" == "eth0" ] && [ $2 == "up" ]
then
/etc/init.d/ipx restart
fi


I assign root as the owner of script and set the permission to 775. Unfortunately, this script was never called!!


After spent 5 hours pulling my hairs, uncle Google came to help with
this page

It turns that Network Manager is very picky with the script permission and ownership. Here is the relevant quote :


Yep that is correct from the source:



Yep that is correct from the source:

http://svn.gnome.org/viewvc/NetworkManager/tags/NETWORKMANAGER_0_6_5_RELEASE/dispatcher-daemon/NetworkManagerDispatcher.c?view=markup

/* * nmd_permission_check *
* Verify that the given script has the permissions we want. Specifically,
* ensure that the file is
* - A regular file.
* - Owned by root.
* - Not writable by the group or by other.
* - Not setuid.
* - Executable by the owner.
* */



So the Network Manager doesn't like the 775 permission of my script. Changing the permission to 755 solves my problem.


Read more...

Wednesday, August 5, 2009

Ubuntu shutdown problem, acpid: exiting...

Some times ago, I uninstalled gnome network-manager on my Ubuntu 9.04 dan replaced it with WICD because it won't bring up ipx protocol on boot time. Unfortunately, WICD also has its own problem, it can't bring up your wired and wireless interface simultaneously.

Tonight, I decided to replace WICD with gnome network-manager and I planned to fix the ipx problem through its dispatcher scripts feature. Surprisingly, right after the network manager installed there is no problem with the ipx protocol, apparently the package network-manager in ubuntu repository has been updated recently.

However, when I shutdown or restarted my computer, it always hang with a blank screen displaying the message: acpid:exiting, the only way to completely shut down my laptop is only by pressing the power button for about 3 seconds.

After some googling, it turns that the problem was the network interfaces should be brought down before taking down the computer.


Here is the solution:

  1. Edit as root the file /etc/init.d/alsa-utils
  2. Find stop), here is what it looks like:

    stop)
    EXITSTATUS=0
    TARGET_CARD="$2"



  3. Insert statements to bring down your network interfaces:

    stop)
    ifconfig wlan0 down
    ifconfig eth0 down
    EXITSTATUS=0
    TARGET_CARD="$2"



Problem solved ... :)

Read more...

Sunday, June 28, 2009

Yahoo messenger problem on Linux

Recently, I can't connect to yahoo messenger through Pidgin on my Ubuntu 9.04 box. After some googling I found this page: http://news.softpedia.com/news/How-to-Fix-Yahoo-problem-in-Pidgin-114754.shtml

Unfortunately, after following the steps I still can't connect to yahoo with error message: unknown "error 1013. Logging into the Yahoo! website may fix this". Logging to yahoo website as suggested doesn't cure the problem :(

After some more googling, I found this page: http://developer.pidgin.im/ticket/9467. Removing the @yahoo.com part of your pidgen account solves the problem.
Read more...