Mesh/Build server

From Sudo Room
(Redirected from O:21)
Jump to navigation Jump to search

We use the build server to build firmwares. It is turned off when not in use.

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

It's a Dell SC1425 with:

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

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

Using the server

SSH into the server (ask juul, aep or maxb to gain access).

To power up the server simply access this URL:

This will cause the server to boot using wake on lan. Bootup takes a few minutes.

The server should be powered off when not in use using the command:

sudo shutdown -h now

wake server script

Here is the wake-up script we use:

<!DOCTYPE html>
<html>
  <head>
    <title>sudo mesh build server wakeup</title>
    <style type="text/css">
      body, html {
        font-family: sans-serif;
        padding: 0.8em 2.5em;
      }
    </style>
  </head>
  <body>
    <h1>sudo mesh build server wakeup</h1>
  <?php
    if($_POST["wake"]) {
      echo("<h3>Waking sudo mesh build server.</h3>");
      exec("/usr/bin/powerwake 00:14:22:b0:25:c2");
    } else {
  ?>
    <form action="wakemesh.php" method="POST">
      <input name="wake" type="submit" value="Click here to wake the server" />
    </form>
  <?php
    }
  ?>
  </body>
</html>