To install node.js for LinuxMint Vera (21.1) or Ubuntu, do followingVisit https://github.com/nodesource/distributions#deb Follow the instructions to install the .deb file on your system at https://github.com/nodesource/distributions#debinstall. Open a linux terminal window and enter the following: $ curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - &&\sudo apt-get install -y nodejs <enter> It will now install node.js on … Continue reading How to install node.js on Linux Mint or Ubuntu Linux
Tag: terminal
How to query the GTK3 theme currently in use on Linux, enable dark mode and display missing icons in Gnucash
To view the current GTK3 theme in use on the XFCE desktop environment that is pre-installed in distributions like Linux Mint or Xubuntu, open a terminal window and enter the following comment: $ gtk-query-settings theme <enter> Upon enter, it displays the following: gtk-theme-name: "Mint-Y-Dark-Orange" gtk-icon-theme-name: "Mint-Y-Dark-Orange" ! gtk-fallback-icon-theme: NULL gtk-key-theme-name: NULL gtk-cursor-theme-name: "Bibata-Modern-Ice" gtk-cursor-theme-size: 24 … Continue reading How to query the GTK3 theme currently in use on Linux, enable dark mode and display missing icons in Gnucash
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