Paul Sutton

GNULinux

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

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


MastodonPeertubeQoto sign up

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


MastodonPeertubeQoto sign up

Donate using Liberapay

Use pastebin from command line

Use pastebin from command line

Quite often, when you have a problem where, in order to get help you need to paste the contents of a file,or command output so that it can be shared, for example on IRC (Chat) or a forum, this can be challenging to begin with.

As it is depreciated that you paste more than 2 lines in to IRC chat. The way round this is to use a service called pastebin. Debian [1] has it's own service for this [2]. There is a tool called pastebinit which is really helpful from the command line.

The first step is to switch to the root user. Sear for and install the package pastebinit as per below.

Search

root@Desktop:/home/user# apt search pastebinit
Sorting... Done
Full Text Search... Done
pastebinit/stable 1.5.1-1 all
  command-line pastebin client

Install

root@Desktop:/home/user# apt install pastebinit
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-image-5.10.0-7-amd64 linux-image-5.10.0-8-amd64
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
  pastebinit
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 46.6 kB of archives.
After this operation, 342 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 pastebinit all 1.5.1-1 [46.6 kB]
Fetched 46.6 kB in 0s (342 kB/s)
Selecting previously unselected package pastebinit.
(Reading database ... 190310 files and directories currently installed.)
Preparing to unpack .../pastebinit_1.5.1-1_all.deb ...
Unpacking pastebinit (1.5.1-1) ...
Setting up pastebinit (1.5.1-1) ...
Processing triggers for man-db (2.9.4-2) ...
root@Desktop:/home/user# 

Once complete switch back to normal user (usually type exit)

user@Desktop:~$ cat /etc/apt/sources.list > pastebinit
user@Desktop:~$ cat /etc/apt/sources.list | pastebinit
https://paste.debian.net/1228146/

In this example I have used the cat command and piped the contents in to pastebinit, this has given me a url to paste in to chat, (or copy manually)

Open this in a browser and you and others can see the contents, and people can help you further.

paste bin it output

This is really useful too if you are stuck at the command prompt, without a graphical interface.

Links

1 Debian 2 pastebin – debian 3 Paignton Library STEM Group TAGS

#Debian,#GNULinux,#Paste,#Text,#Pastebin,#Share,#Troubleshooting


Donate using Liberapay

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


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