I've just configured it on my NAS with help of information available on following post:
https://groups.google.com/forum/#!searchin/alt-f/recycle$20bin|sort:date/alt-f/2t08pou20HE/JWsQZlafCwAJAnd as the information there is poorly structured I'm making this short "guide"
In order to activate the recycle bin you must:
1) Install "samba-modules" and "samba-doc" packages (thru Alt-F - found under packages)
2) Still under Alt-F, go Services > Network and click Configure button for smb (Samba Server)
3) Click on Advanced and enter root and it's password
4) Click on "Shares", click advanced on "Change View To", select the share on the list and click on "choose share"
5) Go to "vfs objects" (under "VFS module options") and type "recycle" on the box then click on "commit changes" (on top of page)
6) Save settings
7) connect via ssh (using PuTTY*) and type: vi /etc/samba/smb.conf
8) Now under Vi (it's an editor), type "i" to enter insert mode, find "vfs objects = recycle" and add under it following lines**:
recycle:keeptree=yes
recycle:versions=yes
9) Press Esc to leave insert mode then ZZ or :wq (to save and quit)
10) Possibly stop/start smb for changes to take effect (on Alt-F > Services or using the "rcsmb reload" or "rcsmb restart" commands via ssh)
11) Delete something (if you don't the folder won't be created)
Done! Now you have a hidden folder called ".recycle" inside the root of your share
*Putty can be found here:
https://www.chiark.greenend.org.uk/~sgtatham/putty/**To understand what they do and more options see:
https://www.samba.org/samba/docs/current/man-html/vfs_recycle.8.htmlYes, you can skip 2 to 6 and simply add "vfs objects = recycle" line thru Vi too, but as a noob guide I'm leaving them there so you get to know samba interface better and have a reference where to add the lines.
If under Firefox you get SEC_ERROR_UNKNOWN_ISSUER when trying to access advanced samba:
1- Go to Options > Advanced > Certificates and click on View
2- On Servers tab you click on Add exception, then type the location the message was showing (ex: NASNAME:902) and click get certificate
3- It'll fail and allow you to click on "Permently store" and then "confirm security exception"