initial commit
This commit is contained in:
commit
c9eb5ae50a
|
@ -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
|
|
@ -0,0 +1,29 @@
|
|||
function getting-started
|
||||
echo "cd <foldername> 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 <filename> prints out a file
|
||||
touch <filename> creates a new file
|
||||
nano <filename> edits a file
|
||||
man <command> displays the manual for a command. arrows to scroll. q to quit.
|
||||
mkdir <directory-name> creates a folder (directory)
|
||||
rm <filename> 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 <username> - 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 <url> - BROWSE THE WEB from the comfort of the command line.
|
||||
python3 - launch the programming language
|
||||
finger <username> - 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
|
|
@ -0,0 +1,4 @@
|
|||
function weather
|
||||
ansiweather -l "Purchase, NY" -u imperial -s true -f 5 -d true
|
||||
end
|
||||
|
|
@ -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
|
Loading…
Reference in New Issue