Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
pi:pi [2017/09/04 18:48] – external edit 127.0.0.1pi:pi [2022/03/30 04:48] (current) lamboringo
Line 1: Line 1:
 +==== pi4 start up ====
 +
 +boot in lubuntu
 +
 +in the pi home dir, there is a shell script to
 +
 +  * start deepface docker
 +  * restart AgentDVR
 +
 +==== pi4 2021-08 + ispyconnect ====
 +
 +copy image to SD + apt update & apt upgrade then reboot
 +  $ dd if=2021-05-07-raspios-buster-armhf.img of=/dev/sdc bs=4M conv=fsync status=progress
 +
 +open ssh + install nomachine
 +
 +custom.sh
 +<code custom.sh>
 +alias l='ls -lhX --group-directories-first'
 +alias ssh='ssh -o ServerAliveInterval=100 -Y'
 +alias cp='cp --preserve=xattr'
 +# PATH
 +export PATH=$PATH:~/bin
 +# PROMPT
 +if [ "$EUID" == "0" ];
 +then
 + export PSUSERCOL=1
 +else
 + export PSUSERCOL=2
 +fi
 +export PS1="$(tput -Txterm-256color bold ; tput -Txterm-256color setaf $PSUSERCOL)### $(tput -Txterm-256color setaf 7)\d \A  $(tput -Txterm-256color setaf $PSUSERCOL)\u $(tput -Txterm-256color setaf 3)\H $(tput -Txterm-256color setaf 2)\w $(tput -Txterm-256color sgr0)\n\$ "
 +</code>
 +
 +install & configure ispy in ~/ispyconnect https://www.ispyconnect.com/download.aspx
 +
 +  * download dotnet aspnetcore-runtime-3.1.11-linux-arm.tar.gz
 +  * extract dotnet in dotnet subdir: mkdir dotnet && cd dotnet && tar xf aspnet...
 +  * download Agent_ARM32_3_5_2_0.zip
 +  * extract in ~/ispyconnect
 +  * ffmpeg and snapd not needed
 +  * sudo apt install -y libtbb-dev libc6-dev gss-ntlmssp libatlas-base-dev
 +  * sudo apt-get install -y libvlc-dev vlc libx11-dev
 +  * export DOTNET_ROOT=~/ispyconnect/dotnet
 +  * export PATH=$PATH:~/ispyconnect/dotnet
 +  * dotnet Agent.dll
 +
 +working!
 +
 +as a service, edit AgentDVR.service
 +
 +<code>
 +[Unit]
 +Description=AgentDVR
 +
 +[Service]
 +# see https://www.ispyconnect.com/userguide-agent-service.aspx for instructions
 +# systemd will run this executable to start the service. AGENT_LOCATION needs to be the absolute path
 +# DOT_NET_LOCATION should point to where the dotnet executable is - this might be different on your computer. 
 +# For Raspberry Pi YOUR_USERNAME is usually pi
 +#
 +# eg for Raspberry Pi: ExecStart=/usr/share/dotnet/dotnet /home/pi/Desktop/Agent/Agent.dll
 +# eg for Linux: ExecStart=/usr/bin/dotnet /home/sean/Desktop/Agent/Agent.dll
 +
 +ExecStart=/home/pi/ispyconnect/dotnet/dotnet /home/pi/ispyconnect/Agent.dll
 +
 +# to query logs using journalctl, set a logical name here
 +SyslogIdentifier=AgentDVR
 +
 +# Use your username to keep things simple.
 +# If you pick a different user, make sure dotnet and all permissions are set correctly to run the app
 +# To update permissions, use 'chown YOUR_USERNAME -R AGENT_LOCATION' to take ownership of the folder and files
 +
 +User=pi
 +
 +# ensure the service automatically restarts
 +Restart=always
 +# amount of time to wait before restarting the service                        
 +RestartSec=5
 +
 +[Install]
 +WantedBy=multi-user.target
 +</code>
 +
 +  * sudo cp AgentDVR.service /etc/systemd/system/AgentDVR.service
 +  * sudo systemctl daemon-reload
 +  * sudo systemctl status AgentDVR
 +  * sudo systemctl start AgentDVR
 +  * sudo systemctl enable AgentDVR
 +
 +
 +
 +
 +
 +
 +
 +
 +==== pi3 2021-07 ====
 +
 +copy image to SD
 +  $ dd if=2021-05-07-raspios-buster-armhf.img of=/dev/sdc bs=4M conv=fsync status=progress
 +
 +
 +==== pi4 2020-09 ====
 +
 +Downloaded piOS.
 +
 +=== sshfs ===
 +
 +@inagua: generate passwordless keys names pi4e.id_rsa
 +  ssh-keygen -f pi4e.id_rsa
 +
 +append pi4e.id_rsa.pub to pi@pi4e:.ssh/authorized_keys
 +  scp .ssh/pi4e.id_rsa.pub pi@pi4e:.ssh/
 +  ssh pi@pi4e cat .ssh/pi4e.id_rsa.pub >> .ssh/authorized_keys'
 +
 +
 +----
 +
 install raspbian https://www.raspberrypi.org/downloads/ install raspbian https://www.raspberrypi.org/downloads/
 start and small config (wifi, keyboard, ssh) start and small config (wifi, keyboard, ssh)