Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
advanced:target [2018/10/04 23:44] – [Create a replication user] Correct zfs permissions dan | advanced:target [2018/10/06 12:03] – [Rebuild the kernel] dan | ||
---|---|---|---|
Line 8: | Line 8: | ||
===== Rebuild the kernel ===== | ===== Rebuild the kernel ===== | ||
- | To ensure | + | In order to build ZFS, you must have the headers for the running kernel installed |
< | < | ||
- | sudo apt update && sudo apt upgrade | + | sudo apt update && sudo apt upgrade |
- | sudo apt install git gcc g++ build-essential | + | sudo apt install git gcc g++ build-essential |
git clone --depth 1 https:// | git clone --depth 1 https:// | ||
cd linux | cd linux | ||
Line 32: | Line 32: | ||
These instructions are taken from the [[https:// | These instructions are taken from the [[https:// | ||
< | < | ||
- | sudo apt install | + | sudo apt install autoconf libtool gawk alien fakeroot zlib1g-dev uuid-dev libattr1-dev libblkid-dev libselinux-dev libudev-dev parted lsscsi ksh libssl-dev libelf-dev |
</ | </ | ||
Then download, build, and install the ZFS code: | Then download, build, and install the ZFS code: | ||
Line 56: | Line 56: | ||
===== Enable encryption, and create an encrypted dataset ===== | ===== Enable encryption, and create an encrypted dataset ===== | ||
+ | |||
The idea of this system is to be a standalone storage " | The idea of this system is to be a standalone storage " | ||
< | < | ||
Line 67: | Line 68: | ||
===== Create a replication user ===== | ===== Create a replication user ===== | ||
- | For the sake of security, it would be best if replication to this device ran as a user other than root. | + | For the sake of security, it would be best if replication to this device ran as a user other than root. |
+ | |||
+ | Then, on the Odroid, as root, run | ||
< | < | ||
- | adduser zfsuser | + | adduser zfsuser |
- | </ | + | |
- | Disable login for that user: | + | |
- | < | + | |
- | chsh -s / | + | |
- | </ | + | |
- | Generate a SSH keypair for that user: | + | |
- | < | + | |
- | sudo -u zfsuser ssh-keygen | + | |
</ | </ | ||
+ | where " | ||
+ | |||
Now allow that user to make changes on the encrypted dataset: | Now allow that user to make changes on the encrypted dataset: | ||
< | < | ||
zfs allow -ldu zfsuser create, | zfs allow -ldu zfsuser create, | ||
</ | </ | ||
+ | ===== Install Zerotier ===== | ||
+ | [[https:// | ||
+ | < | ||
+ | sudo apt install curl | ||
+ | curl https:// | ||
+ | </ |