FLOW3 rewriting rules for lighttpd

Do you want to get FLOW3 working with rewriting under lighttpd?
Give the following lines a try:

url.rewrite-once = (
    "^/(_Resources/Packages/|robots\.txt|favicon\.ico)" => "$0",
    "^/(_Resources/Persistent/[a-z0-9]+/(.+/)?[a-f0-9]{40})/.+(\..+)" => "$1$3",
    "^/(_Resources/Persistent/.{40})/.+(\..+)" => "$1$2",
    "^/_Resources/.*" => "$0",
    "^/(.*)" => "index.php/$1"
)
url.redirect = ( "/index.php/(.*)" => "/$1" )
Posted in flow3, lighttpd, typo3 | Leave a comment

TYPO3 packages for gentoo

Added recent TYPO3 (4.1, 4.2, 4.3, 4.4) ebuilds to my overlay at http://github.com/ndt/ogo-ndt. To make use of these ebuilds just follow the next steps and make sure you have layman installed with the git USE-flag.

Add a line with “http://github.com/ndt/ogo-ndt/raw/master/repository.xml” to the option “overlays” in /etc/layman/layman.cfg.

--- layman.cfg.old      2010-08-27 13:43:42.000000000 +0200
+++ layman.cfg.new      2010-08-27 13:43:19.000000000 +0200
@@ -32,6 +32,7 @@
 #            file:///var/lib/layman/my-list.xml

 overlays  : http://www.gentoo.org/proj/en/overlays/repositories.xml
+            http://github.com/ndt/ogo-ndt/raw/master/repository.xml

 #-----------------------------------------------------------
 # Proxy support

Now add the overlay and you’re ready to emerge TYPO3.

layman -a electro-nic
Posted in gentoo, typo3 | Leave a comment

Alles im Blick

screenshot of conky

Hier mal kurz und schmerzlos meine conky Konfiguration. Als Basis diente die Konfiguration von Hellfire auf der Screenshot-Seite.

Und hier die zugehörige conkyrc.

Posted in linux | Tagged , | Leave a comment

making of … a couchapp ebuild

Is it that easy?

I searched for an ebuild of couchapp and didn’t find anything that way. So I looked for some examples of python ebuilds and stumbled upon http://gentoo-overlays.zugaina.org/dberkholz/index.html.en. There I looked in some random packages and made a first draft.

# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit distutils

DESCRIPTION="Couchapp makes standalone CouchDB application development easy"
HOMEPAGE="http://github.com/couchapp/couchapp"
SRC_URI="http://github.com/downloads/couchapp/couchapp/Couchapp-${PV}.tar.gz"
LICENSE="Apache"
KEYWORDS="~amd64"
SLOT="0"
IUSE=""
DEPEND="dev-python/setuptools"

And it worked! No need to read the Gentoo Development Guide.

Thank’s Gentoo.

Update: Now in a layman overlay at http://github.com/ndt/ogo-ndt

Posted in gentoo, linux | Tagged , , , | Leave a comment

Wildcard Subdomains für den eifrigen Webentwickler

Kurz und knapp: Die hosts-Datei (Linux: /etc/hosts, Windows: %systemroot%/system32/drivers/etc/hosts) ist ein Relikt aus grauer Vorzeit. Wildcard-Domains sind ihr fremd und so bin ich nicht der erste, der darüber stolpert. Auch nach langer Recherche im Netz, wollte sich partout keine Lösung abzeichnen. Dabei kann man mit einem kleinen DNS-Server wie dnsmasq schnell und einfach das Problem lösen.

Zunächst das Ebuild installieren und die Konfiguration im Editor der Wahl öffnen.

$ emerge -av dnsmasq
$ nano /etc/dnsmasq.conf

Folgende Zeilen zur Konfiguration hinzufügen. Ein Beispiel sollte bereits vorhanden sein.

address=/localhost/127.0.0.1
address=/local/127.0.0.1
address=/meine-domain.xxx/127.0.0.1

Dienst starten nicht vergessen.

$ /etc/init.d/dnsmasq start

Die Datei /etc/resolv.conf sollte man noch anpassen, in dem man als ersten Eintrag den lokalen Rechner als Nameserver angibt.

domain local
search local
nameserver 127.0.0.1
nameserver 192.168.1.1

Glücklich schätzen kann sich jeder, der das direkt auf seinem Router einrichten kann. Für alle anderen gibt es hexxie.com oder smack-a-ho.st.

Links:

  1. Inspiriert durch eine Anleitung für Debian
  2. Blog-Post zum DNS-Dienst: hexxie.com
  3. Blog-Post zum DNS-Dienst: smack-a-ho.st
Posted in gentoo, linux | Tagged , , | Leave a comment