Adding voltage and current measurements to the sunpowered Pi

Remember my sunpowered Pi installation on the balcony ? The only indication I had, since recently, on how well the system is doing was an LED blinking red when battery was low. Not really helpful in making predictions or making measurements over the time. I’ve searched for simple ADC solution to hook up into Pi and allow for some voltage and power measurements. I’ve decided on ADC Pi, as it seemed very straightforward in its design and also comes with example python code. [Read More]

Changing Terminal preferences in Gnome 3 from the commandline

It turns out this was not that obvious, at least for me, how to change various profile preferences for Gnome Terminal under Gnome 3 from the commandline. You can go and fetch the list of profiles this way:

~# dconf list /org/gnome/terminal/legacy/profiles:/
:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/

And then you can use the profile id to list and change various settings:

~# dconf list /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/
foreground-color
login-shell
palette
use-system-font
use-theme-colors
font
bold-color-same-as-fg
bold-color
background-color
audible-bell

~# dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/font "'Inconsolata for Powerline Medium 18'"
~# dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/login-shell true

PoC or GTFO

Update 2023: I no longer host PoCorGTFO here, it’s very much available elsewhere on the internet and I couldn’t afford the costs for this server sadly.

Hey – to all you curious folks – the new issue of PoC or GTFO is well, out ! The best minds in infosec on exploits and more. Lots of hardcore programming knowledge to obtain. For your convenience, as it’s not that easy to get this on the webs, I’ve took a liberty of uploading them here

WiFi on RaspberryPi

Easiest way I’ve found to configure wifi on RaspberryPi, not really being mentioned when you search for such. Not using separate wpa_supplicant configuration at all.

root@frontend:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid  NETWORK_NAME
wpa-psk NETWORK_KEY

iface default inet dhcp

Sunpowered server setup

Remember my NAS ? It turned out great ! Very reliable storage, I had a disk failure once and haven’t noticed for some time because all the files were just there. Hardware enhanced virtualization is another great stuff. I ended up migrating all my of infrastructure there, each service in separate virtual machine; email, calendar, contacts, tor node and such. Only caveat ? Power consumption. This setup just eats Watts. About 50W constant power usage is not something you want to have turned on 24h/day. [Read More]

Compiling tarsnap on RaspberryPi

Just a quickie for tarsnap 1.0.35. Featuring my new favourite, download software called aria2. aptitude install aria2 libssl-dev zlib1g-dev e2fslibs-dev aria2c https://www.tarsnap.com/download/tarsnap-autoconf-1.0.35.tgz aria2c https://www.tarsnap.com/download/tarsnap-sigs-1.0.35.asc gpg --recv-key 2F102ABB gpg --decrypt tarsnap-sigs-1.0.35.asc sha256sum tarsnap-autoconf-1.0.35.tgz # should get the value from sig file, 6c9f67....9a tar xf tarsnap-autoconf-1.0.35.tgz cd tarsnap-autoconf-1.0.35/ ./configure time nice ionice make -j2 How do I know that -j2 really gives some advantage on raspi ? Well, here is the benchmark: [Read More]