Friendly Linux Forum Wed, 27 May 2020 17:53:09 +0000 Wed, 27 May 2020 17:53:09 +0000 LFCS - Linux Process Management Tue, 12 May 2020 01:30:00 +0000 (Jarret B) Jarret B Every application running on a Linux machine is a process. Some applications may have multiple processes to help create the whole application. Managing these processes may seem an overwhelming task, but let’s make sense of it so it becomes easy
Every process has a Process ID (PID) which distinguishes it from other processes.

Process IDs

As Linux starts up, every application or process is given a number starting with 1. On an Ubuntu system, the process with PID of 1 is the...]]>
Rock Pi 4 and Android TV Mon, 13 Apr 2020 16:28:00 +0000 (Jarret B) Jarret B has a newer Single Board Computer (SBC) called a Rock Pi 4. The Rock Pi 4 supports the ability to be used as an Android TV as well as running Linux distros.

In this article, I will explain how to make an Android TV for the Rock Pi 4.


The first thing we need to cover is the hardware. The Rock Pi 4 consists of three models: A, B and C. I am using Model B but the only difference to Model C is that the Model C board has a Mini DisplayPort which Model A...]]>
Create A LiveCD Media Mon, 13 Apr 2020 16:00:00 +0000 (Jarret B) Jarret B Nearly everyone using Linux has come across a LiveCD of some type. If you haven't, a LiveCD is an ISO file that can be burned to a USB or CD and booted from to create a running version of Linux in RAM. This means you can use the Linux Distro in RAM and not install it.

You can also make an image to install to a hard disk. The process will allow you to install specific programs into the image. When Linux is installed you will have all of the custom programs already installed. Having the...]]>
Intro and Installation of Kubernetes Thu, 12 Mar 2020 13:46:00 +0000 (Jarret B) Jarret B Anyone using Docker can use Kubernetes to create a cluster. A cluster is when there are multiple systems working together as a single unit. If one system fails then the other systems will resume the failed processes to keep the resource active.

An example of a cluster would be multiple web servers acting as one web server. If we had five servers managing a website. One server may fail due to a physical hardware issue such as a hard disk failure. The cluster will disregard the...]]>
Add timestamp + change history size in your linux history Sat, 07 Mar 2020 00:43:00 +0000 (Rob) Rob The Linux history command is awesome by default, but you can make it better! By default, it'll only hold about 1000 past commands, but you can increase that - you can also add time/date to it so you can see when you ran each command!

In your ~/.bashrc file, simply add some lines like:
Then, you'll have a 5000 line history file along with timestamps! Give it a go and let me know how it goes!

After you log out and back...]]>
Find your top 10 linux commands in your history Fri, 06 Mar 2020 23:02:00 +0000 (Rob) Rob Linux is a great thing that it'll keep a history of the commands you time in the ~/.bash_history file. If you'd like to see the 10 top commands you use, you can run something like the following to see what you type out the most!

cat ~/.bash_history | sort |uniq -c|sort -nr|head -n 10

It should show something like this:
[rob ~ ]$ cat ~/.bash_history | sort |uniq -c|sort -nr|head -n 10
    223 ls
     78 cd
     57 vim
     45 cd ..
     39 git status...]]>