Skip to content

Instantly share code, notes, and snippets.

View linuxbiekaisar's full-sized avatar
🏠
Working from home

Mohammad Kaisar Hamid linuxbiekaisar

🏠
Working from home
View GitHub Profile
@linuxbiekaisar
linuxbiekaisar / powershell.sh
Created February 28, 2020 14:52
Install Powershell on Ubuntu 18.04 LTS
# To install Powershell on Ubuntu 18.04 LTS run the given command to add the repository to your Ubuntu 18.04 system.
sudo apt-get update && sudo apt -y install wget
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
# After it update package index list and Install PowerShell by typing
sudo apt update
sudo apt -y install powershell
# To test powershell on your Ubuntu 18.04, try the following command
@linuxbiekaisar
linuxbiekaisar / netdata.sh
Last active March 5, 2020 17:01
Netdata install on Ubuntu
# Youtube: https://www.youtube.com/watch?v=H5mR2peIHhY
#!/bash/sh
sudo apt-get update
sudo apt-get upgrade
bash <(curl -Ss https://my-netdata.io/kickstart.sh)
@linuxbiekaisar
linuxbiekaisar / OpenVAS.sh
Last active March 3, 2020 13:21
Install OpenVAS on Ubuntu 18.04 LTS
#!/bin/bash
Youtube: https://www.youtube.com/watch?v=N6tVmSW4lVg
# add the ppa repo, update your system
sudo add-apt-repository ppa:mrazavi/openvas
sudo apt-get update
# install the required packages
@linuxbiekaisar
linuxbiekaisar / Ruby.sh
Created March 5, 2020 17:11
How to install Ruby on Ubuntu 18.04 LTS
# youtube: https://www.youtube.com/watch?v=OBJ4YRE13IA
#!/bin/bash
# Download Ruby version from the link: https://www.ruby-lang.org/en/news/2019/10/01/ruby-2-5-7-released/
# Go to dowload folder using command
cd Downloads
# Extract the downloaded Ruby file using
tar -zxvf ruby-2.5.7.tar.gz
@linuxbiekaisar
linuxbiekaisar / Redis.sh
Created March 5, 2020 18:18
Install Redis on Ubuntu 18.04 LTS
# youtube: https://studio.youtube.com/video/zrjecEOD0Cw/edit
#!/bin/bash
# Use the following command to install Redis
sudo apt-get install redis-server
sudo apt-get update
cd redis
wget http://download.redis.io/releases/redis-5.0.7.tar.gz
tar xzf redis-5.0.7.tar.gz
@linuxbiekaisar
linuxbiekaisar / RabbitMQ.sh
Last active March 6, 2020 17:48
How to install RabbitMQ on Ubuntu
#!/bash/sh
# Youtube: youtube.com/watch?v=TYNbiR12XZg
# To install RabbitMQ on Ubuntu use u/m commands:
# First install erlang language
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
@linuxbiekaisar
linuxbiekaisar / WordpressWithLAMPStack.sh
Created March 8, 2020 13:55
Wordpress Setup using LAMP Stack on Ubuntu
# Use SSH login or root login to Connect to your Server
sudo -i
# then use these commands
apt-get update
apt-get upgrade
# Apache Web Server Installation
apt-get install apache2
systemctl enable apache2
@linuxbiekaisar
linuxbiekaisar / LEMP Stack.sh
Last active April 23, 2020 17:11
Install Nginx, Php and Mariadb on Ubuntu
# Youtube: https://www.youtube.com/watch?v=CdK8Nb-ED9M
#Install NGINX
sudo apt-get update
sudo apt-get install nginx
sudo systemctl start nginx
sudo systemctl enable nginx
sudo systemctl restart nginx
sudo systemctl stop nginx
sudo systemctl start nginx
sudo systemctl status nginx
@linuxbiekaisar
linuxbiekaisar / WordpressUsingLEMP
Last active March 12, 2020 05:35
Wordpress Installation using LEMP stack server (Nginx, Mariadb & PHP)
Youtube: https://www.youtube.com/watch?v=sZNeeynK-ZU&t=1708s
#!/bin/sh
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get autoremove
#Install NGINX
sudo apt-get install nginx
#Install MariaDB
@linuxbiekaisar
linuxbiekaisar / ufw.sh
Created March 11, 2020 17:20
Ufw enable, disable, status, port open
#!/bin/sh
# Check a current firewall status:
sudo ufw status
# For more verbose output append word verbose
sudo ufw status verbose
# How to enable firewall:
sudo ufw enable
# How to disable firewall:
sudo ufw disable
# How to install a graphical ufw: