Wireguard working on Ubuntu Mate (Bionic Mate)
I need a functional wireguard instalation for my Pinebook Pro to be a truly useful laptop for remote access. I have finally gotten it installed and completely functional, so have decide to post what I did to help anyone else having difficulties.
First, based on a comment in a previous post, I found from:
https://github.com/ayufan-rock64/linux-b...es/dkms.md
these instructions:
sudo apt-get install -y dkms git-core
sudo apt-get install -y debootstrap binutils-aarch64-linux-gnu
sudo debootstrap --arch=arm64 --variant=minbase --include=gcc bionic /opt/gcc-arm64
http://ports.ubuntu.com/ubuntu-ports/
echo "export CROSS_COMPILE=/opt/gcc-arm64/usr/bin/aarch64-linux-gnu-" | sudo tee -a /etc/dkms/framework.conf
echo "export LD_LIBRARY_PATH=/opt/gcc-arm64/usr/lib/aarch64-linux-gnu/:/opt/gcc-arm64/lib/aarch64-linux-gnu/:\$LD_LIBRARY_PATH" | sudo tee -a /etc/dkms/framework.conf
I already had dkms git wireguard wireguard-tools and wireguard-dkms installed (but wireguard-dkms gave errors).
I installed:
binutils-common:arm64 (2.30-21ubuntu1~18.04.2)
debootstrap (1.0.95)
they also installed:
libbinutils:arm64 (2.30-21ubuntu1~18.04.2)
zlib1g:arm64 (1:1.2.11.dfsg-0ubuntu2)
I then ran as root (su -i) per the instructions:
sudo debootstrap --arch=arm64 --variant=minbase --include=gcc bionic /opt/gcc-arm64
http://ports.ubuntu.com/ubuntu-ports/
echo "export CROSS_COMPILE=/opt/gcc-arm64/usr/bin/aarch64-linux-gnu-" | sudo tee -a /etc/dkms/framework.conf
echo "export LD_LIBRARY_PATH=/opt/gcc-arm64/usr/lib/aarch64-linux-gnu/:/opt/gcc-arm64/lib/aarch64-linux-gnu/:\$LD_LIBRARY_PATH" | sudo tee -a /etc/dkms/framework.conf
Those completed without errors.
I then used synaptic to reinstall wireguard-dkms and it installed without errors!
I already had a /etc/wireguard/wg0.conf from previous attempts.
Ran (as root) wg-quick up wg0 and wg-quick down wg0 but got errors from the script related to iptables.
Checked, and iptables was not installed so I installed iptables
Re-ran wg-quick up wg0 and was connected to the remote site!
wg reported the status and info on the connection.
wg-quick down wg0 terminated the connection without errors.
SOLVED, hope this helps someone.
BTW I have found the Bionic Ubuntu Mate distribution to be very reliable and have been able to install packages with synaptic
that just work. I have alsi installed the Vivaldi browser without problems.
Wireguard working on Ubuntu Mate (Bionic Mate)
I need a functional wireguard instalation for my Pinebook Pro to be a truly useful laptop for remote access. I have finally gotten it installed and completely functional, so have decide to post what I did to help anyone else having difficulties.
First, based on a comment in a previous post, I found from:
https://github.com/ayufan-rock64/linux-b...es/dkms.md
these instructions:
sudo apt-get install -y dkms git-core
sudo apt-get install -y debootstrap binutils-aarch64-linux-gnu
sudo debootstrap --arch=arm64 --variant=minbase --include=gcc bionic /opt/gcc-arm64
http://ports.ubuntu.com/ubuntu-ports/
echo "export CROSS_COMPILE=/opt/gcc-arm64/usr/bin/aarch64-linux-gnu-" | sudo tee -a /etc/dkms/framework.conf
echo "export LD_LIBRARY_PATH=/opt/gcc-arm64/usr/lib/aarch64-linux-gnu/:/opt/gcc-arm64/lib/aarch64-linux-gnu/:\$LD_LIBRARY_PATH" | sudo tee -a /etc/dkms/framework.conf
I already had dkms git wireguard wireguard-tools and wireguard-dkms installed (but wireguard-dkms gave errors).
I installed:
binutils-common:arm64 (2.30-21ubuntu1~18.04.2)
debootstrap (1.0.95)
they also installed:
libbinutils:arm64 (2.30-21ubuntu1~18.04.2)
zlib1g:arm64 (1:1.2.11.dfsg-0ubuntu2)
I then ran as root (su -i) per the instructions:
sudo debootstrap --arch=arm64 --variant=minbase --include=gcc bionic /opt/gcc-arm64
http://ports.ubuntu.com/ubuntu-ports/
echo "export CROSS_COMPILE=/opt/gcc-arm64/usr/bin/aarch64-linux-gnu-" | sudo tee -a /etc/dkms/framework.conf
echo "export LD_LIBRARY_PATH=/opt/gcc-arm64/usr/lib/aarch64-linux-gnu/:/opt/gcc-arm64/lib/aarch64-linux-gnu/:\$LD_LIBRARY_PATH" | sudo tee -a /etc/dkms/framework.conf
Those completed without errors.
I then used synaptic to reinstall wireguard-dkms and it installed without errors!
I already had a /etc/wireguard/wg0.conf from previous attempts.
Ran (as root) wg-quick up wg0 and wg-quick down wg0 but got errors from the script related to iptables.
Checked, and iptables was not installed so I installed iptables
Re-ran wg-quick up wg0 and was connected to the remote site!
wg reported the status and info on the connection.
wg-quick down wg0 terminated the connection without errors.
SOLVED, hope this helps someone.
BTW I have found the Bionic Ubuntu Mate distribution to be very reliable and have been able to install packages with synaptic
that just work. I have alsi installed the Vivaldi browser without problems.