Some RPM bits
I added a new package to my OBS account.
ldapvi is now available from my repository http://download.opensuse.org/repositories/home:/leo_eraly/openSUSE_10.2/i586/
I also made a small web application to search for extra packages for SLE releases in the OBS repositories.
It’s currently available via http://zandbak.unstable.be/~leo/pkg_search/ but still working on it.
July 31st, 2007 - Posted in obs, opensuse | | 0 Comments
openSUSE 10.2 with Vodafone data card
A while ago i configured a Vodafone (nozomi) data card on my openSUSE 10.2 machine.
Below you can find the steps to configure everything with the traditional ifup mechanism. (NetworkManager will hopefully follow some day…)
First of all you need to make sure your data card is in your machine and your machine detects your card.
(The driver for the nozomi card is nozomi.ko and is part of the standard openSUSE 10.2 kernel)
Check if you see something similar when doing a ‘dmesg’
#dmesg
…
Initializing Nozomi driver 2.1 (build date: Jun 22 2007 13:49:04)
nozomi 0000:03:00.0: Init, cards_found: 1
nozomi 0000:03:00.0: Card type is: 2048
PCI: Enabling device 0000:03:00.0 (0000 -> 0002)
ACPI: PCI Interrupt 0000:03:00.0[A] -> Link [LNKB] -> GSI 11 (level, low) -> IRQ 11
nozomi 0000:03:00.0: Nozomi driver nozomi_tty
nozomi 0000:03:00.0: Version of card: 3
nozomi 0000:03:00.0: Initialization OK!
It should automatically create the necessacry devices under /dev. They are usually called /dev/noz0 , /dev/noz1 , …
# ls /dev/noz*
/dev/noz0 /dev/noz1 /dev/noz2 /dev/noz3
Make sure you have the comgt package installed on your system. This is a program that is designed to work with most
(option) data cards. Homepage is at www.pharscape.org the rpm is available from the openSUSE Build System. It’s currently only available for openSUSE Factory but installs fine on openSUSE 10.2
As soon as you have the comgt package installed you should be able to check if your data card is able to get a signal
#comgt -d /dev/noz0 sig
Signal Quality: 21,99
Most SIM cards have a PIN code so before you can use your data card to make a connection you have to give your PIN code.
# comgt -d /dev/noz0
Enter PIN number: xxxx
Waiting for Registration..(120 sec max)………
Registered on Home network: “PROXIMUS”,0
Signal Quality: 31,99
Now you are ready to make a connection with the APN and get mobile internet.
I use wvdial to make my connection (to proximus - belgian provider)
Open /etc/wvdial.conf and put the following in it:
[ModemUMTS]
Modem = /dev/noz0
Baud = 460800
SetVolume = 0
Dial Command = ATDT
Init1 = ATZ
Init2 = ATM0
FlowControl = NOFLOW
[DIaler Proximus]
Username = test
Password = test
Phone = *99***1#
Stupid Mode = 1
Init3 = AT+CGDCONT=1,”IP”,”internet.proximus.be”
DIal Attempts = 3
Inherits = ModemUMTS
Save the file and start wvdial.
It will now start making a connection and you will get the necessary information like IP , DNS , … if everything goes well.
# wvdial proximus
–> WvDial: Internet dialer version 1.54.0
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZ
ATZ
OK
–> Sending: ATM0
ATM0
OK
–> Sending: AT+CGDCONT=1,”IP”,”internet.proximus.be”
AT+CGDCONT=1,”IP”,”internet.proximus.be”
OK
–> Modem initialized.
–> Sending: ATDT*99***1#
–> Waiting for carrier.
ATDT*99***1#
CONNECT 1800000
–> Carrier detected. Starting PPP immediately.
–> Starting pppd at Mon Jul 30 20:01:21 2007
–> pid of pppd: 26524
–> Using interface ppp0
–> pppd: oximus
–> pppd: oximus
–> pppd: oximus
–> pppd: oximus
–> pppd: oximus
–> pppd: oximus
–> local IP address 81.169.102.105
–> pppd: oximus
–> remote IP address 10.64.64.64
–> pppd: oximus
–> primary DNS address 81.169.63.70
–> pppd: oximus
–> secondary DNS address 81.169.63.70
–> pppd: oximus
–> Script /etc/ppp/ip-up run successful
–> Default route Ok.
You can stop your connection by stopping wvdial with a simple ctrl-c.
If all these steps are ok you are ready to make a more permanent configuration via ifup
Create a file under /etc/sysconfig/network and call it ifcfg-modem0
# vi /etc/sysconfig/network/ifcfg-modem0
BOOTPROTO=’none’
PRE_UP_SCRIPT=’/etc/sysconfig/network/scripts/nozomi’
DIALCOMMAND=’ATDT’
DIALPREFIX=”
DIALPREFIXREGEX=”
INIT1=’ATZ’
INIT2=’ATM0′
INIT3=’AT+CGDCONT=1,”IP”,”internet.proximus.be”‘
INIT8=’ATM1′
INIT9=”
MODEM_DEVICE=’/dev/noz0′
NAME=’Modem’
PPPD_OPTIONS=”
PROVIDER=’provider0′
SPEED=’460800′
STARTMODE=’manual’
UNIQUE=”
USERCONTROL=’yes’
Save the file and create a second file under /etc/sysconfig/networks/scripts and call it nozomi
# vi /etc/sysconfig/network/scripts/nozomi
#!/bin/bash
INTERFACE=$1
COMGTPIN=xxxx
COM_BIN=’/usr/bin/comgt’
NOZ_IFACE=`grep MODEM_DEVICE /etc/sysconfig/network/ifcfg-$INTERFACE | cut -d= -f2 | sed -e s/\’//g`
echo “Using interface $INTERFACE with nozomi device ($NOZ_IFACE)”
test -x $COM_BIN || { echo “$COM_BIN not installed”; exit 0; }
echo $COMGTPIN | $COM_BIN -d $NOZ_IFACE
RET=$?
exit $RET;
Make sure you make this script executable.
# chmod +x /etc/sysconfig/network/scripts/nozomi
Create a file called provider0 under /etc/sysconfig/network/providers
# vi /etc/sysconfig/networks/providers/provider0
ASKPASSWORD=’no’
AUTODNS=’yes’
DEMAND=’no’
DSLSUPPORTED=’no’
IDLETIME=’300′
ISDNSUPPORTED=’no’
MODEMSUPPORTED=’yes’
MODIFYDNS=’yes’
PASSWORD=’test’
PHONE=’*99***1#’
PROVIDER=’proximus’
STUPIDMODE=’no’
USERNAME=’test’
Save everything and you are ready to test.
# ifup modem0
modem0
Using interface modem0 with nozomi device (/dev/noz0)
Enter PIN number: Waiting for Registration..(120 sec max)…
Registered on Home network: “PROXIMUS”,2
Signal Quality: 19,99
interface modem0 is up
# ifconfig modem0
modem0 Link encap:Point-to-Point Protocol
inet addr:81.169.99.223 P-t-P:10.64.64.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:104 errors:0 dropped:0 overruns:0 frame:0
TX packets:165 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:8890 (8.6 Kb) TX bytes:11990 (11.7 Kb)
All logging goes via syslog so check /var/log/messages if something goes wrong.
Stopping the connection can be done with a simple ifdown
# ifdown modem0
Feel free to send me comments!
July 30th, 2007 - Posted in opensuse | | 0 Comments
RPM mania
This week I finally had the chance to put some packages into the openSUSE Build Service (http://en.opensuse.org/Build_Service).
I’ve added the following packages:
- Unoconv (converts between any document format that OpenOffice understands)
- Tasks (a simple TODO list application)
- pam_shield (pam module to protect againts login attempts from hackers/kiddies)
- drupal (a popular CMS - still unfinished)
You can find all packages under http://software.opensuse.org/download/home:/leo_eraly/openSUSE_Factory/
July 10th, 2007 - Posted in obs, rpm | | 0 Comments
