Skip to main content

Posts

Showing posts with the label Gentoo

Helpful custom Systemd Timers and services

Intro I thought I'd share some useful scripts for systemd that replace a cron daemon, and that I use on many of my Gentoo machines.  Since moving away from openrc, I had to relearn a bit, especially the daily cron jobs that I was so used to.  But I will trade crontab -e for journalctl functionality any day-- so useful.  Anyways, I no longer have any crons installed.  What to do?  I have 1 Gentoo headless file server that needs to run all of these services, 1 desktop (the "bulldozer") and a couple laptops that need to run a subset of these services. 1. Eix-sync Service and Timer I have the excellent eix  program installed, and use the wrapper eix-sync for portage and overlay syncing and eix database updating in one shot.  Naturally, I want to run this daily for all my machines, and I have my server as a local portage mirror (just a matter of changing the make.conf SYNC setting on the clients: SYNC="rsync://jwilly/gentoo-portage").  Th...

squashmount and aufs: Small footprint and high performance

Squashmount and aufs: Gentoo on tiny 4GB root! I came across a post about "squashing" certain directories on a Gentoo install (portage tree, portage db, /usr/src/, etc) much like those minimal-install-cd's use!  AuFS is an improved "union" filesystem.  I don't understand it all, but as a hardware engineer it's kinda like having a dual-port memory (I think).  Given that many of the directories I want to squash also contain many, many tiny files, mashing them all together increases performance on disk reads (supposedly). My Eee PC 901 still functioning... I was intrigued as my little netbook has its SDcard slot occupied for quite some time with a 32GB card for the /usr directory (2GB swap space as well!).  I wanted to change that.  I wanted to see if I could actually use my netbook as an " ultra-portable internet-connected enduring-battery system..." and happen to run a really snappy source distro!   The technique requires a very...

RPi headless and keyboardless Gentoo install

The goal here is to setup Gentoo Linux on an SDcard for my Raspberry Pi model B without display or USB keyboard.  Yep, I didn't have a HDMI cable and my USB keyboard died a long time ago... I followed this Quick Install Guide mostly.  I'll outline what I had to do different than the guide. I've been meaning to set up my distribution of choice on a RPi, and my work needs a little server upgrade to host some files securely.  Yes!  Now I finally have a good enough reason. Raspberry Pi model B with only power and LAN. Following the Guide Steps 1 through 3 can be done normally on a Linux system, as this is just prepping the SDcard. Parts of Step 4 need to be done before booting, so you can ssh in.  I couldn't chroot into the sdcard like I'm used to in a Gentoo linux install.  Kept getting /bin/bash Exec errors.  (I think it has to do with the different archs (armv6 vs x86) and the incampatible binaries?) Setting the root password manually ...

Geode LX800 cash-in

I discovered an AMD Geode processor lurking in a slim client SBC (single board computer) originally for a printer kiosk.  I wonder if I could fit a TinyGentoo  onto its 128MB compact flash card??? Introduction and overview I will utilize crossdev, and avoid any chrooting problems and mismatching CHOST/CFLAGS... Customize the target systems make.conf generated by crossdev. Compile and install packages into runtime tree. [picture of slim client and screen] >>>I'm writing this while my Gentoo system cross-compiles a i486-pc-linux-uclibc toolchain into /usr/i486-pc-linux-uclibc. There are many resources that I had to pull together to get this working: http://en.gentoo-wiki.com/wiki/Tiny_Gentoo  HOWTO guide to install a 5MB system on a USB flashdrive or similar http://www.gentoo.org/proj/en/base/embedded/handbook/index.xml?full=1  Gentoo Embedded Handbook details cross-compiling for various dev boards http://judepereira.com/blog/going-...