Paul Sutton

bash

Bash videos part 2

My first post on this was back on the 7th September. Since then I have made a few more videos and posted to my peertube account.

Any questions, you can e-mail me or follow me on Mastodon @zleap@qoto.org.

I am also re posting some links posts that link to the learning the BASH shell videos.

BASH Basics 1 BASH Basics 2 BASH Basics 3 BASH Basics 4 BASH Basics 5 BASH Basics 6 BASH Basics 7 BASH Basics 8 * Bash Scripting tutorial – free code camp

TAGS

#Video,#BASH,#bash#Usage,#GNULinux,#Linux,#GNU,#CyberSecurity,#InfoSec,#CodeClub,#PaigntonLibrarySTEMGroup


MastodonPeertubeJoin Mastodon

Donate using Liberapay

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


MastodonPeertubeJoin Mastodon

Donate using Liberapay

Index

Donate using Liberapay

  1. Click on a link.
  2. Scroll to bottom of page.
    • Any posts / pages within this blog will be displayed.

A #AbsorbtionSpectra #Abuse #Academy #Activism #Adenine #Afghanistan #Africa #Alphablocks #AMES #AminoAcid #AmnestyInternational #Analytics #apg #Api #Apt #Aptitude #AralBalkan #Archaeology #Arduino #Artemis #arXiv #AstroBiology #AstroChemistry #Astronify #Astronomy #Astrophysics #AtomicStructure #ARM #Assembler B #bash #BASH #BASHShell #Beamer #better #BibTeX #BigBluButton #BigOil #BioChemistry #Biology #Blender #Blog #Bonfire #Bookworm #Bookwyrm #Browser #Bullseye #Buster C #Castopod #Charity #Chat #Chemistry #Chrome #Chromium #Code #CodeClub #Coding #Commons #Conditions #Conference #Console #Cornwall #Corona #CoronaVirus #Cosmology #Covid19 #cpd #CPD #Creative #CreativeCommons #CreativeEducation #CriticalThinking #CrudeOil #Cryptpad #Crystal #CTAN #CyberSecurity #Cytosine D #DarkMatter #Data #DBS #dcglug #dclug #Debconf #Debian #Decentralised #Decentralized #DeepLearning #Derived #Detox #Development #Devon #Diaspora #Digital #DiodeZone #Discussions #disroot #Disroot #dna #DNA #Docker #Documentation #Donate #Donation #Draft #DRM #Drupal E #Editing #Education #EdX #Electronics #Elements #emacs #Email #EmissionSpectra #Employment #Energy #Engine #Ethics #Ethiopia #EventManagement #Events #EveryonesInvited #Exoplanet #Exploration #Exploration F #FalconsEye #Federated #Fediverse #Firefox #Flockingbird #Football #FootBall #Fosdem #FOSSandCrafts #FossileFuels #Foundation #Framablog #FramaBlog #Framework #FreeBSD #FreeBSD #Freedom #FreeSoftware #Friendica #Friendica #FSF #FSFE #Funkwhale #Fusion #FutureLearn G #Galaxy #Galculator #Games #Gamma #GDPR #GettingStarted #Ghostreply #Gimp #Git #Gitlab #GitLab #gm #GNOME #GNU #GnuSocial #GoAccess #GoatCounter #GoDot #gold #GPL #GraphicsMagick #Greek #Guanine #GUI H #Hack #Hacking #Hardware #Hexchat #HomeChemistry #HomeChemistry1 #HomeChemistry10 #HomeChemistry11 #HomeChemistry12 #HomeChemistry13 #HomeChemistry14 #HomeChemistry15 #HomeChemistry16 #HomeChemistry17 #HomeChemistry18 #HomeChemistry2 #HomeChemistry3 #HomeChemistry4 #HomeChemistry5 #HomeChemistry6 #HomeChemistry7 #HomeChemistry8 #HomeChemistry9 #Hosting #htop #Hubble #Hubzilla #HumanRights #Hypothesis I #Image #ImageManipulation #Index #InfoGraphic #information #Inkscape #Invidious #IRC J #JamesWebb #Jit.si #Jitsi #JoeEditor #jpl #JPL #Jupyter #JupyterNotebook #JWST K #Kanban #kbin #KCSIE #KDE #KeepingChildrenSafeinEducation, #Kenya #kstars L #LaTeX #Law #Learning #Lecture #Legal #Legislation #Lemmy #LGPL #LiberaPay #Libre #LibreAdventure #LibreLounge #Librem #Libreoffice #LibreOffice #LibreOfficeCalc #LibreOfficeDraw #LibreOfficeGettingStarted #LibreOfficeImpres #LibreOfficeWriter #LibrePlanet #Linux #LinuxMint #LXDE #Lynx M #Magnesium #Management #Manganese #Map #Mapscii #Mars #Mastodon #Materials #Matomo #Matrix #Maya #Meeting #Meetings #mercury #Mercury #Meta #Micro.blog #mining #Misskey #mobile #Mobile #Mobilizon #Mobilizon #MolarSolutionCalculator #Moon N #NaCl #Nano #NationsLeague #Nebula #NetHack #network #NewSkillsAcademy #Nextcloud #NFL #NGINX #Nuclear #NuclearFusion #Nucleobases O #Oil #OilProducts #Online #Online #OnlineSafetyBill #Open #OpenData #OpenLearn #OpenStreetMap #OpenUniversity #Orbitals #OU #Overleaf #Owncast #OwnCloud P #Package #PaigntonLibrarySTEMGroup #Pandas #Paper #ParticlePhysics #Particles #Password #Payment #Paypal #PDF #PeerTube #PeriodicTable #Phonics #Photo #Photograph #Photographs #Photos #Physics #pinebook #pinephone #PixelFed #Planet #Plausible #Pleroma #Plume #Podcast #PowderToy #Privacy #Production #Products #Programming #ProtoSchool #Public #Purism #Python #Python3 Q #Quark #Quarks R #RadioAstronomy #Reading #Recovery #RedBubble #Research #Rights #rna #RNA #RocksAndDiamonds #Rookie #RookieCamp #RedCabbage #RISC #RISCV S #Safeguarding #Safety #Salt #Schools #Science #ScienceDaily #Scismic #Scratch #Scratch2 #Scratch3 #SDTJ #Seagl #Security #Simulator #Sitejs #Skymaps #smallweb #Soccer #Social #SocialHome #SocialHub #SodiumChloride #Solarus #Solid #SouthDevonTechJam #Space #Stars #Stellarium #Stickers #Stripe #stsci #Symmetry #Synaptic T #Tailings #Talk #Teaching #TeachingAssistant #Techlearningcollective #Telescope #Terminal #Terms #TeX #TextEditor #TheOpenUniversity #Theory #TheOU #Thesis #Thunar #Thunderbird #Thymine #Tilde #Toot #Top #Topic #Torbay #TorbayTrojans #Transit #Translation #Trojans #Trunk #Tuxiversity U #Ulytsheavy #Umami #UN #UnitedKingdom #UnitedNations #UniverseOfLearning #Uracil #Use #users V #Vaccine #Virgo #VLC #VokoScreen #Volunteer #Volunteering #VultureNethack #vultureseye W #wayland #weatherinfo #Website #wicd #wireless #Wordpress #Work #WorldCup #WorldSpaceWeek #Wormhole #Write.as #Write freely #Writing #WhiteVinegar X #Xchat #XenonLamp #XFCE #XFCE4 #XMPP #xorg #Xournal #xray Y #YearOfTheFediverse Z #Zoo

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


MastodonPeertubeJoin Mastodon

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


MastodonPeertubeJoin Mastodon

Donate using Liberapay

LibreOffice 7.4

Just downloaded and installed LibreOffice 7.4.3. The following instructions and video should illustrate the process. I did make a few errors and corrected them during the video.

  1. Download the latest .deb from LibreOffice website
  2. Copy to a sensible location and switch to that location 2a. In Debian you can right click on the graphical file manager and **Open Terminal Here.
  3. Extract the .tar.gz file **tar -xvf file.tar.gz
  4. Switch to root using **su -i ** (unless you want the path error shown in the video
  5. Navigate to where you extracted the .tar.gz file
  6. type **dpkg -i *.deb

This SHOULD install everything, set up Libreoffice and place components on the menu system.

Video

Links

Tags

#LibreOffice,#Debian11,#Installation,#Terminal,#BASH,#Office


MastodonPeertubeJoin Mastodon

Donate using Liberapay

BASH Videos

I am trying to make some really simple screen cast videos, illustrating a few BASH commands. These are being published on my peertube account

They should also be federated to Mastodon.

To give an example, this video shows usage of the rename command

TAGS

#Video,#BASH,#Usage,#GNULinux,#Linux,#GNU


MastodonPeertubeJoin Mastodon

Donate using Liberapay

CyberSecurity part 3

You should now be set up with an account, so go ahead and login via the home page

console1

Once logged in you will see the above screen

So as mentioned, I will be sharing a series of 8 videos that cover different topics on using the command line shell (BASH).

Note: Not all the commands covered in this BASH series will work, partly as it seems some are not included in the vfsync system.

Note 2 Also worth saying that vfsync using the sh shell and not the bash shell. This is more of a workaround, to provide shell access.

If you are concerned about privacy, I have included the invidious link below too.

Commands

So some of the commands covered in this video include:- * cal – calendar * man – man pages * clear – clear screen * pwd – print / present working directory * ls – list storage * ls -a show hdd * files prefixed with a period . are hidden * ls -a -l (-l is long format, more information) * cd – change directory cd no argument – back to home * e,g cd Music * mkdir – make directory (mkdir junk) * absolute and relative paths * absolute – path from root of file system /home/user/junk * relative – path from where you are now e.g cd Music * pushd and popd – go back and forth between folders (see video for details ) so pushd /home/user/music/pop from /home/user switches to the pop directory, using popd goes back to where you were before e.g /home/user * touch filename * touch file2 file3 * touch file1 (existing file) will update the date / time stamps * rm filename – deletes a file * mv filename newfilename – * can also move a file : mv file1 /home/user/junk/files/ * rmdir – remove directory * rm -r – recursive

Shell -

  • $ = indicates your normal user is logged in
  • # = denotes root (admin)

Linux directory structure

directories and folders (interchangeable)

dir struc Cite https://www.linuxyogi.com/

explanation of /etc /dev /home /usr /var folders and their related subfolder.

/usr – universal system resources

Discuss

Tags

#CyberSecurity,#BASHShell,#BASH,#bash,#Bash


MastodonPeertubeJoin Mastodon

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


MastodonPeertubeJoin Mastodon

Donate using Liberapay

Ansi Weather 2

Donate using Liberapay

Further to my previous post on ansi weather

I wrote this, which asks for your location, and displays the weather.

echo "where do you live ?"
read location
ansiweather -l $location

In my previous post I was trying to use sed to clean up the output, this isn't needed as the -a option removes the colour coding from the output

ansiweather -a false -l Plymouth, UK >> weatherinfo.txt

Produces

Weather in Plymouth => -10 °C – Wind => 1.72 m/s NNW – Humidity => 62 % – Pressure => 1028 hPa

Which is far better.

so our new shell script is

1 #send weather info to Mastodon
  2 # current date
  3 date > weatherinfo.txt
  4 # current weather
  5 # use -a false to remove colour from output, set location, output to a file
  6 ansiweather -a false -l Plymouth, UK >> weatherinfo.txt
  7 # output to console too
  8 ansiweather -a false -l Plymouth, UK
  9 #send to Mastodon
 10 toot post < weatherinfo.txt
 11 # done
 12 echo done

So the final output to Mastodon is

Final Output

There are more options in the READ.me file

Thank you to Noisytoot for helping with this.

If you now combine the 2nd script with the one I have at the top of this page you should be able to input your location, then get the local weather.

REFERENCES

TAGS

#YearOfTheFediverse,#ansiweather,#weather,#mastodon,#bash,#console,#terminal #information

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


MastodonPeertubeJoin Mastodon

Donate using Liberapay