sudo apt-get install -y aptitude
sudo aptitude update
sudo aptitude upgrade -y
sudo shutdown -r now
sudo aptitude install -y git \
python2.7-dev python2.7 \
wget curl \
build-essential \
screen \
ufw \
rsync
temp
directory:mkdir ~/temp
python
command:sudo ln -s /usr/bin/python2.7 /usr/bin/python
cd ~/temp
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
rm -rf get-pip.py
pip3
:curl -sS https://bootstrap.pypa.io/get-pip.py | sudo python3
sudo pip install glances
sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=4096
sudo /sbin/mkswap /var/swap.1
sudo chmod 600 /var/swap.1
sudo /sbin/swapon /var/swap.1
/etc/fstab
file, run:echo "/var/swap.1 swap swap defaults 0 0" | sudo tee -a /etc/fstab
sudo shutdown -r now
sudo ufw allow 22 # enable SSH
sudo ufw allow 873 # enable rsync
sudo ufw enable
This howto is part of a larger collection of howtos maintained by the author (mostly for his own reference). The source code for the current howto in plain Markdown is available on GitHub. If you have a GitHub account, you can jump straight in, and suggest edits or improvements via the link at the bottom of the page (Improve this page).
made with ❤ by Valera Rozuvan