Skip to content

Instantly share code, notes, and snippets.

@carschrotter
Last active March 26, 2021 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carschrotter/02cfe80f99c6870af3f0106727ce3a7b to your computer and use it in GitHub Desktop.
Save carschrotter/02cfe80f99c6870af3f0106727ce3a7b to your computer and use it in GitHub Desktop.
#!/bin/bash
#simple script for make a nas from Proxmox
#setup repository
mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.back
echo "deb http://download.proxmox.com/debian/pve stretch pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
echo "deb http://deb.debian.org/debian buster-backports main" > /etc/apt/sources.list.d/buster-backport.list
apt update
# install cockpit
apt -t buster-backports install cockpit -y
apt install sudo git wget samba -y
# add ZFS manager
git clone https://github.com/optimans/cockpit-zfs-manager.git
cp -r cockpit-zfs-manager/zfs /usr/share/cockpit
wget https://raw.githubusercontent.com/enira/cockpit-smb-plugin/master/install.sh -O - | /bin/bash
# start cockpit
systemctl restart cockpit.socket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment