Skip to content

Instantly share code, notes, and snippets.

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

Masum UbuntuEvangelist

🏠
Working from home
View GitHub Profile
@UbuntuEvangelist
UbuntuEvangelist / install.sh
Created February 4, 2018 18:57 — forked from ziadoz/install.sh
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
@UbuntuEvangelist
UbuntuEvangelist / install-tomcat-8.5.14.sh
Created March 8, 2018 22:19 — forked from Clivern/install-tomcat-8.5.14.sh
How to Install Apache Tomcat 8 on Ubuntu 16.04
#!/bin/bash
# For More Info http://clivern.com/how-to-install-apache-tomcat-8-on-ubuntu-16-04
sudo apt-get update
sudo apt-get install default-jdk
sudo apt-get install unzip
cd /opt
curl -O http://apache.mirrors.ionfish.org/tomcat/tomcat-8/v8.5.15/bin/apache-tomcat-8.5.15.zip
sudo unzip apache-tomcat-8.5.15.zip
sudo mv apache-tomcat-8.5.15 tomcat
@UbuntuEvangelist
UbuntuEvangelist / HyperledgerComposer.sh
Created June 29, 2018 11:20
Hyperledger Composer Playground Install Ubuntu!
#!/bin/sh
## inherit from https://chaincodedevs.com/showthread.php?tid=3
## https://www.youtube.com/channel/UCIQAZN1lUU4vHCRJY_maOfw
sudo adduser playground
sudo usermod -aG sudo playground
sudo su - playground
sudo curl -O https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh
sudo chmod u+x prereqs-ubuntu.sh
sudo ./prereqs-ubuntu.sh
sudo su - playground
@UbuntuEvangelist
UbuntuEvangelist / setup.sh
Last active August 3, 2018 00:03
compile and install squid to run with more than 128 IPs on Ubuntu 16.04
sudo apt-get update && sudo apt-get upgrade --fix-missing
sudo apt-get install build-essential
sudo apt-get install build-essential checkinstall
sudo apt-get install ubuntu-restricted-extras
sudo add-apt-repository -y ppa:videolan/stable-daily
sudo add-apt-repository -y ppa:gnome3-team/gnome3
sudo add-apt-repository -y ppa:webupd8team/java
sudo add-apt-repository -y ppa:webupd8team/y-ppa-manager
@UbuntuEvangelist
UbuntuEvangelist / fireworks.sh
Created August 20, 2018 22:01
Fireworks from the Command Line
#!/bin/bash
rows=$(tput lines)
cols=$(tput cols)
colors=(red green blue purple cyan yellow brown)
lock_file=
lock_file_base=/tmp/$(basename $0 .sh)
multiple=0
if [[ "$1" ]]; then
@UbuntuEvangelist
UbuntuEvangelist / powershell.sh
Last active December 12, 2018 10:27
PowerShell Install Ubuntu 16.04.5 LTS
#!/bin/bash
# This script will setup powershell into Ubuntu 16.04 LTS
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
curl https://packages.microsoft.com/config/ubuntu/14.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
sudo apt-get update
sudo apt-get install -y powershell
pwsh
@UbuntuEvangelist
UbuntuEvangelist / anaconda.sh
Created December 14, 2018 17:33
Install Anaconda on Ubuntu 18.04 LTS
# This script will Install Anaconda on Ubuntu 18.04 LTS
sudo apt-get update -y && sudo apt-get upgrade -y
cd /tmp/
wget https://repo.anaconda.com/archive/Anaconda3-5.0.1-Linux-x86_64.sh
md5sum Anaconda3-5.0.1-Linux-x86_64.sh
bash Anaconda3-5.0.1-Linux-x86_64.sh
source ~/.bashrc
conda list
conda create --name myenv python=3
@UbuntuEvangelist
UbuntuEvangelist / qt512.sh
Last active January 16, 2019 17:41
Install qt 5.12 into Ubuntu 18.10 Box
#!/bin/bash
# this script will install qt 5.12 into Ubuntu 18.10 Box
# http://download.qt.io/official_releases/qt/5.12/5.12.0/
# https://wiki.qt.io/Install_Qt_5_on_Ubuntu
sudo wget http://download.qt.io/official_releases/qt/5.12/5.12.0/qt-opensource-linux-x64-5.12.0.run
sudo chmod +x qt-opensource-linux-x64-5.12.0.run
./qt-opensource-linux-x64-5.12.0.run
sudo apt-get install build-essential
sudo apt-get install libfontconfig1
@UbuntuEvangelist
UbuntuEvangelist / php559.sh
Last active January 20, 2019 19:03
php 5.5.9 install ubuntu 18.0
#!/bin/bash
# run all commands from root
# source http://www.linuxfromscratch.org/blfs/view/7.5/general/php.html
apt update && sudo apt-get upgrade --fix-missing
apt install build-essential checkinstall
apt install ubuntu-restricted-extras
apt list --upgradable
apt upgrade -y
apt update -y
@UbuntuEvangelist
UbuntuEvangelist / rvm.sh
Created January 28, 2019 22:40
Installing RVM in Ubuntu 16.04+ LTS
#!/bin/bash
# run from root user
apt-get update
apt-get install curl
\curl -sSL https://get.rvm.io | bash -s stable
gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
source ~/.rvm/scripts/rvm
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
gpg --import mpapis.asc