Difference between revisions of "Space.local"

From Sudo Room
Jump to navigation Jump to search
m (Yardena moved page O:3 to Space Server: human-readability)
(Merge content from Space Server page)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
The space server.
This is the sudo room shell server and former [[Network]] gateway. It is located in the sudo room server "room". As of 2021-05-21, it is offline due to a network issue.


Home: Where the main book-case meets corner wall.  
*External hostname: room.sudoroom.org
*Internal hostname (mDNS): meshbuild.local
*Internal IP (static): 192.168.42.1
*ssh port: 60643


It should be hooked up the audio amplifier as well as the [[O:1|label printer]].
It's a Dell SC1425 with:


= Services =
*Dual 2.8 Ghz Xeon dual-core processors
*6 GB ram
*750 GB harddrive.


*[http://space.local/ Inventory tracking on port 80]
It runs the following services:
:See [[Inventory]].
 
*PulseAudio TCP sink on port 4713.
= iptables =
:See [[Audio]].
 
*SSH on port 22
iptables handles port forwarding and masquerading (NAT). The configuration file is:
:Talk to [[User:Juul|Juul]] ([[User talk:Juul|talk]]) if you want access.
 
*[[File server|File server access via SFTP on port 22]]
/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.
 
= SSH/SFTP =
Talk to [[User:Juul|Juul]] ([[User talk:Juul|talk]]) or another member if you want access.
 
[[File server|File server access via SFTP on port 60643]]
 
= [[Secure Scuttlebutt]] =
 
* [[Secure Scuttlebutt]] peer server listens on port 8008
* [[Secure_Scuttlebutt#How_to_post_to_SSB_as_@sudoer|patchfoo]] on http://localhost:8027/
 
= Backup =
 
WE HAVE NO AUTOMATIC BACKUP OF THIS SERVER. PLEASE FIX!

Latest revision as of 18:37, 21 May 2021

This is the sudo room shell server and former Network gateway. It is located in the sudo room server "room". As of 2021-05-21, it is offline due to a network issue.

  • 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:

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.

SSH/SFTP

Talk to Juul (talk) or another member if you want access.

File server access via SFTP on port 60643

Secure Scuttlebutt

Backup

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