Paul Sutton

Shell

console / terminal xmas tree

Nice shell script to make a colour Christmas tree on your terminal / console

xmas tree in console

#christmas,#shell,#coding,#hacking,#draw,#xmas,#tree, #xmastree,#bash,#scaleway,#animation

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


MastodonPeertubeQoto sign up

Donate using Liberapay

Networking and SSh

I have decided to republish these links as there are a few people on the Fediverse who work or are involved in InfoSec and CyberSecurity.

These videos are a starting point for understanding networking and also SSH which allows remote login to remote computer.

So next up are the links to the videos on Networking and another video on OpenSSH (SSH being Secure SHell of course.

I am reposting links to previous blog posts that looked at these topics:-

I can be contacted on Fediverse / mastodon, search for @zleap@qoto.org.

TAGS

#GNULinux,#Shell,#Bash,#Scripting,#Nano,#Editor,#InfoSec,#Cybersecurity,#CodeClub,#PaigntonLibrarySTEMGroup


MastodonPeertubeQoto sign up

Donate using Liberapay

NANO and Shell scripting

I have decided to republish these links as there are a few people on the Fediverse who work or are involved in InfoSec and CyberSecurity. These videos are a starting point as it is very useful to understand how to use the GNU/Linux command line along with related tools in general.

You may find the links on the BASH Basics post useful

I am reposting links to previous blog posts that looked at these topics:-

I can be contacted on Fediverse / mastodon, search for @zleap@qoto.org.

TAGS

#GNULinux,#Shell,#Bash,#Scripting,#Nano,#Editor,#InfoSec,#Cybersecurity,#Video,#CodeClub,#PaigntonLibrarySTEMGroup


MastodonPeertubeQoto sign up

Donate using Liberapay

CyberSecurity part 13

So we are on part 13, well done and thank you to everyone who has stuck with this so far.

So today, I am going to link to three videos, which give more details on specific bash commands. Hopefully this will speed things up a little, there are probably better videos, so please feel free to search, watch and share alternative videos.

Links

Tags

#CyberSecurity,#Shell,#Grep,#Sed,#Cron


MastodonPeertubeQoto sign up

Donate using Liberapay

CyberSecurity part 12

So we are on part 12, well done and thank you to everyone who has stuck with this so far. Today I am linking to s shell scripting crass course.

Joe Collins who presented the bash videos earlier also has a series of videos on shell scripting

Useful stuff

If you write a bash script, that needs the user to run as with elevated privileges this code may be handy.

if [ "$EUID" -ne 0 ]
  then echo "Please run as root / sudo"
exit

  else

Links

Tags

#CyberSecurity,#Shell,#Scripting


MastodonPeertubeQoto sign up

Donate using Liberapay

Resize and rename multiple files

As I was renaming and resizing some files anyway. I decided to make this short video of the process. I have added to Debian category as I am using Debian 11.

Commands used:-

gm -mogrify -resize 640x480 *.JPG AND rename 's/P1/codeclub/'

As usual your mileage may vary, you need to check man pages for specific arguments for your needs.

Happy to try and help further via Mastodon

Fedi id : zleap@qoto.org

Tags

#Debian11,#BASH,#Shell,#Rename,#Resize,#Files,#Eucation,#GNULinux


MastodonPeertubeQoto sign up

Donate using Liberapay

APG password generator

Debian comes with a useful command line utility called apg for generating passwords, based on criteria set when it is run.

You may need to install with apt install apg

Running just apg produces


ag"OnAub3 (ag-QUOTATION_MARK-On-Aub-THREE)
yissheav-Flas6 (yis-sheav-HYPHEN-Flas-SIX)
rek_OfDot6ly (rek-UNDERSCORE-Of-Dot-SIX-ly)
yorthIs0Ot; (yorth-Is-ZERO-Ot-SEMICOLON)
NapOl{aj6 (Nap-Ol-LEFT_BRACE-aj-SIX)
9Knyhik. (NINE-Kny-hik-PERIOD)

Where as using -m 16 produces a min length of 16 characters

apg -m 16


cryhejIryoatEpBi
DuVospewjopOtsye
veldIc@Ogguckeys
IalNexBeckOdjav1
drureroarAkucEdd
WinquivadLitsUk4

As a good password should be made up of Letters (upper and lower case) Numbers (0-9) Other characters ( !“£$()%^&* )

Then you need to run something like

apg -M sncl -m 16 -n 5

apg  -M sncl -m 16 -n 5 
EgUrr1slaibzydAr
IrgiOcyibgauvKan
jemUndafMinvieHo
Fliadweuldyeebup
enyaighKuedoobr3

The program man page also gives more info and an example shell script to help with the process.

man apg

shell script

[begin]----> pwgen.sh
       #!/bin/sh
       /usr/local/bin/apg -m 8 -x 12 -s
       [ end ]----> pwgen.sh

#linux,#debian,#shell,#password,#generation,#security,#help,#scripts,#secure,#unix,#gpl,#fsf,#freesoftware,#manpage, #manual,#web,#internet,#links,#letters,#numbers, #alphanumeric,#specialcharacters

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


MastodonPeertubeQoto sign up

Donate using Liberapay