Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions builder/chroot-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ lighttpd-enable-mod fastcgi-php
systemctl disable dhcpcd
systemctl disable hciuart

echo "Installing ttyd web terminal"
wget -q https://github.com/tsl0922/ttyd/releases/download/1.4.2/ttyd_linux.armhf -O usr/local/bin/ttyd
chmod +x usr/local/bin/ttyd
systemctl enable ttyd

echo "Installing rpi-serial-console script"
wget -q https://raw.githubusercontent.com/lurch/rpi-serial-console/master/rpi-serial-console -O usr/local/bin/rpi-serial-console
chmod +x usr/local/bin/rpi-serial-console
Expand Down
8 changes: 8 additions & 0 deletions builder/files/etc/systemd/system/ttyd.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Unit]
Description=ttyd Web Terminal

[Service]
ExecStart=/usr/local/bin/ttyd login

[Install]
WantedBy=multi-user.target
4 changes: 3 additions & 1 deletion builder/files/var/www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@

<p><img src="/images/publiclab.svg" /></p>

<h2>Public Lab Pi Camera Kit</h2>
<h2>Public Lab Pi Kit</h2>

<br />

<p><i>You've correctly connected to your Pi!</i></p>
<p>If you're seeing this in a pop-up, close it and open <a href="http://pi.local">http://pi.local</a> in a browser.</p>

<a href="http://pi.local:7681/">Access command line</a>

</body>
</html>