Home
Collections
Build Your Own
Catalog
How To Videos
Quick Reference
View Order Pad

About Us
Contact Us
FAQ
Linux News
Blog


 
 
Acceptance Mark
Amazon Pay





 

The LinuxCollections.com Blog

 

LinuxCollections.com's Blog

Some interesting tools
written February 5, 2025 by Time Traveler
Category: BlogEntry Tags: Bash scripts; Reminder e-mails; screencasting;    #57
 

This is a slightly different blog post, just a few interesting things that you can do with Linux (i.e. stuff that is actually used). The screencasting is just a quick overview and a working command with ffmpeg, while the reminder scripts is a truly functional approach to setup e-mail reminders in a quick and easy way.

Simple Screencasting (using VLC as viewer)

This grabs the display (x11grab -i :0.0+0,0 at the x,y of 0,0) with 1400x940 pixels portion of screen and streams via tcp to the network when the stream is opened on a separate machine using the same IP address/port 6666. The quality -q can range form 1-31, and there is some serious latency (and no audio). But it is a simple approach using a single command (ffmpeg) and a readily available VLC utility. There are ways to do different things (such as the audio), but it can also be a challenge to get the syntax and tie into your system correct. This should be pretty easy to duplicate (just use your correct IP address!). You can then dig into ffmpeg and other examples to do other things. This is on a Debian host.

### Use VLC at client and open "Network Stream" and use tcp://192.168.1.5:6666 (host IP)
ffmpeg -video_size 1400x940 -f x11grab -i :0.0+0,0 -framerate 10 -vcodec mpeg4 -q 12 -f mpegts -r 10 -listen 1 tcp://192.168.1.5:6666

Setting up reminder e-mails

There are 3 elements to this approach - a crontab entry, a runreminders.sh script, and a folder called reminders that has reminder as files named with the date to send the reminder via e-mail (i.e. you need to create these files, embed the script, and put in the text for your reminder (and make sure the file is executable as a script))

The easiest way to create a "new" reminder is to copy an existing reminder, e.g. cp 2025-05-01 2026-06-01, then edit new reminder to change script (if needed).

Also, you can add a cleanup section to runreminders.sh to clear up "old" files (but you may not want to if you want a history of these reminders)
This could be something like:

for rmfile in `find /home/user/scripts/reminders/* -mtime +10`;
do
  echo Removing this file: $rmfile;
  rm -r $rmfile
done
Note: This uses the file modification time, so depending on how you create the reminders, this may not work the way you wish. You could be a less than check in the else condition in runreminders.sh to delete older files, e.g. if [[ "$CHKDATE" < "$CURDATE" ]] ;

Below are the 3 pieces:

crontab entry (typically crontab -e to edit & update crontab for user)

#Reminders run at 6am every day, refer to /home/user/scripts/reminders/readme.txt
0 6 * * * sh /home/user/scripts/runreminders.sh


runreminders.sh

Note - if using sh (vs. bash), the syntax below will not work, but this is easily resolved by making a sh script that runs bash to run the bash script, e.g.

#!/bin/sh
# Filename: runreminders
# want bash for if check, use this to call runreminders.sh with bash from crontab

/bin/bash /home/user/scripts/runreminders.sh

exit 0
(And change crontab to run runreminders vs runreminders.sh)

#!/bin/bash
# Filename: runreminders.sh in /home/user/scripts
# Date Revised: 2025-02-05
# Overview - run every day, looks for file with date filename, and if match
# to current date, sends e-mail (script/reminder embedded in actual file)
# so reminders folder has files like 2025-05-01, 2025-12-11, 2026-01-01, etc.

CURDATE=`date +%Y-%m-%d`

for item in `ls reminders/*`
do
  CHKDATE=`basename $item`

 # echo $CURDATE
 # echo $CHKDATE

  if [[ "$CHKDATE" = "$CURDATE" ]] ;
  then
   echo "Current date $CHKDATE is equal to $CURDATE - Sending Reminder EMail!"
   ./reminders/$CHKDATE
  else
   echo "Current date $CHKDATE is not equal $CURDATE"
  fi

done

exit 0

The file readme.txt explains what is in the reminders folder, with a sample script embedded - to start, you can copy readme.txt to YYYY-MM-DD, e .g. cp readme.txt 2026-01-01, then delete everything up to the #!/bin/bash line, save it, and finally make it executable, e.g. chmod a+x 2026-01-01

readme.txt file
readme.txt

reminders sub folder, used by ../runreminders (in crontab)

Format must be YYYY-MM-DD

Refer to existing file for script, e.g. the file name 2028-05-12 is tagged
to be executable as a script, (e.g. chmod a+x 2028-05-12), and has the
following script

File YYYY-MM-DD:

#!/bin/sh

# sendmail command line optons:
# -i - do not treat lines starting with dot specially
# -t - read recipients lists from message headers: TO,CC,BCC
# -v - use verbose mode (describe what is happening)
#
# The empty line separates mail headers from mail body.
# Without -t recipients should be listed after command line options.

REMDATE=`basename $0`

#echo $REMDATE

FROM='mail@example.com'
TO='Your Name '
/usr/sbin/sendmail -i -t << MESSAGE_END
To: ${TO}
From: ${FROM}
Subject: Reminder E-mail - $REMDATE

This is the reminder to do something you wanted to be reminded about, sent on $REMDATE
MESSAGE_END

View Current
View News & Commentary
View Support Items
View All

Blog Information

Notes on Debian's sources.list
March 17, 2025
Time Traveler
Category: BlogEntry
Tags: Debian; apt; sources.list; package management;
 

Some interesting tools
February 5, 2025
Time Traveler
Category: BlogEntry
Tags: Bash scripts; Reminder e-mails; screencasting;
 

Introduction to GUI Development
November 1, 2024
Time Traveler
Category: BlogEntry
Tags: Introduction to GUI Development; Development; Graphical User Interface;
 

Debian Updates, some customer feedback, news clip
September 9, 2024
Time Traveler
Category: BlogEntry
Tags: Debian 12.7.0; Debian 11.11.0; Customer feedback; news;
 

USB Collection Updates - Most Popular, Fedora, Ubuntu
May 1, 2024
Time Traveler
Category: BlogEntry
Tags: USB Collection Updates;Most Popular;Fedora;Ubuntu
 

Testimonials, Feedback, Input & Updates
March 27, 2024
Time Traveler
Category: BlogEntry
Tags: Testimonials; Feedback; Input; Updates;
 

Happy New Year 2024!
January 2, 2024
Time Traveler
Category: BlogEntry
Tags: USB; Notes; Price; Amazon Pay; What's happening;
 

First Steps - How To Boot from USB
October 30, 2023
Time Traveler
Category: BlogEntry
Tags: USB; Booting; Intro; How To;
 

A few notes and happenings…
September 12, 2023
Time Traveler
Category: BlogEntry
Tags: USB; Notes; What's happening;
 

Debian 12 Bookworm now available!
June 16, 2023
Time Traveler
Category: BlogEntry
Tags: New; Debian; Bookworm; Debian 12;
 

Updates & Info
May 11, 2023
Time Traveler
Category: BlogEntry
Tags: New; Debian; Ubuntu; Kubuntu; OpenMandriva
 

Random Notes, What's Happening…
February 8, 2023
Time Traveler
Category: BlogEntry
Tags: New; UEFI; Debian
 

Debian Complete Collection USB now has hardware .deb packages
January 5, 2023
TimeTraveler
Category: BlogEntry
Tags: Debian; Debian Complete Collection USB; Drivers; Hardware
 

USB Promo / Ubuntu 22.10 updates and notes
October 27, 2022
TimeTraveler
Category: BlogEntry
Tags: Ubuntu; Ubuntu Studio; USB Promo
 

Partitions, setup and configuration of the Debian Complete Collection USB
September 28, 2022
TimeTraveler
Category: BlogEntry
Tags: Debian; USB Partitions; GRUB;
 

Some notes on Debian and Firmware
April 7, 2022
TimeTraveler
Category: BlogEntry
Tags: Debian; Ubuntu; Firmware; non-free;
 

Read only USB (physical write protect switch)
January 12, 2022
TimeTraveler
Category: BlogEntry
Tags: USB; Physical write protect switch; Read Only
 

Raspberry Pi: Reducing file system to fit on smaller SD Card
December 22, 2021
TimeTraveler
Category: BlogEntry
Tags: Debian; Raspberry Pi; Raspbian; resize2fs
 

Some notes on Live Linux distros
December 10, 2021
TimeTraveler
Category: SupportNote
Tags: Debian; Fedora; Ubuntu; Most Popular; USB Collections
 

All USB Collections updated!
November 10, 2021
TimeTraveler
Category: BlogEntry
Tags: Debian; Fedora; Ubuntu; Most Popular; USB Collections
 

LinuxCollections.com media production has been green for years
September 20, 2021
TimeTraveler
Category: BlogEntry
Tags: Media Production
 

Debian 11.0.0 Release
August 26, 2021
TimeTraveler
Category: BlogEntry
Tags: Debian; Debian 11; Release;
 

Debian 10.10.0 USB Developer Collection
July 8, 2021
Time Traveler
Category: BlogEntry
Tags: New; Updates; Debian;
 

Notes on WiFi Drivers
May 12, 2021
Time Traveler
Category:
Tags: WiFi; Wireless; Drivers; Firmware;
 

Cloned Drives and UUIDs
April 28, 2021
Time Traveler
Category:
Tags: UUID; lsblk; fstab;
 

Debian Buster (10) sources.list example
March 2, 2021
Time Traveler
Category: SupportNote
Tags: Debian; Buster; sources.list; apt; apt-get
 

Debian 10.8.0 USB Complete Collection
February 15, 2021
Time Traveler
Category: BlogEntry
Tags: New; Updates; Debian;
 

Random Notes, What's New 2021
January 22, 2021
Time Traveler
Category: BlogEntry
Tags: New; Hardware;
 

New! The By Request page
December 10, 2020
Time Traveler
Category: BlogEntry
Tags: New; Requests;
 

How to create a separate bootable USB for specific Live version from Debian USB Complete Collection
September 2, 2020
Time Traveler
Category: SupportNote
Tags: Debian; USB Complete Collection; Install; Create Live USB;
 

Debian catalog backfilled a bit
August 19, 2020
Time Traveler
Category: BlogEntry
Tags: Debian; Hamm; Slink; Potato; Woody;
 

Understanding Debian main, contrib, non-free in sources.list
August 17, 2020
Time Traveler
Category: BlogEntry
Tags: Debian; sources.list; apt-get; apt; /etc/apt;
 

Most Popular USB Collection now available!
July 23, 2020
Time Traveler
Category: BlogEntry
Tags: USB Collections; Fedora; Linux Lite; LinuxMint; Manjaro; MX Linux; openSuSE; Ubuntu; Kubuntu
 

How do I learn about all the programs available in the Debian USB Complete Collection (or the Debian all discs option)?
June 16, 2020
Time Traveler
Category: SupportNote
Tags: Debian Packages, Debian USB Complete Collection, mountusb, ISO, Synaptic, apt
 

How to access ALL Debian packages from LinuxCollections.com's Debian Complete Collection on USB
June 4, 2020
Time Traveler
Category: SupportNote
Tags: mountusb, ISO, Debian Packages, Debian USB Complete Collection
 

Older Linux Distributions
May 26, 2020
Time Traveler
Category: SupportNote
Tags: Old distributions, BIOS, UEFI, hd vs. sd
 

Updates - new LinuxCollections.com Disc case, Facebook Links
May 6, 2020
Time Traveler
Category: BlogEntry
Tags: LinuxCollections.com Disc Case, Facebook, Advertising
 

Ubuntu 20.04 LTS now available in all flavors on USB!
April 20, 2020
Time Traveler
Category: BlogEntry
Tags: Ubuntu; Kubuntu; Lubuntu; Xubuntu; Ubuntu Studio; Ubuntu Budgie; Ubuntu MATE; USB Complete Collection;
 

Understanding Linux on a USB Flash drive
April 20, 2020
Time Traveler
Category: SupportNote
Tags: USB Flash Drive; USB Complete Collections
 

What NOT to do with a Bootable USB Drive or Collection
March 31, 2020
Time Traveler
Category: SupportNote
Tags: USB Flash Drive; USB Complete Collections
 

Lost or forgot Admin password (root user password)
March 25, 2020
Time Traveler
Category: SupportNote
Tags: LinuxCollections.com Blog
 

What to expect from a Linux Disc
March 24, 2020
Time Traveler
Category: BlogEntry
Tags: LinuxCollections.com Blog
 

Issues with new Debian 10 install - no Desktop / login prompt only
March 14, 2020
Time Traveler
Category: SupportNote
Tags: LinuxCollections.com Blog
 

Solving Problems
January 28, 2020
Time Traveler
Category: SupportNote
Tags: LinuxCollections.com Blog
 

US Postage rates go up
January 28, 2020
Time Traveler
Category: BlogEntry
Tags: LinuxCollections.com Blog
 

Need a different operating system
January 25, 2020
Time Traveler
Category: BlogEntry
Tags: LinuxCollections.com Blog
 

Support Stories - Disc Data
January 15, 2020
Time Traveler
Category: SupportNote
Tags: LinuxCollections.com Blog
 

The Facebook Link Conundrum
January 10, 2020
Time Traveler
Category: BlogEntry
Tags: LinuxCollections.com Blog
 

Welcome to the LinuxCollections.com Blog!
January 6, 2020
Time Traveler
Category: BlogEntry
Tags: LinuxCollections.com Blog
 

 
 

LinuxCollections.com Logo
  • LinuxCollections.com News, Technical information, and other interesting items.
  • LinuxCollections.com is your premier source for Linux distros on CD/DVD/USB.

Send LinuxCollections.com a note via e-mail...