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 / mariadb.sh
Created January 28, 2019 23:18
Setting up MariaDB Ubuntu 16.04 LTS
#!/bin/bash
sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64,arm64,i386,ppc64el] http://ftp.kaist.ac.kr/mariadb/repo/10.0/ubuntu xenial main'
sudo apt update
sudo apt install mariadb-server
sudo /etc/init.d/mysql start
sudo /etc/init.d/mysql reload
sudo /etc/init.d/mysql restart
@UbuntuEvangelist
UbuntuEvangelist / GitLab.sh
Last active March 12, 2019 13:38
GitLab Update To Latest
#!/bin/sh
sudo wget https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab-ce_7.10.4~omnibus-1_amd64.deb
sudo chmod 777 gitlab-ce_7.10.4~omnibus-1_amd64.deb
sudo touch /etc/gitlab/skip-auto-migrations
sudo dpkg -i gitlab-ce_7.10.4~omnibus-1_amd64.deb
sudo gitlab-ctl reconfigure
sudo gitlab-ctl restart
sudo wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/trusty/gitlab-ce_8.2.0-ce.0_amd64.deb/download.deb
sudo chmod 777 gitlab-ce_8.2.0-ce.0_amd64.deb

Firefly III install on Ubuntu 18.04

These instructions will install Firefly III on Ubuntu 18.04. It includes setup for:

  • PHP 7.2
  • Nginx
  • MariaDB
  • Securing an Ubuntu server
  • Securing Maria DB
  • Let's Encrypt
@UbuntuEvangelist
UbuntuEvangelist / chrome.sh
Created April 1, 2019 16:27
Update Google Chrome in Ubuntu
#!/bin/sh
# Update Google Chrome in Ubuntu
sudo wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
sudo apt-get install libnss3-1d
sudo apt-get --only-upgrade install google-chrome-stable
sudo apt-get upgrade
@UbuntuEvangelist
UbuntuEvangelist / edx.sh
Last active November 3, 2021 21:11
open edx install
sudo -i
apt update -y && apt-get upgrade -y
apt update -y
apt install build-essential checkinstall
apt install ubuntu-restricted-extras
apt install software-properties-common
apt install apt-show-versions
apt upgrade -o APT::Get::Show-Upgraded=true
apt-show-versions | grep upgradeable
apt update -y
@UbuntuEvangelist
UbuntuEvangelist / os.sh
Created April 23, 2019 19:52
osquery for autn
Using python and osquery write two scripts (server_script and client_script).
1. Server_script Acts as TLS server that Listens to connections from client script.
2. Once a connection is established, the server needs to authenticate the client (ensure it's allowed to connect to the server) using osquery.
3. The server script prompts user for an osquery to execute on client.
4. Server script passes the command to the client script.
5. Client_script authorizes the request (ensure it's coming from an authorized server) using osquery (osquery is the one that does the actual authorization).
6. Client_script executes the query and returns the result to the server.
7. Server prints the result on the screen or - in case of error - reports the error.
@UbuntuEvangelist
UbuntuEvangelist / update.sh
Last active February 24, 2024 18:41
Kannel 1.4.5 with OpenSMPP and SQLBox Installation Script for Ubuntu 18.04
#!/bin/sh
apt-get update
apt-get install mysql-server
wget --no-check-certificate https://ftp.gnu.org/gnu/bison/bison-1.28.tar.gz
tar -xvf bison-1.28.tar.gz
rm bison-1.28.tar.gz
cd bison-1.28
./configure --prefix=/usr/local/bison --with-libiconv-prefix=/usr/local/libiconv/
make
/* ====================================================================
* The Kannel Software License, Version 1.0
*
* Copyright (c) 2001-2010 Kannel Group
* Copyright (c) 1998-2001 WapIT Ltd.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
#!/bin/sh
sudo apt-get install curl gnupg debian-keyring debian-archive-keyring apt-transport-https -y
## Team RabbitMQ's main signing key
sudo apt-key adv --keyserver "hkps://keys.openpgp.org" --recv-keys "0x0A9AF2115F4687BD29803A206B73A36E6026DFCA"
## Launchpad PPA that provides modern Erlang releases
sudo apt-key adv --keyserver "keyserver.ubuntu.com" --recv-keys "F77F1EDA57EBB1CC"
## PackageCloud RabbitMQ repository
sudo apt-key adv --keyserver "keyserver.ubuntu.com" --recv-keys "F6609E60DC62814E"
@UbuntuEvangelist
UbuntuEvangelist / linuxbrew.sh
Last active August 12, 2021 23:05
Linuxbrew (un) install Linux
#!/bin/sh
# Linuxbrew (un)installer
# Install Linuxbrew
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
sudo apt-get install build-essential
echo 'eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)' >>~/.profile
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
brew install gcc