Compare commits

...

3 Commits

Author SHA1 Message Date
ExquisiteCorp b53017531f update getting-started.fish 2021-09-28 17:04:33 -04:00
ExquisiteCorp 2d59fff92e add highscores.fish 2021-09-28 17:04:23 -04:00
ExquisiteCorp eff963ce40 add motd files 2021-09-28 17:04:11 -04:00
4 changed files with 38 additions and 0 deletions

11
etc/motd Normal file
View File

@ -0,0 +1,11 @@
Hello and welcome to anti-soft.
This is a single computer ("in the cloud") that we are all sharing together.
This is a fun Linux server for exploration and learning. There are lots of resources online for learning about Linux.
TIP: If you get stuck, you can cancel out of many commands with Control-C or force quit/exit is Control-D.
To log out of anti-soft, type exit at the prompt.
Run "getting-started" for a list of software and commands to try.

15
etc/update-motd.d/01-custom Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
cowsay -f milk 'Welcome to anti-soft'
echo "Currently logged in:\n"
users | tr ' ' \\n | uniq
echo ""
echo "Update 9/28: The tetris tournament has begun! Current high score by stuffo! Enter tetris-bsd to play."
echo ""
tetris-bsd -s
echo ""
echo "You can see additional highscores for several server games by typing: highscores"

View File

@ -15,6 +15,7 @@ Special for our server:
who - lists everyone currently logged in
wall \"my message\" - broadcasts your message (and Control-L to clear screen of messages)
write <username> - starts a direct live message
highscores - lists highscores board for some games on server
cowsay \"my message\" - prints out a cow saying your message. (many options available)
sl - When you type ls backwards
figlet \"message\" - for creating banner images (many options available, try showfigfonts)

11
functions/highscores.fish Normal file
View File

@ -0,0 +1,11 @@
function highscores
cowsay -f stimpy "Highscores lists for current anti-soft games: "
echo ""
echo "Tetris: "
tetris-bsd -s
echo " "
echo "Snake: "
cat /var/games/bsdgames/snake.log
echo " "
echo "Write to admin lee with requests to add more games"
end