Guides
How website valuation actually works, what traffic estimates can and cannot tell you, and which once-standard metrics have quietly stopped existing.
How to secure MongoDB on Linux or Unix production server
Securing a MongoDB installation on a Linux or Unix production server involves several steps:rn rn Bind to a specific IP address or localhost: By default, MongoDB listens on all available network interfaces. To secure your MongoDB installation, you should bind MongoDB to a specific IP address or to l
How To Change Shell To Bash in Linux / Unix
To change your shell in Linux or Unix, you can use the chsh (change shell) command. The chsh command allows you to change the default shell for your user account. Here's an example of how to change your shell to bash :rn rn rn chsh -s / bin /bashrn rn rnThe -s option specifies the shell to use, a
-bash: python: command not found error and solution
The "command not found" error message you're encountering indicates that the python command is not recognized by your shell because it is not in your shell's PATH. Here are some steps you can take to resolve this issue:rn rn Check if Python is installed: rn rn rn rn python3 --version rn rn rnIf P
How to check the file size in Linux/Unix bash shell scripting
You can check the size of a file in Linux/Unix using the stat command. The stat command provides information about the file, including its size. Here's an example of how to check the size of a file named file.txt :rn rn rn stat -c %s file.txtrn rn rnThe -c option specifies the format for the outp
Linux append text to end of file
You can append text to the end of a file in Linux using the echo command and the >> operator. The echo command outputs the specified text, and the >> operator appends the output to the end of the specified file. n Here’s an example of how to append text to the end of a file named f
How to fix: MacOS keep asking passphrase for ssh key after upgrade or reboots
If your MacOS keeps asking for the passphrase for your ssh key after an upgrade or a reboot, there are a few possible solutions:rn rn Use ssh-add to add the key to the ssh-agent: rn rn rn rn eval "$(ssh-agent -s)" rnssh-add -K ~ /.ssh/i d_rsarn rn rnThe -K option stores the passphrase in the Keychai
How to copy a single file to multiple directories in Linux or Unix
In Linux or Unix, you can copy a single file to multiple directories using a loop in a shell script. Here's an example script that uses the cp command to copy the file file.txt to multiple directories dir1 , dir2 , and dir3 :rn rn rn #!/bin/bash directories=(dir1 dir2 dir3)rnfile=file.txt fo
Linux/Unix: Force ssh client to use only password auth authentication when pubkey auth configured
You can force an ssh client to use only password authentication when public key authentication is also configured by using the -o PreferredAuthentications=password option when connecting to the server. For example:rn rn rn ssh - o PreferredAuthentications = password user @server rn rn rnThis opti
Error while loading shared libraries: libXrender.so.1 on Linux
The error “Error while loading shared libraries: libXrender.so.1” occurs because the system is unable to find the shared library libXrender.so.1 , which is needed to run a program. n To resolve this error, you can install the missing library by running the following command: n n n sudo a
How to create a new sudo user on Ubuntu Linux server
To create a new sudo user on an Ubuntu Linux server, you can follow these steps:rn rn Log in to your Ubuntu Linux server as the root user or as a user with sudo privileges. rn Run the following command to create a new user: rn rn rn rn sudo adduser < username > rn rn rnReplace <username>
How to log real user’s IP address with Nginx in log files
To log a real user's IP address with Nginx in log files, you can use the $remote_addr variable. This variable contains the IP address of the user making the request. Here's how you can configure Nginx to log the real user's IP address in the log files:rn rn Open the Nginx configuration file: The
How to zip a folder in Ubuntu Linux / Debian Linux
To zip a folder in Ubuntu Linux / Debian Linux, you can use the zip command. Here’s how you can use it: n n Open a terminal window: To open a terminal window, click on the terminal icon in the applications menu or press Ctrl + Alt + T . n Navigate to the folder you want to zip: To navigate to
How to map static IP address using dnsmasq under LXD (Linux containers)
Mapping a static IP address using dnsmasq under LXD (Linux Containers) can be done as follows:rn rn Install dnsmasq: First, you will need to install dnsmasq on the host machine using the following command: rn rn rn rn sudo apt- get install dnsmasqrn rn rn rn Configure dnsmasq: Next, you will need to
How to install LXD container under KVM or Xen virtual machine
LXD is a container hypervisor, which allows you to run multiple isolated Linux containers on a single host. If you want to run LXD containers under a KVM or Xen virtual machine, you will need to do the following:rn rn Create a virtual machine: First, you will need to create a new virtual machine usi
How to limit SSH (TCP port 22) connections with ufw on Ubuntu Linux
You can limit SSH (TCP port 22) connections with ufw (Uncomplicated Firewall) on Ubuntu Linux by following these steps:rn rn Install ufw if it's not already installed: rn rn rn rn sudo apt- get install ufwrn rn rn rn Enable ufw: rn rn rn rn sudo ufw enable rn rn rn rn Allow incoming SSH connections:
How to ignore invalid and self signed ssl connection errors with curl
To ignore invalid SSL certificate warnings and self-signed certificate errors when using curl, you can use the following options:rn rn rn curl --insecure https : //example.com rn rn rnThe --insecure option allows curl to connect to an SSL server with an invalid or self-signed certificate. However, t
How to set up MariaDB SSL and secure connections from clients
Here are the general steps to set up SSL for MariaDB and secure connections from clients:rn rn Generate a certificate and key: You can use the openssl tool to generate a self-signed certificate and key, or obtain a certificate from a trusted certificate authority (CA). rn Configure MariaDB to use SS
How to Run Instagram Ads in Facebook Ads Manager
To run Instagram Ads in Facebook Ads Manager, follow these steps: n n Go to Facebook Ads Manager and create a new campaign. n Select the objective for your campaign, such as “Traffic” or “Engagement”. n Choose Instagram as the placement for your ad. n Set up your target audie
7 Best Free And Paid Employee Performance Management Software
7 Best Free And Paid Employee Performance Management Software rn https://youtu.be/swpG6efJTuE Software used to evaluate and foster employee performance and productivity.rn- Track progress, ranking, and records of manager-employee discussion.rn- Define individualized tasks and goals in su
7 Best Free And Paid Corporate Learning Management Systems (LMS)
7 Best Free And Paid Corporate Learning Management Systems (LMS) n n n Software used to plan and conduct employee trainings. n– Store and access training materials within a company. n– Assign onboarding or career development trainings to employees. n– Track training progress
2,685 guides published.
