Sabtu, 28 Maret 2009

Koneksi Internet Dengan Bluetooth Sony Ericsson K630i di openSUSE 11.0

1.Pairing bluetooth HP anda terlebih dahulu.
2.Gunakan tool ’sdptool’ untuk mendapatkan informasi address bluetooth hp.

syahal@redarix:~> sdptool search dun
Inquiring …
Searching for dun on 00:1F:E4:4E:41:A7 …
Service Name: Dial-up Networking
Service RecHandle: 0x2008003
Service Class ID List:
"Dialup Networking" (0x1103)
"Generic Networking" (0x1201)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0101

3. Masuk sebagai root, kemudian konfigurasi file /etc/bluetooth/rfcomm.conf:
isi dari file rfcomm.conf.

rfcomm0 {
# Automatically bind the device at startup
bind yes;

# Bluetooth address of the device
device 00:1F:E4:4E:41:A7;

# RFCOMM channel for the connection ( ikuti channel 1, berdasarkan hasil dari ’sdptool’ )
channel 1;

# Description of the connection
comment "SE K630i";
}

4. Binding address bluetooth hp ke device /dev/rfcomm0, gunakan perintah ini :

redarix:/home/syahal # rfcomm bind 0 00:1F:E4:4E:41:A7

5. Periksa hasil binding device :

redarix:/home/syahal # ls -l /dev/rfcomm0
crw-rw—- 1 root root 216, 0 2009-03-28 09:32 /dev/rfcomm0

6. Gunakan wvdial untuk dial ke internet. konfigurasi /etc/wvdial.conf

[Dialer K630i]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","indosatm2"
Modem = /dev/rfcomm0
Phone = *99#
Username = UsernameAnda
Password = PasswordAnda
Stupid Mode = 1
Dial Command = ATDT
Auto DNS = 1

Simpan, untuk "indosatm2", gunakan acess point provider anda.

7. Siap untuk dial ke internet:

redarix:~ # wvdial K630i
–> WvDial: Internet dialer version 1.60
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZ
ATZ
OK
–> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
–> Sending: AT+CGDCONT=1,"IP","indosatm2"
AT+CGDCONT=1,"IP","indosatm2"
OK
–> Modem initialized.
–> Idle Seconds = 300, disabling automatic reconnect.
–> Sending: ATDT*99#
–> Waiting for carrier.
ATDT*99#
CONNECT
~[7f]}#@!}!}!} }9}#}%B#}%}(}"}’}"}"}&} } } } }%}&UA; L}-~
–> Carrier detected. Starting PPP immediately.
–> Starting pppd at Sat Mar 28 09:55:00 2009
–> Pid of pppd: 13261
–> Using interface ppp0
–> pppd: p�[06][08]��[06][08]@�[06][08]
–> pppd: p�[06][08]��[06][08]@�[06][08]
–> pppd: p�[06][08]��[06][08]@�[06][08]
–> pppd: p�[06][08]��[06][08]@�[06][08]
–> pppd: p�[06][08]��[06][08]@�[06][08]
–> local IP address 114.58.63.98
–> pppd: p�[06][08]��[06][08]@�[06][08]
–> remote IP address 10.64.64.64
–> pppd: p�[06][08]��[06][08]@�[06][08]
–> primary DNS address 202.155.0.10
–> pppd: p�[06][08]��[06][08]@�[06][08]
–> secondary DNS address 202.155.0.15
–> pppd: p�[06][08]��[06][08]@�[06][08]
–> Script /etc/ppp/ip-up run successful
–> Default route Ok.
–> Nameserver (DNS) Ok.

8. Selesai.

Senin, 23 Maret 2009

How to transfer files from pc to cellphone using bluetooth via console.

1. Make sure that you’ve installed :
- bluez, bluez-hcidump, bluez3-test, bluez3-utils.

2. Scan your bluetooth’s cellphone
syahal@redarix:~> hcitool scan
Scanning …
00:1F:E4:4E:41:A7 RedK630i

Then, you can get mac address and name of your cellphone.

3. Login as root, and use ‘l2ping‘ to make sure that your cellphone get connected to your pc.
And get reply from your cellphone

redarix:/home/syahal # l2ping 00:1F:E4:4E:41:A7
Ping: 00:1F:E4:4E:41:A7 from 00:10:60:A8:C9:4D (data size 44) …
44 bytes from 00:1F:E4:4E:41:A7 id 0 time 27.37ms
44 bytes from 00:1F:E4:4E:41:A7 id 1 time 43.81ms
44 bytes from 00:1F:E4:4E:41:A7 id 2 time 37.88ms
44 bytes from 00:1F:E4:4E:41:A7 id 3 time 40.85ms

4. Scan your cellphone memory.

redarix:/home/syahal # obexftp -l 00:1F:E4:4E:41:A7
Scanning for (null) …
Found: 00:1F:E4:4E:41:A7
Browsing 00:1F:E4:4E:41:A7 …
Connecting…done
Receiving "00:1F:E4:4E:41:A7"…
done
Disconnecting…done

Thereis two memmory on your cellphone ( ‘Phone memory‘ and ‘Memory card‘ ).

5. Use obexftp to get path listing of your directory cellphone.

redarix:/home/syahal # obexftp -l 00:1F:E4:4E:41:A7 "Memory card"/Music/
Scanning for (null) …
Found: 00:1F:E4:4E:41:A7
Browsing 00:1F:E4:4E:41:A7 …
Connecting…done
Receiving "00:1F:E4:4E:41:A7"…
done
Receiving "Memory card/Music/"… Sending "Memory card"… Sending "Music"… done

6. Now, we try to put file mp3 from pc to your cellphone. Use this command :
Scanning for (null) …
Found: 00:1F:E4:4E:41:A7
Browsing 00:1F:E4:4E:41:A7 …
Connecting…done
Sending "Matchbox Twenty - Cold.mp3"…/done
Sending "00:1F:E4:4E:41:A7"… failed: 00:1F:E4:4E:41:A7
Sending "Memory card/Music/"… failed: Memory card/Music/
Disconnecting…done

7. That’s All.

Selasa, 03 Maret 2009

NFS Server Repository

Server ( example : 192.168.100.1 )
1. redserver:~ # zypper in nfs-kernel-server yast2-nfs-server
2. yast > Network Services > NFS Server.
3. Choose Start (starting nfs service) and Open Port in Firewall, Next.
4. Add Directories to export.
5. Finish.
6. redserver:~ # cat /etc/exports
/opt/iso *(ro,root_squash,sync,no_subtree_check)

*Note :
- /opt/iso Directory.
- * Host or you can put with ip number.
- ro read only.
- root_squash root user on the client does not have full root privileges over the files on
the mounted share.
- sync sync means that the NFS server waits for local disk writes to complete, thus
minimizing the risk of data corruption if the server suddenly fails.
- no_subtree_check if only part of a volume is exported, a routine called subtree checking verifies that
a file that is requested from the client is in the appropriate part of the volume. If
the entire volume is exported, disabling this check will speed up transfers.

Client ( example : 192.168.100.6 )
1. Make sure portmap service is running
redarix:/home/syahal # rcportmap start
2. Show nfs server shared from 192.168.100.1 :
redarix:/home/syahal # showmount -e 192.168.100.1
Export list for 192.168.100.1:
/opt/iso *

3. Mounting nfs server 192.168.100.1
redarix:/home/syahal # mount -t nfs 192.168.100.1:/opt/iso/ /mnt/
4. Show mounting result.
redarix:/home/syahal # df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda5 ext3 7.9G 5.3G 2.3G 71% /
udev tmpfs 501M 176K 501M 1% /dev
/dev/sda7 ext3 46G 40G 3.9G 92% /data
/data/download/jakarta_map/Megapolitan.iso
iso9660 207M 207M 0 100% /data/program_files/jakarta
192.168.100.1:/opt/iso/
nfs 9.4G 8.0G 994M 90% /mnt

5. Try configure repository from yast
Yast > Softaware > Software Repositories > Add > NFS
Repository Name : update
Server Name : 192.168.100.1
Path to Directory or ISO Image : /opt/iso
Next.
6. Finish.

Setup wifi Acer 4720Z

1. redarix:~ # lspci
05:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5787M Gigabit Ethernet PCI Express (rev 02)
2. Download firmwire broadcom wireless
redarix:~ # /usr/sbin/install_bcm43xx_firmware
3. Try configure your wireless in yast.
4. Finish.

Install driver modem conexant chipset modem usb prolink 1456.

1. Install gcc, kernel-source, make.

  • redarix:~ # zypper in gcc kernel-source make

2. Download driver modem conexant chipset modem usb untuk prolink 1456 disini
3. Exctract driver.

  • redarix:~ # tar -xzf dgcmodem-{version}.tar.gz

4. Jalankan "make install" di folder dgcmodem-{version}

  • redarix:~ # make install

5. Setelah selesai compile.
6. Jalankan "dgcconfig"

  • redarix:~ # dgcconfig

7. buat koneksi internet melalui yast, gunakan device /dev/modem
yast > Network Devices > Modem.
8. Selesai.

Install widget Easy Monitor di SuperKaramba.

1. Paket karamba ada di DVD openSUSE 11.0 include dengan kdeutils3-extra. Install karamba

  • redarix:~ # zypper in kdeutils3-extra
2. Jalankan karamba ada di gecko > Utilities > Desktop > SuperKaramba
3. Download Easy Monitor ada disini

How to set password on grub

  1. Login as root.
    redarix:~ # grub-md5-crypt
    Password:
    Retype password:
    $1$zrqqv$smtnY9hrvn7WvFunfSPkR0
  2. Use your favorite editor to edit /boot/grub/menu.lst and add the md5 password result to the menu.lst.
    redarix:~ # vi /boot/grub/menu.lst

    title openSUSE 11.0 - 2.6.25.20-0.1
    root (hd0,0)
    password --md5 $1$zrqqv$smtnY9hrvn7WvFunfSPkR0
    kernel /boot/vmlinuz-2.6.25.20-0.1-pae root=/dev/disk/by-id/scsi-SATA_MAXTOR_STM38021_6RW1G08R-part1 resume=/dev/sda5 splash=silent showopts
    initrd /boot/initrd-2.6.25.20-0.1-pae
  3. Reboot your OS.
  4. Finish.