This is a work in progress, proceed with caution
- Install Proxmox 6.X iso I selected 2 drives in Raid 1 mirror
- Console/SSH into Proxmox
- nano /etc/apt/sources.list
#!/bin/bash | |
set -e -o errexit -o pipefail -o nounset | |
################################### | |
# This script can be used by itself, but it's recommended that you read | |
# a tutorial on Proxmox forum first: https://forum.proxmox.com/threads/hey-proxmox-community-lets-talk-about-resources-isolation.124256/ | |
################################### | |
# Do not modify these variables (set by Proxmox when calling the script) | |
vmId="$1" |
Mac Network Commands Cheat Sheet | |
After writing up the presentation for MacSysAdmin in Sweden, I decided to go ahead and throw these into a quick cheat sheet for anyone who’d like to have them all in one place. Good luck out there, and stay salty. | |
Get an ip address for en0: | |
ipconfig getifaddr en0 | |
Same thing, but setting and echoing a variable: |
FROM ubuntu:raring | |
# ubuntu raring image doesn't have universe repo | |
run echo "deb http://archive.ubuntu.com/ubuntu raring main universe" > /etc/apt/sources.list | |
run apt-get update | |
RUN apt-get install -y wget | |
# install ROS | |
RUN sh -c 'echo "deb http://packages.ros.org/ros/ubuntu raring main" > /etc/apt/sources.list.d/ros-latest.list' | |
RUN wget http://packages.ros.org/ros.key -O - | apt-key add - |
''' | |
Stream the Kivy window into a MJPEG HTTP server | |
=============================================== | |
:Configuration: | |
`ip` : str, default to '' | |
By default, server will listen on all ips availables | |
`port` : int, default to 8000 | |
TCP Port to listen | |
`fps` : int, default to 20 |
#!/usr/bin/python | |
#based on the ideas from http://synack.me/blog/implementing-http-live-streaming | |
# Run this script and then launch the following pipeline: | |
# gst-launch videotestsrc pattern=ball ! video/x-raw-rgb, framerate=15/1, width=640, height=480 ! jpegenc ! multipartmux boundary=spionisto ! tcpclientsink port=9999 | |
from Queue import Queue | |
from threading import Thread | |
from socket import socket | |
from select import select | |
from wsgiref.simple_server import WSGIServer, make_server, WSGIRequestHandler |
# | |
# Copyright (C) 2013 Vinay Sajip. New BSD License. | |
# | |
import os | |
import os.path | |
from subprocess import Popen, PIPE | |
import sys | |
from threading import Thread | |
from urllib.parse import urlparse | |
from urllib.request import urlretrieve |