Ad-Hoc commands are single liner commands which allow us to do something quickly but don’t want to save for later. To list all hosts ansible –list-hosts all To list hosts in a group ansible –list-hosts groupname Negation – to list…
Configure GitLab to send emails using Gmail SMTP settings
If you are planning to send application emails via gmail SMTP server intead of via Sendmail, follow the steps below Open GitLab config file in an editor sudo vim /etc/gitlab/gitlab.rb Add the following line in the config file Change “my.email@gmail.com”…
Enable Git LFS in GitLab Omnibus Installation
Open gitlab config file in an editor sudo vim /etc/gitlab/gitlab.rb Search for the following line #gitlab_rails[‘lfs_enabled’] = false Uncomment it and change the value to true. It will look like this: gitlab_rails[‘lfs_enabled’] = true Save the file and reconfigure GitLab…
Install and configure GitLab on Ubuntu 18.04 LTS
Login into the server as root user and update the Ubuntu repository. apt-get update Now install curl , ca-certificates, and postfix packages. sudo apt-get install -y curl openssh-server ca-certificates sudo apt-get install -y postfix During Postfix installation a configuration screen…
Install Lets Encrypt SSL in bitnami lightsail runs on Apache
Stop all services $ sudo /opt/bitnami/ctlscript.sh stop Run the following command in the terminal. Replace the email id with your email address and domain name with your domain name. Lets encrypt will verify the domain name. Make sure the domain…
Linux Boot Process
Linux Boot process consist of 6 steps. BIOS >> MBR >> GRUB >> KERNEL >> INIT >> RUNLEVEL BIOS BIOS stands for Basic Input/Output System Performs some system integrity checks Searches, loads, and executes the boot loader program. It looks…
Install Apache Spark in Ubuntu 18.04
In this post I’m gonna share the steps to install Apache Spark in Ubuntu 18.04. In order to install Spark, you will need java and scala installed in your machine. Ensure java is installed java -version Follow the steps here…
How to forcefully unmount a device in EC2 linux Instance
Recently I had a situation on one of my amazon EC2 instance that, I had to unmount a device from a server(amazon ec2 instance) and attach it to another instance. For that, I removed the entry from /etc/fstab file and…
Forcefully redirect HTTP requests to HTTPS in Bitnami Apache
In order to redirect http requests to https, we need to make some changes in the default apache configuration file. So, before we start, make sure to backup the current config file. So that we can revert the changes if…