Almalinux LXC setup
Here is a simple review of what should be done in a newly created LXC using the image from Proxmox VE.
Step by step procedure
-
Install important packages
-
update and upgrade
dnf update -y && dnf upgrade -y
-
install basic packages
dnf install -y vim git tar wget bind-utils net-tools openssh-server
-
-
Create a user with sudo privileges
adduser thorgan usermod -aG wheel thorgan passwd thorgan
-
Start and enable
sshd
to accept SSH connectionsservice sshd start && systemctl enable sshd
Script procedure
#!/bin/bash
dnf update -y && dnf upgrade -y
dnf install -y vim git tar wget bind-utils net-tools openssh-server
read -p "Enter username: " user
adduser "$user"
usermod -aG wheel "$user"
passwd "$user"
service sshd start && systemctl enable sshd
No Comments