- prepare
create a memory storage for secure files
mkdir -p /prepare
#!/bin/sh -e | |
# This script will remove all the kernels, except newest $keep_count and the currently active one. | |
# Very handy with Ubuntus as that installs a lot of kernels. | |
keep_count=${1:-2} | |
# select versions to keep | |
installed=$(dpkg -l 'linux-*' | awk '/^ii/ {print $2}' | grep -E "\-[0-9]+\.[0-9]+\.[0-9]+-[0-9]+" -) |
I recommend to consider microG instead. It's officially promoted in the changelog forum post. Additionally, it doesn't bundle Google products and should provide better secrecy. However, it might not include all features. Check out the guide from the official forum.
In contrast, this guide is based on MindTheGapps, as mentioned in LineageOS wiki. Before, we used OpenGApps, but that is not maintained anymore.
#!/bin/sh -eu | |
alg="rs512" | |
key="private_key.pem" | |
bits=2048 | |
slen=32 | |
while [ $# -gt 0 ]; do | |
case "$1" in | |
-a) alg=$(echo "$2"|tr '[A-Z]' '[a-z]') ; shift 2 ;; |
#!/usr/bin/env python | |
import sys, argparse, datetime, time, logging | |
try: | |
import requests | |
except ImportError: | |
import json | |
try: | |
from urllib2 import urlopen | |
from urllib import urlencode |
# m h dom mon dow command | |
# call renew weekly | |
57 0 */7 * * root /etc/letsencrypt/update.sh |