quinta-feira, 31 de maio de 2012

lzop to xz

lzop -dc file.lzo | xz -9ev - > file.xz

quarta-feira, 30 de maio de 2012

Temperature in byobu

Configure lm-sensors with

sudo sensors-detect

and let it add the modules if everything went OK.

Then create ~/.byobu/bin/10_coretemp with:

#!/bin/sh
sensors | grep Physical | cut -c 18-21

(adjust as needed)

Then:

chmod +x ~/.byobu/bin/10_coretemp


Done.

Btw, I ran into this problem in Ubuntu 12.04: http://unix.stackexchange.com/questions/41596/colour-bleeds-right-when-writing-a-custom-script-in-byobu