Kamis, 26 Juni 2008

Mengcustomize Ubuntu Usplash

Untuk keperluan ini, anda membutuhkan sebuah file image dengan tipe png, mode 256 color indexed. Saya sendiri membuat file image dengan ukuran 800×600.

Silahkan anda membuat sendiri menggunakan The Gimp. Jika anda ingin tahu bagaimana saya membuatnya, ikuti langkah-langkah membuat usplash di bagian akhir tutorial ini.

Langkah-langkah
1. Download file throbber dan konfigurasi theme usplash(ada di download area). Ekstrak ke folder usplash.

mkdir usplash
unzip throbber.zip usplash/

2. Kopikan file usplash.png anda

cp -f usplash.png usplash/

3. Meng-generate .c source

cd usplash/
pngtousplash usplash.png > usplash.c
pngtousplash throbber_back.png > throbber_back.c
pngtousplash throbber_fore.png > throbber_fore.c

4. Meng-compile .c menjadi file object .o

gcc -g -Wall -fPIC -o usplash.o -c usplash.c
gcc -g -Wall -fPIC -o throbber_back.o -c throbber_back.c
gcc -g -Wall -fPIC -o throbber_fore.o -c throbber_fore.c
gcc -g -Wall -fPIC -o usplash-theme.o -c usplash-theme.c

5. Meng-compile semua file object menjadi shared library

gcc -g -Wall -fPIC -shared -o usplash.so *.o

6. Kopi file usplah-default ke

root-live/usr/lib/usplash/usplash-artwork.so
initrd/usr/lib/usplash/usplash-artwork.so

Jangan lupa mengeset nilai resolusi usplash di usplash.conf, baik di /etc/usplash.conf maupun di initrd.

0 komentar:

Posting Komentar