cloux / aws-devuan

systemd-free GNU/Linux for AWS Cloud Environment
Do What The F*ck You Want To Public License
20 stars 4 forks source link

Linux headers are missing #3

Closed randomsymbols closed 5 years ago

randomsymbols commented 5 years ago

apt search linux-headers-$(uname -r) Sorting... Done Full Text Search... Done

Without the headers, wireguard does not install properly: ip link add wg0 type wireguard RTNETLINK answers: Operation not supported

cloux commented 5 years ago

How are you installing wireguard? There are several methods listed on https://www.wireguard.com/install/.

If this is a issue with the system on AWS: the DEB packages for wireguard won't work, you have to compile wireguard manually. I will actually provide an easy installer that will do that for you (very soon, in the next few days). If you are impatient, see https://www.wireguard.com/install/#compiling-from-source .

NOTE: If you run my system on AWS, you don't require the kernel source packages from repository, since you are on a custom kernel directly from kernel.org. To download the source and compile the latest kernel, you can:

kernel-update.sh

To just download the source for your current kernel, you can run as root:

cd /usr/src
wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-$(uname -r).tar.xz
tar xJf linux-$(uname -r).tar.xz

Then you should be able to compile anything kernel-dependent.

cloux commented 5 years ago

Finally, wireguard is now included in versions 5.1.1 and above. To be able to compile other modules, kernel headers are also included.