You are not logged in.

#1 2011-10-02 08:50:18

songandsilence
Member
From: Burlingame, KS, USA
Registered: 2010-12-01
Posts: 28

Tethering BlackBerry using berry4all

I'm planning on tethering a computer using the berry4all shell script available at http://www.berry4all.com/install#linux.

The site says I need a few packages, but only lists the debian and redhat based package names. What are the Arch equivalents to these packages, and is there any special procedures for accomplishing this on Arch?

Offline

#2 2011-10-02 09:07:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Tethering BlackBerry using berry4all

python, libusb and ppp are in the repos and pyusb is in AUR. Seems pretty straightforward from there...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2011-10-02 15:12:24

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Tethering BlackBerry using berry4all

I just use barry (a git checkout from 20110814) with Linux's pppd.

Startup script:

if [[ -z $(pidof /usr/sbin/pppob) ]] ; then
    /usr/sbin/pppd call blackberry-modem &
    sleep 6
    for f in {0..10} ; do
        /sbin/route add default gw 169.254.1.1 metric 203 && break
        sleep 1
    done
fi

/root/bin/stopwirelessblackberry

killall /usr/sbin/pppd
killall /usr/sbin/pppob

sleep 3

killall -9 /usr/sbin/pppd
killall -9 /usr/sbin/pppob

/etc/chatscripts/blackberry-modem.chat  (/etc/chatscripts is just a symlink to /etc/ppp/chat/)

'' ATZ
OK ATDT*99#
CONNECT

/etc/ppp/peers/blackberry-modem

# To start:  ifdown eth0 ; breset ; btool -X ; pppd call blackberry-modem
# breset is very important!

connect "/usr/sbin/chat -f /etc/chatscripts/blackberry-modem.chat"

# From http://pdamobiz.com/forum/forum_posts.asp?TID=213551&PN=1&TPN=2
# "ais" is *not* optional, for either!
user "ais"
password "ais"

usepeerdns

# Is backup for router, so do not replace default
#noipdefault
#defaultroute

# No point in hogging a Terminal window
nodetach

# Don't use novj with BlackBerry OS5
#novj

nodeflate
nobsdcomp
noaccomp

# Flow control - should be none, apparently.
nocrtscts
nocdtrcts

nomultilink
nopcomp
nomagic

#passive

ipcp-restart 7
ipcp-accept-local
ipcp-accept-remote

# From http://blog.ub3rgeek.net/2009/12/29/bluetooth-dun-with-blackberry-9700-t-mobile-and-ubuntu-9-10/
ipcp-max-configure 20

# Detect failure
#lcp-echo-interval 20
#lcp-echo-failure 3
# This removes failure detect
lcp-echo-interval 0
lcp-echo-failure 999

mtu 1492

# Debugging verbosity
#debug
debug debug debug

#pty "/usr/sbin/pppob -l /tmp/pppob.log -v"
pty "/usr/sbin/pppob"

# 921600 Works For Me (TM) but won't "speed up" your connection.
# 115200 also works - maybe the only safe speed.
#230400
921600

pap-timeout 20
pap-restart 20
lcp-restart 10

# Script to run
disconnect "/root/bin/stopwirelessblackberry"

holdoff 2
modem
persist

Offline

Board footer

Powered by FluxBB