Skip to content

Instantly share code, notes, and snippets.

View rakibulinux's full-sized avatar
🥰
Work Lover

MD RAKIBUL ISLAM RAKIB rakibulinux

🥰
Work Lover
View GitHub Profile
@rakibulinux
rakibulinux / ubuntu.sh
Last active June 2, 2020 12:14
Things To Do After Installing Ubuntu 18.04 LTS
#!/bin/sh
# This command will update & upgrade your system
sudo apt update && sudo apt-get upgrade --fix-missing -y
# Install the package build-essential for making the package and checkinstall for putting it into your package manager
sudo apt install build-essential checkinstall -y
# Install Ubuntu Restricted Extras
sudo apt install ubuntu-restricted-extras -y
@rakibulinux
rakibulinux / keybase.md
Created December 31, 2019 20:48
keybase.md

Keybase proof

I hereby claim:

  • I am rakibulinux on github.
  • I am rakibulinux (https://keybase.io/rakibulinux) on keybase.
  • I have a public key whose fingerprint is E8CC 7400 1372 0CB2 012D 6109 6407 5A3E A42D 7B66

To claim this, I am signing this object:

@rakibulinux
rakibulinux / LAMP.sh
Last active May 20, 2021 17:32
How to Install LAMP Stack on Ubuntu 20.04
#!/bin/bash
#https://youtu.be/KlV77BkVIck
#Install Apache2
sudo apt-get update
sudo apt-get install apache2
sudo systemctl start apache2.service
sudo systemctl enable apache2.service
sudo systemctl restart apache2.service
sudo systemctl stop apache2.service
@rakibulinux
rakibulinux / ssh.sh
Last active August 26, 2022 01:00
Generating a new SSH key and adding it to the ssh-agent
#!/bin/sh
# Install latest Git & Git Configure
sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt install git
sudo -i
sudo git config --global user.name "Rakib Linux"
sudo git config --global user.email rakibulinux@gmail.com
@rakibulinux
rakibulinux / NTFS.sh
Created January 13, 2020 13:03
Ubuntu 18.04 Read Only Problem On NTFS
#Ubuntu 18.04 Read Only Problem On NTFS
sudo fdisk -l
sudo ntfsfix /dev/sdb2 #device name or HDD/SSD name
@rakibulinux
rakibulinux / NodeJS&NPM.sh
Last active February 15, 2020 09:26
How to Install Node.js and npm on Ubuntu 18.04
#!/bin/sh
# Install Node JS & NPM Configure
# 1st Enable the NodeSource repository by running the following curl as a user with sudo privileges:
sudo apt install curl
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
# 2nd Once the NodeSource repository is enabled, install Node.js and npm by typing:
# Run `sudo apt-get install -y nodejs` to install Node.js 12.x and npm
sudo apt-get install -y nodejs
@rakibulinux
rakibulinux / Composer.sh
Last active January 13, 2020 23:50
How to Install and Use PHP Composer on Ubuntu 18.04
#!/bin/sh
# Install PHP Composer
sudo apt update
sudo apt install wget php-cli php-zip unzip
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
HASH="$(wget -q -O - https://composer.github.io/installer.sig)"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
#If the hashes match, you will see the following output:
@rakibulinux
rakibulinux / FormatUSB.sh
Created January 16, 2020 00:02
How to Format USB drive in Linux Ubuntu using terminal
#!/bin/sh
# 1st go SU
sudo su
# 2nd See the Disk list
fdisk -l
# 3rd Select the USB and umount usb. In my case /dev/sdc1 It can be different for you
umount /dev/sdc1
# 4th Formate the USB
@rakibulinux
rakibulinux / vTiger.sh
Last active January 24, 2023 14:12
How To Install vTiger CRM on Ubuntu
#!/bin/sh
sudo apt update
sudo apt install -y php php-cli php-mysql php-common php-zip php-mbstring php-xmlrpc php-curl php-soap php-gd php-xml php-intl php-ldap
sudo apt install -y apache2 libapache2-mod-php
sudo apt-get install mariadb-server
sudo systemctl start mariadb
sudo systemctl enable mariadb
@rakibulinux
rakibulinux / X-Frame.sh
Created January 19, 2020 17:57
X-Frame-Options - How to Combat Clickjacking on cPanel
#1. deny directive
#The deny directive completely disables the loading of the page in a frame, regardless of what site is trying. Below is what the header request will look like if this is enabled.
X-Frame-Options: deny
#2. sameorigin directive#
#The sameorigin directive allows the page to be loaded in a frame on the same origin as the page itself. Below is what the header request will look like if this is enabled.
X-Frame-Options: sameorigin