eeepc 1000H debian squeeze wireless tmobile webnwalk

Hi

Here a nice walkthrough for a little tricky setup:

1.
Use that link to make a bootable usb stick:

http://wiki.debian.org/DebianEeePC/HowTo/InstallUsingStandardInstaller

I’ve installed my /home/ directory onto cryptfs with the squeeze installer
after installation it won’t mount your /home becouse of missing deb’s

apt-get install dmsetup cryptsetup
echo aes >> /etc/modules
echo dm_mod >> /etc/modules
echo dm_crypt >> /etc/modules

2. to get acpi and eeepc-laptop buttons to work you need

vim /etc/default/grub.cfg
GRUB_CMDLINE_LINUX="acpi_osi="Linux""
apt-get install eeepc-acpi-scripts 

3. for the rt2860sta wirelesscard you need

apt-get install firmware-ralink

dont forget to edit /etc/apt/sources.list for conrtib and non-free

echo rt2860sta >> /etc/modules 

4. get the t-modible webnwalk stick running

echo hso >> /etc/modules

and run this script for connecting with you mobile internet (i’ve found it on some gentoo pages but lost the link)

usage
connect.sh (up|down|restart)

#!/bin/sh

# checking for root
USERID=`id -u`
if [ "$USERID" != "0" ]
then
        echo "Need root permissions to run this script"
        exit
fi

APN=orange.ie
#USER=
#PASS=
#PIN=

DEVICE=/dev/ttyHS0
NETDEV=hso0
TMPFIL=/tmp/connect.$$
OUTPUTFILE=/tmp/output.$$
SCRIPTFILE=/tmp/scriptfile.$$

#################################################################################################
#       METHOD: Connect
#       PURPOSE:Connect to the specified APN with the specified user and pass and get the ip
#               set the IP to the interface
#################################################################################################
Connect()
{
        echo "Initializing..."

        #============================================================
        # send the PIN, APN, USER and PASS
        #============================================================
        rm -f $SCRIPTFILE
        echo "ABORT ERROR" > $SCRIPTFILE
        echo "TIMEOUT 10" >> $SCRIPTFILE
        echo """ ATZ" >> $SCRIPTFILE
        if [ -n "$PIN" ]
        then
               echo "OK "AT+CPIN="$PIN"^m"" >> $SCRIPTFILE
        fi
        echo "OK "AT+COPS=0^m"" >> $SCRIPTFILE
        echo "OK "dddddddAT+COPS=?^m"" >> $SCRIPTFILE
        echo "OK "AT+CGDCONT=1,,"$APN"^m"" >> $SCRIPTFILE
        if [ -n "$USER" -a -n "$PASS" ]
        then
                echo "OK "AT$QCPDPP=1,1,"$PASS","$USER"^m"" >> $SCRIPTFILE
        fi
        echo "OK """ >> $SCRIPTFILE

        #============================================================
        # run the script
        #============================================================
        echo "Trying $APN ..."
        rm -f $OUTPUTFILE
        ( /usr/sbin/chat -E -s -V -f $SCRIPTFILE <$DEVICE >$DEVICE ) 2> $OUTPUTFILE
        ISERROR="`grep '^ERROR' $OUTPUTFILE`"
        if [ -n "$ISERROR" ]
        then
                echo "Failed to initialize connection"
                cat $OUTPUTFILE
                echo " "
                rm -f $OUTPUTFILE
                exit
        fi
        ISERROR="`grep '^+CME' $OUTPUTFILE`"
        if [ -n "$ISERROR" ]
        then
                echo "Failed to initialize connection"
                cat $OUTPUTFILE
                echo " "
                rm -f $OUTPUTFILE
                exit
        fi
        rm -f $SCRIPTFILE
        sleep 2

        #============================================================
        # now actually connect
        #============================================================
        echo "Connecting..."
        stty 19200 -tostop

        # make the call script
        echo "ABORT ERROR" > $SCRIPTFILE
        echo "TIMEOUT 10" >> $SCRIPTFILE
        echo """ ATZ" >> $SCRIPTFILE
        echo "OK "AT_OWANCALL=1,1,0^m"" >> $SCRIPTFILE
        echo "OK "dddddAT_OWANDATA=1^m"" >> $SCRIPTFILE
        echo "OK """ >> $SCRIPTFILE
        
        PIP=""
        COUNTER=""
        while [ -z "$PIP" -a "$COUNTER" != "-----" ]
        do
                echo "trying$COUNTER"
                sleep 2
                rm -f $OUTPUTFILE
                ( /usr/sbin/chat -E -s -V -f $SCRIPTFILE <$DEVICE > $DEVICE ) 2> $OUTPUTFILE
                ISERROR=`grep '^ERROR' $OUTPUTFILE`
                if [ -z "$ISERROR" ]
                then
                        PIP="`grep '^_OWANDATA' $OUTPUTFILE | cut -d, -f2`"
                        NS1="`grep '^_OWANDATA' $OUTPUTFILE | cut -d, -f4`"
                        NS2="`grep '^_OWANDATA' $OUTPUTFILE | cut -d, -f5`"
                fi

                COUNTER="${COUNTER}-"
        done

        echo Connected

        #============================================================
        # always check the IP address
        #============================================================
        if [ -z "$PIP" ]
        then
                echo "We did not get an IP address from the provider, bailing ..."
                cat $OUTPUTFILE
                rm -f $OUTPUTFILE
                exit
        fi
        rm -f $OUTPUTFILE

        #============================================================
        # setting network settings
        #============================================================
        echo "Setting IP address to $PIP"
        ifconfig $NETDEV $PIP netmask 255.255.255.255 up
        echo "Adding route"
        route add default dev $NETDEV
        mv -f /etc/resolv.conf /tmp/resolv.conf.hso
        echo "Setting nameserver"
        echo "nameserver        $NS1" > $OUTPUTFILE
        echo "nameserver        $NS2" >> $OUTPUTFILE
        mv $OUTPUTFILE /etc/resolv.conf

        echo "Done."
}

#################################################################################################
#       METHOD: Disconnect
#       PURPOSE:disconnect from the providers network
#################################################################################################
Disconnect()
{
        echo "Bringing interface down..."
        ifconfig $NETDEV down

        echo "Disconnecting..."

        # make the disconnect script
        rm -f $SCRIPTFILE
        echo "TIMEOUT 10" >> $SCRIPTFILE
        echo "ABORT ERROR" >> $SCRIPTFILE
        echo """ ATZ" >> $SCRIPTFILE
        echo "OK "AT_OWANCALL=1,0,0^m"" >> $SCRIPTFILE
        echo "OK """ >> $SCRIPTFILE

        #============================================================
        # run the script
        #============================================================
        /usr/sbin/chat -V -f $SCRIPTFILE <$DEVICE >$DEVICE 2> /dev/null
        if [ -f /tmp/resolv.conf.hso ]
        then
                echo "Reset nameserver..."
                mv -f /tmp/resolv.conf.hso /etc/resolv.conf
        fi
        echo "Done."
}

#################################################################################################
#       METHOD: usage
#       PURPOSE:
#################################################################################################
usage()
{
        echo Usage: $0 (up|down|restart)
}

#################################################################################################
# Choose your action
#################################################################################################
case "$1" in
        up)
                Connect
                ;;
        down)
                Disconnect
                ;;
        restart)
                Disconnect
                Connect
                ;;
        *)
                usage
                ;;
esac