Relearn 2017

The server is configured in the following way:

virtual server both on the IP adress ( and on the avahi adress (complex.local) for now

install mod_listusers found via (!topic/prosody-users/SNW9jgbpgzY ) on /var/lib/prosody/modules . Now we can prosodyctl mod_listusers to dump a user list

crontab -e
0 * * * *  /usr/bin/prosodyctl mod_listusers > /var/www/html/xmpp_users.txt


as user etherpad in /home/etherpad/etherpad-lite, also as a service it is on port 9001

etherdump (adapted from

System wide installation of etherdump
Install deps:
    sudo apt install python-pip python-dev
    sudo pip install python-dateutil jinja2 html5lib

Install from repo:
    git clone
    cd etherdump
    sudo python install

### Setup the folder
    cd /home/etherpad
    mkdir etherdump
    cd etherdump
    etherdump init
Type in:
And paste the API key. (Look at: /home/etherpad/etherpad-lite/API-KEY.txt)    
### styles.css + versions.js
scp styles.css versions.js pi@etherbox.local:etherdump/lib
The URLs of these files are options to the etherdump pull command and should match.

### + cron
Make the script that runs automatically.
# PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
cd /home/etherpad/etherdump
etherdump pull --all --pub /home/etherpad/etherdump
etherdump index *.meta.json > index.html


And set it to run every 5 minutes
    crontab -e

# m h  dom mon dow   command
*/5 * * * * /home/pi/ > /home/pi/cron.log.txt 2>&1

The PATH is important. It can also be in the but basically should match what you see when you "echo $PATH" (for the script to run in the same way as for the etherpad user).

## usefull ips

etherdump site:
fritz box:
devolo box:
wdr3600 wan: ????
wdr3600 lan:
printer HP_Color_LaserJet_8550:

## wifi passwords

### TP-LINK WDR3600 (the black one = downstairs)
ssid: relearn2017
pwd: relearn2017

### TP-LINK (the white one = upstairs)
ssid: relearn
~~pwd: no password~~ (former pwd: poortgebouw)
### ICIDU (ruben's = downstairs)
ssid: ICIDU
~~pwd: no password~~

## config router (OpenWrt)


    Internet <---> WAN : main router (A) : LAN <---> WAN : your router (B) - WIFI <---> computer(s)

connect  router (B) wan with cable to main router (A) lan 

connect router (B) lan with cable to computer 

ssh to router

    sudo ssh root@

or via gui

edit /etc/config/network and config wan and bridge

    config interface 'wan'
            option ifname 'eth0.2'
            option proto 'dhcp'
            option type 'bridge'

edit /etc/config/wireless and create SSID access point 

    config wifi-iface
        option device 'radio0'
        option mode 'ap'
        option network 'wan'
        option encryption 'psk2'
        option key 'relearn2017'
        option ssid 'relearn2017

commit changes or reboot router

it should bridge the new access point/SSID to wan

connect via wifi to access point with your computer

ping something

## config router (ICIDU (Ruben's))

not under OpenWrt but seems to bridge wlan to wan by default so it's working

## printer 1 is HP_Color_LaserJet_8550 @

tray 1 (bypass) : a4 (buggy / jam ))
tray 2: a4 (working !)
tray 3: a3 (working ?)

output 1: (buggy / jam ?)
output 2: (working !)

the output 2 is set by default on the printer so it's ok (normally)
you need to use tray 2 (a4) or tray 3 (a3) (tray 1 as paper input when you print

printer driver : 

see open printing

Set up wifi as desired: networkname and password.

Based on:

config interface lan

config wifi-iface
  /etc/init.d/dnsmasq disable  

ifup wifi