central logging system
Logs data sent to it by various computers and prints it on printed pieces of paper.
Server Setup
- Download
server.luaand put it on your computer (for example with wget) and put it in the startup folder (you might have to make this). - Attach a printer and a modem to the computer and note on what side of the computer they are.
- Edit the file and change the variables
printerSideandmodemSideif needed. - Download the dependency and "install" it by putting
AES.luain the root directoy - Decide on a shared key, this has to be a number (for example use something like
openssl rand -hex 16and prefix it with0xto get a random 16 byte number) - Run
set AES.key <your shared key> - Choose a channel number and set the channel by changing the
channelvariable.
Client Setup
- download
loggerClient.luaand put it on your computer. - attach a modem to the computer and note what side it is on.
- set the settings
logger.AES.key,logger.modemSideandlogger.channel. - download the AES dependency and put it in the root directory.
- use
requireto include to use this library.
Example
local logger = require("/loggerClient")
logger.log("testLogger", "this is a test log")