SciTE Word Wrap

Tuesday, September 23rd, 2008 11:55pm

In User Options File

#Wrap
wrap=1
output.wrap=1
wrap.style=1

Fonts in Acrobat Reader unter Ubuntu Linux

Monday, September 15th, 2008 11:48pm

Teilweise zeigt mir der Acrobat Reader nicht die korrekten Schriften für PDFs an. Mit Evince funktioniert das perfekt.

Die Lösung
In der Datei /usr/bin/acroread

# ACRO_ENABLE_FONT_CONFIG=1
# export ACRO_ENABLE_FONT_CONFIG

zu

ACRO_ENABLE_FONT_CONFIG=1
export ACRO_ENABLE_FONT_CONFIG

und es funktioniert. Je nachdem muss noch das Paket msttcorefonts nachgeladen werden.

Live CDs booten mit Virtualbox

Monday, July 21st, 2008 7:55pm

Da es mit der Zeit mühsam ist alle Live CDs von interessanten Distributionen auf CD zu brennen, um sie zu testen, suchte ich nach einem neuen Weg.

Variante 1:
Bei einer bestehenden virtuellen Maschine kann man das Image (.iso) ins CD Rom Laufwerk einhängen. Startet man die Maschine, kommt der Bootscreen der Live CD und man kann die gewünschte Startmöglichkeit auswählen.

Variante 2:
In dieser Variante erstellt man zuerst eine neue virtuell Maschine. Als Betriebssystem kann man Linux 2.6 wählen. Das funktioniert für die CDs welche auf Linux basieren und einen mehr oder weniger aktuellen Kernel benutzen. Als Harddisk gibt man nichts an, da man ja von der Live CD starten will.

Nachdem man die neue virtuelle Maschine erstellt hat, verfährt man wie bei Variante 1 und bindet das Image der Live CD ins CD Laufwerk ein.

Vor- und Nachteile
Bei der Variante 1 spart man ein bisschen Speicherplatz, da diese ein bestehendes Image benutzt. Man muss jedoch immer die CD ein und ausbinden. Vergisst man dies, bootet anstatt dem installierten Betriebssystem die eingebundene Live CD.

Variante zwei braucht mehr Speicherplatz und das Ein- und Aushängen des Images entfällt auch nicht. Man hat aber mehr Ordnung innerhalb von Virtualbox.

Fazit

Ich bevorzuge Variante 2, da mir der minime Mehrverbrauch von Speicher egal ist und ich die Ordnung liebe :)

ddclient und Zoneedit

Tuesday, June 03rd, 2008 5:32pm

Mitten in den Ferien lag mein Email ab. Wieso? Die Antwort und Lösung findet man hier: http://www.held.org.il/blog/?p=63

Soundkarte T60p Ubuntu

Monday, June 02nd, 2008 8:40pm

Irgendwie hat es gescheppert und zwar mächtiger. Wieso auch immer. Ein bisschen gespielt und die Lösung war als Root:

modprobe -r snd_hda_intel
modprobe snd_hda_intel model=3stack

Webcalendar with Lightning and Webdav

Thursday, April 10th, 2008 5:39pm

My motivation for this how to is to leave the google calendar. This because I want to reduce the data which I spend to google.

Preconditions
Working webdav server
ics File of your google or whatever calendar

Install phpicalendar
First of all we install phpicalendar to view the calendars in the webbrowser.
The steps:
- Download
- Extract
- copy the phpicalendar directory into your webdav directory of the webserver
- The directory structure should look like this:

http://www.server.com/webdav/

http://www.server.com/webdav/calendar <= all phpicalendar stuff
http://www.server.com/webdav/calendar/calendars/ <= space for your calendars
- rename the configuration file to config.inc.php

Create a calendar in Lightning
Do a right click below the Calendar in Lightning and choose New Calendar
The new Calendar is on the Network
Next
Format iCalendar (ICS)
Location http://www.server.com/webdav/calendar/calendars/newcal.ics (for exampel)
Next
Name and Color … whatever you want
Next
Finish

Do a right click on the new created calendar and choose Publish Calendar. You need permission to write on your webdav server.
Publishing URL: same URL as above
Click on Publish
After a few seconds the new calendar is created on your server
Close the window

Now copy your backup ics into your calendars directory on the webdav server. Name the file exactly as the new created (for example newcal.ics). You can reload your calendar in lightning (left click on the calendar -> Reload Remote Calendars). The events from your backup ics should appear.

When you create a new event, this event should be automatically uploaded to your webdav server. May be, there are some problems with the permissions (in this case, check if the webserver has rights to write the calendar file).

Nice Features
If you want to read your calendars offline, there is a check box in the properties of each calendar. You can check this, but be aware, that this feature is still experimental.

When your tasks are attached to a calendar you have already uploaded, the tasks are visible in phpicalendar. Are your tasks in a own calendar, just do the steps above.

After this how to you can definitely say goodbye to the google calendar.

Shell Scripting für Selbstmörder

Monday, March 03rd, 2008 6:03pm

Ich wollte automatisch das Backup von vor 5 Wochen löschen. Folgendes habe ich mir zusammengebastelt:

#!/bin/bash

i=`date –utc +%s`
j=$(($i-3024000))
DIR=date –utc –date “1970-01-01 $j sec” “+%G_week_%V”

rm -rf /backup/$DIR

Heute habe ich dann ziemlich dumm geschaut, alle Backups weg. Eigentlich eine tragische Situation, aber glücklicherweise ist man da doppelt und dreifach abgesichert.

Nun musste der Fehler im Shellscript noch gefunden werden. Naja es war etwas Kleines. Es fehlten ` welche den zweiten date Befehl einklammern sollten.

So schnell kanns so schief gehen :D

PostgreSQL und Ubuntu

Wednesday, February 20th, 2008 6:27pm

Für Dbs1 mussten wir PostgreSQL installieren. Nichts leichter als das:

aptitude install postgresql

und der Server wird installiert.

Für die Administration wurde noch ein GUI vorgeschlagen, ich ziterte schon, dass es nicht in den Paketquellen verfügbar ist. Ich habe mich aber getäuscht.

aptitude install pgadmin3

Ich weiss nicht was als Standardpasswort für den Administrator auf dem Server gesetzt wird. Mit diesen Schritten (aus dem ubuntuusers.de Wiki) kann man ein Passwort setzen:

sudo su postgres -c psql template1
ALTER ROLE postgres WITH PASSWORD
‘*passwort*’; << *passwort* natürlich ersetzen.
ALTER ROLE
\q << zum Verlassen

Nun ist das Passwort für den Administrator (postgres) gesetzt.

Mit den Datenbanken kann man wahlweise mit pgadmin3 (grafisch) oder mit psql zugreifen.

Auf die PostgreSQL Konsole kommt man mit folgendem Kommando (Einloggen als Administrator (postgres)):

psql -h localhost -U postgres

Der Server muss nicht immer laufen, dies tut er aber, denn er ist in den /etc/rc*.d eingetragen.
Das Aufstarten des Servers beim Booten verhindert man mit

update-rc.d -f postgresql-8.2 remove

Wiederherstellen könnte man die Einträge mit:

update-rc.d postresql-8.2 defaults

Backuppc auf Debian Etch aus Backports

Friday, January 18th, 2008 4:42pm

Gedankenstütze 1:1 aus dem Wiki von backuppc:

BackupPC version 3.0.0 is available via backports.
Add this line to /etc/apt/sources.list :

deb http://www.backports.org/debian etch-backports main contrib non-free

Import the GPG key for this repository, and update your repositories :

wget -O – http://backports.org/debian/archive.key | apt-key add -
apt-get update

Now you can install BackupPC from the backports repository by :

apt-get -t etch-backports install backuppc

In both cases, you will probably need these packages:

apt-get install rsync bzip2 par2 libfile-rsync-perl libfile-rsyncp-perl/etch-backports ntpdate

After installing, you will have the configuration file at /etc/backuppc and your data directory will be /var/lib/backuppc.

Mount Iso (Linux)

Wednesday, January 02nd, 2008 10:29pm

mount -t iso9660 -o ro,loop=/dev/loop0 /tmp/image.iso /mnt/iso