Posting this so I can find it in the future.
Install Ubuntu Cloud VM (add an extra disk 1TB or larger.)
Note: you should replace username
with your user.
Mount and Format the disk:
lsblk
sudo fdisk /dev/sdc
n
p
Enter defaults for rest of options
Make the filesystem
sudo mkfs -t ext4 /dev/sdc1
Make a mount path:
mkdir /home/username/data
Update Fstab
sudo echo "/dev/sdc1 /home/username/data ext4 defaults 0 2" >> /etc/fstab
Install the tools you need:
sudo apt install vim screen htop sysstat curl wget
sudo apt install nfs-server samba
Update Exports for NFS (I'm setting this based on subnet, you can change as needed)
sudo echo "/home/username/data 192.168.1.0/24(rw,no_root_squash)" >> /etc/exports
sudo exportfs -a
Make Cifs share:
sudo vi /etc/samba/smb.conf
shift+g
o
Paste the following
[data]
comment = Data
browseable = yes
path = /home/username/data
guest ok = no
read only = no
create mask = 0700
Generate smbpasswd (this will allow windows hosts to connect over smb, granted we are passing them in with the username
account (smile))
sudo smbpasswd -a username
Update permissions if needed:
sudo chown -R username:root /home/username/data
Download some data (this is a good dump of isos)
cd /home/username/data
wget -H -r --level=5 --restrict-file-names=windows --convert-links -e robots=off --no-check-certificate https://ftp.nluug.nl/os/Linux/distr/