20110811

copy modules needed for chroot environment commands from real root

echo '#!/bin/bash' > /tmp/cp2chroot.sh

mkdir -p /www/chroot/newchuser/usr/lib64 /www/chroot/newchuser/lib64

ldd /usr/bin/scp | \
perl -ne 'my $dest_dir = "/www/chroot/newchuser"; \
my @line = split(/\n/, $_); \
foreach (@line) { $_ =~ s/.*=>(.*)/$1/; $_ =~ s/^\s+(.*) \(.*\)/$1/; \ 
print "cp $_ $dest_dir$_\n"; }' \
>> /tmp/cp2chroot.sh

20110808

UMTS USB stick ("congstar surfstick") under Ubuntu 11.04 natty with network-manager 0.8.4, network-manager-gnome 0.8.4

props:

https://www.heise.de/artikel-archiv/ct/2011/16/134_UMTS-Sticks-unter-Linux

prerequisites:
network-manager
network-manager-gnome

connect USB stick

$ lsusb

... ID 19d2:0039 ONDA Communication S.p.A.

and watch
/var/log/syslog
or the like if the modem part of the device is properly recognized.

... usb_modeswitch: switching 19d2:2000 (congstar Surfstick: congstar Surfstick)

also check
$ lsmod

usb_wwan               19711  1 option
usbserial              37116  7 option,usb_wwan

start network-manager
# NetworkManager
and configure away. the 'new connection' wizard worked for me, I only had to enter my PIN and select 'Connect automatically'.

Number: *99#
Username: t-mobile
Password: tm

APN: internet.t-mobile
PIN: ****

$ ifconfig

ppp0

$ ps -efd

/usr/sbin/modem-manager
/usr/sbin/pppd nodetach lock nodefaultroute user t-mobile ttyUSB2 noipdefault noauth usepeerdns lcp-echo-failure 0 lcp-echo-interval 0 ipparam /org/freedesktop/NetworkManager/PPP/0 plugin /usr/lib/pppd/2.4.5/nm-pppd-plugin.so