Quick Ubuntu SSH commands

Some quick commands that I refer back to every once in a while.

WARNING: Never place zip files in a publicly accessible folder.

#disable ipv6
sysctl -w net.ipv6.conf.all.disable_ipv6=0
sysctl -w net.ipv6.conf.default.disable_ipv6=0
#test drive write speed
dd if=/dev/zero of=/mnt/output.txt bs=8k count=10k; rm -f /mnt/output.txt
#start iperf on server, the receiver (ip 192.168.1.50)
iperf -s

#start iperf on client, the sender, testing speed to server
iperf -c 192.168.1.50
#install docker:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
apt-cache policy docker-ce
sudo apt-get install -y docker-ce
#Update everything on linux without prompts:
apt-get update && apt-get -y --force-yes upgrade && apt-get -y --force-yes dist-upgrade
Follow
( 9 Followers )
X

Follow

E-mail : *

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.