How to install Visual Studio Code in Raspbian 10 (Buster)

1- Get the .deb file from 2- Double click on it and hit Install when asked if you want to install the file 3- Type in your password when prompted for it 4- Done, you can find the program under Raspberry Start Menu > Programming > Visual Studio Code

How to list IP tables in Linux

This is helpful for when you can’t access your localhost ( Specially if you are having trouble accessing MongoDB after installation. Here is the command: iptables -L –line-numbers Sources:

How to locally configure a replica set in MongoDB

This post will guide you through the steps to set up a local replica set with two members and one arbiter. In a production environment the steps must be almost the same except that instead of starting three local MongoDB instances in different ports you would start an instance of MongoDB on each server with its own configuration file. This …

How to hash files in Linux?

How many times have you needed to get the hash of any file in Linux? For whatever purpose you have needed to do that, rest assured that there is a set of commands that will make your life easier. These commands are part of Linux core utils. MD5 md5sum <file_name> SHA-1 sha1sum <file_name> SHA-256 sha256sum <file_name> SHA-384 sha384sum <file_name> SHA-512 …

How to add sudo users in Linux

First of all you have to be logged in as root. Just type command below followed by your password: terminator@skynet:~$ sudo su – [sudo] password for terminator: Now that you are root you can use the following command to create the user: adduser <username> You will be prompted for password, information and confirmation. Once done you can use the following …

How to see running processes in Linux

One essential command to know when you are experimenting in Linux is the command to see which processes are running in your machine, just in case you need to kill one of them for any reason. This command is top and you use it like this: Type top in a Linux Terminal and press Enter: pi@raspberrypi:~ $ top You should …

How to see available disk space in Linux

Playing around with a Raspberry PI I came to need this info. Here is the command: df -h You should see something similar to this: pi@raspberrypi:~ $ df -h Filesystem Size Used Avail Use% Mounted on /dev/root 26G 6.5G 18G 27% / devtmpfs 334M 0 334M 0% /dev tmpfs 463M 0 463M 0% /dev/shm tmpfs 463M 6.4M 456M 2% /run …

How to know which Linux version you are running

Easy peasy! Run the following command in a Terminal: lsb_release -a You should see something similar to this: pi@raspberrypi:~ $ lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 10 (buster) Release: 10 Codename: buster

How to reset Raspbian 10 (Buster) password on Raspberry PI 4

Hey! if you are reading this chances are you forgot the password to your Raspberry PI. Worry not though here is how to reset it on Raspbian 10 Buster using a Raspberry PI 4, I don’t really think the model of Raspberry PI matters but it’s just to give you a better idea of my environment. First start your Raspberry …

How to find strings in files in Linux

Today I needed to search for a specific string in all files inside a SOAP UI project, you just need to execute the following command: grep -rnw “getList” /home/SOAPUI_Proj/ Please notice that the text in italics means that the value is variable. Sources