UWOT.EU

AMD Ryzen-info :: Python

AMD Ryzen-info is a small Python script I wrote to monitor the main hardware system information of an AMD Ryzen system running on a recent version of Linux kernel. It relies on dmidecode and lm_sensors to gather the needed information, to get correct voltage and temperature readings it is critical that the most up to date version of the it87 kernel module is installed; Python version 3.5 or higher is also hard requirement. …

Posted on

AMD Ryzen on Linux

Finally we have some new hardware worth writing of – and also spending money on.I have been using an AMD Ryzen 7 1700X based build for some time now and so far I am really liking it, the CPU is marvelous considering the pricetag and felt like a worthwhile upgrade from the Xeon E3-1241v3 I was using before; it is basically twice the cores clocked at pretty much the same speed. …

Posted on

Handbrake, compile from source on Fedora 25

Handbrake cannot be installed from default repos nor rpmfusion, to get it on Fedora 25 there are two other options:1. use negativo17 third party repository;2. compile from source.The first option is, but that is my opinion, subpar because I don’t trust third party repositories; option two is what is left.Download the source code from git and install some dependencies:Like I do with every other program I like to keep as much up to date as possible, I have a small script to take care of compilation, installation and upgrade processes for me. …

Posted on

Gajim and OMEMO on Gentoo Linux

OMEMO is the new-ish state of the art end-to-end encryption XMPP protocol extension, Gajim support it via a plugin but making it work on Gentoo is not straightforward at all.Gajim’s OMEMO plugin requires python-axolotl package to work, since that is not present in Gentoo’s repositories it must be installed from source.Before doing so a couple of dependencies must be installed first:The chmod command fix some permission issue that arise when installing packages depending on protobuf-python if Python 3. …

Posted on

Monitor hard disk SMART status :: Python

I have been fighting for years with smartd but I really never managed to configure it the way I want. While I certainly am not backblaze, I still have quite a few hard disks I would like to monitor and be able to replace before they actually die. I hacked up a small Python script to query some SMART attributes and send me an email in case something funky is going on; to use it just put in /etc/cron. …

Posted on

Monitor hard disk health status with smartd on Linux

## This does not really works, read this: https://uwot.eu/blog/monitor-hard-disk-smart-status-in-python/##First of all install smartmontools, it has the same name on pretty much every distro:Proceed to edit its configuration file, at the bottom of the file there is a quick explaination of all the available parameters:Parameter “-H” tells smartd to check the result of “overall-health self-assesment test” which is pretty much useless, “-R” is used to specify a single SMART attribute, if its value changes a mail is sent to user@domain. …

Posted on

Compile LineageOS for Oneplus 3 on Fedora 25

Android community is one big cancerous clusterfuck, it is no wonder that finding a decent guide on how to compile Android from source written in a somewhat comprehensible english is pretty much mission impossible.Cyanogenmod Inc. shutting down their wiki and services overnight surely didn’t help either.Required packages on Fedora 25 are (rpmfusion repo must be previously installed):For some reason the compilation process stores some temporary files in /tmp which, in Fedora 25, is mounted on a tmpfs ramdisk. …

Posted on

Manually backup/restore Android application's data

Android stores application’s data in /data/data directory, it can be accessed via adb only on a rooted phone.To make a backup copy the correspondent directory:Application’s data can also be extracted from a full system backup made with TWRP:Restoring the backup is the tricky part since Android uses SELinux and every app has it’s own unix user.Before copying back on the phone the already backupped files reinstall the app from f-droid or whatever, then proceed as follow:The next step consists in finding out what user is assigned to the appplication and then proceed to change file ownership and restoring SELinux context accordingly. …

Posted on