khumarahn / teres1-gentoo

Gentoo on Olimex Teres 1 DIY laptop
GNU General Public License v3.0
6 stars 1 forks source link

Gentoo on Olimex Teres 1 DIY laptop

DIY laptop is amazing!

This must stop!

Gentoo is the best operating system for a DIY computer: both require time and patience, and both pay back with strong control of what's under the hood.

This repo hosts various configuration files for a Gentoo build on Teres 1 with LXDE, Chromium, Gimp, LibreOffice, Vim, Java, etc. This is a lightweight but functional desktop.

Download

Here is a compiled image which you can run from a micro-sd card, or install to the MMC.

Unpack the image and burn it to a micro-sd card:

dd if=teres-gentoo-20180926.img of=/dev/sdX oflag=direct status=progress

Insert the card and boot. The default user is tux, password is olimex. Root's and /home passwords are olimex too.

To install to MMC, replace the contents of your /dev/mmcblk0p1 and /dev/mmcblk0p2 with what is in the respective partitions of the image (using, say, rsync -aAxXhH. Then edit /etc/fstab and /boot/uEnv.txt to point to right partitions.

Encryption

The whole /home folder is encrypted with encfs. A password is asked on boot (olimex by default). The encfs is not perfect: the filenames and content are encrypted, but the directory structure, file sizes and attributes are not. But it is more flexible than dmcrypt, where one needs to allocate a fixed size container.

Binary repo

Compilation on Teres 1 is slow, so I compile on my amd64 desktop in an arm64 qemu chroot. Then I install packages from a binary repo, which holds a snapshot of portage and many prebuilt packages. The settings are in /etc/portage/repos.conf/gentoo.conf:

sync-uri = rsync://khu.dedyn.io/teres-portage

and in /etc/portage/make.conf:

PORTAGE_BINHOST="rsync://khu.dedyn.io/teres-portage-full/packages"

Change/remove the two lines above to use the official Gentoo repos.

To install a program, make sure that your use flags, keywords and masks correspond to those I use, and run for example

emerge -av --getbinpkg kicad

Notes: