Sync Gmail contacts with Addressbook

19th August 2008 - 10:40 - pixie

I found two guides that enabled me to use the built-in feature of MacOS 10.5.3+ to sync my addressbook with Gmail contacts. It only works if you have an iPod.

The method - Safeguard

Theme

16th August 2008 - 13:08 - pixie

Ik ben momenteel bezig aan m’n thema voor de website. Mogelijk zie je dus een resultaat dat allesbehalve mooi presenteert… Kom even later nog eens langs voor een (hopelijk) verbeterde versie. :)

[Update 21:20] Hier en daar moet de fijne afwerking nog volgen, maar grosso modo staat het thema op poten.

irc.iwonder.be

16th August 2008 - 10:58 - pixie

Met de virtualhosts van Apache is het niet al te moeilijk om enkele subdomeinnamen te laten doorverwijzen naar specifieke pagina’s. De webinterface van de bouncer is nu te bereiken vanaf irc.iwonder.be en iwonder.be/irc.

Geheugen

15th August 2008 - 23:38 - pixie

Lighttpd leek veelbelovend, maar permalink met Wordpress bleken allesbehalve voor de hand liggend. Daarnaast had elke oplossing wel haar eigen voor en nadelen, zodat ik maar besloot om terug te keren naar Apache2. Deze laatste vreet met momenten geheugen, waardoor de server soms begint te swappen, maar met 128MB kan je niet veel verwachten… Het geheugengebruik van MySQL heb ik ook omlaag gehaald. De uiteindelijke configuratie nu is verre van perfect, maar een goede verhouding tussen performantie, geheugen en prijs. Alles bij elkaar mag ik dus best tevreden zijn…

Daarnaast is de bouncer voor de vrienden ook naar iwonder.be verhuisd. Deze overgang ging zoals verwacht zonder probleem.

Rest er mij nog m’n nieuw thema uit te tekenen en te implementeren…

Wordpress permalinks en Lighttpd

13th August 2008 - 18:24 - pixie

De oplossing bleek uiteindelijk niet zo moeilijk. Na enkele oplossing te vergeefs geprobeerd te hebben, bleek er toch eentje tussen te zitten die werkt. Ook al is Apache de meest gebruikte webserver, toch vind ik het jammer dat men niet programmeert om ook de anderen te ondersteunen.

XLShosting

13th August 2008 - 17:32 - pixie

Zoals dat steeds gaat met m’n website, is er weer wat verandering tijdens momenten dat ik tijd over heb. De vakantie loopt weliswaar bijna ten einde, over een tweetal weken begin ik te werken, maar ondertussen is het in spanning afwachten. Om de tijd dan een beetje te doden, heb ik een VPS gehuurd bij XLShosting.com. Over dit laatste bedrijf ben ik zeer tevreden: een zeer snelle support als er iets misloopt of als je iets wil veranderen.

Wat ik met die VPS gedaan heb? Wel, ten eerste draait er een HTTP-server op: Lighttpd. Alhoewel iets minder robuust dan Apache2, maakt het minimale geheugenverbruik dit gemis meer dan goed. Helemaal op punt staat hij nog niet, de permalinks van Wordpress komen nog niet door, maar Google helpt me daar wel bij. Vervolgens draait er naast php5 ook een MySQL server op.

Last but not least draait ook vanaf heden hier m’n IRC-bouncer, ZNC. Deze gebruik ik voor mezelf om permanent online te zijn op enkele IRC-kanalen en verzorg voor enkele andere vrienden dezelfde dienst.

Wat er nog op het programma staat:

  • Een nieuw Wordpress thema maken
  • Permalinks in orde zetten
  • ZNC voor vrienden verhuizen naar de VPS

SABnzbd

8th June 2008 - 16:00 - pixie

Omdat ik graag download van Usenet gebruik ik daarvoor SABnzbd+. Het hele download proces wordt door dat programma gecontroleerd, dus hoef je je geen zorgen te maken over ontbrekende stukken, beschadigde bestanden en dies meer. Helaas weigert het voor het overige prima programma om in daemon-mode op te starten onder Mac OS 10.5.3. Hoogstwaarschijnlijk ligt de schuld hiervoor bij Apple. :)
Omdat ik niet steeds een terminal open wil hebben, bedacht ik een oplossing die terug te vinden is in deze how-to.

st0rage.org

5th June 2008 - 11:44 - pixie

Vermits ik naar alle waarschijnlijkheid volgend jaar geen student meer zal zijn, kan ik overeenkomstig de gebruiksvoorwaarden aldaar m’n shell account niet meer verlengen. Anticiperend zocht ik naar een alternatief dat mij zou toestaan de IRC bouncer/proxy ZNC te draaien en me eventueel wat webruimte toestond. Na enig speurwerk kwam ik bij de server st0rage.org. Sinds enkele dagen heb ik dus alles naar daar gemigreerd.
Wordpress is op zich geen slecht systeem, maar bleek uiteindelijk voor mij niet echt nuttig: er zijn altijd wel mogelijkheden die ontbreken of moeilijk te realiseren zijn. Dus heb ik teruggegrepen naar mijn zelf gemaakte site. Enig aanpaswerk was wel nodig om alles weer operationeel te krijgen en de inhoud van m’n wordpress pagina moet nog overgezet worden. Maar dat is iets voor de komende dagen.

Run SABnzbd+ in daemon mode on Leopard

13th May 2008 - 16:29 - pixie

Intro

Since I use Sabnzb+ to download from Usenet, I like to be able to run it in daemon mode. The command line option “-d” from Sabnzb+ would be ideal. However under Leopard, this option fails because Python seems to have a problem to fork the process to the background. A workaround will be presented here.

Install SABnzbd+ from sources

Source

Install Xcode

Because we will be compiling things later, it is necessary to install the GCC. You can do this by installing Xcode from your Mac OS X install disc or by getting it from Apple Developer Connection.

Install necessary packages

Sabnzb+ needs a few packages to be able to run. Just grab the latest version of each on the following websites:

Extract the above four archives and open terminal.app. Change directory to the CherryPy folder that you have extracted. If the folder is on your desktop then type:

cd ~/Desktop/CherryPy*
sudo python setup.py install

Repeat this procedure for the other three packages.

Install UnRAR and PAR2

SABnzbd+ needs these two utilities to repair and unpack downloaded archives. Since there is no recent build downloadable for PAR2, we will extract them from the GUI build of SABnzbd, which can be found here or here. Grab the unrar and par2 files from SABnzbd.app (right click - show package contents) then use these commands to place them in the right place:

sudo mv par2 /usr/bin/
sudo mv unrar /usr/bin/

Install SABnzbd+

Finally, download the latest version of SABnzbd+ and unpack into a folder (e.g. ~/SABnzbd). Do not compile or run anything, but it may be necessary to make the Python script executable:

cd SABnzbd/
chmod +x SABnzbd.py

Running SABnzbd+

Running from Terminal

Since the “-d” option of SABnzbd+ is not working under Leopard, we need to create a daemon environment. This can easily be done by running the command in screen. Moreover, I like to run it at a low priority so that it will not affect my system performance. The final command looks like this (provided that SABnzbd+ is still on your desktop):

cd SABnzbd/
/usr/bin/screen -m -d /usr/bin/nice -n 20 ~/SABnzbd/SABnzbd.py -b 0

Explanation:

  • screen -m -d: starts the command in a detached screen.
  • nice -n 20: starts the command with the lowest processor priority.
  • SABnzbd.py -b 0: starts the SABnzbd+ without autostarting your browser.

Start SABnzbd+ at boottime

I use the following script in conjunction with crontab that runs it every minute to run SABnzb+ at boottime and make sure it keeps running.

#!/bin/bash
active=$(/bin/ps aux | grep -v grep | grep SABnzbd)
if [ "$active" = "" ]
then
/usr/bin/screen -m -d /usr/bin/nice -n 20 ~/SABnzbd/SABnzbd.py -b 0
fi

(X)Ubuntu Edgy (6.10) on an iBook G4 800MHz

13th April 2008 - 16:52 - pixie

Intro

  • JAVA is rather difficult to install, but there are instructions on the wiki so normally you should be fine.
  • Flash doesn’t exist for PPC so this may be or may be not a disadvantage for you. There are some solutions: you can either install swf-player or gnash, but the functionality will still be limited. The best solution is use Firefox through Mac-on-Linux (aka MOL)
  • I didn’t get my Airport Extreme card to connect to a network, but maybe someone with better skills can?

The machine :)

Computername: iBook G4
Computermodel: PowerBook6,3
Processortype: PowerPC G4 (3.3)
Number of processors: 1
Processorspeed: 800 MHz
L2-cache (per processor): 256 KB
Memory: 640 MB
Busspeed: 133 MHz
Startup-ROM-version: 4.7.4f1

Preparations

Backup

Before you go on adventuring with Linux, I suggest you back up any important data you have on your hard drive because we will be wiping everything from it!

Format

Boot form your Mac OS X (10.3 is the best) install cd and partition your hard drive. At the beginning create a 5GB partition that you mark as “Free Space”. At the end create a partition of 5 GB and format it as HFS+ (NOT journaled). This partition will be used to install Mac OS X, so you should name it “MacOSX”. The rest of the space should be formatted as HFS+ (again NOT journaled).
Now, continue with the installation of Mac OS X (be sure to install it on the “MacOSX” partition :) ).

Install Mac OS 10.3

A problem has been reported that when you upgrade Mac OS X, yaboot gets disabled. The solution seems to be to press the option “alt” key during startup and then select Linux again. However, I have never encountered this problem.
I also suggest to install Mac OS 10.3 because it is more compatible with Mac-on-Linux. The brave can always go ahead and install Mac OS 10.4 but there will be more problems further down the road. It’s up to you…

Install (X)Ubuntu (desktop version)

Why install the desktop version and not the alternate? Well, in my experience, sound did not work with the alternate version and it seemed to me that the dekstop version installed a little bit faster.

Boot into Ubuntu

Enable the universe/multiverse repositories

This wikipage describes very well how to enable the extra sources.

Keyboard problem: How do I type “@”,”#”,… ?

First solution (Ubuntu)

Go to your Keyboard settings and enable the option:
‘Left Win key’ is 3rd level enabler

Second solution (Xubuntu)

Add this to keyboard section on /etc/X11/xorg.conf file:
“XkbOptions” “lv3:lwin_switch”

or if “XkbOptions” already exists:

“…, lv3:lwin_switch”

Now you can access these symbols with: “@”=cmd-é, “#”=cmd-”,…

Easyubuntu

Easyubuntu is the way to get support for playing MP3,DivX/XviD,DVD,… Just follow the instructions at their website.

Spindown external Firewire/USB drive

My external hard drive is rather noisy, so I searched and found a solution to automatically let it spin down at a given period of inactivity.
Firstly install sdparm:

sudo apt-get install sdparm

Secondly download these two scripts (they are now maintained by Linard Verstraete). Copy them to /etc/init.d, make them executable and change the timeout (in minutes) and disk in “spindown_automatic.sh”:

disk=sda
interval=15

Finally, place a reference to “spindown_automatic.sh” in /etc/rc.local and to “spindown_at_shutdown.sh” in /etc/rc0.d/

Change the yaboot timeout in /etc/yaboot.conf

First stage: 1s

delay=1

Second stage: 1s

timeout=10

After editing:

sudo ybin

Add the MacOSX and other HFS+ partition to Linux

Get partition-numbers through fdisk (replace hd? with you HDD: e.g hda)

sudo fdisk /dev/hd?

Edit fstab

sudo vim /etc/fstab

Add both partitions

/dev/hd?? /media/HD hfsplus user,noauto 0 0
/dev/hd?? /media/MacOSX hfsplus user,auto 0 0

Quit vim by pressing the following keys:

ESC - “:” - “w” - “q” - ENTER

Mount the partitions:

sudo mkdir /media/MacOSX
mount /media/MacOSX
sudo mkdir /media/HD
mount /media/HD

To unmount the partitions to access them in MOL:

umount /media/MacOSX
umount /media/HD

Mac-On-Linux

Follow the instructions form the wikipage.

Airport Extreme

For more information see the wikipage
You can install everything by running the following commands:

sudo apt-get install bcm43xx-fwcutter
sudo /usr/share/bcm43xx-fwcutter/install_bcm43xx_firmware.sh
sudo modprobe bcm43xx
sudo apt-get install wifi-radar (OR network-manager)

Minor things

  • Cooling fan: working hard in the beginning but slows down after some use
  • Firefox: open new windows in tab doesn’t work at first, but after changing the option twice it just works
  • Place the trash on your dekstop (Ubuntu):
  • Install gconf-editor
    sudo apt-get install gconf-editor
    Open gconf-editor and change the option in Apps -> Nautilus -> Desktop
  • Disable sound on login and logout (Ubuntu): System > Sound

Installed applications

Common apps

  • vlc: Plays everything (DivX, XviD, DVD,…)
  • k3b: the best CD/DVD burning app
  • k9copy: DVD dual to single layer ripper
  • xchat: IRC program (xchat + xchat-systray)
  • gnubiff: Biff-application (add to panel trhough right click - not –systemtray startup option)
  • mozilla-thunderbird: E-mail application
  • gftp: FTP application
  • swf-player: Hardly any flash site works, but keeps firefox from asking for a plugin

Useful Gnome-apps in Xfce

  • gnome-volume-manager: auto mounts removable media
  • gnome-power-manager: to save some power while on battery
  • gnome-alsamixer: to adjust the volume