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
| #!/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 |
| #!/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 |
| #!/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 |
| 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 |
| 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. |
| #!/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" |
| #!/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 |