pasta.risottoias.org

Writing by @risottobias@tech.lgbt

Some basics I always like...

apt install fail2ban

edit /etc/fail2ban/jail.conf

[sshd]
backend = systemd # change this line

Restart things:

systemctl enable fail2ban
service fail2ban reload

Check on bans:

fail2ban-client status sshd

#tutorial #linux

Downloading folders

cd /opt/
wget https://github.com/writefreely/writefreely/releases/download/v0.15.1/writefreely_0.15.1_linux_amd64.tar.gz
unzip writefreely
chmod +x writefreely/writefreely
/opt/writefreely/writefreely config start # pick reverse proxy, single user, sqlite, etc
/opt/writefreely/writefreely keys generate

systemd service:

/etc/systemd/system/writefreely.service

[Unit]
Description=WriteFreely Instance
After=syslog.target network.target
# If MySQL is running on the same machine, uncomment the following 
# line to use it, instead. 
#After=syslog.target network.target mysql.service

[Service]
Type=simple
StandardOutput=syslog
StandardError=syslog
WorkingDirectory=/opt/writefreely
ExecStart=/opt/writefreely/writefreely
Restart=always

[Install]
WantedBy=multi-user.target

make sure to run systemctl enable writefreely and systemctl start writefreely

caddy

/etc/caddy/Caddyfile

pasta.risottobias.org {
    reverse_proxy localhost:8080
}

Should be good to log in then.

#tutorial

Things!

This is an edit of a blog

  • things
  • one two three
  • arg.