Create working directory:
mkdir ~/pxeboot
cd ~/pxeboot
Download grml netboot version:
sudo apt-get remove libobs* --purge | |
sudo apt-get remove obs-studio --purge | |
sudo add-apt-repository ppa:obsproject/obs-studio | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EFC71127F425E228 | |
sudo apt-get update | |
sudo apt-get -t artfull install obs-studio | |
obs --version |
#include <Adafruit_NeoPixel.h> | |
// Which pin on the Arduino is connected to the NeoPixels? | |
#define PIN 6 | |
// How many NeoPixels are attached to the Arduino? | |
#define NUMPIXELS 30 | |
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800); |
#!/bin/bash | |
free_data="$(free)" | |
mem_data="$(echo "$free_data" | grep 'Mem:')" | |
free_mem="$(echo "$mem_data" | awk '{print $4}')" | |
buffers="$(echo "$mem_data" | awk '{print $6}')" | |
cache="$(echo "$mem_data" | awk '{print $7}')" | |
total_free=$((free_mem + buffers + cache)) | |
used_swap="$(echo "$free_data" | grep 'Swap:' | awk '{print $3}')" |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
Use this generator -> http://debgen.simplylinux.ch/
Edit sources.list
file
root@mpd:# vim /etc/apt/sources.list
Copy/paste following code
iptables -I OUTPUT -o tun+ -j ACCEPT | |
iptables -I INPUT -i tun+ -m state --state ESTABLISHED,RELATED -j ACCEPT | |
iptables -I FORWARD -o tun+ -j ACCEPT | |
iptables -I FORWARD -i tun+ -m state --state ESTABLISHED,RELATED -j ACCEPT | |
iptables -t nat -I POSTROUTING -o tun+ -j MASQUERADE |
user nginx; | |
worker_processes 1; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} |