Unable to install Realtek 5G ethernet USB adapter driver

I got a 5G ethernet adapter and have been trying to get it to work properly with my Rock 5B. I have had no luck with Armbian or DietPi. as an example the error I get with Arbian is below. Any idea’s how to get it to work?

Error! Your kernel headers for kernel 6.1.75-vendor-rk35xx cannot be found at /lib/modules/6.1.75-vendor-rk35xx/build or /lib/modules/6.1.75-vendor-rk35xx/source.

Please install the linux-headers-6.1.75-vendor-rk35xx package or use the --kernelsourcedir option to tell DKMS where it’s located.

Sign command: /lib/modules/6.1.75-vendor-rk35xx/build/scripts/sign-file

Binary /lib/modules/6.1.75-vendor-rk35xx/build/scripts/sign-file not found, modules won’t be signed

Error! Your kernel headers for kernel 6.1.75-vendor-rk35xx cannot be found at /lib/modules/6.1.75-vendor-rk35xx/build or /lib/modules/6.1.75-vendor-rk35xx/source.

Please install the linux-headers-6.1.75-vendor-rk35xx package or use the --kernelsourcedir option to tell DKMS where it’s located.

For this particular error on arbian: type armbian-config and then system, kernel, install kernel headers.
for others - find linux-headers package for Your kernel and install it via apt,