Useful shell tips. How to search and replace characters or words with the bash shell.

Search and replace on the bash shell is very useful for various one-liner shell commands. The below example shows how to replace a # character with a * character. [email protected]:/mnt/c/Users/johnc/Documents$ cat ip.c | sed ‘s/#/*/gi;’ *include <stdio.h>   int main() { printf(".");   return 0; } This example shows translating paranthesis into braces. [email protected]:/mnt/c/Users/johnc/Documents$ tr […]


Read more...

List partitions on a GPT partition table with the Linux command line.

I tried to list the partitions on a Windows machine using an Ubuntu Live CD and I got this error when trying to use fdisk to list the partitions. [email protected]:~$ sudo fdisk -l /dev/sda   WARNING: GPT (GUID Partition Table) detected on ‘/dev/sda’! The util fdisk doesn’t support GPT. Use GNU Parted.     Disk […]


Read more...

HP Elitedesk 800 computers are annoying.

These computers are very annoying to setup. You have a VGA monitor connected and there is sometimes nothing displayed on the screen until Windows boots up. But if a Display Port to VGA adapter is plugged in, then you can get a picture. Why does this happen? And the VTx virtualisation extensions in the BIOS […]


Read more...

How to copy text from the terminal to the clipboard.

To copy text to the clipboard from the Linux command line in Xorg, we need to install a nice utility called xclip. This will allow us to copy text from the terminal to the clipboard. Install xclip. [email protected]:~$ sudo apt install xclip Then create the bash alias we need for this to work. [email protected]:~$ alias […]


Read more...

Added forums to the site.

Just added forums to the site. Hopefully they will grow just like the blog. Find them here: http://www.securitronlinux.com/forums/.


Read more...

How to pipe the output of a Windows command to the clipboard.

Apparently, there is an obscure feature in the Windows CMD prompt that allows users to pipe the output of a Windows CMD command on STDOUT to the Windows clipboard. The clip command allows this. For example. C:\Users\johnc>ipconfig | clip This will pipe the IP addressing information for your machine to the clipboard. This could be […]


Read more...

Rip a DVD on Linux Mint 17 with ogmrip.

Ripping a DVD with ogmrip allows you to save a copy of a DVD on your computer, these can be watched with mpv and provide easier access to all of your movies without changing DVD discs all of the time. The disc can be put away for safekeeping and the DivX files can be played […]


Read more...

Amazing new KDE 4.0 themes for Linux Mint.

KDE 4.0 themes Oxygen transparent: http://linuxmint-art.org/content/show.php/oxygen-transparent?content=127752. An amazing transparent version of the Oxygen KDE 4.0 theme. Oxygen GTK: http://linuxmint-art.org/content/show.php/Oxygen+Gtk?content=136216. A port of the Oxygen KDE theme to GTK. Soft metal: http://linuxmint-art.org/content/show.php/Soft+Metal?content=120867. A soft metallic theme for KDE. Uniq 1.11: http://linuxmint-art.org/content/show.php/uniq?content=112688. Another very nice KDE 4.0 theme. More nice themes, these are for Gnome Awesome elegance […]


Read more...

Useful grep tricks and tips for the Linux user.

The grep command on Linux is very good for filtering text to find certain strings. This is mostly used for filtering the output of a command to narrow down what the user is looking for. Find all instances of a word in a text file. [email protected]:/usr/share/X11$ grep "dark" rgb.txt 47 79 79 dark slate gray […]


Read more...

Debian Linux FAQ.

This is the FAQ containg all the answers to your Debian Linux questions. The Debian Linux FAQ contains a great amount of information pertaining to the Debian GNU/Linux distribution. https://drive.google.com/open?id=1XoEX7hJRkDbGYBHigWkd9TJE66bNILxuFvByFO9cbieufOPTcYQL0n7U_Hhr. Have a read of this and you will learn a great deal about setting up and using your new Debian system. Securing Debian HOWTO. https://www.debian.org/doc/manuals/securing-debian-howto/. […]


Read more...

Mastering Linux PDF series.

Mastering Linux Pt1.pdf Mastering Linux Part 01. Mastering Linux Pt2.pdf Mastering Linux Part 02. Mastering Linux Pt3.pdf Mastering Linux Part 03. Mastering Linux Pt4.pdf Mastering Linux Part 04. Mastering Linux Pt5.pdf Mastering Linux Part 05. Mastering Linux Pt6.pdf Mastering Linux Part 06. Mastering Linux Pt7.pdf Mastering Linux Part 07. Mastering Linux Pt8.pdf Mastering Linux Part […]


Read more...

Tweak your Linux Mint MATE desktop with this useful app.

The MATE tweak tool allows a Linux Mint MATE user to tweak their desktop. There are a few cool things you can do. Firstly, install this cool application. [email protected]:~$ sudo apt install mate-tweak Now that it is installed, we can begin to tweak our desktop. Turn off desktop icons in Linux Mint MATE with the […]


Read more...

Giant gas giant planet discovered orbiting a dual star system.

A giant gas giant planet has been discovered orbiting a dual star system 3700 light-years from Earth. This is a very long distance indeed. Traveling at 800 million miles per hour it would take 3102 years to reach this planet. Due to the large size of the exoplanet, it would have massive gravity that would […]


Read more...

How to list all non-free Linux packages installed on Linux Mint 18.

To list all non-free Linux packages that are installed on your Linux Mint system, use this one-liner. This prints out a list of all non-free packages that are installed on a system. [email protected] ~ $ dpkg-query -W -f ‘${Section}/${Package}\n’ | grep -E ‘^(contrib|multiverse|non-free|partner|restricted)/’ | sort contrib/kernel/virtualbox-guest-dkms contrib/misc/virtualbox-guest-utils contrib/x11/virtualbox-guest-x11 Another way is to install the vrms […]


Read more...

Customise a high end gaming PC and buy today!

This Maingear Rush X99 gaming PC is a very high end machine indeed. With the option of AMD Radeon or Nvidia graphics cards and SLI for more performance, it is well worth the cost. Shipping anywhere in the United States, this would have the power to handle games such as Arma 3 and the new […]


Read more...

Linux Mint 18 tricks and tips for setting up your new desktop.

Setting up your new Linux Mint 18 MATE desktop is a lot of fun, this post will help out new users to get the distribution set up after installation and update packages. As well as getting some awesome new wallpapers and MATE themes. After installation, updating the package repositories is very important. This allows software […]


Read more...

How to convert binary numbers to decimal using the bash shell.

This one-liner will convert binary numbers to decimal. Very easy to do in the bash shell. [email protected]:~$ echo "$((2#01110100011000010110101101))" 30508461 This is how to convert binary to Hexadecimal. [email protected]:~$ printf ‘%x\n’ "$((2#1111111))" 7f These very useful one-liners should make converting number values even easier then ever before.


Read more...

Get a listing of all the urls on a website with this simple Linux command.

This command will return a huge listing of all the visitable url`s on the http://www.google.com.au website. Give this a shot on other websites and see how you go. [email protected]:~$ wget –spider –force-html -r -l2 http://www.google.com.au 2>&1 | grep ‘^–‘ | awk ‘{ print $3 }’ Very useful if someone wants to know what is actually […]


Read more...

Easy way to make a webm for Firefox playback with ffmpeg.

This is how to create a nice webm using ffmpeg on Linux. Firstly, capture the section of video you wish to be encoded as a webm. This command will strip out a section of video from 00:09:23 to 00:09:33 and save it in the same format as the existing file. [email protected]:~/Videos$ ffmpeg -i total.mkv -vcodec […]


Read more...

Funny Linux photograph, this is in a supermarket.

This is a photograph captured in a supermarket. This shows a Linux machine that must be meant for showing advertisements or other videos and it is instead depicting a Linux bootup error. The filesystem has an inconsistency and this means that the fsck utility must be run manually to fix the error. Not a major […]


Read more...