How to install python3 on Linux

Install python3 $ sudo apt-get install python3-pip python3-venv python3 <enter> Make an isolated environment$ mkdir environment <enter>$ cd environment <enter>$ python3 -m venv my_env <enter> where my_env is the isolated environment$ ls my_env <enter> to display the created folders Activate the isolated environment$ source ~/environment/my_env/bin/activate <enter> This will be the resulting prompt(my_env) patrick@rm01:~/environments$ Create a … Continue reading How to install python3 on Linux

How to remove duplicate files in Linux using rdfind

Duplicate files can be removed using the rdfind command in Linux. To do so open a terminal window and first install rdfind as below:$ sudo apt-get install rdfind <enter> Then, check for duplicate files on a medium:$ rdfind true . <enter> . is the current directory where I ran rdfind Make sure you have a … Continue reading How to remove duplicate files in Linux using rdfind

Sort text file in Linux from a particular position

I have a text file, named all.txt, with the following content:f http://www.google.com/f http://www.abc.com/c http://www.google.com/c http://www.abc.com/ I want to sort it on the URL ignoring the first 2 characters i.e f or c . To do this, Linux provides a sort command. Using the keydef option, the file can be sorted. To do so, open a … Continue reading Sort text file in Linux from a particular position

How to convert PostScript script to a .ps file for viewing in PDF viewer or to PNG

Reading about Gerard Huet's paper on the geometry of the Shri Yantra available in PDF format at this link http://pauillac.inria.fr/~huet/SKT/sanskrit.html.orig, I was prompted to try out the Postscript code he had in and Appendix in the paper. After typing the code into a .txt file, the file did not render using Evince or a PDF … Continue reading How to convert PostScript script to a .ps file for viewing in PDF viewer or to PNG

How to fix error of Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead in Ubuntu Linux 22.04 LTS or Linux Mint 21

In Ubuntu 22.04 LTS or Linux Mint 21, there has been a change in the way keys to repos are stored. When installing software like Spotify from the internet via instructions there, the commands used cause an error when running apt-get update. The following error appears: Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d … Continue reading How to fix error of Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead in Ubuntu Linux 22.04 LTS or Linux Mint 21

How to find out SSD details on a Linux computer

Open a terminal window and enter the following to find out technical information of an SSD installed in the computer using Linux. $ sudo hdparm -i /dev/sda <enter> /dev/sda:Model=CT500MX500SSD1, FwRev=M3CR043 Visit https://www.crucial.in/support/ssd-support/mx500-support to check if there is a firmware upgrade for the SSD.

How to install Linux Mint on Crucial MX500 SATA SSD drive on Dell Vostro 3546 laptop after BIOS upgrade

The humble Dell Vostro 3546 is an old laptop from 2014, which came with an Intel 4th Generation 4210U processor, 1 TB SATA 5400 rpm hard disk and 4 GB DDR3 (low voltage) 1.35V RAM. It worked fine till now even when it ran Linux Mint 20.3 with Blender 3D. However, everytime an Android app … Continue reading How to install Linux Mint on Crucial MX500 SATA SSD drive on Dell Vostro 3546 laptop after BIOS upgrade

How to improve speed or performance of Linux Mint XFCE on old computer

Decrease swappiness whereby the use of swap is curtailed$ cat /proc/sys/vm/swappiness <enter>returns the value of swappiness which is 60 initially. Make this 20 as follows:$ sudo xed /etc/sysctl.conf <enter>Add a line to the end of the filevm.swappiness=20Save the file. Disable Java in LibreofficeOpen Libreoffice Writer.Go to Tools -> Options -> Advanced -> Java OptionsUncheck Java … Continue reading How to improve speed or performance of Linux Mint XFCE on old computer

How to securely wipe a hard drive or USB drive in Linux using dd or scrub

Normally we'd use dd to clean wipe a hard drive as follows after opening a terminal window for a hard disk or USB drive accessible as /dev/sdb :$ sudo dd if=/dev/urandom of=/dev/sdb status=progress <enter> Another command to do a secure wipe of /dev/sdb is scrub that can be used as follows:$ sudo scrub -p dod … Continue reading How to securely wipe a hard drive or USB drive in Linux using dd or scrub

Dell Support Experience to order and replace laptop battery

This is based on the experience of one of my family with Dell Support whose Dell Inspiron uses a 3 cell 4.1V 3500 mAH Li-ion battery - part number FW8KR11. This was confirmed in Linux using dmidecode. Open a terminal window and enter the command below.$ sudo dmidecode <enter>Portable BatteryLocation: Sys. Battery BayManufacturer: BYDManufacture Date: … Continue reading Dell Support Experience to order and replace laptop battery