codex
Search…
Unix

DNS

1
sudo nano /etc/resolv.conf
Copied!
set preferred dns server under nameserver x.x.x.x

UFW

ufw allow 22 isn't the same as ufw allow ssh
ufw limit ssh prevents abuse of ssh connections

User Management

Adding users

1
adduser
Copied!

Removing users

1
userdel
Copied!

Resetting Passwords

1
passwd [user]
Copied!

Installing Binaries

1
sudo dpkg -i [binary].deb
Copied!

Getting Updates

1
sudo apt-get update
Copied!

Getting Upgrades

1
sudo apt-get upgrade
Copied!

Upgrading Releases

1
sudo do-release-upgrade
Copied!

Mounting a Windows Share

1
sudo mount -t cifs //[host]/[share] [directory] -o user=[windows user]
Copied!