Read, in the Name of your Lord Who created. created humans from a clinging clot. Read! And your Lord is the Most Generous. Who taught by the pen.

Send Mail Using Gmail using Command Line

Yeah, you can send mail from your gmail account using command line. Requirements You have two options here. Gmail account settings Either enable less secure apps in your Google account or Generate an app password. Tools being used For Arch Linux: 1 $ sudo pacman -S msmtp For Debian, Ubuntu and other Debian derived distributions: 1 $ sudo apt install -y msmtp For Fedora, CentOS, Redhat etc:

SSH Passwordless Authentication

SSH login without password? Yeah you heard it right. Today I’m going to teach you how you can enable passwordless authentication in ssh. You can login to your linux servers without password. How? Keep reading… Edit the SSH main configuration file. 1 2 3 4 5 6 7 8 9 10 $ sudo vi /etc/ssh/sshd_config ... PubkeyAuthentication yes ... Edit this line. If you see no, change it to yes.

How to Share Android Screen

There are times you want to share your android phone’s screen with your Linux/Windows desktop. Like if you have got broken screen or for some purpose. So this post may help you. Requirements Android phone ADB installed In Arch Linux, you can install ADB with: 1 2 3 $ sudo pacman -S android-tools There is a program which is used to screen sharing. You can install it using AUR in Arch Linux, use apt if you are using Ubuntu/Debian.

Kalilinux Persistence

Getting Kalilinux image Go to Downloads and download latest live image. Make sure you don’t download the installer image. Make USB bootable Use dd to write the kali image to USB. In linux environment: 1 # dd if=kali-linux-xxxx.x-live-amd64.iso of=/dev/sdX status=progress bs=4M Replace kali-linux-xxxx.x-live-amd64.iso with downloaded iso iamge path and /dev/sdX with path of your USB device. You can find USB path by running lsblk in terminal. Make sure you don’t select the existing linux installation drive.

Git Initial Setup

How to configure Git Git is a version control system by Linus Torvalds, same person who wrote linux kernel. Installation In Archlinux, you can install git by: 1 $ sudo pacman -S git In Debian and derived distributions: 1 $ sudo apt install -y git Configuration You have to tell git about the author who committed changes so lets do it. Name and Email Tell git about your name and email:

How to set FQDN in Linux

What is FQDN? FQDN stands for Fully Qualified Domain Name. It’s complete domain name for a computer or host on the internet. FQDN is made of two things: hostname and domain name. Let me give you an example for demonstration. FQDN for my mail server is myemailserver.abdullah.today. The hostname is myemailserver. The domain is abdullah.today. Requirements You will need: IP Address Hostname FQDN Edit hosts file Edit the /etc/hosts file and append this like this.