RPI3 and Open Media Vault add GIT
Posted by kll on March 23 2025 22:00:50
try use RPI3 as MINI NAS
follow:

https://raspberrytips.com/openmediavault-on-raspberry-pi/


Extended Blog
RPI SETUP

OMV install

GIT

RPI tower



RPI SETUP


using a 32G SANDISK ULTRA USB 3.0 stick

RPI Imager:
burn for RPI3
Paspberry Pi OS LITE (64-BIT) !! OMV not work on desktop version
'RPI3'
user password
SSH


boot headless in RPI3 and wait

start Bitvise SSH Client ( we not know IP but can try RPI3 )

sudo apt update
sudo apt upgrade

sudo reboot

OMV install



wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash

http://RPI3.local

come up with
pi
from where?? but login worked.

only see TIME widget for dashboard
no other entry


https://forum.openmediavault.org/index.php?thread/56078-raspberry-pi-3b-omv-install/
must use
admin
openmediavault


and first change admin password


config dashboard with system info cpu / memory usage ..



now it is still not working but it looks good,
transport to 120GB USB stick


have USB stick 1 28.1GB ( used 3GB )
now use USB stick 2 114GB
//COPY
sudo dd if=/dev/sda of=/dev/sdb


60088320+0 records in
60088320+0 records out
30765219840 bytes (31 GB, 29 GiCool copied, 11886.6 s, 2.6 MB/s

remove and use Linux Laptop
gparted / KDE partition manager / and create partition 87GB ext4


boot RPI3

dashboard / Storage / File System /Mount

/dev/sda3 [ext4 86GiB]
85%
KLL
APPLY CHANGES

Storage shared folders
RPI3shared / dev/sda3/
APPLY CHANGES

make new user
kll password

add shared folder

shared folder / permission
RPI3shared [read/write]
APPLY CHANGES

Services / SMB/CIFS / Shares / Create
enable
RPI3shared
APPLY CHANGES

System / Monitoring /
enable
APPLY CHANGES


check samba

reboot


reboot win10
file manager / network / RPI3 samba / login
make a file



shutdown
put USB stick in linux laptop

copy /Projects/ into RPI3shared

use uSD from old RPI3 system in uSD card holder
in linux laptop:
sudo copy old RPI3share to NEW DRIVE

and project backup from win10PC and Laptop too

( must check ownership folder / files later in RPI3 BUT read only is OK as it is BACKUP )
sudo chown -R kll


so SAMBA is working from PC Laptop and RPI4
but when user 'pi' or 'kll' login to OMV web-interface

still see nothing? but what i expect?
only user 'admin' has a full interface
http://rpi3.local/#/dashboard






add a plugin for
FTP
enable service, link to data drive
and test from win10 PC my file-manager: Total Commander


GIT



to be clear, i work on RPI3 ( with RPI OS Lite )
and following is NOT related to OMV what runs there too


my last work was with arduino projects,
and GIT from a win10 PC
what worked but was difficult to setup new repositories...
add i got confused with 2 GITHUB accounts
and mixed 2 browsers and was forced to use mobile authenticator
anyhow this winPC died
- - a WD BLACK M2 SSD ( as in 5y warranty it was replaced for free ) still i lost all

now start again with GIT
while i setup RPI3 as mini NAS ( backup computer )
for working on
* RPI4
* laptop
* win 10 PC
and backup to RPI3

think that is also a good place to install GIT


so for my recent work i already made a repository
but just manually upload a new ZIP
while there are many tutorial and YouTube videos
my main problem is the authentication
* local file change
* git add / commit / push
fails at login ( user password )
now try again new setup:

sudo apt install git

git -v
git config --global user.name "ME"
git config --global user.email "me@gmail.com"
git config --list

so usually now make a
git init
for local work,
but there is the repository online already, so better

git clone https://github.com/MyRaspberry/Arduino_IDE_PICOW_ESP32.git
in future only need
git pull
to check up on online status

if change now there some code
OR copy new code in from the real Arduino project
/ but cleaned up already like passwords !!
/ do not do these cleanup edits inhere!!! as git will remember...

git add .
git commit -m "update"
git status
git push


so this 'git push' will ask for user password and will fail!

here now about this main authentication problem

on RPI3


ssh-keygen -t ed25519 -C "me@gmail.com"
[enter][enter][enter]
cat /home/pi/.ssh/id_ed25519
and copy the first key part

on GIT



GIT SETTINGS / Deploy keys

add deploy key

'my RPI3 GIT'

and paste the
ssh-ed25519 A_____________________________/

when i try to save it asks for authentication
via my phone 'authenticator' app got a number there and must type into GIT
( hurry up )


ok, back

on RPI3


sudo -u pi ssh -T git@github.com
[yes]
Hi MyRaspberry/Arduino_IDE_PICOW_ESP32! You've successfully authenticated, but GitHub does not provide shell access.


now check on a critical thing:
/home/pi/Projects/GIT/Arduino_IDE_PICOW_ESP32/.git/config
find:

[remote "origin"]
url = https://github.com/ME/MY.git

change:
[remote "origin"]
url = git@github.com:ME/MY.git

git push
Enumerating objects: 14, done.
Counting objects: 100% (14/14), done.
Delta compression using up to 4 threads
Compressing objects: 100% (12/12), done.
Writing objects: 100% (13/13), 34.68 KiB | 1.20 MiB/s, done.
Total 13 (delta 0), reused 0 (delta 0), pack-reused 0
To github.com:MyRaspberry/Arduino_IDE_PICOW_ESP32.git
12e8612..aa3faae main -> main



i was dragging this since my win PC died
like
* copy arduino code
* clean arduino code
* zip and upload to THIS BLOG server
* link in BLOG to ZIP
now can work again using
GIT i GIT


RPI tower


also wanted to cleanup my desk
-1- after connect RPI 2 3 4 by Ethernet Hub
-2- and get them out of box and use some nice STAND OFFs
-3- now mount that stand off tower on a plastic box with drawers
( investment : 0.74$ at a 'plastic shop' )
( where i can store system drives like uSD / USB stick and USB SSD ...)

found a British dimension drawing in [mm]


mount with screws from inside


connect power / ethernet / drives


and check headless ( from win10 PC use VNC to RPI4 and use SSH to RPI 2 and RPI3 ) ( all wired by ethernet )