Skip to content

Instantly share code, notes, and snippets.

View TeroKeso's full-sized avatar

Tero Keso TeroKeso

View GitHub Profile
@TeroKeso
TeroKeso / tmux_vs_screen.md
Created November 12, 2020 16:29 — forked from P7h/tmux_vs_screen.md
tmux vs screen commands

tmux vs. screen commands


Action tmux screen
start a new session tmux
tmux new
tmux new-session
screen
start a new session with a name tmux new -s name screen -S name
re-attach a detached session tmux attach
tmux attach-session
screen -r
re-attach a detached session with a name tmux attach -t name
tmux a -t name
screen -r name
re-attach an attached session (detaching it from elsewhere) tmux attach -dtmux attach-session -d screen -dr
@TeroKeso
TeroKeso / - Syncthing + start on boot.md
Created July 15, 2020 12:57 — forked from hdml/- Syncthing + start on boot.md
How to install Syncthing on Raspberry Pi + start on boot [semi-automatic]

##Run install_syncthing.sh

$ curl -s https://gist.githubusercontent.com/hdml/7b079c114d3e20bf69f1/raw/1cd3647b1db4f80726c145fba725e27993a7fcdb/install_syncthing.sh | sudo bash

Start syncthing

$ syncthing

Wait until you get something like:

@TeroKeso
TeroKeso / nextcloud_fail2ban.md
Created April 7, 2020 15:09 — forked from GAS85/nextcloud_fail2ban.md
Harden Nextcloud 17+ with Fail2Ban, GUI and WebDAV - Ubuntu 18.04

Short how-to harden your Nextcloud Server with Fail2Ban

Install fail2ban:

sudo apt update && sudo apt install fail2ban -y

Create the Nextcloud-filter:

sudo nano /etc/fail2ban/filter.d/nextcloud.conf
@TeroKeso
TeroKeso / nextcloud_fail2ban.md
Created April 7, 2020 15:09 — forked from GAS85/nextcloud_fail2ban.md
Harden Nextcloud 17+ with Fail2Ban, GUI and WebDAV - Ubuntu 18.04

Short how-to harden your Nextcloud Server with Fail2Ban

Install fail2ban:

sudo apt update && sudo apt install fail2ban -y

Create the Nextcloud-filter:

sudo nano /etc/fail2ban/filter.d/nextcloud.conf