Skip navigation.

Mobile blogging without going mobile

About the House with my phone passing time.

Tired of wasting time

, , ,

Having a good windows background and DOS commands i knew LINUX had an equivilent (batch).bat file.
Straight to IRC to find out what to look for and how to start.
After many a different version.
And a little help from my friend. -->nicomen
Came up with a 'script' to stop wasting time.

/////

sudo sdptool add --channel=0 SP
sudo dund -n --listen --channel 0 --msdun noauth 192.168.0.2:192.168.0.88 crtscts 115200 ms-dns 192.168.0.1 lock &
sudo rfcomm bind 0 00:00:00:00:00:00 2
sudo echo x > /dev/rfcomm0
sudo iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward

/////

testphoto albums

Comments

Anonymous 2. July 2009, 03:05

Karel writes:

Hi Adam,

Thanks for this script. I think I am almost "there" but still missing something as I am getting an error I can't solve. Would you be able to help? Thanks a lot

Karel
------
Nokia N70 with gnubox properly configured, I believe. I can see and browse files on my phone through bluetooth, syncronize via multisync, etc.
---------------

xxx@xxx:~/Desktop$ sudo telefon.sh
pand[5239]: Bluetooth PAN daemon version 4.42
pand[5239]: Connecting to XX:XX:XX:XX:XX:XX
pand[5239]: Connect to XX:XX:XX:XX:XX:XX failed. Connection refused(111)
bnep0: error fetching interface information: Device not found
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wmaster0: unknown hardware address type 801
SIOCSIFADDR: No such device
bnep0: ERROR while getting interface flags: No such device
bnep0: ERROR while getting interface flags: No such device
wmaster0: unknown hardware address type 801
Bind socket to interface: No such device
Failed to bring up bnep0.

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

Type the two words displayed in the image below:


Smilies

July 2009
S M T W T F S
June 2009August 2009
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31