Tag Archives

23 Articles
Mengompilasi Sendiri MPlayer

Mengompilasi Sendiri MPlayer

Dari  perjalanan di Gentoo dan pengembangan sebuah aplikasi in-house, saya menemukan bahwa MPlayer lebih bagus kalau dikompilasi sendiri.

Saya asumsikan bahwa Anda telah memasang MPlayer. Kita tinggal menimpa yang lama dengan yang baru. Memang, cara ini tidak disarankan dan lebih baik apa bila dibuatkan paketnya dengan menggunakan checkinstall. Apabila Anda seorang purist, silakan pasang: (bagi yang malas, silakan lewati)

$ sudo apt-get install checkinstall

Setelah itu, pasang saja semua kebutuhan MPlayer: (Peringatan: banyak paket terpasang!)

$ sudo apt-get build-dep mplayer

Setelah itu, unduh dari http://mplayerhq.hu kode sumber terbaru. Saya mengunduh snapshot hari ini dan mengekstrasinya:

$ tar xvfj ~/Unduhan/Mplayer/mplayer-checkout-snapshot.tar.bz2

$ cd mplayer-checkout-2010-07-20

MPlayer secara unik mendeteksi prosesor yang kita pakai. Kita harus memastikan variabel CFLAGS dan sejenisnya tidak termuat agar skrip konfigurasi dapat menentukan dengan benar konfigurasi untuk kompilasi MPlayer. Cukup jalankan:

$ ./configure --prefix=/usr

Saya sedikit curang dan mengganti konfigurasi pada berkas config.mak pada baris yang mengandung CFLAGS, CXXFLAGS, dan DEPFLAGS (sekitar baris 30 s.d. 32). Saya mengganti setiap yang mengandung 

"-mcpu=native -mtune=native"
menjadi "
-mcpu=core2 -mtune=native -msse4.1
". Maklum, saya takut nanti MPlayer tidak teroptimasi untuk SSE 4.1.

Pasang ke sistem:

$ sudo make install

atau 

$ sudo checkinstall

Nikmati berkurangnya pemakaian CPU! Untuk pengguna laptop yang memiliki

vdpau
sangat diuntungkan dengan kompilasi sendiri.

Playing With Your GRUB (Debian Way)

Playing With Your GRUB (Debian Way)

There are times when you want to do funky things to your computer. Sometimes, it messed up your zen. Well, when that happens, just do the Debian way. Oh, btw, it also means you could do it in Ubuntu.

1 Regenerate your settings

$ sudo update-grub

2 Reinstall GRUB on MBR

$ sudo dpkg-reconfigure grub-pc

ADVANCE:

2a Adding kernel options to GRUB

$ sudo $EDITOR /etc/default/grub

Change $EDITOR with your favourite editor. Modify the file to suit you then do the #1. Some configuration already asked when you do #2.

Feel free to comment and ask.

Moving Out on Evolution

Moving Out on Evolution

There are many technological changes that would likely change our ways in GNU/Linux, especially Debian/Ubuntu. I want to share some so that we would expect errors and able to fix those. Comments are welcome, especially changes that I haven’t notice.

1 Job Scheduling

Vixie’s Cron has been running years on Debian/Ubuntu system. Gradually, the job scheduler is being taken by Upstart. Another change, Sys V initscript system has being being gradually deprecated. Upstart will be in Debian Squeeze and already in Ubuntu. The old initscript was invoked with this:

invoke-rc.d apache2 start

or

/etc/init.d/apache2 start

Now, since Karmic, the way of doing it is gradually changed into:

service apache2 start

or

start apache2

Well there are also stop.

2 Ubuntu are using their own build script on kernel

Yes, that’s true, especially in building kernel. Because they have many flavors, they have a configuration for each flavor. Meaning, if we build a variation on top of Ubuntu kernel, we may provide configuration. This would get us a variation of kernel and more robust configuration. Well, personally, I have try the Ubuntu way and it is pain. I still wish to use the standard Debian way of building kernel.

3 Xorg moving into DRM2: hello 3D!

As Linus was asking about Nouveau going upstream, the sign of new 3D infrastructure in X11 is rapidly shaping up. Gallium, the new tech is getting ready for prime time. Ubuntu already decided to ships Nouveau on Lucid. Unfortunately, Debian only have the Gallium for Intel hardware. ATi and Nouveau aren’t shipped yet on their kernel and marked as missing package. So, it’s a good news for the Intel hardware, but not for neither.