Posts

Cara bersihkan kipas laptop / Clean laptop fan

Image
Kalau laptop udah bunyi-bunyi kipasnya, biasanya udah kotor banyak debu. Karena nyari di ebay ngga ada yang jual, jadi coba bongkar sendiri, ternyata gampang: 1. Buka lempeng almuniumnya, 4 sekrup: 2. Tarik keluar baling-baling, terus bersihin 3. Tetesin minyak mesin jahit (singer) di tengahnya: Hasilnya: yessssss........... udah alus ngga bunyi lagi LENOVO / IBM 3000 G410

Cara reset ECU Avz

Abis reset ECU, tarikannya jadi enak lagi Ref: http://www.avanzaxenia.net/showthread.php?tid=1735&page=1 1. Panasin mesin 2. Matiin 3. Cabut sikring efi, 15 detik pasang lagi 4. Nyalain tanpa AC 5 menit 5. Nyalain AC 5 menit 6. Bawa muter2

Merapi

Image
Dari google maps:

Viewpic

I have to add 20 more lines to avoid non responsive loading, because crawling all files in sdcard. This is one of my android app: http://www.appbrain.com/app/viewpic/com.landak.viewpic Sniplet of source code:

Setting mms android

Cara settingnya seperti biasa, sesuaikan dengan operator yang digunakan. Tapi pada "APN type" diisi mms dan untuk APN yang lainnya diisi default. Misalnya: Tsel-internet, APN type: default Tsel-flash, APN type: default Tsel-mms, APN type: mms

wake on lan

Sometimes i need to wake up my desktop when i work from other place. To access cvs or encode some file. It is turned off automatic every 9pm. Ive setup openvpn connection to gateway. First find out your desktop hardware address: ifconfig Note eth0 broadcast address and save hardware address to a file on gateway edit rc.local or boot.local on desktop, add: ethtool -s eth0 wol g And run it from command line, then shutdown -h now On gateway type this to wake it up, takes several minutes before we can ping wakeonlan -i 192.168.1.255 -f desktop -p 7 Or wakeonlan -i BROADCASTADDR HARDWAREADDR -p 7 Output: Sending magic packet to 192.168.1.255:9 with 00:50:8D:86:XX:XX http://ubuntuforums.org/showthread.php?t=234588

All IM integrated

This is how to integrate all known IM to google talk or jabber. So we can use single client to chat, for example i'm using Talk on android 1. To setup we need advanced jabber client, pidgin or psi-im 2. Add account on pidgin using XMPP protocol 3. Enter your google username, save and online 4. Menu: Tools -> Plugins, enable XMPP Service Discovery 5. Tools -> XMPP Service Discovery, Browse, enter silper.cz or fsinf.at 6. To register yahoo messenger: Double click yahoo2.silper.cz, enter yahoo username and password 7. Wait for approval 8. Accept all chat invite You can also register other available service there. Edit: use fsinf.at instead

Milestone overclock script

This is my milestone auto start script, which inserted to mot_boot_mode so i get overclock on boot. The kernel is from stock 02.36.0, version 2.6.29-omap1 #!/system/bin/sh insmod / data / data / pt . com . darksun . milestoneoverclock / files / overclock . ko omap2_clk_init_cpufreq_table_addr = 0xc004e4b0 # continued on one line: omap2_clk_init_cpufreq_table_addr = 0xc004e4b0 echo 66 > /proc/ overclock / max_vsel echo 800000 > /proc/ overclock / max_rate echo 1 125000000 32 > /proc/ overclock / mpu_opps echo 2 250000000 39 > /proc/ overclock / mpu_opps echo 3 550000000 56 > /proc/ overclock / mpu_opps echo 4 600000000 60 > /proc/ overclock / mpu_opps echo 5 800000000 66 > /proc/ overclock / mpu_opps echo 0 800000 > /proc/ overclock / freq_table echo 1 550000 > /proc/ overclock / freq_table echo 2 250000 > /proc/ overclock / freq_table echo 3 125000 > /proc/ overclock / freq_table The setting will override default cpu...

My phone evolution

Image
My phone evolution in order: Nokia 6110 (stolen) Siemens ME45 (broken) Palm Treo 650 (somewhere) Motorola Razr2 V8 (for sale, not really) Motorola Milestone (now)

Ubuntu 10.04 dont serve PHP script problem

After upgrading to Ubuntu 10.04 all my php script not working. this is because new stupid feature new configuration in apache2 which disable php in user directories. To fix: vim /etc/apache2/mods-available/php5.conf Remark all user dir related config, change to: <IfModule mod_php5.c> <FilesMatch "\.ph(p3?|tml)$"> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch "\.phps$"> SetHandler application/x-httpd-php-source </FilesMatch> # To re-enable php in user directories comment the following lines # (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it # prevents .htaccess files from disabling it. #<IfModule mod_userdir.c> # <Directory /home/*/public_html> # php_admin_value engine Off # </Directory> #</IfModule> </IfModule> Then restart apache. You may need to clear firefox cache. _

Format sdcard option (updated)

Sometimes when copying lots of files to sdcard causes corrupt in portable device. To avoid this we can increase cluster size when formatting. This will also increase read/write performance on sdcard. Under linux we can use: mkfs.vfat -h0 -n MYSDCARD -S 4096 -v /dev/sdc1 UPDATE: using command above seems dont compatible on Windows, you can use this application: http://www.ridgecrop.demon.co.uk/index.htm?fat32format.htm or use this compatible command: mkfs.vfat -s 32 -S 512 -n "USB DISK" /dev/sdc1 mkfs.vfat -s 64 -S 512 -n "USB DISK" /dev/sdc1 mkfs.vfat -s 128 -S 512 -n "USB DISK" /dev/sdc1

HACK: Freeing internal memory (movecache)

For the sake of knowledge, i made cache for my thread because alldroid.org might be wiped for unknown reason (got email from admin) HACK: Freeing internal memory (movecache) tested on Droid, Milestone Start here: http://khad.landak.com/alldroid/

Remove mail queue (spam) quickly

Find out size of spam emails: # /opt/zimbra/postfix/sbin/postqueue -p | head -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient------- E13B82CF2D27* 3874 Tue Apr 27 11:06:01 peter@springresort.com.tw (delivery temporarily suspended: connect to genie.com[169.132.165.132]: Connecti on timed out) cle2322518@genie.com (delivery temporarily suspended: connect to genie.net[169.132.165.132]: Connecti on timed out) We get 3874 Now, remove the spam: # /opt/zimbra/postfix/sbin/postqueue -p | grep 3874 | awk -F '\*|\!| ' '{ print $1 }' | /opt/zimbra/postfix/sbin/postsuper -d - postsuper: EEE0E6EE02D9: removed postsuper: 4553C6EE0013: removed postsuper: 6AB126EE035D: removed postsuper: Deleted: 102837 messages

Change key character for droid/milestone

Sometimes I want to write IP Address using hardware keyboard. Press alt key twice to lock, then we can type numbers and symbols. But when alt mode, period key (.) will change to (:) which makes 192:168:10:10 So I want to change some other key to period (.) in alt mode, I choose Tab key. 1. First you must root your droid, which not covered here. 2. Get binary file contain key characters: /system/usr/keychars/sholes-keypad.kcm.bin using adb or copy it to sdcard 3. Modify the file using hex editor (i use bless) find sequence: A.1.a.A.. the last dot is char 09 which is tab, change it to period (char 2E) save 4. Copy back and replace /system/usr/keychars/sholes-keypad.kcm.bin 5. adb reboot

OpenDNS atau Google public DNS

Mau pake OpenDNS atau Google public DNS? Pake dua-duanya aja, ini isi resolv.conf di laptop gw: $ cat /etc/resolv.conf options rotate nameserver 208.67.222.222 nameserver 8.8.8.8 options rotate digunakan untuk menggunakan dns secara bergantian. biar isi resolv.conf ngga berubah karena network manager atau pppd, set immutable: $ chattr +i /etc/resolv.conf

Menggunakan headset bluetooth pada Karmic Koala

Image
Ubuntu 9.10 atau Karmic Koala baru saja di-rilis dan memiliki dukungan yang lebih baik untuk bluetooth. Untuk menggunakan headset bluetooth sekarang sangat mudah, tinggal pairing device, ubah profil A2DP, lalu pilih Sound Output. Berikut langkah-langkahnya: 1. Pairing Klik pada applet bluetooth -> Setup new device... nyalakan headset pada mode pairing / discoverable. Klik forward kemudian pilih headset anda untuk pairing. Jika ditanya masukkan password: 1234 atau 0000 2. Ubah profil A2DP Kemudian klik tombol kanan pada Sound applet -> Sound Preferences. Lalu ke tab Hardware. Pilih headset anda (misal Motorola HT820) kemudian pada profile pilih High Fidelity Playback (A2DP). Langkah ini cukup anda lakukan satu kali. 3. Pilih Sound Output Langkah terakhir adalah memilih sound output ke headset anda pada tab Output. Jalankan aplikasi rhythmbox atau totem. Sekarang anda dapat mendengarkan musik atau film melalui headset bluetooth. Catatan: Jika headset anda support AVRCP (tombol Next...

Bug kernel linux (2009)

Ditemukan bug di kernel linux yang cukup serius, penyebabnya NULL pointer. Kalau di-exploit bisa sampai dapet root... osram........ The system would do anything for you.. Hampir semua kernel dari versi 2.4 sampai 2.6 terkena bug ini: - Linux 2.4, from 2.4.4 up to and including 2.4.37.4 - Linux 2.6, from 2.6.0 up to and including 2.6.30.4 exploit testing: $ ./script [+] MAPPED ZERO PAGE! [+] Resolved selinux_enforcing to 0xffffffff80bb4348 [+] Resolved selinux_enabled to 0xffffffff80bb4344 [+] Resolved security_ops to 0xffffffff80bb2ae0 [+] Resolved default_security_ops to 0xffffffff808e55a0 [+] Resolved sel_read_enforce to 0xffffffff803e16e0 [+] Resolved audit_enabled to 0xffffffff80ae2ec4 [+] Resolved commit_creds to 0xffffffff8026d3f0 [+] Resolved prepare_kernel_cred to 0xffffffff8026d040 [+] got ring0! [+] detected 2.6 style 4k stacks sh: mplayer: not found [+] Disabled security of : nothing, what an insecure machine! [+] Got root! # # id uid=0(root) gid=0(root) # Ori...

Cara buat SSL certificate

$ openssl req -new -newkey rsa:1024 -days 365 -nodes -x509 -keyout www.example.com.pem -out www.example.com.pem Generating a 1024 bit RSA private key ............++++++ ...........++++++ writing new private key to 'www.example.com.pem' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [ID]: State or Province Name (full name) [Indonesia]: Locality Name (eg, city) [Jakarta]: Organization Name (eg, company) [Nama Perusahaan, PT.]: Organizational Unit Name (eg, section) []:2009 (isi taun sekarang) Common Name (eg, your name or your server's hostname) []:www.namaserverlo.com Email Address []:email@ namaserverlo.com Terus tinggal masukin di httpd.conf: ...

Cara konversi movie untuk PSP

Sebelum bisa jalanin movie di PSP.. harus dikonversi dulu. Ini batasannya: Video Codec: xvid, divx, H.264 Audio codec: FAAC File Format: mp4 Bit rate harus Resolution: 320x240, 640x480 Cara konversinya bisa menggunakan tool ffmpeg. Kalau mau hasilnya bagus.. command line-nya panjang banget. Biar gampang pake script ini aja: ################################# script start: konvertpsp INPUT="$*" # harus .mp4 OUTPUT="out.mp4" # 2-31 QUALITY=21 ################################# if [ "$INPUT" = "" ]; then echo "Please specify input file" exit fi opt1=" -vcodec libx264 -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -level 21 -refs 2" opt2="-cqp $QUALITY" opt3="-ab 64k" opt4="-s qvga" echo -- -- ffmpeg -i "$INPUT" $opt1 $opt2 $opt3 $opt4 -threads 3 $O...

How fast your Linux boot?

Image
Currently it takes > 35 seconds too boot, see this chart: See if I can improve this.. in my next post. You can also make this kind of chart by installing: sudo apt-get install bootchart For reference: http://aldeby.org/blog/index.php/speed-up-your-ubuntu-linux-boot.html