You must be
root
to follow the steps in this guide.
- Download and Install MariaDB. MariaDB is used in place of MySQL.
sudo apt-get install mariadb-server mariadb-client
- Set it up to run on boot.
#!/bin/bash | |
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04 | |
# Inspired from https://gist.github.com/faleev/3435377 | |
# Remove any existing packages: | |
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev | |
# Get the dependencies (Ubuntu Server or headless users): | |
sudo apt-get update |
sudo apt install ppp pptp-linux | |
echo "/etc/ppp/chap-secrets" | |
DOMAIN="vpn.shinobi.video" | |
echo "VPN Server User" | |
read vpnuser | |
echo "VPN Server Password" | |
read vpnpass | |
chapsecret="$DOMAIN\\$vpnuser PPTP $vpnpass *" | |
if grep -q $chapsecret /etc/ppp/chap-secrets; then | |
echo "Already Set." |
# Solution found here https://github.com/NVIDIA/nvidia-docker/issues/857#issuecomment-482379024 | |
DOCKER_CE_VERSION=`apt-cache show nvidia-docker2 | grep -Po "(?<=docker-ce \(= )([^)]*)" | head -n 1` | |
apt-get -yq install nvidia-docker2 docker-ce=${DOCKER_CE_VERSION} |
import 'dart:typed_data'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_vlc_player/vlc_player.dart'; | |
import 'package:flutter_vlc_player/vlc_player_controller.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatefulWidget { | |
@override |
#!/bin/bash | |
# ============================================================= | |
# UPDATE SOURCE | |
# ============================================================= | |
# git clone https://github.com/tensorflow/tensorflow | |
# git checkout -- . | |
# git pull origin master | |
# TF_BRANCH=r1.8 | |
TF_ROOT=/home/tensorflow |
PUBLICKEY="YOUR_PUBLIC_KEY_HERE" | |
echo "ssh-rsa $PUBLICKEY" >> ~/.ssh/authorized_keys | |
cat ~/.ssh/authorized_keys | |
sed -i 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config | |
sed -i 's/ChallengeResponseAuthentication yes/ChallengeResponseAuthentication no/g' /etc/ssh/sshd_config | |
sed -i 's/PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config | |
service sshd restart |
#!/bin/bash | |
## FORSTWOOF UBUNTU PRESEED :: BUILD SCRIPT | |
# Quit on first error | |
set -e | |
# Temporary directory for the build | |
TMP="/var/tmp/ubuntu-build" |
echo "=======================" | |
echo "Installing PPTP VPN Server..." | |
echo "=======================" | |
apt install pptpd -y | |
echo "Setting VPN Server IP : localip 172.16.0.1" | |
if grep -q "localip 172.16.0.1" /etc/pptpd.conf; then | |
echo "Already set." | |
else | |
sed -i 's/localip/#localip/g' /etc/pptpd.conf | |
echo "localip 172.16.0.1" >> /etc/pptpd.conf |
wget https://deb.nodesource.com/setup_12.x | |
chmod +x setup_12.x | |
./setup_12.x | |
sudo apt install nodejs make gcc-8 g++-8 -y | |
sudo apt install node-pre-gyp -y | |
rm setup_12.x | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8 |