Tutorial:!? File Server, Ubuntu 22.04.3 + Syncthing

I have the old bpi-w2 working. I have installed two 1TB hard drives. I have updated the official version “Ubuntu Server 16.04 Operation system with kernel 4.9.119” to Ubuntu 22.04.

I leave some tips here!

Hardware

  • BPI-W2
  • 2 x HDD Western Digital WD10SPZX
  • 1 x SD card 8GB

Sources

  1. Banana Pi BPI-W2 - Banana Pi Wiki
  2. Getting Started with W2 - Banana Pi Wiki
  3. BPI-W2 How to make and run the 64-bit ubuntu on SD card - banana pi BPI-W2 smart router with Realtec RTD129
  4. https://cdimage.ubuntu.com/ubuntu-base/releases/22.04.3/release/ubuntu-base-22.04.3-base-arm64.tar.gz
  5. BPI-W2 How to make and run the 64-bit ubuntu on SD card - banana pi BPI-W2 smart router with Realtec RTD129

1. Create SD card

apt-get install pv
curl -sL https://github.com/BPI-SINOVOIP/bpi-tools/raw/master/bpi-tools | sudo -E bash
bpi-copy xxx.img /dev/sdx # to install image on your TF card.

2. Update Ubuntu 22.04.

I have replaced the contents of the “ROOT” partition.

tar zxvf ubuntu-base-22.04.3-base-arm64.tar.gz -C /mnt/rootfs

I have solved some errors with the help of the forum.

Install Syncthing

apt install software-properties-common apt-transport-https wget curl -y
curl -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
apt update
apt install syncthing
adduser syncthing
systemctl start [email protected]
systemctl enable [email protected]