Skip to content

Application for turning a Raspberry PI into a file sharing server using its USB ports as drives

License

Notifications You must be signed in to change notification settings

jacobtread/Drive-PI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Drive-PI

License

About

This application is for a school assessment of mine that requires me to create a Samba share on Raspberry PI that shares any USB sticks that are plugged into it. Which should then be accessible through the wireless hotspot that the Raspberry PI will start.

In this case rather than having a physical button and display which shows the IP address and controls the unmounting and mounting of drives. This uses a web application which I've created and uses dnsmasq (https://dnsmasq.org/) to make the virtual domain drivepi.local available.

This allows the service to be accessed from the hotspot using the url http://drivepi.local for the web app and the smb share will be located at \drivepi.local\drivepi

Repo Structure

This Repository is a monorepo for both the backend and frontend of the app. The frontend directory contains the React frontend and the backend directory contains the Rust backend server

Environment Variables

Variable Default Description
DRIVEPI_USERNAME admin The username to access the web panel
DRIVEPI_PASSWORD admin The password to access the web panel
DRIVEPI_PORT 80 The port to host the HTTP server on
RUST_LOG drivepi=info Logging crate configuration
RUST_LOG_STYLE always Whether to enable colored logging output

Extra

Raspberry PI compiler toolchains for Windows https://gnutoolchains.com/raspberry/ easiest way to cross compile for the Raspberry PI from windows

Screenshots

Auth Screenshot Main Screenshot

About

Application for turning a Raspberry PI into a file sharing server using its USB ports as drives

Resources

License

Stars

Watchers

Forks

Packages

No packages published