Difference between revisions of "Mesh/Build server"

 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
We use the build server to build firmwares. It is turned off when not in use.
We use the build server to build firmwares. It is turned off when not in use.


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


It's a Dell SC1425 with:
It's a Dell SC1425 with:


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


Line 19: Line 21:
To power up the server simply access this URL:
To power up the server simply access this URL:


* http://room.sudoroom.org/wakemesh.html
* http://room.sudoroom.org/wakemesh.php


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


  sudo shutdown -h now
  sudo shutdown -h now
= wake server script =
Here is the wake-up script we use:
<pre>
<!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>
</pre>

Latest revision as of 21:42, 28 October 2014

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>