Ubuntu Unity desktop still very annoying compared to MATE.

The Ubuntu Unity desktop environment is very annoying compared to the MATE alternative. I keep getting notifications that an app has stopped working, like Redshift, and then it loads it up again and it is running twice. Why does this even happen? With the MATE desktop environment, it is very…

Read More

Easily change files on your Linux system with a simple command.

This command will change the default port for the SSH server on your Linux machine. jason@jason-desktop:~$ perl -pi -e ‘s/^#?Port 22$/Port 443/’ /etc/ssh/sshd_configjason@jason-desktop:~$ perl -pi -e ‘s/^#?Port 22$/Port 443/’ /etc/ssh/sshd_config Then run this command to restart the SSH server. jason@jason-desktop:~$ sudo service ssh restartjason@jason-desktop:~$ sudo service ssh restart This will…

Read More

Convert text from comma delimited to newline delimited with a simple command.

Some text files are shipped as comma-delimited files. This can be annoying to fix, but it can be done with the Linux command line. Here is an example of comma-delimited text. jason@jason-desktop:~/Documents$ cat banlist.txt | head -c 200 ; echo 10.34.28.4, 103.11.70.143, 103.11.70.143, 103.22.245.6, 107.20.178.108, 108.163.248.74, 108.21.102.146, 108.62.110.25, 108.62.33.114, 108.62.33.114,…

Read More

Very interesting shell scripting example.

This simple shell script will pick a random sentence from a text file. This is made up of multiple sentences from parts of the text file merged into one long sentence. words.sh1 2 3 4 5 #!/bin/sh   numwords=$(shuf -i 14-88 -n 1) words=$(shuf -n $numwords 122-0.txt | cut -d$”…

Read More

How to configure bash to have nice auto-completion.

Put this code in your ~/.inputrc file to enable nice auto-completion in the bash shell prompt. ~\.inputrc1 2 3 4 5 6 7 8 9 10 $include /etc/inputrc set completion-ignore-case on set completion-query-items -1 set show-all-if-unmodified on set show-all-if-ambiguous off set colored-completion-prefix on set colored-stats on set visible-stats on "\C-j":…

Read More

How to view and open a chm file on Linux easily.

Opening and reading chm files on Linux is very easy, they are compressed archives and can be opened with 7zip. This is how to extract a chm file on Linux with 7zip. Then open the index.html file in Firefox to view the contents easily. jason@jason-desktop:~/Documents/kabylakeplatform_3_7_9/KabylakePlatSamplePkg/Docs$ 7z x PlatApi.chm 7-Zip [64]…

Read More

The workings of the Linux OS are very interesting.

The many Linux distributions out there are very interesting in how they work. The passwords for the users are stored in a file in /etc/shadow. This is only readable by the system administrator account and are encrypted with different levels of encryption. This example is using the outdated MD5 encryption…

Read More

How to get information about a video file with the Linux command line easily.

Getting information about a video file on Linux with the command line is very easy. I will show how you can easily find the resolution of a video and the format. This example below will return the resolution of a video file. jason@jason-desktop:~/Videos$ ffprobe XR_3DA_2019_03_16_19_22_35_777.avi 2>&1 | grep -E ‘[[:digit:]]{3,}x[[:digit:]]{3,}’…

Read More

How to detect SSH connections on your machine.

It is possible to detect an established SSH connection from your machine to a remote server. The lsof command can view an SSH connection. I am using SSH over port 443, so the connection is mixed up with a lot of other stuff that Firefox is connected to. But if…

Read More