##Installation
Build XMRig according to build instructions: https://github.com/xmrig/xmrig/wiki/Ubuntu-Build
Copy the respective service files to /etc/systemd/system/
Reload the systemd daemon:
# systemctl daemon-reload
#tmux2.1 | |
new-session | |
set -g mouse on | |
set -g history-limit 30000 |
#!/bin/bash | |
printf "%s" "$GREEN" | |
route delete default | |
route delete default | |
route delete default | |
route delete default | |
route add default gw 192.168.27.3 | |
sed -i '/route delete default/d' /etc/rc.local | |
sed -i '/route add default gw 192.168.27.252.*/d' /etc/rc.local | |
sed -i '/route add default gw 192.168.27.253.*/d' /etc/rc.local |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
#!/bin/sh | |
DEF_IF=$(route | grep '^default' | grep -o '[^ ]*$') | |
iptables -P INPUT ACCEPT | |
iptables -P OUTPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -X | |
iptables -X -t nat | |
iptables -F | |
iptables -F -t nat |
#!/bin/bash | |
apt-get update | |
apt-get install -y software-properties-common | |
apt-get install -y python-virtualenv python-dev libxml2 libxml2-dev libxslt1-dev zlib1g-dev libjpeg-dev libpq-dev libgdal-dev git default-jdk | |
apt-get install -y build-essential openssh-server gettext nano vim unzip zip patch git-core postfix | |
apt-add-repository -y ppa:webupd8team/java | |
apt-get update | |
apt-get install -y oracle-java8-installer | |
apt-add-repository -y ppa:ubuntugis && apt-get update && apt-get upgrade | |
apt-add-repository -y ppa:ubuntugis/ppa && apt-get update && apt-get upgrade |
#------------------------------------------------------------------------------# | |
# OFFICIAL UBUNTU REPOS # | |
#------------------------------------------------------------------------------# | |
###### Ubuntu Main Repos | |
deb http://ph.archive.ubuntu.com/ubuntu/ artful main restricted universe multiverse | |
deb-src http://ph.archive.ubuntu.com/ubuntu/ artful main restricted universe multiverse | |
###### Ubuntu Update Repos |
Create the network config | |
vi network-config.yml | |
version: 1 | |
config: | |
- type: physical | |
name: eth0 | |
subnets: | |
- type: static | |
ipv4: true |
# On the host | |
============= | |
lxc profile set default raw.lxc 'lxc.cgroup.devices.allow = c 10:200 rwm' | |
lxc profile device add default tun unix-char path=/dev/net/tun | |
# In the container | |
================== | |
1. mknod /dev/net/tun c 10 200 |
##Installation
Build XMRig according to build instructions: https://github.com/xmrig/xmrig/wiki/Ubuntu-Build
Copy the respective service files to /etc/systemd/system/
Reload the systemd daemon:
# systemctl daemon-reload
# Unbound configuration file for Debian. | |
# See the unbound.conf(5) man page. | |
# See /usr/share/doc/unbound/examples/unbound.conf for a commented | |
# reference config file. | |
server: | |
# The following line will configure unbound to perform cryptographic | |
# DNSSEC validation using the root trust anchor. | |
auto-trust-anchor-file: "/var/lib/unbound/root.key" | |
server: |