Code Monkey home page Code Monkey logo

rpi_simple_usb_samba_nas's Introduction

rpi_simple_usb_samba_nas

This repo installs a simple samba nas on your Raspberry Pi.

Each share is mounted from the usb storage on the Pi and is mounted readonly for everyone.

This is a quick and convinient way to mount readonly shares on your home network for all to see.

USB format

Format your USB devices and add a folder called shares. Inside shares, you can add your folders that you want sharing on your network.

Example:

USB1
+ shares
|    + music
|    - photos
- pictures

USB2
+ shares
     - documents

The above layout will create samba shares 'music','photos' and 'documents'. It will not create a share called pictures as its not in the shares folder.

Installation

Use Raspberry Pi Imager to install the Raspberry Pi Lite OS on an SD card. A small 1GB SD card is ideal, but you can use anything above this.

Copy 2 files onto the boot volume

Place the SD card in your Pi and power on. After a few mins, you should be able to ssh to the new device (default hostname is raspberrypi).

default user is pi
default pwd is raspberry

Run the following in /home/pi

wget -O - https://raw.githubusercontent.com/pantson/rpi_simple_usb_samba/main/install.sh | sudo bash

This will install and setup the shares.

It is recommended that you change your default user and password and also the hostname of the device. Run raspi-config to do this

sudo raspi-config

Scope

Whats in scope?

This script will install samba, ntfs-3g and fuse.

On every boot it will scan the plugged in USB drives and mount any folders that are in shares folder of a usb stick

These share will be set as public and readonly.

This makes it really easy for a home network as EVERYONE will have READ access to the shares.

If you are wanting authentication per user, this is not the script for you.

Whats not in scope?

The script will not change the hostname of the raspberry pi device, nor will it set the password. To perform these actions, use raspi-config

sudo raspi-config

rpi_simple_usb_samba_nas's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.