5
0
Fork 0

commit by to_remotes 2024-05-06 12:48:29 +0200 from vmdevhw

main
Holger Wasem 2024-05-06 12:48:29 +02:00
parent f2aa758328
commit f6892b2a12
2 changed files with 33 additions and 1 deletions

View File

@ -3,6 +3,13 @@
sudo apt update sudo apt update
sudo apt dist-upgrade -y sudo apt dist-upgrade -y
sudo apt install -y lvm2 zsh cloud-utils xfsprogs jq hstr ufw git sudo apt install -y lvm2 zsh cloud-utils xfsprogs jq hstr ufw git
sudo apt install -y software-properties-common rsync gpg git gnupg2 sudo apt-transport-https
sudo apt install -y sudo curl qemu-guest-agent man-db
sudo apt install -y iftop nload bmon slurm tcptrack htop
sudo apt install nfs-common
sudo systemctl enable qemu-guest-agent #allows Proxmox to look into VM Networking
sudo systemctl start qemu-guest-agent
mkdir -p $HOME/.ssh mkdir -p $HOME/.ssh
function what_to_do() { function what_to_do() {
echo -ne " echo -ne "
@ -37,4 +44,15 @@ Choose an option: "
what_to_do what_to_do
cat <<EOT
# add
GRUB_CMDLINE_LINUX_DEFAULT="quiet rootdelay=5"
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0 rootdelay=5"
# and do
# sudo grub-mkconfig -o /boot/grub/grub.cfg
EOT
sudo nano /etc/default/grub

View File

@ -61,4 +61,18 @@ if [ ! -d $PNFS ]; then
perform_lvm_tasks perform_lvm_tasks
fi fi
echo "now initializing repos" echo "now initializing repos"
init_repos init_repos
sudo apt install nfs-kernel-server rpcbind acl -y
NFS_INSTRUCTIONS=$CLIENT_REPO/nfs
if [ -f $NFS_INSTRUCTIONS/folder_structure.sh ]; then
source $NFS_INSTRUCTIONS/folder_structure.sh
fi
if [ -f $NFS_INSTRUCTIONS/exports.txt ]; then
sudo mv -f $NFS_INSTRUCTIONS/exports.txt /etc/exports
fi
sudo exportfs -ra #reloading exports
sudo chown -R sysadmin:sysadmin $PNFS