Devuan on Raspberry PI and mods
Idea is to create a base for future developements: a "drone" that get network with dhcp, maybe put on an hostap access point, and goes VPN automagically to be reached from every natted / weird network. Plus some add on's and shit.
IMG Download and install on sdcard
From devuan.org site, download section, choose your kind and download it. (add link to rasp pi 1 image / magnet link).
After that, unpack using "unxz:
and copy it on your sdcard, assuming that is mmcblk0:
dd if=name-of-your-image.img.xz of=/dev/mmcblk0 bs=1M
wait and relax.
DHCP must give you an IP address, check your router DHCP client list or whatever.
user: root, pw: toor
Things I did, things I need
apt-get update apt-get upgrade apt-get install joe mc openvpn
SET DATE / TIME !!!
If you don't at boot, you got wrong date - and your OPENVPN freak out and won't connect because it see that your certs are EXPIRED!
apt-get install ntpdate
This set the correct date at every boot after network goes up.
Add the FUCKING non-free repo's
Or you won't find almost anything useful!
- Add "non-free" repo in your /etc/apt/sources.list repository, as here:
## package repositories deb http://auto.mirror.devuan.org/merged jessie main non-free deb http://auto.mirror.devuan.org/merged jessie-updates main non-free deb http://auto.mirror.devuan.org/merged jessie-security main non-free
WIFI USB network cards
For those dongles usually you have to enable the non-free repo as stated above.
After installing one of the needed firmware, just reboot, because if you unplug and plug the WIFI dongle, usually the fucking raspberry PI get a power spike that reboot himself :/
Need firmware "firmware-ralink", so just install:
apt-get install firmware-ralink
apt-get install firmware-zd1211
Cannot set LC_CTYPE to default locale: No such file or directory
apt-get install locales
set your /etc/default/locales as here:
# File generated by update-locale LC_CTYPE="en_US.UTF-8" LC_ALL="en_US.UTF-8" LANG=en_US.UTF-8
selecting en_US.UTF-8 as locale to generate, and also as default locale.
WHAT THE FUCK.
Just apt-get install openvpn, copy correct certificate into /etc/openvpn/client.conf and start the service, service openvpn start
Hardware MOD to avoid reset plugging USB
IT DOESN'T FUCKING WORK.
You need a low ESR 220 uF or more capacitor in parallel to C35 next to the USB connectors. Also a bigger capacitor on the power supply side can be useful.