Skip to content

Instantly share code, notes, and snippets.

@kibotu
Created January 3, 2020 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kibotu/1219b697e9c11eaa4429123fe128c25c to your computer and use it in GitHub Desktop.
Save kibotu/1219b697e9c11eaa4429123fe128c25c to your computer and use it in GitHub Desktop.
Raspberry PI - External Wifi Storage

SSH Access

(Tutorial) https://www.raspberrypi.org/documentation/remote-access/ssh/passwordless.md

ssh-keygen -t rsa -b 4096 -C "your_email@example.com" then enable ssh on start using raspi-config it can also be started and stopped using sudo service ssh start and sudo service ssh stop check status with sudo service ssh status check open ssh sessions who -a kill ssh dameon sudo pkill -9 sshd Copy your public key to your Raspberry Pi ssh-copy-id @

Homebrew

sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"

Force the screen to stay on

sudo nano /etc/lightdm/lightdm.conf

Add the following lines to the [SeatDefaults] section:

don't sleep the screen

xserver-command=X -s 0 dpms

Disable Swap-file

sudo service dphys-swapfile stop

External Storage

https://www.raspberrypi.org/documentation/configuration/external-storage.md

exFAT

sudo apt install exfat-fuse

NTFS

sudo apt install ntfs-3g

location of the disk partition:

sudo blkid

File Server Samba

https://jankarres.de/2013/11/raspberry-pi-samba-server-installieren/

Install

sudo apt-get install samba samba-common-bin

config

sudo nano /etc/samba/smb.conf [global] workgroup = WORKGROUP security = user encrypt passwords = yes Test with testparm

Restart

sudo service smbd restart
sudo service nmbd restart

for windows:

[global] client min protocol = SMB3 protocol = SMB3 wins support = yes ntlm auth = true workgroup = WORKGROUP security = user encrypt passwords = yes

Share external drives

[Media] comment = "Media" path = /media/pi browseable = yes

writeable = yes

read only = yes only guests = no public = yes guest ok = yes

create mask = 0777

directory mask = 0777

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment