Tyleo-Scripts/irp-alp-nfs-dck
2024-02-18 19:06:30 +01:00

35 lines
No EOL
1.3 KiB
Text
Executable file

sleep 2
clear
echo ====================================================
echo = Server Node Installation as Docker Host with NFS =
echo ====================================================
echo '[cli] Patching Repos to Latest Stable...'
cp /etc/apk/repositories /etc/apk/repositories.backup
echo https://dl-cdn.alpinelinux.org/alpine/latest-stable/main > /etc/apk/repositories
echo https://dl-cdn.alpinelinux.org/alpine/latest-stable/community >> /etc/apk/repositories
echo '[apk] Updating Index...'
apk update
echo '[apk] Upgrading Packages to latest version before setup...'
apk upgrade
echo '[apk] Installing Base Packages...'
apk add curl wget aria2 screen sudo shadow htop btop nano vim fish bash zsh openssh bat fd ack ncdu exa nfs-utils
echo '[orc] Enabling OpenSSH Server Daemon...'
rc-update add sshd
service sshd start
echo '[apk] Installing Docker Packages and LZD & VI Patch...'
apk add docker docker-compose lazydocker ctop
ln -s -f /usr/bin/nano /usr/bin/vi
ln -s -f /usr/bin/lazydocker /usr/bin/lzd
echo '[orc] Adding RuBY Group (easy QS) ...'
groupadd --gid 50000 ruby
echo "%ruby ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/ruby-root
mkdir /nfs && chmod 777 -R /nfs
sleep 2
# Setup DNS Client to Server
mkdir -p /etc/udhcpc
echo RESOLV_CONF=no >> /etc/udhcpc/udhcpc.conf
setup-dns
sleep 2
crontab -e
sleep 2
reboot