This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
env 1>&1 | | |
grep '^PATH=' 1> >(cat) | | |
cut -c 6- | | |
awk ' | |
{ | |
old = ":" | |
new = "\n" | |
while ($0 ~ /:/) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:deluge-team/ppa | |
sudo apt-get update | |
sudo apt-get install deluged deluge-console | |
sudo adduser --system --gecos 'Deluge Service' --disabled-password --group --home /var/lib/deluge deluge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install ufw -y | |
sudo ufw allow OpenSSH #application name | |
sudo ufw allow 26656 | |
sudo ufw enable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
read -s -p 'user:' user | |
adduser --gecos '' --ingroup sudo "$user" | |
install -o "$user" -g sudo -m 700 -d "/home/$user/.ssh" | |
install -o "$user" -g sudo -m 644 /dev/null "/home/$user/.ssh/authorized_keys2" | |
cat </root/.ssh/authorized_keys2 >>"/home/$user/.ssh/authorized_keys2" | |
rm /root/.ssh/authorized_keys2 |
NewerOlder