XMPP / Jabber Server unter Debian 6 Squeeze

  1. Install
     aptitude install ejabberd
  2. edit /etc/ejabberd/ejabberd.conf
    {hosts, ["jabber.myserver.tdl"]}.
    {acl, admin, {user, "myuser", "jabber.myserver.tdl"}}.
  3. restart server
     /etc/init.d/ejabberd restart
  4. admin einrichten
     ejabberdctl register myuser jabber.myserver.tdl geheim
  5. erneuter restart
    /etc/init.d/ejabberd restart
  6. status check
    ejabberdctl status
  7. WebGui starten
    http://jabber.myserver.tdl:5280/admin
    Benutzername: myuser@jabber.myserver.tdl
  8. Clients via console hinzufügen
    ejabberdctl register myuser2 jabber.myserver.tdl geheim2

Firewall Setup

# 5222 für Jabberclients (c2s)
# 5269 Server2Server (s2s)
# 5280 admininterface auf loopback-device, erreichbar über ssh-tunnel
IPTABLES -A INPUT -m state --state NEW -p tcp --dport 5222 -j ACCEPT
IPTABLES -A INPUT -m state --state NEW -p tcp --dport 5269 -j ACCEPT

Generating a Self-Signed SSL Certificate (http://www.jabberdoc.org/app_sslkey.html)

openssl req -new -x509 -newkey rsa:4096 -days 3650 -keyout privkey.pem -out server.pem
openssl rsa -in privkey.pem -out privkey.pem
cat privkey.pem >> server.pem
rm privkey.pem

enter your domain name as the Common Name for your certificate!

Minix 3 pkgin mirror

You just have to mirror ftp://ftp.minix3.org/pub/minix/packages/ with e.g. http://www.debian.org/mirror/ftpmirror.en.html or http://www.debian.org/mirror/ftpmirror or
wget –mirror ftp://ftp.minix3.org/pub/minix/packages

Size of Minix 3.2 ( ftp://ftp.minix3.org/pub/minix/packages/3.2.0/ ) is about 400 MB (05.07.2011)

next step is to edit /usr/pkg/etc/pkgin/repositories.conf and change the path to your local one.

after a pkgin update you are done 😀

ant-phone über fritz isdn unter squeeze

aptitude install build-essential capiutils libcapi20-dev linux-headers-$(uname -r) bzip2

cd /opt

sourcen holen
wget https://belug.de/~lutz/pub/fcpci/fritz-fcpci-2.6.31.tar.bz2

entpacken
tar xvfj fritz-fcpci-2.6.31.tar.bz2

cd fritz-fcpci-2.6.31/lib
rm fcpci-lib.o
#ln -s 64_fcpci-lib.o fcpci-lib.o
ln -s 32_fcpci-lib.o fcpci-lib.o
cd ../fcpci_src
make clean
make all

mkdir /lib/modules/`uname -r`/extra
cp fcpci.ko /lib/modules/`uname -r`/extra/
depmod -a

modprobe -rf fcpci
modprobe -rf avmfritz
modprobe -v fcpci

echo ‘blacklist avmfritz’ > /etc/modprobe.d/blacklist-avmfritz.conf

nano /etc/isdn/capi.conf
fcpci – – – – – –
# -> Zeile entkommentieren

echo ‘# Fritz!Card
capidrv
capi
fcpci’ >> /etc/modules

capiinit start

capiinfo # sollte info zur isdn hw liefern

aptitude install ant-phone isdnutils-base isdnlog
# -> Land und Vorwahl setzen

nano /etc/isdn/isdn.conf
LOGFILE = /var/log/isdn.log # abändern

touch /var/log/isdn.log
touch /etc/isdn/noconfig #isdnutils sagen dass keine config nötig ist

service isdnutils restart

mkdir ~/.ant-phone/
touch ~/.ant-phone/options

ant-phone

unter Optionen > Einstellungen sende MSN einstellen

# User rechte geben isdn zu verwenden
nano /etc/group
dialout:x:20:user

Quelle:
http://www.pro-linux.de/artikel/2/1469/1,einrichtung-des-capi-treibers.html

Website downloaden mit wget

wget -r -k -c URL
-r : recursiv
-k : links anpassen
-c : continue
-e robots=off : ignore robots
-l1
–no-parent
-A gif,jpg,pdf : nur diese dateiformate
-p : only title page
–post-data=user=xy^&pass=yz : mit POST übergabe oder
–post-data ’user=foo&password=bar’
–http-user=user –http-passwd=password : .htaccess auth
-i file.dat
–limit-rate=20k
–max-redirect 0 : do not follow redirects
–follow-ftp
–html-extension / -E : save all in .html

# Download the entire contents of example.com
wget -r -l 0 http://www.example.com/
# Mirror
wget –mirror –convert-links –backup-converted –html-extension -o log http://www.gnu.org/

wget -mkEpnp http://example.com

setting up own debian apt-mirror

  1. on debian based systems install apt-mirror
    apt-get install apt-mirror apache2
  2. edit /etc/apt/mirror.list
    set base_path      /home/apt-mirror
  3. create folders
    mkdir /home/apt-mirror/skel
    mkdir /home/apt-mirror/mirror
    mkdir /home/apt-mirror/var
  4. run apt-mirror and download all
  5. create virtual folders for apache
    mkdir /var/www/apt-mirror
    cd /var/www/apt-mirror
    ln -s /home/apt-mirror/mirror/ftp.de.debian.org/debian/
  6. configure apt clients
    edit /etc/apt/source.list
    deb http://your-server/apt-mirror/debian/ squeeze main contrib non-free

list of distros:

debian 8 unstable: Jessie
debian 7: Wheezy (~ 106 GB)
debian 6: Squeeze (~ 61 GB)
debian 5:Lenny
debian 4: etch
ubuntu 10.04 (LTS): Lucid
ubuntu 10.10: Maverick
ubuntu 11.04: Natty
ubuntu 11.10: Oneiric
ubuntu 12.04 (LTS): Precise
ubuntu 12.10: Quantal
ubuntu 13.04: Raring
ubuntu 13.10: Saucy
ubuntu 14.04 (LTS): Trusty
ubuntu 14.10: Utopic

convert wma / m4a to mp3

My little Script doing all the Stuff

m4a2mp3.sh

#!/bin/bash
#
#aptitude install mplayer twolame
#
for i in *.m4a; do
	echo "Convert: ${i%.m4a}.mp3"
	mplayer -ao pcm:file="${i%.m4a}.wav" "$i"	
	twolame "${i%.m4a}.wav" "${i%.m4a}.mp3"
	rm "${i%.m4a}.wav"
done

or
wma2mp3.sh

#!/bin/bash
#
#aptitude install mplayer twolame
#
for i in *.wma; do
	echo "Convert: ${i%.wma}.mp3"
	mplayer -ao pcm:file="${i%.wma}.wav" "$i"	
	twolame "${i%.wma}.wav" "${i%.wma}.mp3"
	rm "${i%.wma}.wav"
done

Just call “m4a2mp3.sh” of “wma2mp3.sh” in the dir where the files are 😀