890
edits
(Created page with " We use the build server to build firmwares. It is turned off when not in use. *Hostname (mDNS): meshbuild.local *IP (static): 192.168.42.22 *Who to contact about the server:...") |
|||
(3 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. | ||
* | *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 | ||
* | *6 GB ram | ||
*750 GB harddrive. | *750 GB harddrive. | ||
It is located in the sudo room "server room". | It is located in the sudo room "server room". | ||
= Using the server = | |||
SSH into the server (ask [[User:Juul|juul]], [[User:Aep|aep]] or [[User:Maxb|maxb]] to gain access). | |||
To power up the server simply access this URL: | |||
* http://room.sudoroom.org/wakemesh.php | |||
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: | |||
<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> |