Nginx Redirect URL With HTTP/1.1 301 Moved Permanently Header

In Nginx, you can use the return directive to redirect a URL with the HTTP/1.1 301 Moved Permanently header. Here’s how: Open the Nginx configuration file: $ sudo nano /etc/nginx/nginx.conf Add the following code to the server block for the domain you want to redirect: server { listen 80; server_name <old_domain>; return 301 $scheme://<new_domain>$request_uri; } … Read more

OpenBSD: Install Firefox Web Browser

To install the Firefox web browser on OpenBSD, you can use the pkg_add command. Here’s how: Open a terminal window. Update the package list: $ sudo pkg_add -u Install Firefox: $ sudo pkg_add firefox This will download and install the latest version of the Firefox web browser. Start Firefox: $ firefox & This will start … Read more

Linux Download Password Protected Large ISO Images [ Authentication Credentials ]

To download a password-protected large ISO image in Linux, you’ll need to provide the authentication credentials (username and password) to the server. The following is a general guideline for downloading a password-protected ISO image: Open a terminal window. Use the wget command to download the ISO image: $ wget –user=<username> –password=<password> <URL_of_the_ISO_image> Replace <username> and … Read more

Linux Delete / Remove MBR

To delete or remove the Master Boot Record (MBR) in Linux, you can use the dd command. The dd command can be used to overwrite the MBR with zeros or other data. Here’s how you can use dd to delete the MBR: Determine the device name of the disk you want to delete the MBR … Read more

RHEL 6 / CentOS 6: Install Adobe Flash Player For Firefox Browser

To install Adobe Flash Player on Red Hat Enterprise Linux (RHEL) 6 or CentOS 6 for the Firefox browser, you can follow these steps: Install the required dependencies: $ sudo yum install nspluginwrapper alsa-plugins-pulseaudio libcurl Download the Adobe Flash Player for Linux from the official Adobe website: $ wget https://fpdownload.adobe.com/get/flashplayer/pdc/27.0.0.187/flash-player-27.0.0.187-release.x86_64.rpm Install the Adobe Flash Player … Read more