Tag: bash
Howto fix: InRelease’ changed its ‘Suite’ value from ‘testing’ to ‘stable’ “error”
08/07/2019
Well, its not really an error..
So: YAY!!! We are going from testing to stable on the raspberry pi (debian buster).
What now?
1 2 3 4 |
sudo apt-get update E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'testing' to 'stable' N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details. |
Run it like this:
1 |
apt-get update --allow-releaseinfo-change |
Your will see something like this:
1 2 3 4 5 6 |
Hit:1 http://archive.raspberrypi.org/debian buster InRelease Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB] Get:3 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB] Fetched 13.0 MB in 1min 41s (129 kB/s) Reading package lists... Done N: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' value from 'testing' to 'stable' |
And ofcourse dont forget to upgrade!
1 2 3 4 5 6 |
sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
Share the post "Howto fix: InRelease’ changed its ‘Suite’ value from ‘testing’ to ‘stable’ “error”"

Terminals are sexy
03/07/2019
Yeah they are…
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
#/bin/sh case $SHELL in *bash) ECHO='echo -e' ;; *) ECHO='echo' ;; esac white="\033[1;37m" red="\033[1;31m" green="\033[1;32m" yellow="\033[1;33m" blue="\033[1;34m" transparent="\e[0m" clear; ${ECHO} "" ${ECHO} "$blue" ${ECHO} " ████████╗███████╗██████╗ ███╗ ███╗██╗███╗ ██╗ █████╗ ██╗ ███████╗" ${ECHO} " ╚══██╔══╝██╔════╝██╔══██╗████╗ ████║██║████╗ ██║██╔══██╗██║ ██╔════╝" ${ECHO} " ██║ █████╗ ██████╔╝██╔████╔██║██║██╔██╗ ██║███████║██║ ███████╗" ${ECHO} " ██║ ██╔══╝ ██╔══██╗██║╚██╔╝██║██║██║╚██╗██║██╔══██║██║ ╚════██║" ${ECHO} " ██║ ███████╗██║ ██║██║ ╚═╝ ██║██║██║ ╚████║██║ ██║███████╗███████║" ${ECHO} " ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝╚══════╝" ${ECHO} "" ${ECHO} " █████╗ ██████╗ ███████╗ ███████╗███████╗██╗ ██╗██╗ ██╗" ${ECHO} " ██╔══██╗██╔══██╗██╔════╝ ██╔════╝██╔════╝╚██╗██╔╝╚██╗ ██╔╝" ${ECHO} " ███████║██████╔╝█████╗ ███████╗█████╗ ╚███╔╝ ╚████╔╝" ${ECHO} " ██╔══██║██╔══██╗██╔══╝ ╚════██║██╔══╝ ██╔██╗ ╚██╔╝" ${ECHO} " ██║ ██║██║ ██║███████╗ ███████║███████╗██╔╝ ██╗ ██║ " ${ECHO} " ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚══════╝╚══════╝╚═╝ ╚═╝ ╚═╝" ${ECHO} "" |
Source:
https://github.com/k4m4/terminals-are-sexy
Share the post "Terminals are sexy"
Fix that cheap wifi dongle (linux)
03/02/2019
Cheap wifi dongles on the raspberry pi (v1 b). Don’t you love the frustrations they bring.
So you buy a cheap wifi dongle but it just wont do what a more expensive brand would: run without problems.
First, do what all the people out there on your search quest do. Sudo here, enter there, dont forget the raspi-config command. Many way’s to Rome.
These are my little notes (so I wont forget) that worked for me.
1 2 |
sudo apt-get install wicd-curses sudo wicd-curses |
Now try to get to your wifi and press the -> arrow.
fiddle arround (shout some more) enter ip adresses if you like. And somehow this could work.
But darn, there we have it. Now it goes into sleep mode. So we need to keep it alive.
Oke, lets do it the dirty way.
Keep the ping on!
Make a cronjob:
1 |
*/2 * * * * ping -q -W 1 -c 1 127.0.0.1 > /dev/null |
And we are good to go?
Share the post "Fix that cheap wifi dongle (linux)"
buienradar (weather image) in conky
05/09/2010
Erik wanted some help with getting a piece of an animated gif to show up in his conky (Conky Help::Tips, Tricks & Scripts::CrunchBang Forums.)
Now I liked that idea very much so came up with this:
First I created a directory ~/.conky/radar/ (for the temp.gif).
Then the knmiradar.sh: (chmod it +x)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
#!/bin/bash # # Erik # 2010-07-31 # iggikoopa and pieter # adjust the paths to your own liking! # # Enter the name of the radar GIF image you want to download: RADARIMAGEURL="http://www.knmi.nl/neerslagradar/images/meest_recente_radarloop451.gif" RADARIMAGE="meest_recente_radarloop451.gif" # Download the GIF file: wget -q -N -t 1 "$RADARIMAGEURL" # quiet, timestamping, 1 retry # Split the file, leave only the last frame. This might be tricky, because the # frames seem to share one background frame... # convert the gif to the right colors so we can do something with it. gifsicle --colors=255 "$RADARIMAGE" > /home/pieter/.conky/radar/temp.gif # make them B&W (I like it that way) gifsicle --use-col=bw /home/pieter/.conky/radar/temp.gif > /home/pieter/.conky/radar/tempbw.gif # For greyscale: # gifsicle --dither --use-col=bw /home/pieter/.conky/radar/temp.gif > /home/pieter/.conky/radar/tempbw.gif # grab the last animated gif and make a stilt image of it. gifsicle -U /home/pieter/.conky/radar/tempbw.gif "#-1" > /home/pieter/.conky/radar/radar.gif # if you want to keep the colors then comment above and uncomment these: #gifsicle --colors=255 "$RADARIMAGE" > /home/pieter/.conky/radar/temp.gif #gifsicle -U /home/pieter/.conky/radar/temp.gif "#-1" > /home/pieter/.conky/radar/radar.gif |
Then in Conky:
add variable:
1 |
imlib_cache_size 0 |
and use this (dont forget to edit the path):
1 2 |
${texeci 300 /home/pieter/.conky/knmiradar.sh} ${image /home/pieter/.conky/radar/radar.gif -p 50,15 -s 125x125} |
Works great here…
Share the post "buienradar (weather image) in conky"