butonic.de Rotating Header Image

ubuntu

finally, suspend / resume works!

Yeah I know, most of you out there think I am crazy to have used my laptop without working suspend to ram or disk. Well in my case the combination of my graphicscard and a widscreen resolution forced me to use the fglrx driver from ati (not even vesa was an option). Fortunately, the newopen source radeonhd driver works like a charm :)

I deactivated the fglrx driver and am now radeonhd only … yeah that will keep me from gaming … not a big issue currently anyway …

Here are the instructions to install from git.

Happy holidays!

Useful Nautilus Extensions

I just stumbled upon rotate and resize and open in terminal extensions for ubuntu. Nice.

Installing gforge on ubuntu feisty

1. install ubuntu server – no lamp
- mailman wants you to choose languages, “newlist mailman” and afterwards “/etc/init.d/mailman start”
- gforge-db-password wants you to choose a password for the database user
- gforge-mta-exim4 asks wether or not to modify /etc/aliases for you – answer yes
- gforge-shell-postgresql asks wether or not to modify /etc/nss-pgsql.conf – answer yes
- gforge-shell-postgresql asks wether or not to modify /etc/nsswitch.conf – answer yes
- proftpd: start as daemon
- postgresql-common: pg8.1 is deprecated … dunno just ok
- gforge-common has some unexpected operators in /etc/gforge/gforge.conf
- gforge-db-postgresql asks wether or not to modify /etc/postgresql/8.1/main//pg_hba.conf – answewr yes
- the database tables will be created for you
- gforge-web-apache asks wether or not to modify /etc/apache2/httpd.conf – answer yes
- gforge-mta-exim4 asks wether or not to modify /etc/exim4/exim4.conf.template for you – answer yes
- gforge-mta-exim4 asks wether or not to modify /etc/exim4/conf.d/main/01_exim-config_listmacrosdefs for you – answer yes
- gforge-shell-postgresql asks wether or not to modify /etc/pam_pgsql.conf – answer yes
- gforge-shell-postgresql asks wether or not to modify /etc/pam.d/common-account – answer yes
- gforge-shell-postgresql asks wether or not to modify /etc/pam.d/common-auth – answer yes
- gforge-ftp-proftp asks wether or not to modify /etc/proftpd/proftpd.conf – answer yes
the install will list errors for gforge-web-apache, gforge-plugin-scmsvn, gforge-lists-mailman, gforge
* “sudo newlist mailman”
* /sudo etc/init.d/mailman start

still the following problems:
/etc/apache2/httpd.conf is empty

much is broken

Using the o2 Laptop Card with Ubuntu

lsusb shows the card as:
Bus 007 Device 002: ID 0af0:6701 Option
and the Feisty kernel supports it out of the box.

Using umtsmon I can set the PIN and not worry about it anymore. However, I was unable to connect using the tool.

I had some difficulties with connectiong to the APN “surfo2″ so I’ll just post my working ppp scripts:

/etc/ppp/peers/o2s:

#device
/dev/ttyUSB0

# baud speed
460800

# log all packets to syslog
debug

#use hardware flow control
crtscts

#disable compression:
noccp
nobsdcomp
noaccomp
novj

# create a lock file for the serial device
lock

# we do not neet to authenticate ourselves?
noauth

# Disables the default behaviour when no local IP address is specified, which is to
# determine (if possible) the local IP address from the hostname. With this option, the
# peer will have to supply the local IP address during IPCP negotiation (unless it speci‐
# fied explicitly on the command line or in an options file).
noipdefault

noproxyarp

# add default route using the peer as the gateway
defaultroute

# ask the peer for up to 2 dns servers
usepeerdns

# use this for auth to the peer
user ”
password ”

# chatscript to use
connect “/usr/sbin/chat -v -f /etc/chatscripts/o2-surfo2″

# accept te peers ip adresses for both connection ends
ipcp-accept-remote
ipcp-accept-local

and /etc/chatscrips/o2-surfo2

'ABORT' "BUSY"
'ABORT' "ERROR"
'ABORT' "NO ANSWER"
'ABORT' "NO CARRIER"
'ABORT' "NO DIALTONE"
'ABORT' "Invalid Login"
'ABORT' "Login incorrect"
'TIMEOUT' '10'
'' 'ATZ'
'OK' 'ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0'
# this next line is extra for O2
'OK' 'AT+CGDCONT=1,"IP","surfo2"'
'TIMEOUT' '60'
'OK' 'ATDT*99***1#'
'CONNECT' ''
'TIMEOUT' '5'

Using UMTS with Ubuntu Feisty

I just managed to get a Nozomi based UMTS card working with the current stable version of Ubuntu. The most interesting pages were the Gentoo wiki and Mathias Kellers blog entry. After setting the nameservers to 194.48.124.200 and 194.48.139.254 everything worked like a charm. Here is my chatscript:

# This chatfile was generated by pppconfig 2.3.15.
# Please do not delete any of the comments. Pppconfig needs them.
#
# ispauth PAP
# abortstring
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
# modeminit
'' ATZ
# auf Fabrikeinstellungen setzen
#'OK' 'AT&F'
# Echo an
'OK' 'ATE1'
# Pin schon eingegeben?
'OK' 'AT+CPIN?'
# Pin eingeben (replace XXXX with your Pin)
'CPIN: READY-AT+CPIN=XXXX-OK' 'AT+COPS?'

# Netzpräferenz GPRS only
#’OK’ ‘AT_OPSYS=0,2′
# Netzpräferenz UMTS only
#’OK’ ‘AT_OPSYS=1,2′
# Netzpräferenz GPRS preferred
#’OK’ ‘AT_OPSYS=2,2′
# Netzpräferenz UMTS preferred
‘OK’ ‘AT_OPSYS=3,2′
# Empfangsqualität
#’OK’ ‘AT+CSQ’
# APN
‘OK’ ‘AT+CGDCONT=1,”IP”,”web.vodafone.de”‘
# ispnumber
OK-AT-OK “ATDT*99***1#”
# ispconnect
#CONNECT \d\c
CONNECT \c

And my /etc/ppp/peers/umts file:

lock
noauth
nobsdcomp
connect "/usr/sbin/chat -v -f /etc/chatscripts/sven"
connect-delay 8000
debug
/dev/noz0
460800
crtscts
modem
novj
defaultroute
noipdefault
ipcp-accept-remote
ipcp-accept-local

# do not use as vodafone transmits wrong dns servers
# manually use 194.48.124.200 and 194.48.139.254
#usepeerdns

As a precaution I remove the nozomi kernel module prior to removing the card … the driver is said to cause problems:

sudo modprobe -r nozomi

Happy Surfing! We had a ping of 119ms to google ;)

LDAP fun

Should you ever wonder why your users can login but fail to resolve their login name try making /etc/nsswitch.conf world readable