msgbartop
A chronological documentation test project, nothing serious, really!
msgbarbottom

19 Jul 2008 Configure Telenor Mobile Broadband using Ubuntu

This post is a short description/HOWTO of how I configured a “Telenor Mobilt Bredbånd” on Ubuntu 8.04 (Hardy Heron)I’ve borrowed from a friend of mine. I might have forgotten some steps on this guide and haven’t verified it on a fresh Ubuntu 8.04 installation.

Determine modemtype

This HOWTO has been written for the GlobeSurfer ICON 225 modem from Telenor. To determine if you have this modem insert it into a spare USB slot and type the following command

# lspci
 
...
Bus 005 Device 003: ID 0af0:6971 Option
...

Download and install HSOconnect packages

Download the HSOlink and HSOconnect packages from http://www.pharscape.org/component/option,com_forum/Itemid,68/page,viewtopic/t,457/
Install the packages downloaded

sudo dpkg -i hsolink_1.0.46-1_i386.deb
sudo dpkg -i hsoconnect_1.1.61_all.deb

Install the build-essential package (if it’s not installed already) since we’re going to compile software during this HOWTO

# sudo aptitude install build-essential

Download and install needed software

Download the REZeroCD (hso-udev.tar.gz) from http://www.pharscape.org/component/option,com_forum/Itemid,68/page,viewtopic/t,425/ to change the behavior for the dongle to be a modem.

Unpack and install the file

# tar xfz hso-udev.tar.gz

# cd hso-udev

# sudo make

# sudo make install

Download and install HSO module

Install the HSO module by downloading the file hso-1.2.tar.gz from http://www.pharscape.org/component/option,com_forum/Itemid,68/page,viewtopic/t,445/
Unpack the file hso-1.2.tar.gz and compile it

# sudo tar xfz hso-1.2.tar.gz

# cd hso

# make 

# make install

Verify that the module has been installed

lsmod | grep hso

Load themodule if it isn’t loaded

modprobe hso

Start the application

Unplug your modem and wait about 30 seconds and plut it in again before continuing this HOWTO

Start the HSOconnect software : Applications –> Internet –> HSOconnect.

HSOConnect

HSOconnect


Go to Profile and choose Edit connection
HSOconnect Connection Editor

HSOconnect Connection Editor


Configure it for Telenor settings

APN: telenor
Username: anything
Password: anything

Accept the settings and press the Connect button.
You are now (most likely) connected to the Internet using your Telenor Mobile Broadband dongle.

Troubleshooting

You might experience that Firefox 3.x won’t load webpages. This might occur because the browser is in “Offline mode”. Just change this behaviour by unselecting the File –> Work Offline mode and try again.

Tags: , , , , ,

Posted by

29 Jan 2007 Using a usb stick to login to gentoo Linux

It was kinda late, and I wanted to do something tonight…something interesting. I was looking at my usb key when I had this flash…”Could I use my usb key to login to my pc with a certain account ?”.
Googling … googling… I need a PAM module to do it. eix time now!

#eix pam usb
* sys-libs/pam_usb
Available versions: 0.3.1 0.3.2
Homepage: http://www.pamusb.org/
Description: A PAM module that enables authentication using an USB-Storage device (such as an USB Pen) through DSA private/public keys.

Bingo!

I emerged it and edited /etc/pam.d/system-auth and /etc/pam.d/login
In the very first line of the files I added:
auth sufficient /lib/security/pam_usb.so !check_device allow_remote=1 force_device=/dev/sda1 fs=vfat debug=1 log_file=/var/log/pam_usb.log

Then I just did:

mount /mnt/corsair
usbadm keygen /mnt/corsair root 4096

as the great quickstart of pam_usb describes and I am set!

just a test then…:

$ su
#

Damn! I liked that!

and you can check the debug log too:

[device.c:371] Forcing device /dev/sda1
[device.c:346] Creating temporary mount point...
[device.c:354] Scheduling [/tmp/pam_usbI7wL6Z] for dropping
[device.c:358] Using /tmp/pam_usbI7wL6Z as mount point
[device.c:237] Trying to mount /dev/sda1 on /tmp/pam_usbI7wL6Z using vfat
[device.c:253] Device mounted, trying to open private key
[device.c:181] Opening /tmp/pam_usbI7wL6Z/.auth/root.XXXXXX
[device.c:261] Private key opened
[auth.c:207] Private key imported
[auth.c:218] Public key imported
[device.c:455] Dropping [/tmp/pam_usbI7wL6Z]
[dsa.c:77] Checking DSA key pair...
[dsa.c:87] Signing pseudo random data [1 time(s)]...
[dsa.c:94] Valid signature
[dsa.c:87] Signing pseudo random data [2 time(s)]...
[dsa.c:94] Valid signature
[dsa.c:87] Signing pseudo random data [3 time(s)]...
[dsa.c:94] Valid signature
[pam.c:207] Access granted

What about if I remove the usb key ?

$ su
Password:
su: Authentication failure
Sorry.
$

and the debug log:

[device.c:371] Forcing device /dev/sda1
[device.c:346] Creating temporary mount point...
[device.c:354] Scheduling [/tmp/pam_usbTMRHEZ] for dropping
[device.c:358] Using /tmp/pam_usbTMRHEZ as mount point
[device.c:237] Trying to mount /dev/sda1 on /tmp/pam_usbTMRHEZ using vfat
[device.c:242] mount failed: No such file or directory
[device.c:249] Unable to mount /dev/sda1, tried with 1 fs
[device.c:376] Device forcing failed, back to guess mode
[device.c:419] Cannot find any device
[device.c:455] Dropping [/tmp/pam_usbTMRHEZ]
[auth.c:186] Invalid device
[pam.c:203] Cannot authenticate user "root"

Source: http://www.void.gr/kargig/blog/2005/04/15/using-a-usb-stick-to-login-to-gentoo/

Tags: , , , , ,

Posted by

26 Jan 2007 USB Corsair Flash Voyager and udev rules

I had some problems making my new Corsair Flash Voyager 1Gb work under udev. Until now I used the SYSFS{serial}= part from udevinfo to distinguish my usb devices. Corsair Flash Voyager doesn’t have one. So I put the following line in /etc/udev/rules.d/10-local.rules to make it work:

KERNEL="sd*", SYSFS{vendor}="Corsair", SYSFS{model}="Flash*Voyager*", NAME{all_partitions}="corsair%n", GROUP="disk"

The first partition of the usb stick is now recognized as /dev/corsair1, and if I had more they would be named /dev/corsair2, /dev/corsair3, etc

Source: http://www.void.gr/kargig/blog/2006/03/21/usb-corsair-flash-voyager-and-udev-rules/

Tags: ,

Posted by