My Netbook is Axio pico, with OS Ubuntu 11.04
below for setup wifi device to Access Point Indoor room
Conncet your netbook to internet, and open your terminal console
#sudo apt-get install hostpad
#sudo apt-get install dhcp3-server
#sudo apt-get update dhcp3-server
#sudo gedit /etc/dhcp3/dhcpd.conf
write this config:
# /etc/dhcp3/dhcpd.conf
ddns-update-style none;
option subnet-mask 255.255.255.0;
#default-lease-time 600;
#max-lease-time 7200;
#authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.1 192.168.1.254;
option domain-name-servers 8.8.8.8, 8.8.4.4;
option domain-name "internal.ubuntu";
option routers 192.168.1.1;
option broadcast-address 192.168.1.255;
# default-lease-time 600;
# max-lease-time 7200;
}
before exit, don't forget save configuration. Than do command at below,
sudo gedit /etc/default/dhcp3-server
write this config:
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp3-server by the maintainer scripts
#
# This is a POSIX shell fragment
#
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="wlan0"
before exit, don't forget save configuration.
For edit Access Point configuration, follow below,
sudo gedit hostapd.conf
write this config:
interface=wlan0
driver=nl80211
ssid=ubuntuspot
channel=1
hw_mode=g
auth_algs=1
wpa=3
wpa_passphrase=1234567890
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
rsn_pairwise=CCMP
before exit, don't forget save configuration. Than do command at below,
sudo gedit /etc/network/interfaces
auto lo eth0 wlan0
iface lo inet loopback
iface eth0 inet static
address 192.168.2.2
netmask 255.255.255.0
gateway 192.168.1.1
iface wlan0 inet dhcp
before exit, don't forget save configuration. Than do command at below,
restart network.
$sudo /etc/init.d/network restart
for setting IPForwarding, do below:
sudo gedit /etc/sysctl.conf
write this config:
# Uncomment the next line to enable packet forwarding for IPv4
net.ipv4.ip_forward=1
# Uncomment the next line to enable packet forwarding for IPv6
# Enabling this option disables Stateless Address Autoconfiguration
# based on Router Advertisements for this host
net.ipv6.conf.all.forwarding=1
before exit, don't forget save configuration.
All Configuration is done, then connect modem to Netbook (USB Port)
after modem connect to netbook, follow this command below.
$eject /dev/sr0
$sudo wvdial
$sudo sysctl -w net.ipv4.conf.all.forwarding=1
$sudo iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
$sudo ifconfig wlan0 inet 192.168.1.1 netmask 255.255.255.0
$sudo hostapd -d hostapd.conf
$sudo /etc/init.d/dhcp3-server start
When you pairing wirelless connect, name of wirelless network is "ubuntuspot" and ask then need to insert keys, the keys is 1234567890.
This book recommand to learn basic unix command.
So Enjoy
Showing posts with label dialup. Show all posts
Showing posts with label dialup. Show all posts
dialup bluetooth motorola l7
Mumpung ada blog, tulis disini ach.... biar sewaktu2 klo lupa tinggal buka blog ini. Trus sekalian sharing ilmu..... dan gak ada maksud untuk menggurui atau apapun.....
OS Ubuntu 7.10 (Gutsy Gibbon)Dial Up pake GPRS IM3, hp Motorola L7,Device Bluetooth Modem.
Langkah 1:
Login sebagai root, perintah:
$sudo -i
Langkah 2:
Pastikan Bluetooth HP dan PC/Laptop pada posisi ON
Search bluetooth device HP, perintah:
$hcitool scan
Scanning ...
00:17:00:36:6C:90 Sangkodok
Langkah 3:
Jelajahi device HP tersebut, perintah
$sdptool searh DUN
Inquiring ...
Searching for DUN on 00:17:00:36:6C:90 ...
Service Name: Dial-up networking Gateway
Service Description: Dial-up networking Gateway
Service Provider: Motorola
Service RecHandle: 0x10001
Service Class ID List:
"Dialup Networking" (0x1103)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
code_ISO639: 0x00
encoding: 0x6a
base_offset: 0xc800
code_ISO639: 0x7a68
encoding: 0x6a
base_offset: 0xc803
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100
Langkah 4:
Perhatikan Alamat Bluetooth HP 00:17:00:36:6C:90
dan Chanel HP --> Chanel: 1
Edit rfcomm bluetooth, perintah:
$gedit /etc/bluetooth/rfcomm.conf
rfcomm0 {
bind yes;
device 00:17:00:36:6C:90;
channel 1;
comment “motorola”;
}
Langkah 5:
Restart Bluetooth device PC/Laptop, perintah:
$/etc/init.d/bluetooth restart
Langkah 6:
Check binding bluetooth dengan HP, perintah:
$rfcomm
rfcomm0: 00:17:00:36:6C:90 channel 1 clean
usahakan hasil rfcomm muncul seperti diatas.
Langkah 7:
Edit wvdial.conf, perintah:
$gedit /etc/wvdial.conf
[Dialer im3]
Init1 = AT+CGDCONT=1,"IP","www.indosat-m3.net",,0,0
Phone = *99***1#
New PPPD = yes
Modem = /dev/rfcomm0
Username = gprs
Password = im3
Baud = 115200
Auto DNS = on
Stupid Mode = 1
Langkah 8:
Test connect dengan wvdial, perintah:
$wvdial im3
Mudah-mudahan berjalan lancar......
adapun tambahan settingan di /etc/bluetooth/hcid.conf sbb:
autoinit yes;
security auto;
pairing multi;
passkey "1234";
Setelah di edit restart bluetoothnya, saat connect ke bluetooth, klo minta passkey masukkan 1234, sesuai dengan passkey diatas.
Klo misalnya masih ada error, mohon maaf.... silahkan di search di Paman Google,yang pasti paman sangat jauuuuh berpengalaman dari saya.
Referensi yang saya dapat:
http://www.howtoforge.com/linux_internet_access_gprs_edge_via_bluetooth_gsm_phone
http://frisbete.blogspot.com/2007/09/bluetooth-gprs-modem-on-ubuntu.html
chaww......
gakadaide
OS Ubuntu 7.10 (Gutsy Gibbon)Dial Up pake GPRS IM3, hp Motorola L7,Device Bluetooth Modem.
Langkah 1:
Login sebagai root, perintah:
$sudo -i
Langkah 2:
Pastikan Bluetooth HP dan PC/Laptop pada posisi ON
Search bluetooth device HP, perintah:
$hcitool scan
Scanning ...
00:17:00:36:6C:90 Sangkodok
Langkah 3:
Jelajahi device HP tersebut, perintah
$sdptool searh DUN
Inquiring ...
Searching for DUN on 00:17:00:36:6C:90 ...
Service Name: Dial-up networking Gateway
Service Description: Dial-up networking Gateway
Service Provider: Motorola
Service RecHandle: 0x10001
Service Class ID List:
"Dialup Networking" (0x1103)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
code_ISO639: 0x00
encoding: 0x6a
base_offset: 0xc800
code_ISO639: 0x7a68
encoding: 0x6a
base_offset: 0xc803
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100
Langkah 4:
Perhatikan Alamat Bluetooth HP 00:17:00:36:6C:90
dan Chanel HP --> Chanel: 1
Edit rfcomm bluetooth, perintah:
$gedit /etc/bluetooth/rfcomm.conf
rfcomm0 {
bind yes;
device 00:17:00:36:6C:90;
channel 1;
comment “motorola”;
}
Langkah 5:
Restart Bluetooth device PC/Laptop, perintah:
$/etc/init.d/bluetooth restart
Langkah 6:
Check binding bluetooth dengan HP, perintah:
$rfcomm
rfcomm0: 00:17:00:36:6C:90 channel 1 clean
usahakan hasil rfcomm muncul seperti diatas.
Langkah 7:
Edit wvdial.conf, perintah:
$gedit /etc/wvdial.conf
[Dialer im3]
Init1 = AT+CGDCONT=1,"IP","www.indosat-m3.net",,0,0
Phone = *99***1#
New PPPD = yes
Modem = /dev/rfcomm0
Username = gprs
Password = im3
Baud = 115200
Auto DNS = on
Stupid Mode = 1
Langkah 8:
Test connect dengan wvdial, perintah:
$wvdial im3
Mudah-mudahan berjalan lancar......
adapun tambahan settingan di /etc/bluetooth/hcid.conf sbb:
autoinit yes;
security auto;
pairing multi;
passkey "1234";
Setelah di edit restart bluetoothnya, saat connect ke bluetooth, klo minta passkey masukkan 1234, sesuai dengan passkey diatas.
Klo misalnya masih ada error, mohon maaf.... silahkan di search di Paman Google,yang pasti paman sangat jauuuuh berpengalaman dari saya.
Referensi yang saya dapat:
http://www.howtoforge.com/linux_internet_access_gprs_edge_via_bluetooth_gsm_phone
http://frisbete.blogspot.com/2007/09/bluetooth-gprs-modem-on-ubuntu.html
chaww......
gakadaide
Subscribe to:
Posts (Atom)