Open main menu

Sudo Room β

Space.local

This used to be the gateway, but isn't anymore. See Network - someone should update this page

This is the sudo room gateway. It is located in the sudo room server "room".

  • External hostname: room.sudoroom.org
  • Internal hostname (mDNS): meshbuild.local
  • Internal IP (static): 192.168.42.1
  • ssh port: 60643

It's a Dell SC1425 with:

  • Dual 2.8 Ghz Xeon dual-core processors
  • 6 GB ram
  • 750 GB harddrive.

It runs the following services:

Contents

iptables

iptables handles port forwarding and masquerading (NAT). The configuration file is:

/etc/iptables.rules

To change this, use normal iptables commands to modify the iptables configuration and save it using:

sudo iptables-save > /etc/iptables.rules

dnsmasq

dnsmasq handles DNS only. It has some entries for the .sudo domain, such as stuff.sudo in the config file:

/etc/dnsmasq.conf

Look for the line:

 address=/stuff.sudo/192.168.42.1

dhcpd

dhcpd is our dhcp server. The config file is:

 /etc/dhcp/dhcpd.conf

web server

nginx is the web server and reverse proxy. It has a few virtual hosts. They are defined in:

/etc/nginx/sites-available

with symlinks in:

/etc/nginx/sites-enabled

and files served from:

/var/www/<virtual-host-name>

default (e.g: http://room.sudoroom.org)

The only thing currently on here is http://room.sudoroom.org/wakemesh.php which lets people remotely boot the sudo mesh build server.

stuff.sudo (internal only)

Our inventory tracking and labelling system. It prints labels on the Brother QL-570 thermal label printer located next to the Type A Machines 3D printer.

nginx is only reverse-proxying to the labitrack software. The labitrack software is started by:

/etc/init/labitrack.conf

Labitrack is located in:

/opt/labitrack

Labitrack runs on port 8080 and saves its data in a postgresql database. Labitrack has two parts to it: The web app itself and printloop.sh which automatically prints newly created labels on the label printer. Both the web app and printloop.sh are run by the node.js program "forever" which monitors the programs and restarts them automatically if they crash.

The documentation and source code for labitrack is here: https://github.com/sudoroom/labitrack

postgresql

Used by labitrack.

Backup

WE HAVE NO AUTOMATIC BACKUP OF THIS SERVER. PLEASE FIX!