Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| pi:pi [2020/09/10 17:31] – lamboringo | pi: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=' | ||
| + | alias cp='cp --preserve=xattr' | ||
| + | # PATH | ||
| + | export PATH=$PATH: | ||
| + | # PROMPT | ||
| + | if [ " | ||
| + | then | ||
| + | export PSUSERCOL=1 | ||
| + | else | ||
| + | export PSUSERCOL=2 | ||
| + | fi | ||
| + | export PS1=" | ||
| + | </ | ||
| + | |||
| + | install & configure ispy in ~/ | ||
| + | |||
| + | * 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 ~/ | ||
| + | * 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=~/ | ||
| + | * export PATH=$PATH: | ||
| + | * dotnet Agent.dll | ||
| + | |||
| + | working! | ||
| + | |||
| + | as a service, edit AgentDVR.service | ||
| + | |||
| + | < | ||
| + | [Unit] | ||
| + | Description=AgentDVR | ||
| + | |||
| + | [Service] | ||
| + | # see https:// | ||
| + | # 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: | ||
| + | # eg for Linux: | ||
| + | |||
| + | ExecStart=/ | ||
| + | |||
| + | # 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, | ||
| + | |||
| + | 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 | ||
| + | </ | ||
| + | |||
| + | * sudo cp 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 ==== | ==== pi4 2020-09 ==== | ||
| Line 11: | Line 112: | ||
| append pi4e.id_rsa.pub to pi@pi4e: | append pi4e.id_rsa.pub to pi@pi4e: | ||
| scp .ssh/ | scp .ssh/ | ||
| - | ssh pi@pi4e | + | ssh pi@pi4e cat .ssh/ |