Skip to content

Instantly share code, notes, and snippets.

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

Karim AnythingLinux

🏠
Working from home
View GitHub Profile
@AnythingLinux
AnythingLinux / tomcat.sh
Created June 24, 2020 15:33 — forked from linuxbiekaisar/tomcat.sh
How to install tomcat on ubnuntu 18.04 LTS
# Youtube: https://www.youtube.com/watch?v=4AVIAz0vbaA&t=4s
#!/bin/sh
# Tomcat installation on Ubuntu:
# ==============================
# Install OpenJDK
sudo apt install default-jdk
@AnythingLinux
AnythingLinux / Raspeberry.sh
Last active August 12, 2021 23:04
Open the Terminal app on your Raspeberry Pi, then run each command below:
#!/bin/sh
sudo apt update && sudo apt-get upgrade --fix-missing
sudo apt install build-essential checkinstall
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install -y rpi-chromium-mods
sudo apt-get install -y python-sense-emu python3-sense-emu
sudo apt-get install -y python-sense-emu-doc realvnc-vnc-viewer
@AnythingLinux
AnythingLinux / finertech.sh
Last active June 7, 2020 10:18
Apache Fineract Setup Linux
# setup Java >= 11 (OpenJDK JVM)
# setup MySQL
# setup docker
# setup docker compose
# clone Apache Fineract from github
# Deploy
# docker Install
sudo -i
apt update
@AnythingLinux
AnythingLinux / xenioscoin.sh
Last active May 27, 2020 17:54
Xenioscoin Dependencies Ubuntu 18.04.4 LTS
#!/bin/bash
# List of packages to install before building xenioscoin
packagelist=(
git
libssl-dev
libccd-dev
libboost-all-dev
miniupnpc
libqrencode-dev
@AnythingLinux
AnythingLinux / list.sh
Created May 27, 2020 12:39
List of packages to install before building Janus
#!/bin/bash
# List of packages to install before building Janus
packagelist=(
git
libmicrohttpd-dev
libjansson-dev
libssl-dev
libsrtp-dev
libsofia-sip-ua-dev
@AnythingLinux
AnythingLinux / uptodate.sh
Created May 25, 2020 00:22
Keep Ubuntu or Debian up to date
#!/bin/sh
sudo apt-get update && sudo apt-get upgrade --fix-missing
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoremove

#Ubuntu for Development and SRE Work

###Upstart Fix Ubuntu has recently made the switch to SystemD. Not a bad thing, but many scripts (like the SSH one coming up next) still use Upstart. Lukcily we have a quick fix to tide us ove in the interim.

sudo apt-get install -y upstart-sysv

###Remove CDROM from Soures sudo sed -i '/cdrom/d' /etc/apt/sources.list

#!/bin/sh
# NOTE: all spaces must be escaped with backslash...also...you can't use quotes
# This needs to be 'posix compliant'
# TODO: have a single host variable
# shellcheck disable=SC2034
APP_ROOT=/srv/primero/application
APP_SHARE_DIR=/share/public
@AnythingLinux
AnythingLinux / Jitsi.sh
Created April 16, 2020 14:58
How install Jitsi in Ubuntu 18.04 LTS
# !/bin/sh
# Jitsi Installation:
# ===================
# To install jitsi on ubuntu run the following commands.
# TO configure a the hostname of the server corresponding to your domain / subdomain name:
hostnamectl set-hostname jitsi
sed -i 's/^127.0.1.1.*$/127.0.1.1 jitsi.mydomain.tld jitsi/g' /etc/hosts