Very useful Linux tips for getting information on current logins.

There are many ways to get detailed information on known users on your Linux system. The lslogins command is therefore very useful for listing all usable login accounts. The below example will list all user accounts including the root account. This might be disabled on an Ubuntu system, but it is worth listing it anyway. … Read more

A very nice network emulator for PC.

Common Open Research Emulator is a very good networking emulator for Linux machines. This allows a user to create a network layout with IP addresses and see it working. This is very interesting software. Download the source code from Github. ┌─[jason@jason-desktop]─[~/Documents/core] └──╼ $git clone https://github.com/coreemu/core.git┌─[jason@jason-desktop]─[~/Documents/core] └──╼ $git clone https://github.com/coreemu/core.git Then begin the installation like this. … Read more

How to record PC sound to a file with ffmpeg and Pulseaudio.

Recording sound from your computer to a file is pretty easy with Pulseaudio. Assuming you know what device you are using to listen to audio, then it may be selected and recorded from. Use this command to find the device name. ~$ pacmd list-sources~$ pacmd list-sources Then you may get the device string. alsa_output.usb-Cosair_Corsair_VOID_PRO_Surround_USB_Adapter_00000000-00.analog-stereo.monitoralsa_output.usb-Cosair_Corsair_VOID_PRO_Surround_USB_Adapter_00000000-00.analog-stereo.monitor Make … Read more

How to install a very useful virus scanner on Ubuntu and scan for malware.

The ClamAV virus scanner is very useful for scanning files for malicious code. This is good if you download files from the Internet that are going to be used on a Windows computer. This is very easy to install. ┌─[jason@jason-desktop]─[~/Downloads/Dark Path/S.T.A.L.K.E.R. – Dark Path] └──╼ $sudo apt install clamav┌─[jason@jason-desktop]─[~/Downloads/Dark Path/S.T.A.L.K.E.R. – Dark Path] └──╼ $sudo … Read more

Very useful Ubuntu tips.

To get a nice warm screen color instead of a glaring white screen at night, use this very useful program. Redshift will remove blue light from your computer screen and then this will help with sleep. ┌─[jason@jason-desktop]─[/] └──╼ $sudo apt install redshift-gtk┌─[jason@jason-desktop]─[/] └──╼ $sudo apt install redshift-gtk Start Redshift from the Applications-Accessories menu and then … Read more

How to create a fake webcam stream on Linux.

Creating a webcam stream of your desktop, instead of an actual webcam is very easy on Linux. The v412loopback package provides a kernel module that will emulate a webcam, using any video input you wish to give it. Install it like this. ┌──[[email protected]]─[~] └──╼ ╼ $ sudo apt install v4l2loopback-dkms┌──[[email protected]]─[~] └──╼ ╼ $ sudo apt … Read more

How to list previously installed packages from the apt history.

This is how to get information about recently installed packages on Ubuntu. This is looking at the lowlatency package I just installed. 4.4 Thu Jun 04 jason@Yog-Sothoth 0: $ grep "lowlatency" /var/log/apt/history.log | sed "s/ /\n/gi"; Commandline: apt install linux-image-5.3.0-24-lowlatency Install: linux-image-5.3.0-24-lowlatency:amd64 (5.3.0-24.26~18.04.2), linux-modules-5.3.0-24-lowlatency:amd64 (5.3.0-24.26~18.04.2, automatic) Commandline: apt-get install –reinstall linux-image-5.3.0-24-lowlatency Reinstall: linux-image-5.3.0-24-lowlatency:amd64 (5.3.0-24.26~18.04.2) Commandline: … Read more

How to get ID3 information from a multimedia file with ffmpeg.

The ffmpeg utility is very useful for transcoding video and making video files, but it can also retrieve information from a video or audio file very easily. You can get the ID3 info from an mp3 very easily. Below is an example. I am getting album and artist information from an mp3 audio file. jason@jason-desktop:~/Music/Ludwig … Read more

Get information about running services with Systemd on Ubuntu.

The Systemd framework in Ubuntu may be used to get good information about running services on your machine. This is very easy. To list all active services on your Ubuntu machine, use this command. jason@jason-desktop:~/Videos$ systemctl list-units –type=service –state=activejason@jason-desktop:~/Videos$ systemctl list-units –type=service –state=active Or this command which is a fast way to list all running … Read more

How to turn off the ondemand CPU governor on an Ubuntu Linux machine.

The default CPU governor on an Ubuntu machine sets it to use an ondemand CPU setting that will use the lowest CPU speed and then set it higher when it is needed, but it does not always work very well. But it can be fixed. Dsiable the ondemand CPU governor. ┌─[jason@darkstar]─[~] └──╼ $echo ‘GOVERNOR="performance"’ | … Read more

Linux distribution alternatives to Ubuntu.

There are many Linux distributions that are good alternatives to Ubuntu. This gives you more freedom of choice. Debian Live distribution. This is a nice way to try out some Debian goodness before installing on your system. Find some download links here: https://www.debian.org/CD/live/. Ubuntu is based on Debian anyway, so running the original distro should … 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": menu-complete "\C-k": menu-complete-backward$include /etc/inputrc set … 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] 16.02 : Copyright (c) 1999-2016 … Read more