-
Notifications
You must be signed in to change notification settings - Fork 0
Home Cloud Setup
Vincent Nguyen edited this page Mar 1, 2023
·
1 revision
cat /proc/cpuinfo | egrep "vmx|svm"
lscpu | grep Virtualization
sudo dnf update -y
sudo dnf install cockpit cockpit-machines -y
sudo systemctl enable --now cockpit.socket
sudo firewall-cmd --add-service=cockpit --permanent
sudo dnf install qemu-kvm qemu-img libvirt virt-install libvirt-client virt-top libguestfs-tools -y
sudo systemctl enable libvirtd
sudo systemctl start libvirtd
sudo usermod -a -G libvirt $(whoami)
In the SSH config file in /etc/ssh/sshd_config
edit the GatewayPorts
and AllowTcpForwarding
lines to the following
GatewayPorts yes
AllowTcpForwarding yes
sudo systemctl restart sshd
sudo systemctl status sshd
Remember to enable wake-on-lan capabilities in the BIOS.
# Temporarily enables wake-on-lan
sudo ethtool -s <interface> wol g
# Permanently enabled wake-on-lan
sudo nmcli connection modify <interface> 802-3-ethernet.wake-on-lan magic
sudo nmcli connection up
sudo ln -s /bin/bash /bin/rbash
PATH=$HOME/allowed_programs_folder
Edit the /etc/sudoers or run visudo
user ALL=(ALL) path_to_command
user ALL=(ALL) NOPASSWD: path_to_command
sudo visudo -c