p2's wiki/ p2's blog
life tech

Welcome to my blog. Have a look at the most recent posts below, or browse the tag cloud on the right. An archive of all posts is also available.

RSS Atom Add a new post titled:
The real beginning of open source virtualization

Kris, how can you forget the real beginning of open source virtualization ?

Posted Mon Apr 7 22:49:33 2008

hole

In dutch we would say "wie een put graaft voor een ander, valt er zelf in"

Posted Sun Mar 30 21:10:44 2008

Fingerprints

For those who weren't aware of it yet, fingerprints are rather easy to fake as the CCC proves again here.

Posted Sat Mar 29 16:39:54 2008

The map of psytrance

The map of psytrance Thank you Anoebis !

Posted Sun Mar 23 00:29:16 2008

Pastafarians unite !

FSM

Posted Sat Mar 22 19:02:25 2008

Opus Iridium

Opus Iridium finally released ! Especially the downtempo part is very nice.

Posted Wed Mar 19 22:18:43 2008

Using 3G on the N95 via bluetooth in linux

Up to now I only used my Elisa 3G connection with the N810. That works quite well, but sometimes using 3G from my laptop would still be useful. Fortunately it was easy to setup. Assuming you already paired your phone with your laptop via bluetooth, you only need a configuration files, two scripts files and pppd to go online. First you need a ppp config file :

/dev/bluetooth/rfcomm/1 # rfcomm device 
connect '/usr/sbin/chat -v -f /etc/chatscripts/three-connect'  
disconnect '/usr/sbin/chat -v -f /etc/chatscripts/three-disconnect'  
defaultroute # Setup gateway stuff when connected.  
noipdefault # ask your 3G provider for IP addresses 
usedns # ask your 3G provider for nameserver addresses
noauth # do not request peer authentication
nopcomp # disable compression
230400

Save this as /etc/ppp/peers/three

You also need 2 chat scripts to connect to the 3G network and disconnect from the 3G network.

TIMEOUT         10  
ECHO            ON  
ABORT           '\nBUSY\r'  
ABORT           '\nERROR\r'  
ABORT           '\nNO ANSWER\r'  
ABORT           '\nNO CARRIER\r'  
ABORT           '\nNO DIALTONE\r'  
ABORT           '\nRINGING\r\n\r\nRINGING\r'  
''              \rAT  
TIMEOUT         15  
OK              ATE1  
OK              'AT+cgdcont=1,"IP","APN"'  
OK              ATD*99#
CONNECT

Replace APN by your 3G providers APN (See http://www.taniwha.org.uk/gprs.html for a list of APNs). Then save this as /etc/chatscripts/three-connect.

ABORT           "BUSY"  
ABORT           "ERROR"          
ABORT           "NO DIALTONE"  
SAY             "\nSending break to the modem\n"  
""              "\K"  
""              "\K"            
""              "\K"            
""              "+++ATH"  
""              "+++ATH"        
""              "+++ATH"        
SAY             "\nPDP context detached\n"

Save this as /etc/chatscripts/three-disconnect.

Now you need to find out 2 things from your phone : it's bluetooth mac address and the channel used for dialup connectivity. The bluetooth mac can be found easily by doing :

PHONE_MAC=$(hcitool scan | grep 'your phones name' | awk '{print $1}')

Executing :

DUN_CHANNEL=$(sdptool search --bdaddr $PHONE_MAC DUN | grep Channel | awk '{print $2}')

will give you the dialup networking channel.

Now the following commands should setup your 3G connection :

rfcomm bind 1 $PHONE_MAC $DUN_CHANNEL
pon three

To stop your 3G connection do :

poff three
rfcomm release 1

Scripting this is left as an exercise for the reader. It's adviseable to put the values of $PHONE_MAC and $DUN_CHANNEL in the script rather then scanning for them everytime you want to setup the connection. The scan can be quite slow if there are a lot of devices visible. Obviously you need to update them when you change phones.

Happy surfing !

Thanks to http://gentoo-wiki.com/HOWTO_Access_the_internet_with_your_cellphone_and_bluetooth_(UMTS/GPRS) for the basic scripts.

DISCLAIMER: I'm not responsible for your phone bill.

Posted Sun Mar 9 21:11:15 2008

Reinventing the wheel

3270 <-> Web 2.0

VM/370 <-> Xen

Genera <-> Singularity

Are we reinventing the wheel ?

Posted Sat Mar 8 18:26:58 2008


This wiki is powered by ikiwiki.