- name: RancherOS
- need RAM <1280MB
- https://github.com/rancher/os/releases/download/v1.4.2/rancheros.iso
- use
Puttygen
to generate ssh keys - convert private key back to OpenSSH format
[Conversions -> Export OpenSSH key]
FROM node:alpine | |
COPY server.js / | |
EXPOSE 80 | |
ENTRYPOINT ["node", "/server.js"] |
# install pychromecast | |
pip install pychromecast | |
# get a patch for YOUTUBE CONTROLLER to work | |
wget -O PYTHON_DIR/LIB/site-packages/pychromecast/pychromecast/controllers/youtube.py \ | |
https://github.com/ur1katz/pychromecast/raw/master/pychromecast/controllers/youtube.py |
#!/usr/bin/env python | |
import asyncio | |
import logging | |
async def periodic_worker(loop): | |
wait_sec = 1.0 | |
while True: | |
t0 = loop.time() | |
await asyncio.sleep(wait_sec) |
#!/usr/bin/python3 | |
import os.path | |
from time import ctime | |
from multiprocessing import Pool | |
from subprocess import call | |
# Define variables | |
HOME = "/home/pi/workplace" | |
BIN = os.path.join(HOME, "bin") | |
PY = os.path.join(HOME, "py") |
Puttygen
to generate ssh keys[Conversions -> Export OpenSSH key]
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
export LANG=en_US.UTF-8
volumes: | |
example_vol: | |
driver_opts: | |
type: "nfs4" | |
o: "addr=SERVER_IP,nolock,hard,rw" | |
device: ":/path/to/dir" |
Loop devices are how entire file systems can be mounted. If you have had any experience with most virtualization (eg KVM, Virtualbox, VMware, etc) the most common way Guests store data is in a file (aka virtual disk) which can contain an entire operating system or more on a specified file system. The "virtual disk" file with its contents is mounted for use by the Guest and generally protected from other access.
In the same way, it might be useful to mount an ISO file for access without burning the file's contents to an optical disk (CD or DVD typically).
There are other scenarios where it's useful to mount file systems so that they are accessible from the currently running system.
The file containing the file system that attached to a loop device is typically called a backing file.
The modules blacklisted here takes over the pressure and magnetic sensors of the Sense HAT device which prevents other applications from using those sensors.
Create the file /etc/modprobe.d/blacklist-industialio.conf
with the following contents:
blacklist st_magn_spi
blacklist st_pressure_spi
blacklist st_sensors_spi