From c9eb5ae50a6e324bb1a1003040e197cb4ead0acb Mon Sep 17 00:00:00 2001 From: ExquisiteCorp Date: Tue, 28 Sep 2021 16:38:36 -0400 Subject: [PATCH] initial commit --- README.md | 10 ++++++++++ functions/getting-started.fish | 29 +++++++++++++++++++++++++++++ functions/weather.fish | 4 ++++ install.sh | 24 ++++++++++++++++++++++++ 4 files changed, 67 insertions(+) create mode 100644 README.md create mode 100644 functions/getting-started.fish create mode 100644 functions/weather.fish create mode 100644 install.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..aa1b630 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# antisoft-dotfiles + +anti-soft is a private tilde server for students of Social Software. + +This is a quick hackjob to save some of our settings off the server. + + +### Fish Functions + +located at /etc/fish/functions diff --git a/functions/getting-started.fish b/functions/getting-started.fish new file mode 100644 index 0000000..db754eb --- /dev/null +++ b/functions/getting-started.fish @@ -0,0 +1,29 @@ +function getting-started +echo "cd to jump to a directory or cd .. to go back (and cd by itself to go home) +ls to list files in current directory +pwd to display current directory (aka folder) name +cat prints out a file +touch creates a new file +nano edits a file +man displays the manual for a command. arrows to scroll. q to quit. +mkdir creates a folder (directory) +rm deletes a file permanently (careful!) + +Read any Linux resource for more info on basic linux commands. + +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 - starts a direct live message +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) +weather - fetch a 5 day weather forecast for Purchase, in fahrenheight +w3m - BROWSE THE WEB from the comfort of the command line. +python3 - launch the programming language +finger - displays info on a user +fish - our shell (already running) + +We also have many games installed: adventure, arithmetic, atc, backgammon, battlestar, bcd, boggle, caesar, canfield, countmail, cribbage, dab, go-fish, gomoku, hack, hangman, hunt, mille, monop, morse, number, pig, phantasia, pom, ppt, primes, quiz, random, rain, robots, rot13, sail, snake, tetris-bsd, trek, wargames, worm, worms, wump, wtf +" +end diff --git a/functions/weather.fish b/functions/weather.fish new file mode 100644 index 0000000..610920f --- /dev/null +++ b/functions/weather.fish @@ -0,0 +1,4 @@ +function weather + ansiweather -l "Purchase, NY" -u imperial -s true -f 5 -d true +end + diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..8e56e9b --- /dev/null +++ b/install.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +echo "Update apt..." +sudo apt update + +echo "Installing packages..." +sudo apt install fish fail2ban bsdgames bsdgames-nonfree sl ansiweather finger cowsay fortune figlet python w3m + +echo "Setting timezone..." +timedatectl set-timezone America/New_York + +echo "Setting up security..." +wget https://tilde.pt/~rlafuente/files/jail.local +sudo mv jail.local /etc/fail2ban + +echo "Next steps:" +echo "Edit jail.local and test fail2ban with fail2ban-server --test" +echo "" +echo "turn it on: sudo systemctl start fail2ban" +echo "" +echo "Turn off ability for root to login via ssh" +echo "edit /etc/ssh/sshd_config and turn PermitRootLogin to no" +echo "" +echo "Next add users (adduser) and set up a MOTD at /etc/motd