Go to advanced search

by hortimech
Mon Mar 11, 2019 12:47 pm
Forum: Networking and servers
Topic: No subnet declaration for eth0. Setting up DHCP server.
Replies: 23
Views: 1184

Re: No subnet declaration for eth0. Setting up DHCP server.

No, I didn't know what the second 'c' was for, so thanks for telling me, but you still haven't answered the main questions. Why not remove it ? What will happen if you do ? Why do you need something to set a clients IP if the client has a fixed ipaddress ? On an rpi you have limited disk space, so w...
by hortimech
Sun Mar 10, 2019 7:46 pm
Forum: Networking and servers
Topic: No subnet declaration for eth0. Setting up DHCP server.
Replies: 23
Views: 1184

Re: No subnet declaration for eth0. Setting up DHCP server.

I’m not going to discuss this further. For the record, removing dhcpcd from Raspbian without a good reason is not sound advice. The OP has left the room with reason. Perhaps he needed a dhcp server because his project was a Pi 3 wireless router. I don’t think removing the dhcp client would have don...
by hortimech
Sun Mar 10, 2019 4:24 pm
Forum: Networking and servers
Topic: No subnet declaration for eth0. Setting up DHCP server.
Replies: 23
Views: 1184

Re: No subnet declaration for eth0. Setting up DHCP server.

Why? Mhh. Let me see. It is preintalled since Jessie, it is documented, it mostly works. Did I get that right? So, just because it is installed on something that gets its IP via dhcp and is documented, it is a good reason not to remove it when you are replacing it with a dhcp server ? The 'it mostl...
by hortimech
Sun Mar 10, 2019 2:25 pm
Forum: Networking and servers
Topic: No subnet declaration for eth0. Setting up DHCP server.
Replies: 23
Views: 1184

Re: No subnet declaration for eth0. Setting up DHCP server.

Because if you are running a dhcp server it needs to have a fixed IP, so anything that sets the ipaddress isn't needed , so why have it installed and running ? Technically, it doesn’t. But of course you don’t want 2 competing DHCP servers on the same network so a static IP it is often. Something ha...
by hortimech
Sun Mar 10, 2019 9:26 am
Forum: Networking and servers
Topic: No subnet declaration for eth0. Setting up DHCP server.
Replies: 23
Views: 1184

Re: No subnet declaration for eth0. Setting up DHCP server.

If you are running a dhcp server, you probably should remove dhcpcd (its actual name is dhcpcd5). Why?? Because if you are running a dhcp server it needs to have a fixed IP, so anything that sets the ipaddress isn't needed , so why have it installed and running ? I also had a bit of brain fade, yes...
by hortimech
Sat Mar 09, 2019 7:15 pm
Forum: Networking and servers
Topic: No subnet declaration for eth0. Setting up DHCP server.
Replies: 23
Views: 1184

Re: No subnet declaration for eth0. Setting up DHCP server.

If you are running a dhcp server, you probably should remove dhcpcd (its actual name is dhcpcd5). You have this: option broadcast-address 192.168.1.254; I would change it to this: option broadcast-address 192.168.1.255; Is the dhcp servers IP really 192.168.1.0 and the gateway 192.168.1.1 ? If the g...
by hortimech
Thu Mar 07, 2019 9:41 am
Forum: Troubleshooting
Topic: quick script help
Replies: 3
Views: 161

Re: quick script help

i don't know why that's why i am asking Nothing seems to work and you need double quotes or runcommand.sh wont work or even give me a error log I've tried it with and without double quotes. but double quotes at lest tells me a config file is missing so i am still unable to get it to run. I've tried...
by hortimech
Wed Mar 06, 2019 3:51 pm
Forum: Troubleshooting
Topic: quick script help
Replies: 3
Views: 161

Re: quick script help

I haven't a clue what you are trying to do, but if you are just trying to run another script from a script, you don't need all the double quotes. Try typing into a terminal: /opt/retropie/supplementary/runcommand/runcommand.sh 0 _PORT_ srb2k If that works, put that line into your script, if it doesn...
by hortimech
Tue Mar 05, 2019 8:26 am
Forum: Troubleshooting
Topic: SMB share with Windows 10 [SOLVED!!!!]
Replies: 39
Views: 3136

Re: SMB share with Windows 10

As can be seen in the samba docs, %S expands to "the name of the current service, if any". So, if the name of the current service is "foo" the only valid user will also be "foo". But the documentation also states "The following substitutes apply only to some configuration options (only those that a...
by hortimech
Thu Feb 28, 2019 6:53 pm
Forum: General discussion
Topic: smdb connections?
Replies: 1
Views: 108

Re: smdb connections?

Try adding 'deadtime = 10' to smb.conf, this will disconnect any dead smbd connections after ten minutes.
by hortimech
Wed Feb 27, 2019 8:29 am
Forum: Troubleshooting
Topic: SMB share with Windows 10 [SOLVED!!!!]
Replies: 39
Views: 3136

Re: SMB share with Windows 10

Yes, it looks like your Win10 machine is still using NTLMv1, but it also looks like the drive is being mounted as another user, perhaps 'root' ?????
by hortimech
Tue Feb 26, 2019 9:26 am
Forum: Troubleshooting
Topic: SMB share with Windows 10 [SOLVED!!!!]
Replies: 39
Views: 3136

Re: SMB share with Windows 10

When I click on the Pi from Windows PC in Network I can see my two shared drives. It does not ask me for a password to see this and I have removed the credential save from the Windows Credential Manager. You could still be using SMBv1, try adding 'ntlm auth = yes' to your smb.conf, restart Samba an...
by hortimech
Sun Feb 24, 2019 9:04 am
Forum: Troubleshooting
Topic: SMB share with Windows 10 [SOLVED!!!!]
Replies: 39
Views: 3136

Re: SMB share with Windows 10

My reading of the relevant documentation (https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html#) suggests there is no parameter 'protocol = SMB3'. I am using Raspbian to share with other Pi's and Windows machines and it works fine, but I use the following line in the [global] section o...
by hortimech
Wed Feb 20, 2019 1:00 pm
Forum: Troubleshooting
Topic: Samba version 4.5.16 ~ error after upgrade
Replies: 4
Views: 315

Re: Samba version 4.5.16 ~ error after upgrade

No, Debian needs to get its act together ;-) It says this: Please ignore the following error about deb-systemd-helper not finding samba-ad-dc-service. it shouldn't, the upgrade should check how Samba is being run and if 'server role = active directory domain controller' isn't found, it should totall...
by hortimech
Tue Feb 19, 2019 4:53 pm
Forum: Advanced users
Topic: Share files from a raspberry pi to a windows PC
Replies: 4
Views: 299

Re: Share files from a raspberry pi to a windows PC

Have you considered using Samba's documentation ? You don't get much more up to date than that: https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server As for the 'samba' command not being found, I think you are referring to starting the Samba binaries, there used to be an init scri...
by hortimech
Fri Feb 15, 2019 9:40 pm
Forum: Troubleshooting
Topic: Cant access share on Pi
Replies: 11
Views: 442

Re: Cant access share on Pi

If somebody gets through your firewall, they are more than half way there already, so you don't want anything that makes it easy for them. There is no other way of putting it, that smb.conf is very very insecure.
by hortimech
Fri Feb 15, 2019 7:15 pm
Forum: Troubleshooting
Topic: Cant access share on Pi
Replies: 11
Views: 442

Re: Cant access share on Pi

I do hope that rpi isn't connected to the internet, that has to be the most insecure smb.conf I have ever seen.
by hortimech
Fri Feb 15, 2019 4:44 pm
Forum: Troubleshooting
Topic: Cant access share on Pi
Replies: 11
Views: 442

Re: Cant access share on Pi

Possibly, you say it worked on one rpi but not on a newer version of Noobs. This probably has nothing to do with Noobs and everything to do with the version of Samba in use. Try adding 'ntlm auth = yes' to the [global] part of your smb.conf and if this works, go and find out to turn off NTLMv1 on wh...
by hortimech
Thu Feb 14, 2019 10:24 am
Forum: Troubleshooting
Topic: [SOLVED} Share an MTP device with samba
Replies: 7
Views: 176

Re: Share an MTP device with samba

There is nothing really wrong with your share, but some of the parameters depend on other parameters that should be set in [global]. For instance, you have 'Public = yes' and 'Guest ok = yes' set (note, they both mean the same thing, so you only need one of them), they depend on what 'map to guest' ...
by hortimech
Sat Feb 09, 2019 1:16 pm
Forum: Troubleshooting
Topic: Samba install issue
Replies: 2
Views: 265

Re: Samba install issue

Are you sure you just tried to install 'samba-common-bin' ?
That wouldn't have installed 'smbd'.

If you installed other Samba packages, then what were they ?
by hortimech
Tue Feb 05, 2019 9:04 am
Forum: Beginners
Topic: samba file server- delete file from windows pc
Replies: 8
Views: 501

Re: samba file server- delete file from windows pc

Ah, you are making the assumption that the user 'pi' exists on the Windows machine, but it probably doesn't, so it will be connecting as a guest user.
by hortimech
Tue Feb 05, 2019 9:00 am
Forum: General discussion
Topic: samba, cant create user
Replies: 4
Views: 241

Re: samba, cant create user

I already told you why it didn't work, you only copied half the required data. Samba has its own user & group database, what do you think 'smbpasswd -a username' does with the data ?

Try looking in /var/lib/samba
by hortimech
Mon Feb 04, 2019 9:17 pm
Forum: Troubleshooting
Topic: RPi File Sharing for both Windows and macOS
Replies: 29
Views: 1576

Re: RPi File Sharing for both Windows and macOS

Try reading Samba's documents: https://wiki.samba.org/index.php/Main_Page Specifically: https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server You should also investigate the various vfs modules written specifically for MAC & SMB interoperability: vfs_Catia vfs_fruit vfs_streams_xa...
by hortimech
Mon Feb 04, 2019 9:00 pm
Forum: Beginners
Topic: samba file server- delete file from windows pc
Replies: 8
Views: 501

Re: samba file server- delete file from windows pc

The OP says the share directory with 'sudo mkdir -m 1777 /home/pi/RecordedFiles'

The '1' at the start is probably the problem, it sets the 'sticky' bit. This means that the file can only be deleted by the owner, the directory's owner, or root. The OP should have used '777'.
by hortimech
Mon Feb 04, 2019 1:39 pm
Forum: Beginners
Topic: samba file server- delete file from windows pc
Replies: 8
Views: 501

Re: samba file server- delete file from windows pc

Try the share like this: [RecordedFiles] Comment = Pi shared folder Path = /home/pi/RecordedFiles read only = no create mask = 0777 directory mask = 0777 Guest ok = yes You do not need these lines: Browseable = yes only guest = no Writeable = Yes Public = yes The first two are default settings, the ...

Go to advanced search