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:

unxz name-of-your-image.img.xz

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.

First boot

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!

## 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

apt-get update

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

3COM 3CRUSB10075

Just

apt-get install firmware-zd1211

LOCALE SHIT

Problem:

Cannot set LC_CTYPE to default locale: No such file or directory

Solution:

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

and use

dpkg-reconfigure locales

selecting en_US.UTF-8 as locale to generate, and also as default locale.

WHAT THE FUCK.

OpenVPN

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.

http://thestuffsido.blogspot.it/2013/05/fixing-raspberry-pi-hotplugging.html

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. :)

Shit

DevuanOnRaspberry (last edited 2017-07-19 12:17:41 by asbesto)