ddclient und Zoneedit
Tuesday, June 03rd, 2008Mitten in den Ferien lag mein Email ab. Wieso? Die Antwort und Lösung findet man hier: http://www.held.org.il/blog/?p=63
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
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
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.
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
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
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 -t iso9660 -o ro,loop=/dev/loop0 /tmp/image.iso /mnt/iso
Zu finden auf: http://www.audiohq.de/index.php?showtopic=108
Das nm-applet für den Networkmanager von Gnome zickte unter Xubuntu ein wenig herum. Einmal wurden 1 Instanzen gestartet, dann plötzlich 2 und nachher 3.
Diesem Treiben kann man mit dem hier beschriebenen Weg einen Riegel vorschieben. Wichtig beim ersten Neustarten, den Haken für das Speichern der aktuellen Session rausnehmen.
Die Menüeinträge werden in den Dateien unterhalb von /usr/share/applications erstellt.
Die Icons legt man am besten im Ordner /usr/share/pixmaps im Format .png oder .xpm ab. Auf diese Icons kann man in der *.desktop Datei einfach mit Icon=gugus.png zugreifen.