embperl

2007-07-7 | 1:47 am | 1 Kommentar »

Installation von embperl und mod_perl
apt-get install lib-embperl-perl lib-mod-perl

http.conf
LoadModule perl_module /usr/lib/apache/1.3/mod_perl.so

Add Type text/html *.epl
<FILES *.epl>
SetHandler perl-script
PerlHandler Embperl
Options Exec CGI
</FILES>

=> apachectl restart bzw. /etc/init/apache restart :)

embperl
[+ $a +]
[- use BlaModule -]
[! Definition perlfkt !]
[* foreach $i (1,2) { *] [* } *]
[# Kommentar #]
[$ Cmd Arg $]

drucken

2007-07-7 | 1:43 am | Kein Kommentar »

mehrere Seiten auf eine drucken
mpage -2 blub.ps | lpr
psnup -2 < blub.ps | lpr

Rand verschieben: -m100l -m40t

manpage drucken
zcat /usr/share/man/man2/chown.2.gz | groff -man | mpage -2 | lpr

drucker auswaehlen
lp -d colorlaserjet

whois

2007-07-7 | 1:40 am | Kein Kommentar »

whois aiaia.de
whois -h whois.denic.de aiaia.de
host www.hermione.de
nslookup ….
dig …

Pakete durchsuchen

dpkg -l | grep firefox
dpkg -L awstats | grep pl
apt-cache search firefox

Paket Liste updaten

voila /etc/apt/sources/list
apt-get update

Paket installieren

apt-get install [paketname]

Nochmal neu installieren

Falls z. B. die Konfiguration „komisch“ ist und man nochmal neu installieren moechte,
am besten Konfig-Verzeichnis umbenennen und „reinstallieren“.

apt-get reinstall [paketname]

Installation einer best. Paket Version

dpkg -i blablubpaketversion-0.1.1.1.1.1

Pakete nicht updaten

echo ‚paketname hold‘ | dpkg –set-selections

Komplettes Debian updaten

apt-get -u dist-upgrade

Paket löschen

dpkg –purge blabubpaekt

Alle installierten Debian Pakete

cd /var/lib/dpkg/info && ls *list | cut -d . -f1

Backports

Backports in /etc/apt/sources.list eintragen
apt-cache show rrdtool => Versionsnummer raussuchen
apt-get install rrdtool=versionXY

Missing keys


apt-get update
apt-key adv –recv-key –keyserver keyserver.ubuntu.com MISSINGKEY

Quellcode kompilieren

wget http://server.de/paket.bz2
tar xjf paket.bz2
./configure
make
make test
make install

Zum Guggen was man rein theoretisch angeben koennte bei configure:
configure –help

Fürs Quellcode kompilieren braucht man die *-dev Versionen saemtlicher Libarys.
packages.ubuntu.com <= Search contents of packages (falls sowas wie easy.h ploetzlich fehlt),

apt-get source php5
dch -i
debuild

Quellcode kompilieren und auf Ubuntu installieren ist schwierig, da man fuers Debian/Ubuntu andere Pfade benoetigt als beim normalen Source Code vorgesehen ist.
Trick: Ueber debian source Verzeichnis source Verzeichnis drueber kopieren.
Bzw. die einzelnen benoetigten Dateien.

Links

cvs

2007-07-7 | 12:01 am | Kein Kommentar »

Projekt erstmalig aus CVS rauskopieren: cvs co Projektblablub
Projekt aktualieren (immer vorm weiterbearbeiten): cvs update
Eigene Files hinzufuegen: cvs ci
bzw. zuerst bei neuen Dateien cvs add
und danach: cvs commit


And yes I believe in what we had
But words got in the way
And only yesterday
As I was leaving
Lord knows I tried to say, but I’ve
Heard a million conversations
Going where they’ve been before
Seen the way that careful lingers
Undecided at the door
 
And all I know for sure
*stöhn*
All I know for real
*stöhn*
Is knowing doesn’t mean so much
When placed against the feeling
The heat inside
When bodies meet
When fingers touch
More …

cut [raetsel]

2007-07-6 | 11:09 pm | Kein Kommentar »

Was macht das?
grep blablub access.log | cut -d \ -f11 | sort | uniq -c
More …

cpan

2007-07-6 | 10:38 pm | Kein Kommentar »

cpan perl modul installieren
dh-make-perl -cpan Soap::Lite
cd libsoap-lite-perl-0.5.6
debuild

imagemagick

2007-07-6 | 8:02 pm | Kein Kommentar »

Groesse aendern

convert -scale 40x40 alt.gif neu.gif

for i in *JPG
do
convert -scale 50% $i `basename $i JPG`jpg
done

Ausschnitt

convert -crop XxYx0xX/2 alt.gif neu.gif

colorize

convert x.jpg -fill white -colorize 50% y.jpg

Schatten

convert eingabebild.png \( +clone -background black -shadow 60x5+10+10 
\) +swap -background white -layers merge +repage ausgabebild.png

Logo machen

#! /bin/sh
convert -size 800x100 xc:white\
-fill "#ffdddd" -draw "font-size 48 text 5,60 'HERmione ...'" \
-fill "#cc0000" -draw "font-size 48 text 3,62 'HERmione ...'" \
-fill "#cc0000" -draw "line 331,51 765,51 " \
-fill "#ffdddd" -draw "line 330,52 766,52 " \
-fill "#cc0000" -draw "font-size 14 text 330,45 'Zettel und andere Peinlichkeiten auf dem Schreibtisch einer Geekine'" \
-fill "#dddddd" \
-draw "font-size 12 text 330,70 '\ alt + shift + 7   | alt + 7   ~ alt + n'" \
top.png;  

chmod

2007-07-6 | 7:57 pm | Kein Kommentar »

auch sehr schoen das *gg*

4 r
5 rx
6 rw
7 rwx