diff options
author | hitlerrip <git@hitler.rip> | 2025-08-06 04:18:10 +0000 |
---|---|---|
committer | hitlerrip <git@hitler.rip> | 2025-08-06 04:18:10 +0000 |
commit | 0307a1b46354abf919b5cb7017258243e3b8e101 (patch) | |
tree | ac46de77eb8295f316f26e0d85698fae14b4ab64 | |
parent | 517814c347a76478faf763efbd9be3fccb20004f (diff) | |
download | website-0307a1b46354abf919b5cb7017258243e3b8e101.tar.gz website-0307a1b46354abf919b5cb7017258243e3b8e101.tar.bz2 website-0307a1b46354abf919b5cb7017258243e3b8e101.zip |
rename server script
`run.sh` is now `server.sh`
-rw-r--r-- | README.md | 2 | ||||
-rwxr-xr-x | server.sh (renamed from run.sh) | 28 |
2 files changed, 15 insertions, 15 deletions
@@ -18,7 +18,7 @@ This project includes a build script that builds the website. ./build.sh ``` -It also contains a wrapper around the build script that automatically publishes the website when the server is configured using `run.sh` (which yours probably isn't) +It also contains a wrapper around the build script that automatically publishes the website when the server is configured using `server.sh` (which yours probably isn't) ```sh ./pub.sh @@ -5,22 +5,22 @@ echo "# WEBSERVER RUNNER #" echo "# »» hitler.rip «« #" echo "####################" echo -echo "[run] This script sets up my web servers the way I like it." -echo "[run] Note:" -echo "[run] this script assumes you already have an openssh server set up properly." +echo "[server] This script sets up my web servers the way I like it." +echo "[server] Note:" +echo "[server] this script assumes you already have an openssh server set up properly." echo -echo "[run] installing base packages..." +echo "[server] installing base packages..." sudo apt update sudo apt upgrade -y sudo apt install -y sudo vim git curl wget btop tmux sudo usermod -aG sudo "$(whoami)" sudo apt install -y nmap traceroute netcat-openbsd man man-db rsync ed bc unrar-free zip unzip lvm2 -echo "[run] installing other packages..." +echo "[server] installing other packages..." sudo apt install -y pandoc -echo "[run] setting up classical vim..." +echo "[server] setting up classical vim..." tee -a ~/.vimrc << END syntax on set number @@ -32,7 +32,7 @@ set showmatch set mouse=a END -echo "[run] setting up tmux..." +echo "[server] setting up tmux..." tee ~/.tmux.conf << EOF unbind C-b set-option -g prefix C-d @@ -91,7 +91,7 @@ set -g status-right "#[fg=white]#S #[fg=magenta]| #[fg=white]#(whoami)#[fg=magen EOF tmux source ~/.tmux.conf -echo "[run] installing server packages..." +echo "[server] installing server packages..." sudo apt install -y ufw fail2ban sudo ufw allow http sudo ufw allow https @@ -118,7 +118,7 @@ EOF sudo systemctl enable fail2ban sudo systemctl start fail2ban -echo "[run] setting up nginx..." +echo "[server] setting up nginx..." sudo apt install -y nginx python3-certbot-nginx sudo certbot --nginx # web@hitler.rip @@ -195,7 +195,7 @@ sudo chown -R $(whoami):$(whoami) /srv/build/ sudo systemctl restart nginx sudo systemctl enable nginx -echo "[run] setting up git server..." +echo "[server] setting up git server..." sudo adduser --shell $(which git-shell) git sudo mkdir /home/git/.ssh/ sudo cp ~/.ssh/authorized_keys /home/git/.ssh/ @@ -207,9 +207,9 @@ sudo chown -R git:git /srv/git/ sudo mkdir -p /srv/pgit/ sudo chown -R git:git /srv/pgit/ git config --global --add safe.directory '*' # to allow the server to clone its own repos -echo "[run] git server created. you may now clone the website build script to /srv/build/ and push your website." +echo "[server] git server created. you may now clone the website build script to /srv/build/ and push your website." -echo "[run] setting up cgit..." +echo "[server] setting up cgit..." sudo apt install -y cgit fcgiwrap sudo systemctl enable fcgiwrap sudo systemctl start fcgiwrap @@ -260,9 +260,9 @@ sudo tee -a /usr/share/cgit/cgit.css << EOF height: 64px; } EOF -echo "[run] cgit server created. you may now replace /usr/share/cgit/cgit.png and /usr/share/cgit/favicon.ico with a custom image." +echo "[server] cgit server created. you may now replace /usr/share/cgit/cgit.png and /usr/share/cgit/favicon.ico with a custom image." -echo "[run] configuring shell..." +echo "[server] configuring shell..." tee ~/.bash_aliases << EOF alias t="tmux" alias tile="tmux" |