How to list only the usernames in the /etc/passwd file on Linux.

To list only the usernames in the /etc/password file use this command. [email protected]:~$ cut -d: -f1 /etc/passwd This will print a listing of all usernames. This also works on the /etc/shadow file when used as root. [email protected]:~$ su -c ‘cut -d: -f1 /etc/shadow’ Password:


Read more...

Installing Debian from the netinstall ISO image is very easy.

Installing Debian from the minimal netinstall image is very easy indeed. The ISO image is available at this link. http://cdimage.debian.org/debian-cd/8.5.0/amd64/iso-cd/debian-8.5.0-amd64-netinst.iso. This version of the netinstall ISO contains extra firmware if this is required. http://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/8.5.0+nonfree/amd64/iso-cd/firmware-8.5.0-amd64-netinst.iso. Now we can begin installation of the Debian distribution. Choose the language for the installation. Now select the country where you […]


Read more...

A few ways to list disk information in Linux Mint.

There are a few ways in Linux Mint to view disk information. The Disks utility found at Preferences->Hardware-Disks allows the viewing of hard disk information. This displays all of the partitions and their types on a selected physical disk. There are options for unmounting partitions, deleting a partition and even more options such as formatting […]


Read more...

SuperTuxKart 0.9.2 Released

Linux gamers all over the world will be happy to hear that a new version
of SuperTuxKart is available. This should strike a nostalgic chord to people
who have used desktop Linux to play games during the past ten years.
more>>


Read more...

How to toggle the caps lock key with the command line in Linux Mint.

The Caps Lock key may be toggled using the command line. The xdotool utility will do this for you. Firstly, install the utility. [email protected] ~ $ sudo apt install xdotool Then toggle the caps lock key with this command. [email protected] ~ $ xdotool key Caps_Lock Run this command again to turn caps lock off. On […]


Read more...

Google’s SwiftShader Released

Year by year, plain-old HTML 5 websites are becoming fancier, and right
now, the home entertainment world is buzzing about VR and 3D. But most
sites are missing the boat; they have no 3D content. Well, that’s
about to change.
more>>


Read more...

How to get system information in Windows with CMD.

The systeminfo command for Windows allows a user to get comprehensive system information. The default usage outputs the most system information in one go. C:\Users\Corporal Kerry>systeminfo | clip This command will output the system information in CSV format. C:\Users\Corporal Kerry>systeminfo /FO CSV Use the /S parameter to specify a remote system to connect to. If […]


Read more...

Original Apollo 11 Guidance Computer (AGC) source code posted on github.

The original ASM source code for the lunar command and landing modules has been posted on Github. This gives us an insight into how it all worked. I wonder if someone could compile this code and get it working or not. I guess it would require the same hardware as was used in the 1960`s. […]


Read more...

Nice Linux prompts to liven up your terminal.

This is a nice script to build a custom PS1 that looks awesome and is simple too. export PROMPT_COMMAND=__prompt_command function __prompt_command() { local EXIT="$?"   local DEFAULT=’\[\e[0m\]’   local RED=’\[\e[0;31m\]’ local GREEN=’\[\e[0;32m\]’ local DARK_GRAY=’\[\e[0;90m\]’ local PURPLE=’\[\e[0;35m\]’ local YELLOW=’\[\e[0;33m\]’   PS1="\n${GREEN}\t${DEFAULT} "   if [ "$EXIT" != "0" ]; then PS1+="${RED}$EXIT${DEFAULT} " else PS1+="$EXIT${DEFAULT} " fi […]


Read more...

Change the background color of the terminal in Linux Mint.

To change the background color of the Linux Mint terminal, access the Profile Preferences like this. Then navigate to this tab to change the background color of the terminal window. This way, themes may be chosen, or a custom color may be chosen to set just the color you wish to use. This is how […]


Read more...

Useful Linux ideas and tips. Print graphical notifications from a shell script.

To print a graphical notification from a shell script, insert this code. notify-send "Match Found!" This will pop up a notification on your desktop, this will alert you to the fact that your shell script has done something. Make your computer talk. This will speak whatever you type as text. [email protected]:~$ espeak "I am sorry […]


Read more...

Lovely webm I made with ffmpeg.

I made this webm using ffmpeg. Firstly, I ripped a section of video. ffmpeg -i starwars.mkv -vcodec copy -acodec copy -ss 00:19:23 -to 00:19:33 out.mkv Then I did the first pass of two pass encoding. ffmpeg -i out.mkv -c:v libvpx-vp9 -pass 1 -qmin 0 -qmax 50 -crf 10 -b:v 1M -threads 1 -tile-columns 0 -speed […]


Read more...

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...

Peppermint 7 Released

Peppermint 7 launched a few days ago. Peppermint is a lightweight
Ubuntu-based Linux distribution with an emphasis on speed and simplicity.
Although the name is similar to Linux Mint, the projects aren’t
directly related. more>>


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...

Libarchive Security Flaw Discovered

When it comes to security, everyone knows you shouldn’t run executable
files from an untrustworthy source. Back in the late 1990s, when web
users were a little more naive, it was quite common to receive infected
email messages with fake attachments.
more>>


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...

Sony Settles in Linux Battle

When Sony released its PlayStation 3 console in 2006, most fans were
excited by the enhanced graphics and processing power, but a
small (yet significant) group of buyers was excited about an entirely
different feature. more>>


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...