Paul Sutton

linux

Linux Mint 20.2 Ulma

The latest version of Linux mint [1] has now been released. I have downloaded the cinnamon edition to give it a go.

In my previous post [2] I gave a link to some suppliers of hardware, Linux mint is one of the OS's that can be pre-installed.

Links

1 Linux Mint 2 Elementry OS post

Tags

#Linux,#LinuxMint,#FreeSoftware,#Mint

Donate using Liberapay

Libreoffice 7.2

LibreOffice 7.2 is out, along with a video highlighting the new features

Mastodon post (embed)

Video – direct on Peertube

Links

Tags

#LibreOffice72,#Features,#Release,#Linux,#Mac,#Windows,#Video, #Peertube

Elementary OS 6

Elementary OS 6 [1] has been released. Looks like this has some nice new features.

I decided to write this post after following a link on their Mastodon [2] post to the Elementary OS store were you can buy Laptops with Elementary OS pre-installed. There are a few suppliers listed. I am picking out star labs here [4] as the are United Kingdom based. They appear to sell quite a few Linux friendly laptops and offer a range of OS choices. What is also great is they seem reasonably priced. I am not too sure how much these are fully freeOS friendly (e.g Debian) however it is nice to just be able to buy hardware without Windows for a start.

Links

  1. Website
  2. Mastodon
  3. Store
  4. StarLabs

Tags

#Linux,#ElementryOS

Donate using Liberapay

Command and Conquer Red Alert

So having installed Debian 11, I have now installed the snap daemon and the C&C Red Alert game. So slowing getting back to some of what I had on my Debian 10 install.

A few screenshots are included below.

Red Alert

Redalert

Redalert

Red Alert

Red Alert

Please feel free to chat on Mastodon or on IRC (See links below)

Links

Tags

#Linux,#Debian,#Gaming,#Snap,#CommandAndConquer,#RedAlert

Ubuntu 21.04

The new features found in Ubuntu 21.04 [1]

A quick overview of the features of the latest release of the Ubuntu operating system (OS).

This video is provided via Invidious, which is a front end to Youtube, twitter etc that filters out tracking etc. This can be done automatically via Privacy Redirect plug-in [2] for Firefox.

REFERENCES

1 Ubuntu 2 Privacy Redirect

TAGS

#Linux,#Ubuntu,#2104.#Release,#April2021 ,#Video,#Invidious,#Privacy,#Redirect,#Browser,#Plugin.NoTracking

Donate using Liberapay

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License

Devon and Cornwall GNU / Linux user group meeting – May 2021

The next Linux user group [1] meeting will take place, this Saturday at 12:00 on Meet.jit.si. Please see website, for more details and a link to the video chat. Our IRC channel is open 24/7 and can be found at [3].

REFERENCES

1 Devon and Cornwall GLUG 2 GNU 3 Freenode

TAGS

#Devon,#Cornwall,#Linux,#User,#Group,#Meeting

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License

Ansi Weather

Donate using Liberapay

Getting weather information is really useful. What happens if you're at the command line in Linux? I found a really little application that can help

ansiweather

apt install ansiweather

ansiweather -l Plymouth, UK

Ansi Weather Output

So what else can we do with this

  1. Send the output to Mastodon with toot post

This is a two step process

  1. ansiweather -l Plymouth, UK > weather.txt
  2. toot post < weather.txt

Will send the weather info to Mastodon.

However this does not include any date info

We can fix this with

  1. date > weatherinfo.txt
  2. ansiweather -l Plymouth, UK >> weatherinfo.txt

then send the whole lot to Mastodon with

  1. toot post < weatherinfo.txt

So, if we put this in to a final shell script we need:-

#send weather info to Mastodon
# current date
date > weatherinfo.txt
# current weather
ansiweather -l Plymouth, UK >> weatherinfo.txt
#send to Mastodon
toot post < weatherinfo.txt
# done
echo done

Again released under GPLv3

I tried to get festival to speak the weather, it is not perfect but this sort of works, you will need to direct to weather.txt first.

festival —tts < weather.txt

Looking in to this further, the issue is the brackets etc, so this stackoverflow post

strips out the colour formatting

sed 's/\x1b[[^\x1b]*m//g' weatherinfo.txt

Therefore

sed 's/\x1b[[^\x1b]*m//g' weatherinfo.txt > weatherinfo2.txt

Sends the newly formatted text to weatherinfo2.txt

So running back through festival

festival —tts < weather.txt

Is perhaps a little better, but not perfect

So going back to what we wrote earlier to send to Mastodon, the new script

  1 #send weather info to Mastodon
  2 # current date
  3 date > weatherinfo.txt
  4 # current weather
  5 ansiweather -l Plymouth, UK >> weatherinfo.txt
  6 # clean up output with sed
  7 sed 's/\x1b\[[^\x1b]*m//g' weatherinfo.txt > weatherinfo2.txt
  8 #send to Mastodon
  9 toot post < weatherinfo2.txt
 10 # done
 11 echo done

Produces much nicer output. The top bottom part of this illustrates what was sent before we stripped out the colour formatting

However it still isn't perfect, as it removes part some of the wording, but it is hopefully getting there.

Weather Output (new)

REFERENCES

TAGS

#YearOfTheFediverse,#Weather,#Scripting,#Bash,#Linux, #Mastodon,#ProblemSolving,#AnsiWeather,#programming, #Stackoverflow,#sed,#cat,#grep,GPL3,#FSF

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License