Initial Setup of Ubuntu 24.04 Linux and Enabling External SSH Access
I bought a mini PC this time. I need to control the Linux kernel, but I decided it would pose a security risk to do that on the server I currently use, so I bou
GGAMI
I bought a mini PC this time. I need to control the Linux kernel, but I decided it would pose a security risk to do that on the server I currently use, so I bou
Contents
I bought a mini PC this time.
I need to control the Linux kernel, but I decided it would pose a security risk to do that on the server I currently use, so I bought a new mini PC from AliExpress.
So, I’m writing this based on Ubuntu rather than AlmaLinux.
passwd root
sudo -i
apt update
apt install
systemctl stop ufw
systemctl disable ufw
rebootsystemctl set-default multi-user.targetapt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
systemctl start docker
systemctl enable docker
docker run hello-worldcat /etc/os-release
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logolscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 48 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 12
On-line CPU(s) list: 0-11
Vendor ID: AuthenticAMD
BIOS Vendor ID: Advanced Micro Devices, Inc.
Model name: AMD Ryzen 5 6600H with Radeon Graphicsdocker network create backend
Error response from daemon: Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables --wait -t nat -I DOCKER -i br-2bbd93766d2a -j RETURN: iptables: No chain/target/match by that name.
(exit status 1))If the above error occurs when trying to create a Docker network, it’s because the Docker network is missing from iptables.
iptables -t nat -L -n -v
systemctl restart dockerJust restart Docker. (It can happen because something is running iptables -F somewhere and flushing the rules.)