Senin, 04 April 2011

Setting Modem GSM di Ubuntu

Alhamdulillah,.. . Kemarin bingung nguprek modem gsm yg gak ada drivernya buat ubuntu udah bisa :D

pertama install paket usb-modeswitch
berguna untuk mengubah mode usb menjadi modem, karena secara default modem yang belum ada drivernya langsung dideteksi sebagai usb flash

ipan@ipan:~$ sudo apt-get install usb-modeswitch

lihat nama device modem yang terpasang

ipan@ipan:~$ lsusb
Bus 002 Device 005: ID 19d2:0031 ONDA Communication S.p.A. ZTE MF636
Bus 002 Device 002: ID 8087:0020
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lihat apakah versi device sudah ada atau belum
ipan@ipan:~$ ls /etc/usb_modeswitch.d/
0421:0610 0af0:6811 0af0:7701 1033:0035 19d2:0053
0471:1210 0af0:6911 0af0:7801 106c:3b03 19d2:2000
0471:1237 0af0:6951 0af0:7901 106c:3b06 19d2:2000:uPr=USB_ZTE
04e8:f000 0af0:6971 0af0:8200 1076:7f40 19d2:2000:uPr=ZTE_CDMA
05c6:1000:sVe=Option 0af0:7011 0af0:8201 1199:0fff 19d2:fff5
05c6:1000:uMa=AnyDATA 0af0:7031 0af0:c031 12d1:1001 19d2:fff6
05c6:1000:uMa=SAMSUNG 0af0:7051 0af0:d013 12d1:1003 1a8d:1000
05c6:1000:uMa=Vertex 0af0:7071 0af0:d031 12d1:1414 1ab7:5700
05c6:2001 0af0:7111 0af0:d033 12d1:1446 1b7d:0700
05c6:f000 0af0:7211 0af0:d035 12d1:1520 1bbb:f000
072f:100d 0af0:7251 0af0:d055 12d1:1521 1c9e:1001
0930:0d46 0af0:7271 0af0:d057 1410:5010 1c9e:9200
0ace:2011 0af0:7301 0af0:d155 1410:5020 1c9e:f000
0ace:20ff 0af0:7311 0af0:d157 1410:5030 1dd6:1000
0af0:6711 0af0:7361 0af0:d255 1410:5031 1e0e:f000
0af0:6731 0af0:7381 0af0:d257 148f:2578 1f28:0021
0af0:6751 0af0:7401 0af0:d357 16d8:6803
0af0:6771 0af0:7501 0fce:d0e1 16d8:700a
0af0:6791 0af0:7601 1004:1000 16d8:f000

jika ada langsung tambahkan dan aktifkan modem di System >> Administration >> Network Connections tambah pada mobile Broadband

jika belum ada nama device modem di mobile BroadBand buat file baru
ipan@ipan:~$ sudo nano /etc/modprobe.d/zte-mf633.conf
options usbserial vendor=0x19d2 product=0x0031

vendor dan product disapat dari nama device, lihat pada perintah lsusb

semoga Bermanfaat :)

Read More..

Jumat, 01 April 2011

Create a File Swap

How do I add more swap?

Swap is generally associated with a swap partition, perhaps because the user is prompted to create a swap partition at the time of installation. In fact, any file can be used as a swapping device, be it a partition or a conventional file. Although, to improve the responsiveness, it's recommended to have a good sized amount of RAM available. Swap can be added by adding a swap file. Keep in mind that when creating a swap file that it may not necessarily be using contiguous disk blocks (as a swap partition will), and this could have a negative impact on performance as disk access times may be longer and the more your system uses swap, the worse it will be. The Linux kernel also accesses swap disk block IO directly bypassing all caching, metadata and filesystem code, so a swap file should have no ill effect on the stability of your base filesystem.

Four-step Process to Add Swap

Creating a file the size you want.
Formatting that file to create a swapping device.
Adding the swap to the running system.
Making the change permanent.

For Adding a 512 MB swap

Creating a file for 512 MB size you want:

We will create a /mnt/512Mb.swap swap file and set the permissions so that users cannot read it directly.

sudo dd if=/dev/zero of=/mnt/512Mb.swap bs=1M count=512
sudo chmod 600 /mnt/512Mb.swap

Here count=512, means we want our file to contain 512 blocks of bs=1M, which means block size = 1 mebibyte (1 048 576 bytes). Be careful *not* to do this dd of=/mnt/512Mb.swap bs=1M seek=512 count=0 Though the file grows to 512Mb immediately, it will have holes that makes it unusable.

By default your swap file may be created world readable. We set the 600 mode permissions in order to prevent users from being able to read potentially sensitive information from the swap file.

Formatting that file to create a swapping device:

sudo mkswap /mnt/512Mb.swap

Adding the swap to the running system:

sudo swapon /mnt/512Mb.swap

The additional swap is now available and can be seen by "cat /proc/meminfo"

Making the change permanent:

Edit the /etc/fstab:

gksudo gedit /etc/fstab

Add this line at the end of the file:

/mnt/512Mb.swap none swap sw 0 0

Save. After the next reboot the swap will be used automatically.

Read More..

Mounting partisi NTFS otomatis di Ubuntu

Let’s start
Buka Terminal melalui menu: Applications → Accessories → Terminal
Cari tahu letak partisi NTFS, dengan mengetikkan :
$ sudo fdisk -l | grep NTFS

/dev/sda1 * 1 3187 25599546 7 HPFS/NTFS

/dev/sda5 3188 9730 52550781+ 7 HPFS/NTFS

Buat direktori untuk tujuan mounting partisi NTFS tersebut, misalnya:
$sudo mkdir /media/win_c
$sudo mkdir /media/win_d
Edit file /etc/fstab$ sudo gedit /etc/fstab
Tambahkan baris berikut ini:
/dev/sda1 /media/win_c ntfs-3g defaults,force 0 0
/dev/sda8 /media/win_d ntfs-3g defaults,force 0 0

ntfs-3g adalah driver yang digunakan untuk bisa melakukan mounting read/write pada partisi dengan filesystem NTFS.

Simpan hasil editan tersebut, kemudian tutup aplikasi gedit. Kemudian restart PC dan lihat hasilnya.
Read More..
za.IPAN's Blog © 2008. Design by :Yanku Templates Sponsored by: Tutorial87 Commentcute