Commit 46c6fcc1 authored by Chad Barb's avatar Chad Barb
Browse files

Added tip without ops!

Added faq entry, added script to generate acl files, and added
menu option (With "howto" link to FAQ") to shownode.
parent 8ab3c597
......@@ -64,6 +64,10 @@ BUIFILES += $(wildcard $(SRCDIR)/buildui/*.class)
WEBDBFILES = $(wildcard $(SRCDIR)/webdb/*.php3)
# need to make it *.gz; with simply "*",
# we end up sucking over "CVS"
DOWNLOADFILES = $(wildcard $(SRCDIR)/downloads/*.gz)
# This stuff only gets installed on the main site
......@@ -85,6 +89,7 @@ ALLDOCS = $(notdir $(DOCFILES))
ALLTUTS = $(notdir $(TUTFILES))
ALLBUI = $(notdir $(BUIFILES))
......@@ -93,6 +98,7 @@ install: $(addprefix $(INSTALL_WWWDIR)/, $(ALLFILES)) \
$(addprefix $(INSTALL_WWWDIR)/tutorial/, $(ALLTUTS)) \
$(addprefix $(INSTALL_WWWDIR)/doc/, $(ALLDOCS)) \
$(addprefix $(INSTALL_WWWDIR)/webdb/, $(ALLWEBDB)) \
$(addprefix $(INSTALL_WWWDIR)/downloads/, $(ALLDOWNLOADS)) \
$(addprefix $(INSTALL_WWWDIR)/buildui/, $(ALLBUI)) \
$(addprefix $(INSTALL_WWWDIR)/autostatus-icons/, $(ALLICONS)) \
$(addprefix $(INSTALL_WWWDIR)/cvsweb/, $(ALLCVSWEB))
......@@ -27,6 +27,8 @@
<li> <a href="#UTT-TOOFEW">What if I need more nodes than are free?</a>
<li> <a href="#UTT-2">Do I get root access on my nodes?</a>
<li> <a href="#UTT-3">Do my nodes have consoles I can look at?</a>
<li> <a href="#UTT-TUNNEL">How do I connect directly to node consoles,
without going through <b>users</b>?</a>
<li> <a href="#UTT-4">Can I reboot (power cycle) my nodes?</a>
<li> <a href="#UTT-SCROGGED">I've scrogged my disk! Now what?</a>
<li> <a href="#UTT-5">Where do I store files needed by my experiment?</a>
......@@ -339,6 +341,32 @@
of the node on the shelf is eight.
<li><a NAME="UTT-TUNNEL"></a>
<h3>How do I connect directly to node consoles,
without going through <b>users</b>?</h3>
Clicking "Connect to Serial Line"
in the Node Options page will send your browser a "text/x-testbed-acl"
file. If you have downloaded <code>tiptunnel</code> and set it as the
handler for that MIME type, <code>tiptunnel</code> will launch a new
telnet running in a new xterm (this may take a few seconds.)
That telnet will be connected to a local port,
which is tunneled through SSL to your node's console.
Closing the xterm, exiting telnet, or killing <code>tiptunnel</code>
itself will end the connection.
You can download the gzipped <code>tiptunnel</code>
statically-linked x86 binary for FreeBSD
<a href="downloads/tiptunnel.gz">here</a>.
Simply <code>gunzip</code> it to somewhere accessible,
set it as executable with <code>chmod u+x tiptunnel</code>,
and when you click on the "Connect to Serial Line" link,
tell your browser to always use the <code>tiptunnel</code>
binary to open files of type "text/x-testbed-acl".
The source tarball, as well as a version for Windows,
will be available soon.
<li><a NAME="UTT-4"></a>
<h3>Can I reboot (power cycle) my nodes?</h3>
......@@ -40,7 +40,7 @@ if (mysql_num_rows($query_result) == 0) {
$filename = $node_id . ".acl";
header("Content-Type: text/testbed-acl");
header("Content-Type: text/x-testbed-acl");
header("Content-Disposition: attachment; filename=$filename;");
header("Content-Description: ACL key file for a testbed node serial port");
......@@ -54,11 +54,13 @@ $keylen = $row[keylen];
$keydata = $row[keydata];
# XXX fix me!!!
$certhash = "7161bb44818e7be5a5bcd58506163e1583e6aa1c";
# $certhash = "7161bb44818e7be5a5bcd58506163e1583e6aa1c";
$certhash = "0bc864551de711a3d46ac173dbd67cde75c36734";
echo "host: $server\n";
echo "port: $portnum\n";
echo "keylen: $keylen\n";
echo "key: $keydata\n";
echo "ssl-server-cert: $certhash\n";
\ No newline at end of file
......@@ -42,10 +42,20 @@ if (! $isadmin) {
SUBMENUSTART("Node Options");
# Tip to node option
if ($isadmin ||
TBNodeAccessCheck($uid, $node_id, $TB_NODEACCESS_MODIFYINFO)) {
WRITESUBMENUBUTTON("Connect to Serial Line</a> " .
"<a href=\"faq.php3#UTT-TUNNEL\">(howto)",
# Edit option
if (TBNodeAccessCheck($uid, $node_id, $TB_NODEACCESS_REBOOT)) {
......@@ -61,6 +71,8 @@ if ($isadmin) {
# echo "<h4>(<a href=\"faq.php3#UTT-TUNNEL\">Help on 'connect to serial line'</a>)</h4>";
# Dump record.
......@@ -73,3 +85,7 @@ SUBPAGEEND();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment