Tuesday, February 24, 2009

Konek Dengan Indosat, LG KU250, Slackware 12.1

Inilah langkah-ku waktu konek ke inet pake LG-KU250 (3g for all), kartu mentari gsm dan slackware linux di mesin Pentium III katmai 550 mhz.

1.Colokin hp ke port USB yang tersedia dengan kabel data yang disediakan waktu beli hp. Kalau beli baru pasti ada di dalam box-nya, kalau beli seken kadang ada, kadang nggak.

2.Buka terminal/ konsole, ketik 'dmesg' enter.



Lihat baik-baik baris ke 4 dari bawah, dan sekitarnya... itu menandakan bahwa hp kita sudah terdeteksi sebagai modem di interface /dev/ttyACM0.

3.Setelah itu, buka KPPP. Dari KickStar, Internet, KPP-Internet Dial Up Tool. Klik configure, di tab account klik add, lalu ada popup window pilih manual setup. Saya bikin account indosat mentari durasi. Nih screenshotnya... kalau udah klik ok.



4.Window akan kembali ke tampilan setting account, tapi kali pilih tab modem, klik add, beri nama modem anda misal 'cellphone' pastikan Modem Device dipilih di /dev/ttyACM0 seperti yang kita lihat di output terminal tadi.



5.Lalu pindah ke tab modem, terus klik Modem Command, masukkan extra init kayak gini; AT+CGDCONT=1,”IP”,”indosatgprs” kalo kartu anda im3 ganti bagian 'indosatgprs' dengan 'www.indosat-m3.net'.



6.Klik ok. Lalu ok lagi. Isi username dengan 'indosat@durasi' (tanpa tanda kutip) password sama kayak gitu. Terus klik connect, tunggu sebentar kalau udah konek window KPPP akan ter-minimize, dan kalau dibuka kelihatan jadi kayak gini.



Connected at Unknown speed? Biarin ajah namanya juga murah... :) yang penting bisa pop email bisa komen2 dikit di facebook temen, posting di blog... cukup

7.Kalo anda pencet tombol details nanti keluar gambar kayak gini;



itu local address sama remote address-nya kelihatan, berapa bytes data yang masuk, berapa byte keluar juga kelihatan.

8.Udah... ah

Monday, February 23, 2009

Youtube hack... wuih...

(dapet dari www.allticles.com belom sempet translate... :) )

Do you utilize YouTube to host videos you create and want to share with the world at the best quality? Has someone else created a YouTube video, but you are only interested in a portion of it for your blog or website? Here are 2 tips that help ensure your audience has a better YouTube expereince:

Tip 1. Forcing the browser to use the High Quality version of the video

You may notice just under the lower right coner of the video window, some videos have an option to “Watch In High Quality”. By default, these videos will play as a 320×240 FLV file at 320Kb/s. Check out this sample:

http://www.youtube.com/watch?v=MBGeNeofk0A

The user could click on this link to “Watch in High Quality” which will reload the video and play the MP4 version , which is 480×360 at 512Kb/s. By adding &fmt=18 to the end of the URL, you’ll make the URL you share with others bring them right to the high quality version. Here’s the same video in the High Quality view:

http://www.youtube.com/watch?v=MBGeNeofk0A&fmt=18

What else are you gaining besides increased video resolution? The video is compressed with H.264 compression, so you get better video even at the same data rate. You also go from a low fidelity mono audio feed to stereo @ 44.1Khz sample rate.

&fmt=6 increases the resolution from 320×240 to 448×336, Flash 7 video @ 900Kbps; audio @ 44.1KHz 96Kbps Mono CBR.

&fmt=18 increases the resolution to 480×360, H.264 video @ 512Kbps; audio @ 44.1KHz 128Kbps Stereo. Note, the bandwidth may be lower, but it’s utilizing a more efficient compression codec.

UPDATE: &fmt=22 increaes the resolution to 720p HD video if the source was uploaded at a high enough resolution.

Tip 2. Advancing the video to a specific playback point.

If you evern wanted to link to a video in YouTube that was lengthy, but had a very interesting part partway through, there is a hack to allow you to begin playback at a precise time. You can specify the minutes and seconds of the start time like this:

add #t=53s to the end of the URL to start at 53 seconds into it:

http://www.youtube.com/watch?v=MBGeNeofk0A#t=53s

add #t=1m57s to the end of the video URL to start playback at 1 minute 57 seconds:

http://www.youtube.com/watch?v=MBGeNeofk0A#t=1m57s

Think of this as bookmarking your video clips! Now you can link to a video, and have an index of the segments included, which link right to that precise moment!

Source: wacblog.washcoll.edu

Thursday, January 15, 2009

Men-setting Webcam di Zenwalk

Ini berangkat dari pengalaman saya men-setting webcam Logitech Quickcam Pro 4000. Pertama kali colok, linux langsung mengenali webcam saya dengan baik...

Ini adalah keluaran perintah lsusb ...
root[uhuy]# lsusb

Bus 001 Device 002: ID 046d:08b2 Logitech, Inc. QuickCam Pro 4000

Bus 001 Device 001: ID 0000:0000

root[uhuy]#


Dan ini adalah keluaran perintah dmesg (saya potong, takut kepanjangan)
root[uhuy]# dmesg

...
Linux video capture interface: v2.00

pwc: Philips webcam module version 10.0.13 loaded.

pwc: Supports Philips PCA645/646, PCVC675/680/690, PCVC720[40]/730/740/750 & PCVC830/840.

pwc: Also supports the Askey VC010, various Logitech Quickcams, Samsung MPC-C10 and MPC-C30,

pwc: the Creative WebCam 5 & Pro Ex, SOTEC Afina Eye and Visionite VCS-UC300 and VCS-UM100.

pwc: Logitech QuickCam 4000 Pro USB webcam detected.

pwc: Registered as /dev/video0.

usbcore: registered new interface driver Philips webcam

usbcore: registered new interface driver snd-usb-audio

...
root[uhuy]#


See...? webcam saya Logitech ke detect sebagai philips webcam, lewat modul pwc. Sebenarnya saya udah download modul pwc ini disini. Tapi ternyata untuk versi kernel 2.6.xxx modul pwc untuk webcam logitech ini sudah ada. Untuk memastikannya, setelah menancapkan kamera ke port usb anda bisa mengechek modulnya dengan perintah lsmod sebagai root. Punya saya kernel versi 2.6.23.13 keluarannya begini (dipotong, biar nggak kepanjangan)...

root[uhuy]# lsmod

Module Size Used by

...

pwc 68736 0

compat_ioctl32 1152 1 pwc

videodev 21504 1 pwc

v4l2_common 11136 1 videodev

snd_hwdep 3972 1 snd_usb_audio

v4l1_compat 11652 1 videodev

snd 25860 10 snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_usb_audio,snd_pcm,snd_timer,snd_rawmidi,snd_seq_device,snd_hwdep

soundcore 3424 3 snd

...

root[uhuy]#


Berarti tidak ada yang perlu dilakukan dengan webcam dan drivernya. Sekarang kita perlu menginstall xawtv (aplikasi untuk menggunakan webcam-nya).

Repository zenwalk tidak menyediakan xawtv yang saya cari. Maka saya mencarinya di repository slackware. Versi terakhir adalah 3.95. Saya mendownload-nya dahulu baru kemudian diinstall dengan perintah 'installpkg xawtv-3.95.tgz'. Barangkali anda bisa juga mempergunakan perintah netpkg dengan terlebih dahulu menyesuaikan source repository-nya ke http://repository.slacky.eu/slackware-11.0/ tapi saya sendiri belum coba cara ini.

Setelah installasi xawtv selesai ternyata masih ada masalah, yaitu masih kurang satu library lagi yaitu libzvbi.so.0. Pesan error-nya begini; 'can not load shared library libzvbi.so'. Barangkali kalo saya menginstall dengan 'netpkg' hal seperti ini tidak perlu terjadi? Maka jurus andalanpun digunakan, GOOGLE, boo!. Ketemu alamat ini cuma sayang, paket libzvbi hanya tersedia dalam format rpm, tidak ada format tgz yang merupakan package installasi slackware dan keturunannya.

Jadi, setelah mendownloadnya anda perlu merubahnya ke format tgz. Begini perintahnya; 'rpm2tgz libzvbi-0.2.30-2mamba.i586.rpm'. Lakukan perintah itu dari directory tempat anda menyimpan file libzvbi-0.2.30-2mamba.i586.rpm. Enter, dan tunggu beberapa detik, maka di directory itu akan ada file baru bernama libzvbi... dengan format .tgz.

Sekarang lakukan installasi paket libzvbi dengan perintah 'installpkg libzvbi*.tgz', dan setelah selesai keluarlah dari account root lalu ketikkan 'xawtv'. Seharusnya anda sudah bisa melihat gambar dari webcam anda...

Misi selanjutnya adalah menggunakannya untuk video chat di yahoo. Saya sudah punya gyache (yahoo messenger client yang support webcam) yang sudah jalan. Terus apalagi ya yang kurang? Baru saja mencoba 'Start My Webcam' tapi nggak ada keluaran apa-apa. Huuuh...