It is often necessary to rename multiple files, adding an index at the end of the name or completely change the name of the file. This is an easy task with bash, just one single line command:
count=0; for i in *.jpg; do let "count++"; mv "$i" "My Pictures - $count.jpg"; done;
This is a quick and dirty tutorial how to setup a public share on Samba under Raspbian with write privileges for everyone.
1. Install packages below:
apt-get install samba
apt-get install samba-common
apt-get install samba-common-bin
2. Add the “pi” user to Samba using the command below:
smbpasswd -an pi
3. Modify /etc/samba/smb.conf to create the share.
comment = Downloads
path = /home/pi/storage/Downloads
browseable = yes
writeable = yes
guest ok = yes
guest only = yes
guest account = pi
force user = pi
force group = pi
The “path” parameter is used to specify the location of the share. Make sure /home/pi/storage/Downloads exists and it’s owned by the pi user.
4. When you are done just restart Samba.
5. Take a beer and start testing