Skip to content

Instantly share code, notes, and snippets.

@maxwofford
Last active August 27, 2019 00:52
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 maxwofford/7df4299473747092f181274c94f7e681 to your computer and use it in GitHub Desktop.
Save maxwofford/7df4299473747092f181274c94f7e681 to your computer and use it in GitHub Desktop.
1. Install samba:
```
// https://www.raspberrypi.org/documentation/remote-access/samba.md
$ sudo apt update -y
$ sudo apt install samba samba-common-bin smbclient cifs-utils -y
```
2. Create folder & backup old files
```
$ cd ~/.octoprint
$ mv uploads uploads.bak && mkdir uploads # optional
$ mv timelapse timelapse.bak && mkdir timelapse #optional
```
3. Mount new folders
```
$ sudo mount -t cifs //192.168.1.180/shared/Octopi/uploads -o rw,guest,vers=3.0,uid=$(id -u),gid=$(id -g) ~/.octoprint/uploads
$ sudo mount -t cifs //192.168.1.180/shared/Octopi/timelapse -o rw,guest,vers=3.0,uid=$(id -u),gid=$(id -g) ~/.octoprint/timelapse
```
4. Setup automount
```
# Edit /etc/fstab
//192.168.1.180/shared/Octopi/uploads /home/pi/.octoprint/uploads cifs rw,guest,vers=3.0,uid=1000,gid=1000 0 0
//192.168.1.180/shared/Octopi/timelapse /home/pi/.octoprint/timelapse cifs rw,guest,vers=3.0,uid=1000,gid=1000 0 0
```
5. Ensure permissions work by going to octopiX.makehaven (where "x" is the printer number) *Settings>Folders*, click "Test" button next to upload & timelapse folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment