Ubuntu

Found 7 posts in category 'Ubuntu'.

Essential dpkg Commands Cheat Sheet for Debian and Ubuntu Systems

Cheatsheet October 24, 2024
  dpkg --list

Displays all installed packages.

3. Working with Multiple Packages:

  • Install multiple packages:
  sudo dpkg -i package1.deb package2.deb package3.deb

Clearing Unnecessary Logs on Ubuntu

Tutorial October 24, 2024
sudo logrotate -f /etc/logrotate.conf

5. Clean Package Manager Logs

The package manager stores logs that track installed and removed packages. To clean these logs, use:

sudo rm /var/log/apt/*.log

6. Clear Systemd Journal Logs

How to Install and Configure Apache on Ubuntu

Tutorial October 21, 2024
bash

You should see a message indicating that Apache is active and running.

Step 3: Adjust the Firewall to Allow Web Traffic

If you have UFW (Uncomplicated Firewall) running, you will need to allow Apache traffic through the firewall. UFW has several predefined profiles that you can use to allow or deny traffic.

Check the available application profiles:

sudo ufw app list

How to Create SSL for a Website on Ubuntu

Tutorial October 21, 2024
bash

Step 6: Optional Configuration (for Nginx or Apache)

If you want to ensure the strongest security for your SSL configuration, you can edit your Nginx configuration file. Open it with a text editor:

sudo nano /etc/nginx/sites-available/default

Add the following lines under your server block to enhance security:

ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
ssl_ciphers "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384";
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:10m;
ssl_stapling on;
ssl_stapling_verify on;

How to Install MongoDB Shell (mongosh) on Ubuntu

Tutorial October 18, 2024
bash

The MongoDB Shell is available in a compressed tarball. Download it using the following command:

wget https://downloads.mongodb.com/compass/mongosh-1.10.1-linux-x64.tgz

Step 2: Extract the tarball

Extract the contents of the downloaded file using the tar command:

tar -xzvf mongosh-1.10.1-linux-x64.tgz