Skip to content

Instantly share code, notes, and snippets.

View mansurali901's full-sized avatar

Mansur Ul Hasan mansurali901

View GitHub Profile
# This script install OpenJDK 1.8 in Ubuntu 16.04
# Author Mansur Ul Hasan
# [email protected]
# Adding PPA repository
add-apt-repository ppa:openjdk-r/ppa -y
# Updating System Repository
apt-get update -y
#!/bin/bash
# This script is written to install Bower Node and NPM
# on Ubuntu Server 16.04 & 14.04 LTS
# Author Mansur Ul Hasan
# Email [email protected]
echo "Downloading Meta Items..."
wget -O - http://debian.neo4j.org/neotechnology.gpg.key | apt-key add -
echo 'deb http://debian.neo4j.org/repo stable/' > /etc/apt/sources.list.d/neo4j.list
@mansurali901
mansurali901 / setup_bower-node-npm.sh
Last active November 7, 2017 04:24
Setup Bower NPM & Node
#!/bin/bash
# This script is written to install Bower Node and NPM
# on Ubuntu Server 16.04 & 14.04 LTS
# Author Mansur Ul Hasan
# Email [email protected]
install_proc () {
echo "Downloading Source Setup"
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sleep 2
@mansurali901
mansurali901 / setup_redisserver.sh
Created September 5, 2017 06:34
Setting Up Redis Server on Ubuntu 16.04 LTS
#!/bin/bash
# This script is written to install redis
# on Ubuntu Server 16.04 & 14.04 LTS
# Author Mansur Ul Hasan
# Email [email protected]
Configuration_Redis () {
echo "Configuration Started...!"
mkdir /etc/redis
## PhantomJS Secret dependencies for CasperJS
Rapt-get install libfontconfig -y
## Installing NodeJS
apt-get install nodejs -y
## Installing NPM
apt-get install npm -y
apt-get install pkg-config make g++ -y
#RUN add-apt-repository ppa:chris-lea/node.js -y
#RUN apt-get update -y
#RUN apt-get install nodejs -y
################## Setting up JAVA ##################
##echo "Downloading JAVA JDK 1.8 from Local repository......"
wget https://www.dropbox.com/s/dwsqw6gofynaf5e/jdk1.8.0_91.tar?dl=0
mv jdk1.8.0_91.tar?dl=0 jdk1.8.0_91.tar
##echo "Installing JAVA JDK 1.8"
mkdir -p /usr/java
mv jdk1.8.0_91.tar /usr/java/
#cd /usr/java/
@mansurali901
mansurali901 / setup_mongo_3.2.15.sh
Last active September 5, 2017 07:58
Install Mongo 3.2.15 in Ubuntu 16.04
# This script install Mongo 3.2.15 in Ubuntu 16.04
# Author Mansur Ul Hasan
# [email protected]
# Adding gpg key
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
# Adding MongoDB repository
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
@mansurali901
mansurali901 / setup_php_5.4.3_ubuntu.sh
Last active September 5, 2017 07:59
Install PHP 5.4.3 In UBUNTU and Debian
#!/bin/bash
# This script is used to install PHP 5.4.3
# In UBUNTU and Debian
# Author : Mansur Ul Hasan
# Email : [email protected]
# Compile / Install PHP from Source
cd /usr/local/src
wget -O- https://s3-us-west-2.amazonaws.com/lamp-software/latest/php-5.4.33.tar.gz | tar -zxf -
cd php-5.4.33
@mansurali901
mansurali901 / Setup_SQUID-3.1.23_CentOS.sh
Last active September 5, 2017 08:00
SQUID 3.1.23Installation Automation
#!/bin/bash
# SQUID Installation automation
# Author Mansur Ul Hasan
# [email protected]
echo "
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Installation script for SQUID 3.1.23
This script is designed by
Mansur Ul Hasan
@mansurali901
mansurali901 / linuxmonitoring.sh
Last active January 17, 2025 05:11
Linux system monitoring system
#!/bin/bash
# This script is written to collect system stats.
# Author : Mansur Ul Hasan
# Email : [email protected]
# Check RAM and SWAP Usages
free -m | grep -v "+\|You" > /tmp/ramcache
echo -e '\E[32m'"Ram Usages :" $tecreset
cat /tmp/ramcache | grep -v "Swap"
echo -e '\E[32m'"Swap Usages :" $tecreset