Compile RetroShare on Debian 6 Squeeze

#needed Packages:
aptitude install libupnp3 gnupg-agent libqt4-dev g++ libgpgme11-dev libgpg-error-dev libupnp-dev libssl-dev libgnome-keyring-dev libxss-dev subversion
#Get RetroShare
svn co https://retroshare.svn.sourceforge.net/svnroot/retroshare/trunk/ retroshare
#or
wget http://sourceforge.net/projects/retroshare/files/RetroShare/0.5.3b/RetroShare-v0.5.3b.tar.gz/download
#Build
cd $RetroSharePath/libbitdht/src
qmake
make
cd ../../libretroshare/src
qmake
make
cd ../../retroshare-gui/src
qmake
make
#Run retroShare
$RetroSharePath/retroshare-gui/src/RetroShare

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!

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