Sunday, September 27, 2020

Debian: Stretch(ing) to Buster

I had this on my TODO list for quite sometime, so, this a lousy grey, rainy Sunday that kept me from pedaling seeing the GF, thought of it as an ideal day to undertake this monumental task...

- Updated the system on Stretch.

- Edited the file /etc/apt/sources.list, changed "stretch" for "buster".

- Updated the system: sudo apt update

- Upgraded the system: sudo apt upgrade

- Full upgraded the system: sudo apt full-upgrade

- Reboot

- Profit

Everything seems to be running just fine, but I have to configure some stuff (for instance adding the Genmon plugin to the XFCE Panel).
The whole thing took about two hours, and it downloaded something like 1 GB of files.

Labels: , , , , , ,

Sunday, February 23, 2020

The Current Debian Desktop

Not much has changed this week... Switched to the Adapta Window Manager theme, and that's it.
I fucking love this setup and my Optiplex 755 + the Apple Cinema Display as my daily driver, comfy, practical and useful as hell.
As a side note, wttr.in has run out of available queries at the moment.

Labels: , , , , , , , , , , , , ,

Wednesday, October 30, 2019

GenMon: Date Script (2)

A little enhancement on the previous script to show the date using GenMon on the XFCE Panel.
The script is basically the same, but this one has a couple of benefits as well.
Here is the script:

#!/usr/bin/env bash
echo """ | "$(date +"%A %d %b %Y")""
echo """"
echo ""xterm -hold -e /usr/bin/cal""
## EoF ##

And these are the benefits:
It prints the date on the format I like (plus a pipe for separation with other indicators) but also disables popup message when mouse over it and also, when clicked, it executes an term with a calendar showing the current date and month.


Labels: , , , , , ,

Thursday, October 17, 2019

GenMon: CPU temperature Script

Another script I'm using with Generic Monitor on the XFCE Panel.
This one prints the CPU temperature, but also disables any sort of output when you do a mouse over.

#!/bin/bash

cat /sys/class/thermal/thermal_zone0/temp > /tmp/cpu_temp
echo """ | "$((`cat /tmp/cpu_temp`/1000))"°"""
echo """"

## EoF ##

Labels: , , , , , , , ,

Tuesday, October 01, 2019

GenMon: Date Script

A little script I'm invoking via the Genmon plugin to print the current date on the XFCE Panel, it also prevents anything to show up when you do a mouse over on it.

#!/bin/bash
echo """ | "$(date +"%A %d %b %Y")""
echo """"

## EoF ##

The first empty string and the pipe are there for spacing between the different GenMon scripts I'm running on my Panel.

Labels: , , , , ,

Saturday, September 07, 2019

GenMon: A Little Weather Script with Font Awesome Love Included


Started -once again- running XFCE on my beloved Optiplex 755 USFF, but got a couple of things I've "learned" while running i3 to the XFCE world.
Replaced -didn't even installed it- the plain vanilla Weather Plugin, with a little script that pulls the current weather from wttr.in and even a smaller one liner that actually prints it -of course, via GenMon- parses it just a little bit, and then adds a nice Font Awesome flair.
Not much, but I like it.

Labels: , , , , , , , , , ,

Sunday, August 13, 2017

GenMon That CPU Temp

A little, really a very, very little script to get the CPU temp from my boxes (tested on my baby Thinkpads and on the Dell XPS M1330).
Used with the little known marvel of the XFCE Panel plugin called GenMon (lately a favorite of mine)  you end up getting something like the screenshot on the left.
So here is the script:

#!/bin/bash
cat /sys/class/thermal/thermal_zone0/temp > /tmp/cpu_temp
echo $((`cat /tmp/cpu_temp`/1000))"°"

Labels: , , , , , , , , ,

Tuesday, July 11, 2017

GenMon That Load & RAM Usage


And yet another genmon little use...
Two small scripts that add the load and RAM usage on the XFCE Panel.

Get Load:
#!/bin/bash
cat /proc/loadavg | awk '{print $1}'

Get RAM:
#!/bin/bash
free -m | awk 'NR==2{printf "RAM: %s/%sMB %.2f%%\n", $3,$2,$3*100/$2 }'| cut -d " " -f3

Save those as a separate script, and then invoke each one of them from a separate instance of Gen Mon on the Panel, with a value of 2 for the Period.

Labels: , , , , , , , ,

Saturday, June 10, 2017

The Return Of The Temperature

Since the Weather plugin died on all of my XFCE boxens I was left on the dark, without any reliable way of knowing what was going on (weather wise) out in the real world.

I had a bunch of shell scripts that pull the weather, so I was thinking in a way of adding the output of one of those scripts onto the XFCE Panel somehow...

Enter Genmon, a plugin for the XFCE Panel that does one thing, executes a program and prints the result, over and over again.
So, let's get going! Install the plugin like this:

sudo apt-get install xfce4-genmon-plugin

Add the plugin to the Panel, and then edit it to execute whatever you want to have displayed on the Panel.
It doesn't like to execute arguments nor pipes, so I've saved that onto a shell script, and then call it from the plugin, the script looks like this:

#!/bin/bash
WGET='wget -q -O- '
$WGET http://www.accuweather.com/en/ar/buenos-aires/7894/weather-forecast/7894\
 | awk -F\' '/acm_RecentLocationsCarousel\.push/{print  "" $10"°"}'| head -1;

And then set it to execute every 1000 seconds.

Labels: , , , , , , , , , , , ,