Howto: Debian Lenny & Huawei E160G

2:57 PM Posted by Dr. Irwan

So, in my last post I described how it was using the E160G with Debian. All in all it’s very good and i’ve not experienced any major issues, bar a few minor apt-get and NetworkManager issues. So, heres a quick rundown of how to get it on your machine.

So first, you need to get the hardware to work correctly under Debian. Plug in your E160G and check dmesg to see if the device recognises correctly. If you see ttyUSB0/ttyUSB1 appear you can skip this step.

First, you need to download USB_Modeswitch:

# wget http://www.draisberghof.de/usb_modeswitch/usb_modeswitch-0.9.4.tar.bz2
# tar jxvf usb_modeswitch-0.9.4.tar.bz2
# cd usb_modeswitch-0.9.4/
# ./compile.sh


Now you have the usb_modeswitch program, as this will be executed by udev it needs to be in a sensible location, personally i’d copy it to /usr/local/sbin/

# cp usb_modeswitch /usr/local/sbin/


Also, you need to grab the latest config file from the usb_modeswitch website and put it into /etc

#
wget http://www.draisberghof.de/usb_modeswitch/usb_modeswitch.conf
# sudo mv usb_modeswitch.conf /etc/


Now, by default the config file comes with the section commented out, so edit the file and uncomment the section for the E220 (which is essentially the same device).

# sudo $EDITOR /etc/usb_modeswitch.conf


One last step, you need to add a small configuration file to udev to detect the E160G and run usb_modeswitch, put this file in you /etc/udev/rules.d/ folder:

SUBSYSTEM=="usb", SYSFS{idProduct}=="1003", SYSFS{idVendor}=="12d1",
RUN+="/usr/local/sbin/usb_modeswitch"


Restart udev, and plug in your E160G…

sudo /etc/init.d/udev restart

and you should see something similar to:

[ 16.085904] usb 5-3: GSM modem (1-port) converter now attached to ttyUSB0
[ 16.086033] usb 5-3: GSM modem (1-port) converter now attached to ttyUSB1


So, the device is detected and you have your USB ports, first a quick overview. The E160G shows two serial ports, one is a data port, the other is for control signals. NetworkManager only makes use of one of these ports but the Vodafone Connection Manager uses both. Now you have a choice, install Network Manager 0.7 to gain native GPRS/UMTS data support or use another package. I went for Network Manager, while it’s still in beta and i’ve had a few run-ins in the past with it I decided to give it a go.

So, it was a simple case of adding the 0.7 repositories to /etc/apt/sources.list, updating, then installing the needed packages.

# echo "deb http://debs.michaelbiebl.de/ unstable main" >> /etc/apt/sources.list
# apt-get update
# apt-get -t unstable install network-manager


You might need to remove any old Network Manager packages before you do this, as network-manager-openvpn collides with the new package.

Hopefully thats give you the overview you needed, and you should be up and running!

Read More..

Repository Ubuntu 9.10 Karmic Koala

2:56 PM Posted by Dr. Irwan

Daftar repository untuk Ubuntu 9.10 Karmic Koala, berikut saya berikan listnya.

Telkom

deb http://dl2.foss-id.web.id/ubuntu karmic main restricted universe multiverse
deb http://dl2.foss-id.web.id/ubuntu karmic-updates main restricted universe multiverse
deb http://dl2.foss-id.web.id/ubuntu karmic-security main restricted universe multiverse
deb http://dl2.foss-id.web.id/ubuntu karmic-backports main restricted universe multiverse
deb http://dl2.foss-id.web.id/ubuntu karmic-proposed main restricted universe multiverse

Kambing.ui.edu

deb http://kambing.ui.edu/ubuntu karmic main restricted universe multiverse
deb http://kambing.ui.edu/ubuntu karmic-updates main restricted universe multiverse
deb http://kambing.ui.edu/ubuntu karmic-security main restricted universe multiverse
deb http://kambing.ui.edu/ubuntu karmic-backports main restricted universe multiverse
deb http://kambing.ui.edu/ubuntu karmic-proposed main restricted universe multiverse

komo.vlsm.org

deb http://komo.vlsm.org/ubuntu karmic main restricted universe multiverse
deb http://komo.vlsm.org/ubuntu karmic-updates main restricted universe multiverse
deb http://komo.vlsm.org/ubuntu karmic-security main restricted universe multiverse
deb http://komo.vlsm.org/ubuntu karmic-backports main restricted universe multiverse
deb http://komo.vlsm.org/ubuntu karmic-proposed main restricted universe multiverse
Read More..

apt-spy bechmark mirror mana yang tercepat?

2:06 AM Posted by Dr. Irwan

Langsung saja langkah-langkahnya, seperti biasa login root :

# apt-get install apt-spy

Jika instalasi sudah selesai, ketik :

#apt-spy update

Setelah berhasil anda tinggal menjalankan perintah bechmark, saya test menggunkan server indonesia :

#apt-spy -d stable -s id

maka akan keluar :

SERVER: kebo.vlsm.org
Benchmarking FTP…
Downloaded 178104 bytes in 15.70 seconds
Download speed: 11.08 kB/sec
Benchmarking HTTP…
Downloaded 166214 bytes in 16.27 seconds
Download speed: 9.98 kB/sec

SERVER: debian.indika.net.id
Benchmarking HTTP…
Downloaded 173481 bytes in 15.39 seconds
Download speed: 11.01 kB/sec

SERVER: kambing.vlsm.org
Benchmarking FTP…
Downloaded 175664 bytes in 28.66 seconds
Download speed: 5.99 kB/sec
Benchmarking HTTP…
Downloaded 40239 bytes in 20.92 seconds
Download speed: 1.88 kB/sec
Writing new sources.list file: /etc/apt/sources.list

Jika selesai maka sources.list yang tercepat akan otomatis tersimpan di /etc/apt/sources.list . Bila anda tidak puas dengan bechmark dengan 2 server saja anda bisa menambahkan list2 server indonesia yang lain di /var/lib/apt-spy/mirrors.txt

#vim /var/lib/apt-spy/mirrors.txt

Untuk option-option lain bisa dilihat dibawah ini:

-d distribution
Debian distribution to use. Sensible values would be `stable’, `testing’ or `unstable’. This value is directly used in the generated sources.list, and is required unless updating.
-a area
This will cause only servers in the specified area to be benchmarked. By default, valid values for area are `Africa’, `Asia’, `Europe’, `North-America’, `Oceania’ and `South-America’. It is very easy to define your own areas or subset of servers to benchmark. For further details see apt-spy.conf(5).
-c config
configuration file to use instead of /etc/apt-spy.conf.
-e number
`early finish’. Stop benchmarking after number of servers have been completed. Act as if all servers were benchmarked upon completion.
-f file
file to grab from the Debian servers. By default apt-spy will test the servers by getting part of the `ls-lR’ file in the base of the Debian tree on the mirror. This tells apt-spy to get file instead. It is assumed that this file is also relative to the Debian base directory.
-i file
use file as input for apt-spy. You should generate this input file using the -w option.
-m mirror-list
where to load the mirrors list from or where to save it to. The default location is /var/lib/apt-spy/mirrors.txt. Using this option allows you to specify a different location. When updating, this defines where the updated mirrors list will be saved.
-o output-file
location for the new sources.list. By default the new file is created as /etc/apt/sources.list.
-p proxy
use proxy as a prxy server. This should be specified as `hostname:port’.
-s country-list
A comma-separated list of countries to benchmark. At the moment, this cannot be used with the “area” option.
-t time
how long (approximately) in seconds to download for. By default time is 15 seconds. How long the benchmark actually downloads for varies due to the way libcurl works. With the default 15 seconds, the benchmark generally takes beween 10 and 25 seconds. Each server has potentially two protocols (ftp and http) so roughly one minute per server would be a reasonable estimate of how long it should take. Be aware that this does vary considerably, and that benchmarking any more than a very few servers takes considerable time (possibly several hours for `-a All’).
-u update-URL
specify custom URL to get an updated mirrors list from. This can be http, ftp, file, or any other URL type supported by libcurl.
-w file
write a number of top servers to file in a format suitable for use with the -i option. The number of servers to output can be specified with the -n option, and defaults to 5.
-n number
the number of top servers to write with the -w option.
update
connect to http.us.debian.org and download the mirror list to /var/lib/apt-spy/mirrors.txt. The -u or -m options may be used to respectively specify a different URL for the mirrors list or a different location for the downloaded file.
-v
output a version number.
-h
print a short usage message.


Ok. Selesai sudah, semoga sedikit bahan percobaan ini bisa berguna buat kita semua.
Read More..

Create ISO Images from CD/DVD and Folder Files

3:43 PM Posted by Dr. Irwan

Turn a CD/DVD into an .iso
$ sudo umount /dev/cdrom
$ dd if=/dev/cdrom of=file.iso bs=1024

Turn a folder into an .iso
$ mkisofs -r -o file.iso /location_of_folder/


Generate an MD5 checksum file
$ md5sum file.iso > file.iso.md5


Check MD5 checksum of file
$ md5sum -c file.iso.md5


Read More..

Membersihkan file sampah (trash bin) di Ubuntu

7:46 AM Posted by Dr. Irwan

Jika kita menghapus file yang sudah tidak digunakan lagi maka cukup dengan memilih file tersebut lalu tekan tombol 'Delete' di keyboard dan secara otomatis file tersebut masuk ke Recycle bin (Jika di Windows) dan Trash bin (Jika di Linux/Ubuntu).

Namun perbedaannya adalah apabila anda di Windows menu Recycle bin dapat dilihat secara langsung di windows explorer sedangkan di Linux/Ubuntu direktori Trash bin itu secara default adalah tersembunyi (hidden). Dan satu lagi di Windows untuk membersihkan Recycle bin cukup dengan mengklik kanan dan pilih 'Empty recycle bin' sedangkan di Ubuntu sedikit berbeda.

Jadi seandainya anda menghapus sebuah file yang berukuran cukup besar tapi tidak menghapus file tersebut di Trash bin maka tetap saja file sampah tersebut akan memenuhi ruang hard drive anda.

Untuk menghapus file di Trash bin bisa dilakukan dengan cara sebagai berikut:

Dari terminal/konsol

jafar@roemasa:~$ rm -rf ~/.local/share/Trash/*
(ingat tidak perlu untuk menggunakan login sebagai sudo)

atau bisa juga dengan memanfaatkan nautilus (file browser di Ubuntu)

jafar@roemasa:~$ nautilus ~/.local/share/Trash/
Perintah diatas untuk menghapus file sampah yang ada di direktori home kita.

Terkadang file sampah milik root 'terdampar' di Trash bin lokal kita, untuk menghapusnya gunakan perintah berikut:

jafar@roemasa:~$ sudo chown -R usernamekita /home/usernamekita/.local/share/Trash

jafar@roemasa:~$ rm -rf ~/.local/share/Trash/*

Dan yang terakhir adalah menghapus file sampah yang ada milik root di direktori Trash bin-nya. Untuk melakukan ini sebaiknya kita berhati-hati karena sedikit saja kesalahan maka bisa menghapus file system secara keseluruhan. Berikut langkah singkatnya:

jafar@roemasa:~$ sudo chown -R usernamekita /root/.local/share/Trash/*

jafar@roemasa:~$ rm -rf ~/.local/share/Trash

Semoga bermanfaat :)
Read More..

Daftar repository ubuntu 9.04

1:51 PM Posted by Dr. Irwan

Para pemakai ubuntu untuk kelancaran update selayaknya memakai repository lokal biar cepet..! untuk Repository lokal indonesia berikut ini pilih salah sat tempat terdekat dengan lokasi anda..

1. mirror.cbn.net.id (OpenIXP)

deb http://ubuntu.cbn.net.id/Ubuntu jaunty main restricted universe multiverse
deb http://ubuntu.cbn.net.id/Ubuntu jaunty-updates main restricted universe multiverse
deb http://ubuntu.cbn.net.id/Ubuntu jaunty-security main restricted universe multiverse
deb http://ubuntu.cbn.net.id/Ubuntu jaunty-backports main restricted universe multiverse
deb http://ubuntu.cbn.net.id/Ubuntu jaunty-proposed main restricted universe multiverse

2. kambing.ui.edu (UI, Telkom, Indosat, OpenIXP, INHERENT

deb http://kambing.ui.edu/ubuntu jaunty main restricted universe multiverse
deb http://kambing.ui.edu/ubuntu jaunty-updates main restricted universe multiverse
deb http://kambing.ui.edu/ubuntu jaunty-security main restricted universe multiverse
deb http://kambing.ui.edu/ubuntu jaunty-backports main restricted universe multiverse
deb http://kambing.ui.edu/ubuntu jaunty-proposed main restricted universe multiverse

3. www.foss-id.web.id (Telkom)

deb http://dl2.foss-id.web.id/ubuntu jaunty main restricted universe multiverse
deb http://dl2.foss-id.web.id/ubuntu jaunty-updates main restricted universe multiverse
deb http://dl2.foss-id.web.id/ubuntu jaunty-security main restricted universe multiverse
deb http://dl2.foss-id.web.id/ubuntu jaunty-backports main restricted universe multiverse
deb http://dl2.foss-id.web.id/ubuntu jaunty-proposed main restricted universe multiverse

4. ftp.itb.ac.id (ITB, INHERENT)

deb ftp://ftp.itb.ac.id/pub/ubuntu jaunty main restricted universe multiverse
deb ftp://ftp.itb.ac.id/pub/ubuntu jaunty-updates main restricted universe multiverse
deb ftp://ftp.itb.ac.id/pub/ubuntu jaunty-security main restricted universe multiverse
deb ftp://ftp.itb.ac.id/pub/ubuntu jaunty-backports main restricted universe multiverse
deb ftp://ftp.itb.ac.id/pub/ubuntu jaunty-proposed main restricted universe multiverse

5. indika.net.id (OpenIXP)

deb http://ubuntu.indika.net.id/ jaunty main restricted universe multiverse
deb http://ubuntu.indika.net.id/ jaunty-updates main restricted universe multiverse
deb http://ubuntu.indika.net.id/ jaunty-security main restricted universe multiverse
deb http://ubuntu.indika.net.id/ jaunty-backports main restricted universe multiverse
deb http://ubuntu.indika.net.id/ jaunty-proposed main restricted universe multiverse

6. komo.vlsm.org

deb http://komo.vlsm.org/ubuntu jaunty main restricted universe multiverse
deb http://komo.vlsm.org/ubuntu jaunty-updates main restricted universe multiverse
deb http://komo.vlsm.org/ubuntu jaunty-security main restricted universe multiverse
deb http://komo.vlsm.org/ubuntu jaunty-backports main restricted universe multiverse
deb http://komo.vlsm.org/ubuntu jaunty-proposed main restricted universe multiverse

Cara Menggunakan :

1. Tentukan pilihan anda pada salah satu server repository diatas

2. Tinggal di Terminal ketik (untuk ubuntu gunakan gedit, xubuntu gunakan mousepad, kubuntu bisa menggunakan kate, atau juga bisa menggunakan nano)

# sudo gedit /etc/apt/sources.list


3. Copy dan Paste kan aja ke dalam text editor kemudian di Save. Ganti semua repository yang ada

4. Diterminal ketikan lagi

# sudo apt-get update


5. Semoga bermanfaat..!
Read More..