We have a number of Raspberry Pi's around our home and family. The little system has been deployed to simplify techno-life, entertain or integrate household technology. This collection of Pi Recipes is maintained to help with builds/rebuilds and may range from half-baked concepts to step-by-step procedures, typically for my own pursuit, but possibly of interest to others. Pi recipes will slowly be migrated to this site from good old Ventures.TPedersen.net as needed, hopefully saving anything important before Google Transitions everyone to 'New' Sites.
(Works in process, likely VERY unsettled)
TightVNC Server [Looks Good]
Bottomline: This MAY work if I need it ... more putzing to do to get it installed and not as full featured as rpi default vnc server (realvnc).
- XP lookswitcher (XPQ4 Desktop) does not show in remote session (I'm probably NOT in the session I'd like to be)
- Below includes definitions for systemd service but I think I'd just fire this up via CLI on an as needed basis
- I still need to double check that it works via remote.it (remote control gizmo I use)
Rough notes as I go ... Working with Q4OS, but I'd guess this will work on RaspiOS too
TightVNC looks to be GPL, actively maintained and has been around for a long time (> 10 years).
Most doc seems to be focused on windoze, but this guy posted a RPi step-by-step
Notes as I go in case I need to retrace my steps
Turned off stock VNC Server via sudo raspi-config -> Interface Options -> Disable VNC
Install via sudo apt-get install tightvncserver (this did remove package realvnc-vnc-server)
Initial run of vncserver to setup passwords ... it went a little like this ...
You will require a password to access your desktops.
Would you like to enter a view-only password (y/n)? n
New 'X' desktop is GramPiV2:1
Creating default startup script /home/pi/.vnc/xstartup
Starting applications specified in /home/pi/.vnc/xstartup
Log file is /home/pi/.vnc/GramPiV2:1.log
Create service per devdude's example, it looks like this:
Enable the service to get links built and such ... like this
Tested via screen sharing on macbook and tigervnc viewer on linux ... seems to work some notes ...
- port is 5901
- not as full featured as realvnc
FlypaperPi (Honeypot) [Interesting]
Playing w/ OpenCanary Honeypot ... this is a mess/work-in-process
Sing-a-long w/ https://github.com/thinkst/opencanary#readme but ....
.... watching this one as I do: https://simpaul.com/opencanary-on-a-pi-quick-setup/
Step by step (notes to self)
RPIOS - lite is fine, usual setup: update/upgrade, rpi-config: pw, hn, local/kb, yada/yada
Switch to Ubuntu 20.04 LTS 32-Bit for 3 reasons - NOPE! That came out badly
From guide ....
OS Tweaks: Set interesting Mac Address (per Paul's guide) ... add "smsc95xx.macaddr=<enticing mac>" to cmdline.txt
Python Prep is a combo Open Canary Guide & Paul's (Including samba and scapy/pcapy because I want it all!)
sudo apt-get install python3-dev python3-pip python3-virtualenv python3-venv python3-scapy libssl-dev libpcap-dev
sudo apt install samba # if you plan to use the smb module
Back to Paul's guide - looks like he skipped virtual env this go round ... sounds simpler
Set up a couple of links ... from Paul's guide but check version of scripts directory in copy below ... his were 3.7, mine are 3.9
sudo link /usr/local/bin/twistd /home/pi/opencanary/bin/twistd
sudo cp ./build/scripts-3.9/opencanary.tac /usr/local/bin/opencanary.tac
Back to Opencanary guide for this part ... it did generate config file for me
[*] A sample config file is ready /etc/opencanaryd/opencanary.conf
[*] Edit your configuration, then launch with "opencanaryd --start"
Edit /etc/opencanaryd/opencanary.conf ... I just poked around initially - Banners
Fire it up ... see if it runs foreground
Couple of warnings to cleanup from initial run ...
I'm a good guesser ... closed my eyes and fixed this via ...
pip3 install service_identity
Turn it into a service so it starts on boot (thx again, Paul)
File /etc/systemd/system/opencanary.service created, it now contains:
Fire it up ...
sudo chmod 644 /etc/systemd/system/opencanary.service
sudo systemctl enable opencanary.service
sudo systemctl start opencanary.service
sudo systemctl status opencanary.service
Boot ... to see what happens
enough for now ...
Leftovers to deal with
pip install scapy pcapy # optional
Install fail that forced me to install libffl h
Whoops! that failed
No package 'libffi' found
c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
15 | #include <ffi.h>
Samba install output (in case I need it)
WiFi Bootstrapping : Comitup+Dietpi [Works!], Comitup+Q4OS [TBD]
Gave Comitup a quick once over - there was a downloadable image @ https://davesteele.github.io/comitup/. It looks to be JUST what I need AND it WORKS!
Posted experiences with the downloadable image (RaspOS that boots up with Comitup) in Raspberry Pi OS Alternatives.
I am currently exploring installing/incorporating Comitup packages into my projects as opposed to starting with the image because I use a variety of OS underpinnings - Q4OS, DietPi, Manjaro ... it (comitup-1.15-1) seems to be in latest RaspOS which should allow me to apt-get install on everything except Manjaro. I don't see it in Manjaro or Arch AUR
PanelPi - Integrate hardwired home security sensors into smart home [Stalled]
Last Update - 21 July 2020
Here wee go again! PanelPi - A little Pi help to integrate old wired alarm system
PanelPi was initially cobbled together to explore sprucing up our wired home security system. Current plan is to integrate a number of hardwired sensors into our 'Smart' home. We'll see!
Step by Step (rough notes to self, I'll cleanup later)
Phase I - Pi in Panel.
Get Panel online - currently in Wifi deadspot. Use Webiopi to see what is going on with existing sensors.
- PanelPi will have to Wifi to SuitiePi - forgot to run Ethernet to panel area when I had wall out!!! Argh!
- remember to static route and reserve dhcp so I can find/access PanelPi on that subnet
- WebIOPI did not install via Dietpi ... attempting by hand
- RPi 1 Model B -> Install instructions @ http://webiopi.trouch.com/INSTALL.html
- RPi 2 and beyond (40pin GPIO) @ https://thepiguy.altervista.org/webiopi-rp3/
Log, Odd and Ends and fond memories
July 2020 - rebuild
June 2020 - Back at it
- Ghazooks! To keep all this stuff going on our network remember the following.
OccuPi - Remote Controlled Full Screen Kiosk-Like thingy [Stalled]
Moved to tech.tpedersen.net Feb 2022. Cut'n Paste from 'Classic' Google site page @ http://ventures.tpedersen.net/errata/raspberrypi/occupi ... VERY STRANGE, this page pasted into new sites quite well, PanelPi was a total mess!
OccuPi - Remote Controlled Full Screen Kiosk-Like thingy
SmartiePi - First Computer for 4-5 Year Old [Looks pretty good]
Moved to tech.tpedersen.net Feb 2022. Cut'n Paste from 'Classic' Google site page @ http://ventures.tpedersen.net/errata/raspberrypi/smartiepi ... did not paste in very well!