Just some FYI, to get started:
- I'm using a 16 GB Sandisk SD card.
- I have a model B Pi, 512 MB RAM (not really relevant, thought I'd mention it).
- Monitor and keyboard connected to the Pi itself, for now.
- Network working, internet access.
#!/usr/bin/env python | |
""" | |
Copyright 2011 Domen Kozar. All rights reserved. | |
Redistribution and use in source and binary forms, with or without modification, are | |
permitted provided that the following conditions are met: | |
1. Redistributions of source code must retain the above copyright notice, this list of | |
conditions and the following disclaimer. |
# ReachView code is placed under the GPL license. | |
# Written by Egor Fedorov ([email protected]) | |
# Copyright (c) 2015, Emlid Limited | |
# All rights reserved. | |
# If you are interested in using ReachView code as a part of a | |
# closed source project, please contact Emlid Limited ([email protected]). | |
# This file is part of ReachView. |
@echo off | |
setlocal enableextensions | |
chcp 65001 | |
set input=%1 | |
set device=%2 | |
set loglevel=quiet | |
for %%i in ("%~f1") do set dirname=%%~dpi | |
for %%i in ("%~f1") do set extension=%%~xi | |
set tempfile=%dirname%%RANDOM%-temp.m4a |
#!/usr/bin/env python3 | |
#original script by Hanashi from PIA forums, mods to update transmission by Doonze | |
#converted to python3 and Deluge support added by Rastan | |
### IMPORTS | |
import requests | |
import json | |
import sys | |
import netifaces |
import socket | |
hostname, sld, tld, port = 'www', 'integralist', 'co.uk', 80 | |
target = '{}.{}.{}'.format(hostname, sld, tld) | |
# create an ipv4 (AF_INET) socket object using the tcp protocol (SOCK_STREAM) | |
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
# connect the client | |
# client.connect((target, port)) |
{ lib }: | |
with lib; rec { | |
pow = | |
let | |
pow' = base: exponent: value: | |
# FIXME: It will silently overflow on values > 2**62 :( | |
# The value will become negative or zero in this case | |
if exponent == 0 | |
then 1 | |
else if exponent <= 1 |
I'm retiring these instructions, as a lot about my partitioning & environment has changed. I will make new ones from scratch.
I made these instructions to help myself install Arch with a system-wide encrypted setup, EXT4, and XFCE4 as the DE. You should be able to easily adapt these to your use case, if you know what you're doing.
Initial partitioning:
There are multiple ways to get a full disk encrypted arch linux system on raspberry. In this tutorial, we will install a 64-bit arch linux armv8 system, using dropbear as ssh server for remote pre-boot unlocking of the root filesystem. However, it will still be possible to unlock and use the pi as usual, with a keyboard and monitor. We will also create an unencrypted partition in the installation process, usable as a rescue system.
Differences to the 32-bit arch linux arm version:
#[macro_use] | |
extern crate lazy_static; | |
use std::sync::Mutex; | |
use std::collections::HashMap; | |
lazy_static! { | |
static ref HASHMAP: Mutex<HashMap<u32, String>> = Mutex::new({ | |
let mut m = HashMap::new(); | |
m.insert(0, String::from("foo")); | |
m.insert(1, String::from("bar")); |