Auto upgrade software in Ubuntu/Debian
To auto upgrade software packages in Ubuntu/Debian, install apt install -y unattended-upgrades Edit vi /etc/apt/apt.conf.d/50unattended-upgrades In this file, you can
rpmquery
rpmquery command allow you to check if a specific rpm package installed on your computer. rpmquery PKG_NAME Example See rpm
Install PowerDNS on Ubuntu 20.04
PowerDNS is an OpenSource DNS server. Update apt repo apt-get update && apt-get upgrade -y On Ubuntu, systemd-resolved listen to
java
war file for testing Tomcat/Jetty Put it in webapps folder.
Find all open ports using nmap
To find all open ports on a computer, run nmap -P0 -vv -sS -ff -r -n -p 1-65535 IP_ADDR_HERE -sS
Make hosts file editable with out sudo
hosts file allow you to override DNS. This will allow you to point a domain to difernt IP address on
Update Cpanel License Key
To update cpanel server license, run /usr/local/cpanel/cpkeyclt Example [root@pbcp-22-01 ~]# /usr/local/cpanel/cpkeyclt Updating cPanel license…Done. Update succeeded. Building global cache for
Upgrade ruby gem
To upgrade a ruby gem run gem update –system VERSION_HERE Example gem update –system 1.3.7 See Ruby
Migrate database from MongoDB Atlas to your server
MongoDB Atlas is a hosted MongoDB server hosting in cloud. If you are starting with MongoDB, they have free hosting,
How to Install Visual Studio Code Server
Code Server allow you to run Microsoft Visual Studio Code in the browser. Code Server runs on a remote web
PrestaShop Product Images not showing
After migrating a PrestaShop 1.7 web site to another domain, site did not show product images. To fix this, you
Creating Software RAID 5
RAID 5 Requires 3 or more physical disks. It provides the redundancy of RAID 1 combined with the speed and