Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Sabbir Ahmad ispguru

🏠
Working from home
View GitHub Profile
@ispguru
ispguru / lemp.sh
Last active Jan 22, 2020
LEMP(NGINX) Setup on Ubuntu 18.04
View lemp.sh
#!/bin/bash
sudo apt update
sudo apt install nginx
sudo ufw allow 'Nginx HTTP'
sudo ufw status
sudo apt install mysql-server
sudo mysql_secure_installation
sudo mysql
mysql -u root -p
sudo add-apt-repository universe
@ispguru
ispguru / wordpress.sh
Last active Jan 21, 2020
How to setup Wordpress on Ubuntu 18.04
View wordpress.sh
#!/bin/bash
apt update && apt upgrade
sudo apt update && apt upgrade
apt install apache2
sudo apt install apache2
sudo systemctl status apache2
sudo apt install mariadb-server mariadb-client
sudo mysql_secure_installation
sudo apt install php php-mysql
sudo vim /var/www/html/info.php
@ispguru
ispguru / rabbitmq.sh
Last active Jan 20, 2020
RabbitMQ Setup On Ubuntu 18.04
View rabbitmq.sh
#!/bin/bash
#Step-1: You have to install Erlang as prerequsite for Rabbitmq
wget -O- https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | sudo apt-key add -
echo "deb https://packages.erlang-solutions.com/ubuntu bionic contrib" | sudo tee /etc/apt/sources.list.d/rabbitmq.list
sudo apt update
sudo apt -y install erlang
#Step 2: Add RabbitMQ Repository To Ubuntu 18.04
wget -O- https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc | sudo apt-key add -
wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
@ispguru
ispguru / rabbitmq.sh
Created Jan 20, 2020
RabbitMQ Setup On Ubuntu 18.04
View rabbitmq.sh
#!/bin/bash
#Step-1: You have to install Erlang as prerequsite for Rabbitmq
wget -O- https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | sudo apt-key add -
echo "deb https://packages.erlang-solutions.com/ubuntu bionic contrib" | sudo tee /etc/apt/sources.list.d/rabbitmq.list
sudo apt update
sudo apt -y install erlang
#Step 2: Add RabbitMQ Repository To Ubuntu 18.04
wget -O- https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc | sudo apt-key add -
wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
@ispguru
ispguru / redis.sh
Last active Jan 20, 2020
How Setup redis in ubuntu 18.04
View redis.sh
#!/bin/bash
# step-1 : Install and Configuration
sudo apt update
sudo apt install redis-server
sudo nano /etc/redis/redis.conf
#The supervised directive is set to no by default.
#Since you are running Ubuntu, which uses the systemd init system, change this to systemd. (Supervised systemd)
sudo systemctl restart redis.service
#step-2 : Testing Redis
@ispguru
ispguru / install_ruby.sh
Last active Jan 20, 2020
Install ruby2.5.3 on ubuntu 18.04
View install_ruby.sh
#!/bin/bash
sudo apt update
wget https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.3.zip
sudo unzip ruby-2.5.3.zip
cd ruby-2.5.3
sudo ./configure
sudo make
sudo make check
sudo make install
#to check ruby version
@ispguru
ispguru / packetTracer7_2_2.sh
Last active Nov 21, 2019
PacketTracer in Ubuntu 18.04
View packetTracer7_2_2.sh
#!/bin/bash
#Log in to netacad.com (or register first, it's free)
#Go to Resources->Download Packet Tracer
#Click the link for "64 Bit Download" under Linux Desktop Version 7.2 English
#Move the downloaded file to the folder of your choice and extract it. Note that sudo is required to avoid permission problems
sudo cd Download
sudo chmod +x PacketTracer-7.2.2-ubuntu-setup.run
sudo ./PacketTracer-7.2.2-ubuntu-setup.run
sudo wget http://ftp.debian.org/debian/pool/main/libp/libpng/libpng12-0_1.2.50-2+deb8u3_amd64.deb
sudo dpkg -i libpng12-0_1.2.50-2+deb8u3_amd64.deb
@ispguru
ispguru / things.sh
Last active Nov 21, 2019
This Command for new installation ubuntu 18.04
View things.sh
#!/bin/bash
sudo apt update && sudo apt-get upgrade --fix-missing
sudo apt install build-essential checkinstall
sudo apt install ubuntu-restricted-extras
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt update
sudo apt install launchpad-getkeys
sudo launchpad-getkeys
sudo apt install kazam
sudo wget https://download.anydesk.com/linux/deb/anydesk_5.4.1-1_i386.deb
@ispguru
ispguru / minikube.sh
Last active Dec 15, 2019
Setup Minikube on Ubuntu 18.04
View minikube.sh
#!/bin/bash
sudo apt update
sudo apt-get install apt-transport-https
udo apt-get upgrade
sudo apt install virtualbox virtualbox-ext-pack
wget https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
chmod +x minikube-linux-amd64
sudo mv minikube-linux-amd64 /usr/local/bin/minikube
minikube version
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
@ispguru
ispguru / ntopng.sh
Last active Nov 21, 2019
Ntopng Installation in ubuntu 18.04
View ntopng.sh
#!/bin/bash
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install ntopng
sudo systemctl restart ntopng
sudo ntopng -h
sudo ufw enable
sudo ufw allow 3000
firefox http://localhost:3000/
You can’t perform that action at this time.