Infrastructure
Files
Share folders on your network, send a link to a file, and browse and search files.
The Files page has three parts: Shares, Links and Browse. Nothing runs until you add the first share.
#Share a Folder
Under Shares, choose Share Folder. Samba serves Windows and Mac. NFS serves Linux and Mac.
| Option | Meaning |
|---|---|
--smb | Samba share. Needs --user or --guest. This is the default. |
--nfs | NFS export to this network only. |
--ro | Read only. |
--user U | A Linux account. Its Samba password is the first line on stdin. |
--guest | Anyone on the network, read only. |
bistro shares # list shares
echo 'a-password' | bistro shares add media /srv/data/media --smb --user alice
bistro shares add backups /srv/data/backups --nfs --ro
bistro shares status # daemons, shares, links
bistro shares remove media # the folder and files stayWhen the last share goes, Bistro stops the daemons. Bistro checks the Samba file and keeps the old one if the check fails.
#Links to a File or Folder
Under Links, choose Make Link. The link opens a small read-only web server. It stops by itself after the hours you set, from 1 to 168. The default is 24.
bistro shares link /srv/data/photos/trip.zip --hours 48
echo 'secret' | bistro shares link /srv/data/docs --password-stdin
bistro shares links # live links
bistro shares revoke ID # stop a link nowA password means the user name bistro and the password you gave. Add --public to also open the link on the internet through a Cloudflare quick tunnel. A public link needs a password.
To share an app instead of a file, see Remote access.
#Browse Files
Under Browse, you can browse /srv/data and /home. You can make folders, rename, move, copy, zip, unzip and change permissions. Deletes go to the trash first. See Storage.
bistro fm roots # the folders you can browse
bistro fm list /srv/data
bistro fm mkdir /srv/data/new#Search
Press Ctrl K in the dashboard to search files by name. It uses plocate when installed, or a bounded find under /srv/data and /home. It returns at most 50 hits. Hidden folders and caches are skipped.
bistro search --files report # files by name
bistro search report # apps, services, settings, logs and help too#Find Big and Duplicate Files
These commands only read. See Storage for the dashboard view.
bistro big /srv/data
bistro dupes /srv/data