Skip to content

Instantly share code, notes, and snippets.

View afahitech's full-sized avatar

Ataur Rahman afahitech

View GitHub Profile
@afahitech
afahitech / ssh.sh
Last active December 3, 2021 15:47
Generating a new SSH key Linux
#!/bin/bash
$ ssh-keygen -t rsa -b 4096 -C "afahitech@gmail.com"
$ eval "$(ssh-agent -s)"
$ ssh-add ~/.ssh/id_rsa
$ cat /home/hira/.ssh/id_rsa.pub
# YouTybe: https://youtu.be/qiB5bWrNrOs
@afahitech
afahitech / OBS STUDIO
Last active November 19, 2019 17:17
Installing OBS studio in Obuntu
#!/bin/bash
$ sudo add-apt-repository ppa:obsproject/obs-studio
$ sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next
$ sudo apt-get update
$ sudo apt-get install obs-studio
# Youtube: https://youtu.be/vri77MZA0qE
@afahitech
afahitech / keybase.md
Created November 24, 2019 15:14
my keybase (do not remove)

Keybase proof

I hereby claim:

  • I am afahitech on github.
  • I am afahitech (https://keybase.io/afahitech) on keybase.
  • I have a public key whose fingerprint is 9A3A 9EA6 78E6 3485 E71F 8738 01D7 AD48 3DE9 83D5

To claim this, I am signing this object:

@afahitech
afahitech / lamp.sh
Last active April 1, 2020 18:53
LAMP Install Ubuntu 18.04 LTS
# YouTube: https://youtu.be/zhIxe4AuxmI
# Install Apache to check from web browser using 0.0.0.0 or localhost, check version, start,stop & restart Apache into Ubuntu
sudo apt update
sudo apt upgrade
sudo apt install apache2
apache2 -v
sudo service apache2 start
sudo systemctl enable apache2
sudo service apache2 stop
sudo service apache2 start
@afahitech
afahitech / things.sh
Created December 8, 2019 15:59 — forked from kngvamxx/things.sh
Things To Do After Installing Ubuntu 18.04 LTS Desktop
#!/bin/sh
# This command will update & upgrade your system
sudo apt update && sudo apt-get upgrade --fix-missing
# Install the package build-essential for making the package and checkinstall for putting it into your package manager
sudo apt install build-essential checkinstall
# Install Ubuntu Restricted Extras
sudo apt install ubuntu-restricted-extras
@afahitech
afahitech / git.sh
Created December 8, 2019 16:49
Git Install Linux
# To install Latest Git
sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt install git
git --version
# To configure Git
sudo git config --global user.name "YourName"
sudo git config --global user.email youremail@gmail.com
@afahitech
afahitech / build_mysql.sh
Created December 26, 2019 14:51 — forked from huangqiheng/build_mysql.sh
Build and install MySQL 5.1 from source on Ubuntu 18.04
#!/bin/bash
# Run as root
set -e
apt-get update
apt-get install -y build-essential
apt-get install -y libncurses5-dev
useradd mysql
@afahitech
afahitech / php,sh
Last active December 26, 2019 15:31
Install PHP version 5.6
$ sudo add-apt-repository ppa:ondrej/apache2
$ sudo apt-get update
$ sudo apt-get install -y php5.6
$ php -v
$ php --version
@afahitech
afahitech / rocketchat.sh
Created January 6, 2020 07:14
Set Up Rocket Chat
##Step 1: Install MongoDB
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt update
sudo apt install -y mongodb-org
sudo systemctl stop mongod.service
@afahitech
afahitech / ntopng.sh
Created January 6, 2020 15:57
Ntopng Install in ubuntu 18.04
# Update system
apt-get update
apt-get upgrade
# Install Ntopng
apt-get install ntopng
nano /etc/ntopng.conf
systemctl restart ntopng