Skip to content

Commit

Permalink
core: add motd message
Browse files Browse the repository at this point in the history
Co-authored-by: ES-Alexander <[email protected]>
  • Loading branch information
Williangalvani and ES-Alexander committed Oct 15, 2021
1 parent edd23b0 commit b5f77af
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ RUN /home/pi/libs/install-libs.sh

# Set tmux configuration file
COPY configuration/tmux.conf /etc/tmux.conf
COPY configuration/motd /etc/motd

# Install services
COPY services /home/pi/services
Expand Down
18 changes: 18 additions & 0 deletions core/configuration/motd
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

Welcome to Companion 1.0!

What you currently see is a tmux session built into Companion's docker container.
This means you are not in the host Raspbian OS itself, and most of the data in here is
not-persistent, except for things in /root/.config, although you should not store your data there.

USAGE NOTES:
To check all running services, press ctrl+b, then s. This will show all current sessions,
and is helpful for checking the state of individual services, restarting them, and checking their verbose outputs.

To split the screen horizontally, press ctrl+b then %
To split the screen vertically press ctrl+b then " (this is currently not working)
To switch tabs, press ctrl+b then use the directional keys in the keyboard

To login into the Raspberry Pi itself, do "ssh localhost" (NOT IMPLEMENTED)

Happy Hacking!
2 changes: 1 addition & 1 deletion core/start-companion-core
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ SERVICES=(
'filebrowser',"filebrowser --database /etc/filebrowser/filebrowser.db --baseurl /file-browser"
'versionchooser',"$SERVICES_PATH/versionchooser/main.py"
'ping',"$SERVICES_PATH/ping/main.py"
'ttyd',"ttyd -p 8088 /usr/bin/tmux"
'ttyd',"ttyd -p 8088 /usr/bin/tmux new-session \\\\; send-keys 'cat /etc/motd' C-m \\\\;"
'nginx',"nginx -g \"daemon off;\" -c $TOOLS_PATH/nginx/nginx.conf"
)

Expand Down

0 comments on commit b5f77af

Please sign in to comment.