This build starts with modest hardware — a retired desktop with an Intel Sandy Bridge quad-core CPU, no discrete GPU, and a mix of drives:
| Component | Detail |
|---|---|
| CPU | Intel Sandy Bridge, 4 cores, AES-NI |
| RAM | 8GB DDR3 |
| Boot Drive | 112G WD SSD |
| Disk 1 | 932G Toshiba HDD |
| Disk 2 | 1.82T Seagate HDD |
| Disk 3 | 932G Western Digital HDD |
| GPU | Intel HD 2000/3000 (integrated only) |
No discrete GPU means no hardware transcoding — but that’s fine. We’ll configure everything for direct play and disable ML features that need GPU acceleration.
The storage layout uses two strategies: RAID 1 for active data that needs redundancy, and LVM for bulk archive storage.
┌─────────────────────────────────────────────────────────┐
│ /mnt/raid (923G) │
│ RAID 1 — "mirror" │
│ ┌─────────────────────┐ ┌─────────────────────┐ │
│ │ sda2 (923G) │ │ sdc3 (923G) │ │
│ │ Toshiba DT01ACA100 │ │ WD WD10EZEX │ │
│ └─────────────────────┘ └─────────────────────┘ │
└─────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────┐
│ /mnt/storage (1.82T) │
│ LVM — VG "lvm" / LV "storage" │
│ ┌─────────────────────────────────────────────┐ │
│ │ sdb (1.82T) — Seagate ST2000VM003 │ │
│ └─────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────┐
│ sdd — Boot Drive │
│ 112G WD SSD (ext4 + EFI) │
└─────────────────────────────────────────────────────────┘
RAID 1 mirrors two drives so active data (documents, photos, music, videos, projects) survives a single drive failure. LVM on the 1.82T Seagate holds archives and backups — data that either exists elsewhere or can be re-downloaded.
The key principle: irreplaceable data goes on RAID, regenerable data goes on LVM. This guides every storage decision on the server.
Setting up the RAID array was straightforward since it was a pre-existing array from 2019:
sudo mdadm --assemble /dev/md0 /dev/sda2 /dev/sdc3
sudo mount /dev/md0 /mnt/raid
The LVM volume just needed activation:
sudo lvchange -ay lvm/storage
sudo mount /dev/lvm/storage /mnt/storage
Both volumes auto-mount via /etc/fstab with the nofail flag, so the system boots even if a data disk fails.
The server exports both volumes over NFS v4.2 (for Linux clients) and SMB3 (for Windows and macOS).
NFSv4.2 is the cleanest option for Linux-to-Linux file sharing. The server uses a pseudo-root at /srv/nfs with bind mounts:
# /etc/exports
/srv/nfs 10.0.6.0/24(rw,sync,fsid=0,crossmnt,no_subtree_check)
/srv/nfs/raid 10.0.6.0/24(rw,sync,no_subtree_check)
/srv/nfs/storage 10.0.6.0/24(rw,sync,no_subtree_check)
Clients mount with a single line:
sudo mount -t nfs4 -o vers=4.2,noatime,nodiratime disks.local:/ /mnt/disks
For Windows and macOS clients, Samba serves the same volumes with SMB3 encryption and macOS Time Machine compatibility via the fruit VFS module. A dedicated family share gives household members access to shared music and documents.
The heart of this build is a Docker Compose stack running eight self-hosted services behind a Caddy reverse proxy:
| Service | Purpose | URL |
|---|---|---|
| Jellyfin | Video streaming | jellyfin.jphe.in |
| Navidrome | Music streaming (Subsonic API) | navidrome.jphe.in |
| Immich | Photo management & phone backup | immich.jphe.in |
| Syncthing | Bidirectional file sync | syncthing.jphe.in |
| Nextcloud | Calendar, contacts & webmail | nextcloud.jphe.in |
| Outline | Wiki & knowledge base | outline.jphe.in |
| Vaultwarden | Password manager (Bitwarden-compatible) | vault.jphe.in |
Without a discrete GPU, Jellyfin is configured for direct play only — no transcoding. This means clients need to support the media formats natively. In practice, most modern clients (phones, smart TVs, web browsers) handle H.264/H.265 just fine.
If a file won’t play on a particular client, I pre-transcode it on my workstation with ffmpeg before adding it to the library.
Navidrome is impressively lightweight — about 30MB of RAM to serve an entire music library. It speaks the Subsonic API, so any Subsonic-compatible client works: Symfonium on Android, play:Sub on iOS, or Sublime Music on Linux.
Immich provides a Google Photos-like experience for photo management and mobile backup. Since we have no GPU, the machine learning features (face detection, CLIP search) are disabled — but the core photo browsing, timeline, and mobile auto-upload work perfectly.
Getting Immich’s storage right took some iteration. The key insight: phone uploads are irreplaceable originals and need RAID redundancy, but thumbnails and transcoded videos are regenerable and can live on cheaper storage.
The final layout uses Docker bind mounts to split data across volumes:
volumes:
# Base upload directory on LVM (thumbnails, transcodes, backups)
- /mnt/storage/immich-data:/usr/src/app/upload
# Phone uploads overlaid onto RAID for redundancy
- /mnt/raid/immich-upload:/usr/src/app/upload/upload
- /mnt/raid/immich-library:/usr/src/app/upload/library
# External photo libraries (read-only)
- /mnt/raid/photos:/usr/src/app/external-raid:ro
Docker processes volume mounts in order, so the bind mounts for upload/ and library/ overlay onto the base LVM mount. This gives us:
| Data Type | Location | Why |
|---|---|---|
| Phone uploads (originals) | /mnt/raid (RAID 1) | Irreplaceable, needs redundancy |
| Thumbnails | /mnt/storage (LVM) | Regenerable from originals |
| Encoded video | /mnt/storage (LVM) | Regenerable from originals |
| DB backups | /mnt/storage (LVM) | Separate backup chain handles this |
| Postgres database | /mnt/raid (RAID 1) | Bind mount at /mnt/raid/docker/immich-db |
Lesson learned the hard way: Docker named volumes live under /var/lib/docker/volumes/ on the root filesystem — typically a small boot SSD. If Immich starts processing thousands of photos, thumbnails and transcoded videos can eat 20+ GB fast. Always use bind mounts to explicit paths on your data drives.
Old photos from cameras with dead batteries or no real-time clock often have EXIF dates like January 1, 1980 or December 26, 1970. Immich sorts by EXIF date, so these photos end up in the wrong decade.
For JPEGs, exiftool can fix the dates on disk:
exiftool -overwrite_original -DateTimeOriginal="2018:04:01 12:00:00" photo.JPG
For formats that don’t support EXIF writes (like AVI), fix the dates directly in Immich’s Postgres database:
docker exec immich-db psql -U postgres -d immich -c \
"UPDATE asset_exif SET \"dateTimeOriginal\" = '2023-05-01 12:00:00'
WHERE \"assetId\" IN (SELECT id FROM asset WHERE \"originalPath\" LIKE '%folder-name%');"
Nextcloud fills the last major gap in the self-hosted stack: CalDAV for calendar sync and CardDAV for contacts, plus a built-in webmail client that connects to existing email accounts via IMAP/SMTP.
The architecture mirrors Immich — Nextcloud Apache container backed by Postgres 16 and Redis, all on RAID bind mounts. CalDAV/CardDAV client autodiscovery requires /.well-known/caldav and /.well-known/carddav redirects in Caddy, per RFC 6764:
nextcloud.jphe.in {
redir /.well-known/carddav /remote.php/dav 301
redir /.well-known/caldav /remote.php/dav 301
reverse_proxy nextcloud:80
}
With these redirects, phone and desktop calendar/contacts clients only need the hostname — no manual URL entry required. One critical environment variable: OVERWRITEPROTOCOL=https tells Nextcloud it’s behind a TLS-terminating proxy, so it generates correct https:// links instead of http://.
Outline provides a clean, fast wiki for shared documentation and knowledge management. It’s the self-hosted alternative to Notion — Markdown-native, real-time collaborative editing, and a powerful search.
Rather than adding yet another authentication system, Outline uses Nextcloud as an OIDC provider. Anyone with a Nextcloud account can log into Outline — no separate credentials needed. This is configured by registering an OAuth2 client in Nextcloud’s admin settings and pointing Outline’s OIDC environment variables at Nextcloud’s authorization endpoints.
File uploads (images, attachments) are stored directly on the RAID filesystem rather than requiring an S3-compatible object store like MinIO. For a personal/family wiki, local storage is simpler and perfectly adequate — Outline supports this with FILE_STORAGE=local.
Vaultwarden is a lightweight, Rust-based implementation of the Bitwarden API. It runs on minimal resources and is fully compatible with all Bitwarden clients — browser extensions, mobile apps, and the bw CLI tool.
The database lives on RAID for redundancy, and automated daily backups provide an additional safety net (more on that below).
Syncthing keeps my ~/Projects directory synchronized between my workstation and the server’s RAID array. It’s bidirectional, peer-to-peer, and encrypted — no cloud service involved.
Every service gets its own subdomain with automatic Let’s Encrypt certificates. Caddy handles this with the Cloudflare DNS-01 challenge — no ports 80/443 need to be exposed to the internet.
One gotcha: the upstream caddy-dns/cloudflare module rejects Cloudflare’s newer cfut_-prefixed API tokens. I used a patched fork that fixes this.
The Caddyfile is clean — each service is just a few lines:
jellyfin.jphe.in {
reverse_proxy jellyfin:8096
}
If you’re uploading large videos through Immich (or any service behind Caddy), the default proxy timeouts will kill the connection mid-upload. The fix is to increase both the request body size limit and the proxy transport timeouts:
immich.jphe.in {
request_body {
max_size 20GB
}
reverse_proxy immich:2283 {
transport http {
read_timeout 600s
write_timeout 600s
}
}
}
Caddy supports hot-reloading — caddy reload applies config changes without dropping existing connections.
All the *.jphe.in DNS records point to the server’s Tailscale IP (100.x.x.x), not a public IP. This means:
*.jphe.in queries and resolves them to the local IP (10.0.6.120)No port forwarding. No dynamic DNS. No exposing services to the internet. Just install Tailscale on your devices and everything works.
A few targeted optimizations make a noticeable difference on this hardware:
| Setting | Value | Why |
|---|---|---|
| vm.swappiness | 10 | Prefer file cache over swap |
| vm.dirty_ratio | 40 | Allow large write batches before flushing |
| vm.vfs_cache_pressure | 50 | Keep directory/inode caches longer |
| net.ipv4.tcp_congestion_control | bbr | Google’s BBR for faster throughput |
| net.core.rmem_max / wmem_max | 16MB | Large TCP buffers for big file transfers |
HDDs get the mq-deadline scheduler with 2MB readahead and write caching enabled. The SSD boot drive uses none (passthrough). Head parking is disabled on the HDDs (hdparm -B254) to avoid the click-of-death wear pattern.
SSH is tuned to use hardware-accelerated AES-GCM ciphers (the Sandy Bridge CPU has AES-NI), and reverse DNS lookups are disabled for faster connections.
Terminal compatibility tip: If you use Kitty terminal, remote servers won’t have the xterm-kitty terminfo entry. Tools like top, htop, and nano will break. Fix it by installing the terminfo on the server:
infocmp -x xterm-kitty | ssh disks "mkdir -p ~/.terminfo && tic -x -o ~/.terminfo /dev/stdin"
The backup strategy has two layers: database dumps for application state, and BorgBackup for file-level deduplication.
Every service with a database gets a daily dump to /mnt/raid/backups/databases/:
| Service | DB Type | Method |
|---|---|---|
| Immich | Postgres | pg_dump (consistent snapshot) |
| Nextcloud | Postgres | pg_dump (consistent snapshot) |
| Outline | Postgres | pg_dump (consistent snapshot) |
| Vaultwarden | SQLite | sqlite3 .backup (safe while running) |
| Jellyfin | SQLite | sqlite3 .backup |
| Navidrome | SQLite | sqlite3 .backup |
The dumps land on RAID so they’re included in the Borg backup that follows. Old dumps are pruned after 7 days.
Why not just back up the database files directly? Postgres stores data across multiple files that must be consistent with each other. Copying them while Postgres is running can give you a corrupted snapshot. pg_dump produces a clean SQL dump regardless of database activity. SQLite has the same issue — the .backup command ensures a consistent copy.
BorgBackup runs 30 minutes after the database dumps, deduplicating critical data from RAID to the storage volume:
# Backs up: documents, keys, projects, database dumps, photos
# Retention: 7 daily, 4 weekly, 6 monthly
# Compression: zstd level 3
# Destination: /mnt/storage/backups/borg-raid
Borg’s deduplication means incremental backups are fast and space-efficient — only changed blocks are stored. The entire backup history compresses to around 320MB of deduplicated storage.
2:30 AM Database dumps → /mnt/raid/backups/databases/
3:00 AM Borg backup → /mnt/raid/* → /mnt/storage/backups/borg-raid/
6:00 AM Disk health → SMART checks, logged to /var/log/disk-health.log
This means the storage volume holds a complete, deduplicated history of everything on RAID — including consistent database snapshots.
Local backups protect against drive failure, but not against fire, theft, or disaster. For geographic redundancy, the server syncs critical data to cloud storage using rclone.
rclone is configured with three cloud remotes:
| Remote | Provider | Storage |
|---|---|---|
| box-personal | Box (personal) | 100GB |
| box-techempower | Box (work) | 100GB |
| gdrive | Google Drive | 25GB |
That’s 225GB of cloud storage across three accounts — enough for database dumps, documents, phone uploads, music, and a chunk of the photo library.
Google Drive is mounted as a regular filesystem at /mnt/gdrive using rclone’s FUSE mount capability, managed by a systemd service:
[Service]
Type=notify
User=jp
ExecStart=/usr/bin/rclone mount gdrive: /mnt/gdrive \
--vfs-cache-mode full \
--vfs-cache-max-size 2G \
--dir-cache-time 72h \
--allow-other
The --vfs-cache-mode full setting caches files locally before serving them, so reads and writes behave like a normal filesystem. The --allow-other flag (plus user_allow_other in /etc/fuse.conf) lets other system users and services like Samba access the mount.
Box and Google Drive both use OAuth2 for authentication, which normally requires a web browser. Since the server is headless, the trick is to run rclone config on a workstation that has a browser, complete the OAuth flow there, then copy ~/.config/rclone/rclone.conf to the server. The tokens persist in the config file and rclone handles refresh automatically.
smartd runs weekly short tests and monthly long tests on all drives. A custom health check script runs daily at 6am and logs to /var/log/disk-health.log. On a server with aging drives, early warning of failure is critical.
A few things I ran into during the build:
e2fsck before operating on corrupt inodes. I tried to clean up files on a filesystem with corrupt inodes and triggered a kernel panic — VFS spinlock deadlock. The fix was to unmount and run e2fsck -y first.pg_dump backup. Now every database gets a daily dump before Borg runs.read_timeout and write_timeout explicitly for services that handle large files.rsync, not mv, across filesystems. mv between different filesystems is a silent copy+delete with no progress indicator and no resume on failure. rsync -ah --progress gives you visibility and idempotent restarts.Here’s what the complete setup looks like:
| Layer | Technology |
|---|---|
| OS | Ubuntu 24.04 (headless) |
| Storage | mdadm RAID 1 + LVM |
| File Sharing | NFS v4.2 + Samba/SMB3 |
| Media | Jellyfin + Navidrome + Immich |
| PIM | Nextcloud (CalDAV/CardDAV/Mail) |
| Knowledge Base | Outline (Nextcloud OIDC auth) |
| Passwords | Vaultwarden (Bitwarden-compatible) |
| Sync | Syncthing |
| Reverse Proxy | Caddy + Let’s Encrypt (DNS-01) |
| Remote Access | Tailscale mesh VPN |
| Backups | Daily DB dumps + BorgBackup + rclone cloud sync |
| Cloud Storage | rclone → Box (2×100GB) + Google Drive (25GB FUSE mount) |
| Monitoring | smartd + daily health checks |
Total cost: effectively $0 in new hardware. The server is quiet, draws minimal power, and serves media to every device in the house — plus anywhere I have Tailscale installed.
If you have an old desktop gathering dust, it’s more than capable of running this entire stack. The only thing I’d eventually add is a discrete GPU for Jellyfin transcoding and Immich ML — but honestly, direct play has been perfectly fine.
]]>Some advantages of hosting your own custom WordPress website with Docker include: – You have full control over your website and can customize it however you want. – Docker makes it easy to set up and maintain your website. – You can run your website on any platform that supports Docker. – Your website will be more scalable and reliable than if it were hosted on a traditional web server.

Create account, and add domains.
From: https://cloud.google.com/free/docs/free-cloud-features
Set up billing notifications if it goes over $0.03
Compute Engine free tier
1 non-preemptible e2-micro VM instance per month in one of the following US regions:
Oregon: us-west1
Iowa: us-central1
South Carolina: us-east1
30 GB-months standard persistent disk
5 GB-month snapshot storage in the following regions:
Oregon: us-west1
Iowa: us-central1
South Carolina: us-east1
Taiwan: asia-east1
Belgium: europe-west1
1 GB network egress from North America to all region destinations (excluding China and Australia) per month
Your Free Tier e2-micro instance limit is by time, not by instance. Each month, eligible use of all of your e2-micro instance is free until you have used a number of hours equal to the total hours in the current month. Usage calculations are combined across the supported regions.
Compute Engine free tier does not charge for an external IP address.
GPUs and TPUs are not included in the Free Tier offer. You are always charged for GPUs and TPUs that you add to VM instances.
Learn more
From: How to use Cloudflare for Dynamic DNS on Ubuntu 22.04
From: https://docs.docker.com/engine/install/ubuntu/
##Set up the repository
#Update the apt package index and install packages to allow apt to use a repository over HTTPS:
sudo apt-get update
sudo apt-get install
ca-certificates
curl
gnupg
lsb-release
##Add Docker’s official GPG key:
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
#Use the following command to set up the repository:
echo
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
#Install Docker Engine
#Update the apt package index, and install the latest version of Docker Engine, containerd, and Docker Compose, or go to the next step to install a specific version:
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-compose
From: https://carlwillimott.medium.com/quickly-setup-wordpress-ssl-via-lets-encrypt-and-certbot-b29e8abf2072
git clone https://github.com/carlwillimott/docker-compose-wordpress-ssl.git
cd docker-compose-wordpress-ssl
nano -w docker-compose.yml
version: '3.3'
services:
swag:
image: linuxserver/swag
container_name: swag
restart: always
depends_on:
- wordpress
volumes:
- ./config:/config
- ./default:/config/nginx/site-confs/default
environment:
- [email protected]
- URL=blog.jphein.com
- VALIDATION=http
- TZ=America/Los_Angeles
- PUID=1001
- PGID=1002
ports:
- "443:443"
- "80:80"
wordpress:
image: wordpress:latest
container_name: wordpress
hostname: wordpress
depends_on:
- db
restart: always
ports:
- "8080:80"
volumes:
- ./www/:/var/www/html/
- ./custom.ini:/usr/local/etc/php/conf.d/custom.ini
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wp_db_user
WORDPRESS_DB_PASSWORD: wp_db_pass
WORDPRESS_DB_NAME: wp_db
WORDPRESS_CONFIG_EXTRA: |
define( 'WP_MEMORY_LIMIT', '96M' );
db:
image: mysql:5.7
container_name: db
volumes:
- /var/lib/mysql:/var/lib/mysql
restart: always
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: mysql_root_pass
MYSQL_DATABASE: wp_db
MYSQL_USER: wp_db_user
MYSQL_PASSWORD: wp_db_pass
docker-compose up -d
From: https://bootvar.com/systemd-service-for-docker-compose/
# Write systemd service in
nano -w /etc/systemd/system/mysite.service
[Unit]
Description=Service for mysite
Requires=docker.service
After=docker.service
[Service]
Type=oneshot
WorkingDirectory=/home/jp/jphein.com
Environment=COMPOSE_HTTP_TIMEOUT=600
ExecStart=/usr/bin/env /usr/bin/docker-compose -f /home/jp/jphein.com/docker-compose.yml up -d
ExecStop=/usr/bin/env /usr/bin/docker-compose -f /home/jp/jphein.com/docker-compose.yml stop
StandardOutput=syslog
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Now you have created the systemd service, enable it and start the service. Enabling service will make sure to start this service at server startup.
# will enable service to start at server bootup
systemctl enable mysite
# start service ( Executes ExecStart command )
systemctl start mysite
To be continued…
Go to yourdomain.com
Test SSL: www.ssllabs.com/ssltest/…
Test Pagespeed module: ismodpagespeedworking.co…
Test Varnish: https://isvarnishworking.uk/
Test your server response time: www.bytecheck.com
Should be 500ms or under. Ideally under 200ms.
Test email: https://www.mail-tester.com/
Cloudflare offers this service for free
Free tier
| Cloud Storage | 5 GB-months of regional storage (US regions only)5,000 Class A Operations per month50,000 Class B Operations per month1 GB network egress from North America to all region destinations (excluding China and Australia) per month |
|---|---|
Free Tier is only available in us-east1, us-west1, and us-central1 regions. Usage calculations are combined across those regions. |
Create a bucket in the google cloud console or terminal.
Install gcsfuse
Download .deb package frome: https://github.com/GoogleCloudPlatform/gcsfuse/releases
wget https://github.com/GoogleCloudPlatform/gcsfuse/releases/download/v0.41.6/gcsfuse_0.41.6_amd64.deb
sudo dpkg -i gcsfuse_0.41.6_amd64.deb
Permissions
You may need to run “gcloud init” if your permissions aren’t set up correctly. You may also need to edit your bucket permissions as well.
Mount bucket
From: https://github.com/GoogleCloudPlatform/gcsfuse/blob/master/docs/mounting.md
gcsfuse bucket_name mount_point
#unmount
fusermount -u /path/to/mount/point
Add to fstab to mount on boot
sudo echo "jphfree /home/jp/jphfree gcsfuse rw,_netdev,allow_other,uid=1001,gid=1002" >> /etc/fstab
#Backup script
NOTE: If you want to use duplicity gs: urls then you should follow this guide: https://jphein.com/how-to-use-duplicity-to-backup-directly-to-a-google-cloud-storage-bucket-to-achieve-time-machine-like-incremental-backups-on-ubuntu-15-10-wily/
#Install mysqldump
sudo apt install mysql-client-core-8.0
#Install duplicity
sudo apt install duplicity
nano -w backup
#!/bin/bash
#--A simple backup script
#----Change the variables below to reflect your information
echo "------------------------------------------------------------------"
echo " Website Backups"
echo "------------------------------------------------------------------"
echo "Creating variables..."
printf "$0 <-- Name and path of this script.n"
#Working directory
WD="/home/jp"
printf "$WD <-- Working Directory on local server.n"
echo "------------------------------------------------------------------"
#Google Cloud storage bucket"
printf "A Google Cloud storage bucket is used for longterm storage of incremental backups.n"
BUCKET="jphfree"
printf "$BUCKET <-- Google Cloud storage bucket namen"
echo "------------------------------------------------------------------"
#MySQL database
MYSQL_DB="wp_db"
MYSQL_USER="root"
MYSQL_PASS="db_root_pass"
printf "$MYSQL_DB <-- MySQL Database Namen"
printf "$MYSQL_USER <-- MySQL Database Usernamen"
echo "------------------------------------------------------------------"
#Google Cloud Storage Mount the storage bucket
printf "Mounting Google Cloud storage bucket...n"
gcsfuse $BUCKET $WD/$BUCKET
echo "------------------------------------------------------------------"
#MySQL dump
printf "Dumping MySQL database...n"
mysqldump --opt -h localhost --protocol=tcp --user=$MYSQL_USER --password=$MYSQL_PASS $MYSQL_DB > $WD/mysqldump/database.sql
echo "------------------------------------------------------------------"
#-------Duplicity Backup everything to the bucket
echo "------------------------------------------------------------------"
echo "Backing up data to a Google Gloud storage bucket using duplicity.."
echo "------------------------------------------------------------------"
echo "An incremental backup every day. A full backup every month."
echo "We keep 12 full backups and their corresponding incrementals."
echo "One year of daily back up data!"
echo "------------------------------------------------------------------"
#Clean up in case of aborted backups
duplicity cleanup --no-encryption file://$WD/$BUCKET/backups
#Backup data to bucket
duplicity --progress --no-encryption --exclude $WD/$BUCKET --full-if-older-than 1M $WD file://$WD/$BUCKET/backups
#Delete old backups
#duplicity remove-older-than 1Y --force $SYNC_DIR/$i gs://$BUCKET/$i
duplicity remove-all-but-n-full 12 file://$WD/$BUCKET/backups
#------------------------------------------------------------------------------
chmod 700 backup
#Add to crontab
crontab -e
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').
#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
0 0 * * * /home/jp/backup > /home/jp/backup.log 2>&1
duplicity restore file:///home/jp/jph-backups/backups /home/jp/restored/ --no-encryption
]]>From: https://www.stavros.io/posts/how-to-configure-wireguard/
Note: for the client configuration to work you must first have a working wireguard server.
#become root
sudo -i
#install wireguard
apt install wireguard
#create keys
cd /etc/wireguard
umask 077 # This makes sure credentials don't leak in a race condition.
wg genkey | tee privatekey | wg pubkey > publickey
#edit the config
nano -w wg0.conf
Add the client private key, the server public key, and the server IP address.
[Interface]
Address = 10.5.5.25
PrivateKey = client private key
#-------------DNS
#DNS = 10.5.5.1 #Server caching dnsmasq that forwards to azure in my case
#DNS = 168.63.129.16 #Azure
#DNS = 1.1.1.1 #Cloudflare
DNS = 176.103.130.130, 176.103.130.131 #AdGuard
#-------------MTU
MTU = 1280 #This may need to be changed depending on your connection to the internet.
#MTU = 1384
MTU = 1360
#-------------MSS Clamping
#PostUp = iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
#PostDown = iptables -D FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
[Peer]
PublicKey = server public key
Endpoint = server IP address:51820
#AllowedIPs = 0.0.0.0/0 #Use this if you want all your traffic to pass through the VPN
AllowedIPs = 10.5.5.25/32
# This is for if you're behind a NAT and
# want the connection to be kept alive.
PersistentKeepalive = 25
Add the server private key, and each client’s public key.
[Interface]
Address = 10.5.5.1
PrivateKey =
ListenPort = 51820
[Peer]
PublicKey =
AllowedIPs = 10.5.5.5/32
[Peer]
PublicKey =
AllowedIPs = 10.5.5.25/32
After you’re done, run the following to make the directory and files readable only by administrators (it does contain secret keys, after all):
exit # exit root
sudo chown -R root:root /etc/wireguard/
sudo chmod -R og-rwx /etc/wireguard/*
On both server, and client run:
sudo wg-quick up wg0; wg
#to bring it down
sudo wg-quick down wg0
After you’ve created and secured the file, you can easily set WireGuard to initialize the VPN on startup if your OS is using systemd:
sudo systemctl enable [email protected]
Similarly, to start or stop the service:
sudo systemctl start [email protected]
sudo systemctl stop [email protected]
To turn your conf file into a qr code use:
qrencode -t ansiutf8 < wg0.conf
From: https://askubuntu.com/questions/1032450/how-to-add-dnsmasq-and-keep-systemd-resolved-18-04
Install openresolv on client
apt install openresolv
Install dnsmasq on server
apt install dnsmasq
nano -w /etc/dnsmasq.conf
server=168.63.129.16 #Azure
#server=176.103.130.130, 176.103.130.131 #Adguard
interface=lo
listen-address=10.5.5.1
bind-interfaces
Make DNSMasq start after our wg-quick service:
systemctl edit dnsmasq
paste
[Unit]
[email protected]
[email protected]
Allow udp port 51820 through your firewall in whatever cloud service you are using.
Allow Wireguard and DNS through local ufw firewall
ufw allow proto udp from any to any port 51820
ufw allow proto tcp from any to any port 53
From: https://ubuntu.com/server/docs/security-firewall
Make sure to edit the firewall policy’s in your cloud server’s management dashboard as well to allow port 52820. In my case, Azure.
sudo ufw status
Status: active
To Action From
-- ------ ----
22 ALLOW Anywhere
51820 ALLOW Anywhere
53 ALLOW Anywhere
/etc/default/ufw change the DEFAULT_FORWARD_POLICY to “ACCEPT”:
DEFAULT_FORWARD_POLICY="ACCEPT"
Then edit /etc/ufw/sysctl.conf and uncomment:
net/ipv4/ip_forward=1
Now add rules to the /etc/ufw/before.rules file. The default rules only configure the filter table, and to enable masquerading the nat table will need to be configured. Add the following to the top of the file just after the header comments:
# nat Table rules
*nat
:POSTROUTING ACCEPT [0:0]
# Forward traffic from eth1 through eth0.
-A POSTROUTING -s 10.5.5.0/24 -o eth0 -j MASQUERADE
# don't delete the 'COMMIT' line or these nat table rules won't be processed
COMMIT
sudo service ufw restart
Test what is my ip, and dns leak
Gnome shell Indicator extension: https://extensions.gnome.org/extension/3160/wireguard-indicator/
Add a quicklaunch shortcut: https://blog.linuxserver.io/2019/11/24/connect-an-ubuntu-client-to-opnsense-wireguard-tunnel-with-a-gui-toggle-in-gnome/
]]>Right now there is a serious shortage of inexpensive quality Webcams. So, we have to get a bit creative. This setup works great in Linux for OBS, Duo, and Google Meets. It also works for Windows and MacOS. You can always buy a HDMI, OR USB extension cable if you need a longer cable. This setup can also do 1080p at 30fps. I would have loved to have the capture card use USB 3.0, but couldn’t find one for this low price. You can stream from the GoPro Wirelessly, but it adds too much latency for live streaming.

Pros:
Great quality
Wide angle lens
Price
Cons:
There is a very slight delay. Maybe 20-40ms?
There are two cables coming from your Webcam (USB power & HDMI.)
USB ID: 534d:2109
Chip: MacroSilicon MS2109 ASIC
https://www.cnx-software.com/2020/06/05/11-hdmi-to-usb-2-0-video-capture-dongle-supports-up-to-1080p30-grabbing/
OBS Settings:
https://bigl.es/friday-fun-10-hdmi-to-usb-capture/
Windows: Install kindle drivers, Root using windows bat file. Use option “3”.
Terminal
From: https://forum.xda-developers.com/t/bootloader-2nd-bootloader-for-custom-roms-on-kfirehd-7-06-24-cm12-1-twrp-2-8-7-0.2128848/
adb push stack /sdcard/
adb shell su -c "dd if=/sdcard/stack of=/dev/block/platform/omap/omap_hsmmc.1/by-name/system bs=6519488 seek=1"
adb shell su -c "mount -o remount,rw ext4 /system"
adb shell su -c "mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak"
adb shell su -c "mount -o remount,ro ext4 /system"
Fastboot cable, Motorola Factory development cable
fastboot -i 0x1949 flash bootloader kfhd7-u-boot-prod-7.2.3.bin
fastboot -i 0x1949 flash boot kfhd7-freedom-boot-7.4.6.img
fastboot -i 0x1949 flash recovery kfhd7-twrp-2.8.7.0-recovery.img
fastboot -i 0x1949 reboot
Enter recovery by holding left volume button past the blue fire logo
Copy Lineage and gapps to kindle; Install Lineage and Gapps
fastboot -i 0x1949 flash boot stock-boot.img
fastboot -i 0x1949 flash recovery stock-recovery.img
fastboot -i 0x1949 flash system stock-system.img # This one will take a few minutes
fastboot -i 0x1949 reboot
]]>
Inspired by this portable secure gateway, I set up my own secure cloud gateway.
Using these three services, Wireguard VPN, Adguard Home, and Tor Anonymizing Proxy. Although TOR doesn’t recommend using TOR in conjunction with VPN’s or proxies, I like this setup the best. For this to work you need a router that can support Wireguard. I use a Netgear r6220 with the Linux based open source router OS, Openwrt. You can easily use any computer that runs Ubuntu instead.
The router I used: https://openwrt.org/toh/netgear/netgear_r6220
Flash OpenWRT
Set Password
Set LAN subnet
Set Static DHCP lease for desktop
Set name and password for both Wifi Networks
Set Adguard DNS: 176.103.130.130, 176.103.130.131 on wan interface.
Update software lists..
Install nano, curl, ca-bundle, wireguard, etc..
opkg update
opkg install nano curl ca-bundle luci-app-wireguard
reboot
Set up Wireguard on your router with the below guide:
https://www.azirevpn.com/support/guides/router/openwrt/wireguard
Ignore the AzireVPN specific parts.
From: https://forum.openwrt.org/t/initiate-wireguard-after-ntp-success/14751/52
A the end of the guide it says you have to sync the time with the browser after every reboot, because the router does not have a real time clock (RTC). Wireguard needs the time to connect to the other endpoint. However, I found that if you leave the OpenWRT time in UTC, then it shouldn’t need you to do that.
After making all these changes my upload speeds were terribly slow. To fix this I had to change the MTU of Wireguard interface to 1360. Stop the interface before changing the MTU I think Maybe because I use AT&T 4G which I think has a MTU of 1420.
From: https://openwrt.org/docs/guide-user/network/traffic-shaping/sqm
Even if you have nice low latency, low jitter, and high bandwitch up and down you can still experience slow internet. Especially if you do any uploading. Some people call this “buffer bloat”. SQM can mitigate that by managing your traffic to not saturate your upload or download.
You can test your buffer bloat here: http://www.dslreports.com/speedtest
opkg update && opkg install luci-app-sqm
reboot
Play with Download and Upload values until you get good speeds with no buffer bloat.


I used Ubuntu 20.04 for my cloud server.
Follow the above guide.

Results: Over VPN with SQM.
The below needs more testing and fleshing out…
Just using the AdGuard DNS is sufficient for most people, but if you’d like more control over your block lists, you can also install Adguard Home to either the Router, or the cloud gateway.
Gateway: For the gateway it can be done by using the below instructions, but I didnt have luck with the snap. This should let you configure the DNS lists locally.
https://github.com/AdguardTeam/AdGuardHome/wiki/Getting-Started#installation
sudo snap install adguard-home
Or,
Router: https://forum.openwrt.org/t/howto-running-adguard-home-on-openwrt/51678
To be continued…
https://trac.torproject.org/projects/tor/wiki/doc/TransparentProxy
https://www.linuxuprising.com/2018/10/how-to-install-and-use-tor-as-proxy-in.html
]]>However, The following article is about a simpler way of controlling smart devices. Specifically, a waterproof thermometer, and a smart plug.
I purchased the Unibot WS1 Wireless sensor. Thus creating my own smart weather station that can automatically react to temperature, humidity, ambient light and vibration. The optional UbiBot DS18B20 waterproof sensor allows you to monitor the temperature of liquids as well. If we add a few smart plugs and relays in the mix it will then be able to turn on and off heaters (120v, 240v, 24v, or old millivolt systems), fans, AC, humidifiers, lights, and anything else that can be plugged in. I purchased the https://amzn.to/36YCCdX. Simply because it was the least expensive smart plug on Amazon that was rated for 13 amps, and also supported IFTTT.
In my case, I’d like to use it to monitor my softub, and turn it off when it reaches a certain temperature. Normally this is accomplished by the integrated circuit of the hot tub. However, I had to bypass all that and wire the the 120v AC directly to the heat pump when my circuit boards kept burning out. This also allows me to create other conditions like only heat it during non-peak hours. I have PGE EV rates so it makes a HUGE difference when you use your power.

To accomplish all this I had to install the Ubitbot app, the smart life app. Then configure the two below cloud services:
If This Then That
IFTTT is the free way to do more with hundreds of the apps and devices you love, including Twitter, Dropbox, Evernote, Nest, Fitbit, Amazon Alexa, and Google Assistant.
Apilio
To extend IFTTT you may need to use this.
https://hackernoon.com/what-smart-home-iot-platform-should-you-use-2554ea213df1
We start with a local Ubuntu computer running homemate-bridge to connect to the MQTT broker. We will use Cloud MQTT as a broker to connect our plugs to our Home Assistant. We will be installing Home Assistant on an Ubuntu Google Cloud micro instance. We set up rules @ IFTTT.com to connect it all to Google assistant. A Google home mini is used to accept voice commands. Optionally, we can extend this setup to run any Linux bash command on the local machine. For example turning computers on using wake-on-lan, and off using SSH.
Yonomi
The simple smart home integration platform.
Yonomi makes it easy for innovators to build great apps and devices that connect with the smart home.
PlatformIO
Tasmota – ESP8266 firmware
https://github.com/arendst/Tasmota
Jeedom
INNOVATIVE HOME AUTOMATION
GET JEEDOM
Losant
RemoteMe
Control and collect data from IoT devices from anywhere around the worldUsing web pages hosted for free and mobile applications fully customisable
EasyIOT Cloud
Our goal is to create secure, reliable and cheap platform for Internet of Things at your home. We will provide DIY tutorials to build IoT using components like Raspbery Pi, Arduino, NRF24L01+, ESP8266 and our EasyIoT Cloud. With help of EasyIoT community we will make IoT world Easy Internet of Things world (EasyIoT) .
EasyIoT framework is not home automation. Of course you can build home automation system, but you can build much more. Do you need advanced alarm system, remote plant irrigation system, solar cell charger control, SMS controlled heater, door opener, hydroponic system or even automation process control system. All this you can easily build with EasyIoT framework.BlynkEasyIoT framework is not home automation. Of course you can build home automation system, but you can build much more. Do you need advanced alarm system, remote plant irrigation system, solar cell charger control, SMS controlled heater, door opener, hydroponic system or even automation process control system. All this you can easily build with EasyIoT framework.
gBridge
gBridge.io: Control anything with voice commands
gBridge’s open interface allows you to integrate Google Home
and Alexa easily in your Smart Home.
gBridge is…
…an application, that provides a Bridge between Google Assistant smart home devices and MQTT, an open and available messaging protocol that is supported by many smart home applications and devices.
CloudMQTT
Hosted message broker for the Internet of Things
Perfectly configured and optimized message queues for IoT, ready in seconds.
Adafruit IOBlynkAdafruit IO
The internet of things for everyoneThe easiest way to stream, log, and interact with your data. We play nice with any device. Our simple client libraries work with the most popular devices such as the Adafruit Feather Huzzah, ESP8266, Raspberry Pi, Arduino, and more.
Blynk
OpenHAB
Home Assistant
Scrypted
All product links are affiliate links.
]]>Luckily securing RDP with WireGuard is pretty easy. Plus there is a WireGuard app for most platforms. Windows, MacOS, Linux, iOS, Android, etc.. https://www.wireguard.com/install/
From: https://www.henrychang.ca/how-to-setup-wireguard-vpn-server-on-windows/
Setup firewall rules (just as you would for a Linux server setup: open and forward ports 51820, configure ddns etc)
You can use the handy graphical tool for setting up the VPN with Wireguard for Windows. Simply download, and install the Windows version, and run Wireguard.
From: https://golb.hplar.ch/2019/07/wireguard-windows.html
One feature I like is that the Windows version of WireGuard remembers the VPN connection state. When you reboot Windows while WireGuard is connected to the server, the software automatically reconnects and re-establishes the VPN tunnel when it starts up. This prevents you from accidentally connecting without a VPN.
My server conf
[Interface]
PrivateKey =
ListenPort = 51820
Address = 10.5.4.1/32
[Peer]
PublicKey =
AllowedIPs = 10.5.4.25/32
[Peer]
PublicKey =
AllowedIPs = 10.5.4.20/32
To add another user just add another [Peer] section.
Then install your client App.
My client conf:
[Interface]
Address = 10.5.4.25
PrivateKey =
#DNS = 10.5.5.1 #Server caching dnsmasq that forwards to azure
#DNS = 168.63.129.16 #Azure
DNS = 1.1.1.1 #Cloudflare
[Peer]
PublicKey =
Endpoint = <serverip>:51820
#Endpoint = 127.0.0.1:59401
#AllowedIPs = 0.0.0.0/0
AllowedIPs = 10.5.4.1/32
# This is for if you're behind a NAT and
# want the connection to be kept alive.
PersistentKeepalive = 25
To generate a keypair for your client I use:
wg genkey | tee privatekey | wg pubkey > publickey
To turn your conf file into a qr code use:
qrencode -t ansiutf8 < wg0.conf
Point your remote desktop software to 10.5.4.1 instead of the server’s public IP.
Don’t forget to close the RDP port if it’s still open to the internet.
]]>Parsec is the only option that allows you to play ANY Windows game. You can then stream Geforce Now, Google Stadia, Steam, Epic Games, Origins, and any other standalone windows game. You can also use it as performant remote desktop for CAD or other graphics heavy programs.
It allows you to reduce the framerate to 30fps, the resolution to 1280×720, and the bitrate to 1Mbps. Even though I have “3Mbps” DSL, in the real word it’s more like 2.5Mbps. When I set the bitrate to 2Mbps it saturates my bandwidth sometimes. I found the best was to set bitrate to 1Mbps or 2Mbps depending on the time of day, or if there was anyone else using it.
From: https://medium.com/azure-cloud/a-killer-guide-for-cloud-gaming-on-azure-march-2020-1aa56d13fba3
nvidia-smi -g 1:00:00.0 -dm 0
Instead of Teamviewer you can use the open source DWService: https://www.dwservice.net/
If using a different cloud provider, check out:
https://github.com/parsec-cloud/Parsec-Cloud-Preparation-Tool
My parsec config:
# All configuration settings must appear on a new line.
# All whitespace, besides the newline character '\n', is ignored.
# All settings passed via the command line take precedence.
# The configuration file will be overwritten by Parsec when changing settings,
# so if you edit this file while Parsec is running, make sure to save this file
# and restart Parsec immediately so your changes are preserved.
# Example:
# encoder_bitrate = 10
app_run_level = 3
app_discord = 0
client_vsync = 0
client_decoder_index = 2
client_decoder_h265 = true
server_resolution_x = 1280
server_resolution_y = 720
encoder_bitrate = 2
encoder_fps = 30
encoder_fps_1 = 30
I installed parsec from: https://parsecgaming.com/downloads/
I use Ubuntu 20.04 and and Nvidia Geforce 1050ti video card. I had to install this tweak to get Parsec to do hardware decoding using libva-vdpau vaapi. I borrowed it from the moonlight project snap.
I got this error when running vainfo to verify the VAAPI-VDPAU wrapper.
vainfo
error: XDG_RUNTIME_DIR not set in the environment.
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
My solution was to borrow nvidia_drv_video.so from moonlight, I have not idea why this was not installed with the proprietor nvidia drivers.
sudo snap install moonlight
sudo ln -s /snap/moonlight/current/usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
It used to be part of the vdpau-va-driver package, but that is no longer available on 20.04. It’s replaced by the mesa-va-driver, which does not contain it.
From: https://support.parsecgaming.com/hc/en-us/articles/115003632451-Parsec-Shortcuts
CLIENT MENU OPTIONS
EXITING THE STREAM
FRIEND SHORTCUTS
IMMERSIVE MODE
The Oculus Quest is not available in the US, and even if/when it becomes available again it’s still over $400. Plus it’s limited to the Oculus store games, unless you use a USB 3.0 10ft link cable. That is why I needed an alternative setup to run virtual reality programs such as:

The following guide is primarily for people that have no VR hardware, besides a google cardboard like phone headset, but it is still useful if you already own Gear VR, Daydream, Oculus GoQuest, etc.. I will show you how to wirelessly stream SteamVR, and Oculus titles. As well as add head, body and feet trackers. Also, play non-VR games in pseudo VR.
I will present two guides below. One for the minimum setup you’ll need, and another for a fully immersive body tracking setup.

3 Degrees of Freedom (3DoF) Head Mounted Display (HMD) w/ Gamepad
This setup will allow you to look around in a VR game with orientation tracking (3 degrees of freedom), and control your movement etc with a gamepad. You can use a keyboard and mouse if you don’t have a controller. The game will not track the position of your body, just the orientation of your HMD. (Yaw, Pitch, and Roll)
It’s smart to start with this setup to test the video streaming software, etc…
Unfortunately you will still need:
You will to download and install all of theses to your Windows 10 computer.
You will need to download and install ONE of the below pieces of software to your smartphone. Also, the server portion of the package to your computer. iVRy is good to start with because if it’s ease of use, and unlimited free version in black and white. If you have a Samsung Gear VR, or an Oculus Go/Quest, use ALVR. If you have an iPhone 5s or newer you might want to try out KinoVR. I use Riftcat/Vridge.
iVRy – $8
Free to try in color for 10 minutes, and black and white after. Easy to use.
Server (Steam plugin): https://store.steampowered.com/app/992490/iVRy_Driver_for_SteamVR/
Android Client: https://play.google.com/store/apps/details?id=com.mediator_software.ivry&hl=en_US
iOS Client: https://apps.apple.com/us/app/ivry/id1210129937
Riftcat/Vridge – $15 (Complete review pending…)
Server: https://riftcat.com/vridge
Android client: https://play.google.com/store/apps/details?id=com.riftcat.vridge2&hl=en_US
iOS client: https://apps.apple.com/us/app/vridge/id1458108034
Pros: Free to try for 10 minutes at a time. Can use Moonlight and ARcore. ARCore is experimental. Using phone as controller is $5. Has play non VR games in VR addon for $10 (Gamewarp). Can use Opentrack for positional tracking. Good support.
Cons: Cannot use ARCore and Moonlight at same time. Cannot use Gamewarp and Moonlight at the same time. Cannot use GearVR controller and Moonlight at the same time.
ALVR – FREE & Open Source! GearVR & Oculus Go/Quest only. Can use ARcore for positional tracking. The developer doesn’t seem to be doing anything for the last year.
Server: https://github.com/polygraphene/ALVR/releases
Client: https://github.com/polygraphene/ALVRClient/releases
Newer Quest fork: https://github.com/JackD83/ALVR
Trinus Cardboard VR – $10
Server: https://www.trinusvirtualreality.com/trinus-cardboard/#downloadtrinus
Android client: https://play.google.com/store/apps/details?id=com.loxai.trinus.test&referrer=utm_source%3Dtweb
iOS client: https://apps.apple.com/us/app/trinusvr/id1101683353
Using phone as controller is free. Can use some LED tracking with your webcam for Positional data, can also use Freepie. You can play non VR games in VR. UI in non-intuitive.
KinoVR – Claims to have 6DoF for it’s iOS version. Maybe using ARKit? Android & iOS. I don’t know anything about this project.
Intugame (No longer being developed)
https://www.quarkxr.com/past-work
If you want to use a PS3 Dualshock controller wirelessly over bluetooth, you’ll need to install this driver:
PS3 Dualshock Controller – https://github.com/nefarius/ScpToolkit
If you install the bluetooth driver, you will not be able to use other bluetooth devices until you remove the driver. To remove the driver follow this guide: https://forums.vigem.org/topic/250/scptoolkit-removal-guide
Xbox Controller’s should work out of the box I think.
If you don’t have a wireless gamepad lying around, but you do have an extra android phone. Turn it into a wireless controller.
Riftcat/Vridge supports one GearVr, Oculus Go, Daydream, or Vive Focus controller. However, you have be using the GearVR, Daydream, or Vive Focus HMD respectively.
Driver4VR supports one or two PS Move, Joycon, Wii remote/nunchuck, Daydream, and GearVR controllers without any corresponding HMD. Also Leap Motion, Kinect & NoloVR. You can also use a generic bluetooth VR controller. This includes the option of virtualized hand tracking using the orientation of the controller.
GearVR driver: https://github.com/gb2111/Access-GearVR-Controller-from-PC
https://www.driver4vr.com/forums/topic/2-gear-vr-controllers-w10/
I was confused by Rucio’s reference to “IKN”, but here is how I got both controllers to work in 1909. I’m assuming he meant “IRK”. Heads up, this will mess with your computer’s registry and has the potential to break windows if done incorrectly. No one except yourself is responsible for anything that may go wrong.
* Connect one of the Gear VR controllers to Windows via the Bluetooth menu. Make a note of what the device name is, specifically the 4 letters and numbers inside the parenthesis. This should work without error.
* Regedit.exe as Administrator, navigate to ComputerHKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesBTHPORTParametersKeys. On the left, there will be a subkey (folder) under “Keys”, the name of this folder will be specific to each computer. Expand that folder with the downwards arrow. Now you should see a folder with the last 4 characters in the name matching the 4 characters in the Bluetooth menu. Open this folder.
* There is a entry with the name “IRK”. Click that and you’ll see the the attached screen. Replace the 01 at the start of each line with 02.
* Close out of Regedit and restart your computer.
You should now be able to pair the second controller without issues. You don’t need to worry about changing that value back, but you may need to remove both devices and repeat this process if you ever need to repair the controller.
See below for verification.
6DoF HMD w/ two 6DoF Contollers (position emulated) two 6DoF Foot trackers w/ Virtual hip tracker. For this setup, you will need to use Riftcat/Vridge software for it’s integration with Opentrack. Unless you use Driver4VR for all body tracking. In which case you can use whichever HMD streaming package you like.
There are a number of different ways to get positional data of your HMD. Here are the ones I’ve discovered.
Aruco Marker Requirements:
If you are not ARCore, you’ll need to use either a PS Eye or Kinect camera to track your head. Oculus Go/Quest already does this. Probably using lasers.
To enable headtracking in Riftcat you’ll need to download and install:
Opentrack: https://github.com/opentrack/opentrack
If using Kinect download and install Kinect to Opentrack – https://github.com/sheepsskullcity/opentrackkinect
Driver4VR – https://www.driver4vr.com/download/
PS Eye Driver – https://github.com/jkevin/PS3EyeDirectShow (Supports multiple camera’s at once, but they are name the same, so you must initialize them in succession.)
Kinect for xbox 360 / v1:
-SDK https://www.microsoft.com/en-us/download/details.aspx?id=40278
-Runtime https://www.microsoft.com/en-au/download/details.aspx?id=40277
Kinect for xbox one / v2
– SDK https://www.microsoft.com/en-us/download/details.aspx?id=44561
– Runtime https://www.microsoft.com/en-us/download/details.aspx?id=44559
Troubleshooting Kinect 360 Download Kinect Developer Toolkit, start Kinect Tookit Browser and try Skeleton Basics application and Color Basics application – You may also run the Kinect Explorer-D2D after a computer restart to get further information from the console window that you can share screenshot https://www.microsoft.com/en-us/download/details.aspx?id=40276
Kinect for xbox one / v2: – Use Kinect Verifier https://developer.microsoft.com/en-us/windows/kinect/hardware-setup
https://support.riftcat.com/hc/en-us/articles/360015646579
With Reshade or VorpX
With Moonlight, Opentrack, and OpenPIE MIU, Or Riftcat/Vridge
With Moonlight, Opentrack, and OpenPIE MIU, Or Riftcat/Vridge
https://www.reddit.com/r/EliteDangerous/comments/4cfo37/google_cardboard_and_moonlight/
https://github.com/BlueSkyDefender/Depth3D
With Moonlight, Opentrack, and OpenPIE MIU, Or Riftcat/Vridge
https://www.reddit.com/r/oculus/comments/7zp9hx/3d_vision_sbs_3d_for_flatscreen_games_with_the/
Nero GameVR Will just display any game in big screen mode within VR, but not actually convert game to VR.
Steam will also do this “Play in Theater”.
Also, for GearVR Oculus Go/Quest you can use the Remote Desktop app.
https://www.vrdesktop.net/
Alt+Ctrl+Shift+R – Recenter – By default it’s Alt+Ctrl+Shift+R, but it can be changed in RiftCat settings -> VRidge -> Tracking Options.
https://youtu.be/Y7hRKgfAgUw – VRidge Basic Tutorial http://go.riftcat.com/SkyrimSharpness – Improve Skyrim image quality. http://go.riftcat.com/SkyrimMods – Learn how to install
https://forum.xda-developers.com/mobile-vr/gear-vr/port-gear-vr-software-to-android-device-t3540402
https://github.com/ChristophGeske/ARCoreInsideOutTrackingGearVr/blob/master/README.md
]]>You will need a USB-C to USB-A cable, and a computer. Most of it can be done on Linux, or MacOS, but the initial downgrade of the OS can only done on Windows. Unless you can run LGUP and Uppercut in WINE or a Virtual Machine.
Plus all these files:
Unlock Bootloader (This will delete all your data!)
adb reboot bootloader You can also boot into fastboot mode via a key combination: With the device powered off, hold Volume Up + Power.fastboot devices TIP: If you see no permissions fastboot while on Linux or macOS, try running fastboot as root.fastboot oem unlockfastboot rebootDowngrade to H83020A.
I used a Windows 10 machine to perform the following:
Install TWRP custom recovery. I ran this is an Ubuntu terminal after making sure I had adb installed. You can use WSL (Windows Subsystem for Linux), or Windows cmd.
wget urladb push ~/Downloads/twrp-blahblah /sdcard/recovery.img#LINUX
TARGET=/data/local/tmp
adb shell rm -rf $TARGET/recowvery
adb shell mkdir $TARGET/recowvery
adb push dirtycow $TARGET/recowvery/
adb push recowvery.sh $TARGET/recowvery/
adb push recowvery-app_process64 $TARGET/recowvery/
adb push recowvery-applypatch $TARGET/recowvery/
adb push recowvery-run-as $TARGET/recowvery/
adb shell sh $TARGET/recowvery/recowvery.sh
Or
rem WINDOWS
set TARGET=/data/local/tmp
adb shell rm -rf %TARGET%/recowvery
adb shell mkdir %TARGET%/recowvery
adb push dirtycow %TARGET%/recowvery/
adb push recowvery.sh %TARGET%/recowvery/
adb push recowvery-app_process64 %TARGET%/recowvery/
adb push recowvery-applypatch %TARGET%/recowvery/
adb push recowvery-run-as %TARGET%/recowvery/
adb shell sh %TARGET%/recowvery/recowvery.sh
Wait for it to reboot. Disconnect and reconnect the USB cable.
adb shell sh $TARGET/recowvery/recowvery.sh --stage1 --nohash
adb shell sh $TARGET/recowvery/recowvery.sh --stage2 --nohash
adb reboot recovery
Wait for recovery
Install Decryption
adb push no-verity-opt-encrypt-6.1.zip /cache/recovery/
adb shell twrp install /cache/recovery/no-verity-opt-encrypt-6.1.zip
adb shell twrp wipe cache
Install H83030C
wget urladb push LG-H83030c.ARB01.TMO.US.COMPLETE.FLASHABLE.zip /sdcardadb shell twrp install /sdcard/H83030c.ARB01.TMO.US.COMPLETE.FLASHABLE.zipInstall Magisk (Root)
wget urladb sideload Magisk-v20.1.zipDone!
How to restore back to stock 8.0.0 Oreo H83030C
Alfa AWUS052NH: https://amzn.to/2PEYjFV
Chipset: Ralink MediaTek RT3572
Notes: Works out of the box! Not 802.11AC only 5GHz N.

Alfa AC1900 AWUS1900: https://amzn.to/2USgjRg
Chipset: Realtek RTL8814 RTL8814U RTL8814AU
Device info: https://wikidevi.com/wiki/ALFA_Network_AWUS1900
Debian driver: https://github.com/aircrack-ng/rtl8812au
Kali driver: sudo apt install realtek-rtl88xxau-dkms
Notes: Monitor mode must be set manually
Alfa AC1200 AWUS036ACH: https://amzn.to/2PESHeO
Chipset: Realtek RTL8812 RTL8812AU
Ubuntu driver: sudo apt install rtl8812au-dkms (This seems to be outdated)
Kali driver: sudo apt install realtek-rtl88xxau-dkms
Debian driver: https://github.com/aircrack-ng/rtl8812au
Notes: Monitor mode must be set manually
From: https://medium.com/@adam.toscher/configure-your-new-wireless-ac-1fb65c6ada57
]]>