stewmac570
Posts: 3
Joined: Sun May 27, 2018 10:22 am

sharing files from windows 10 to Pi

Sun May 27, 2018 10:32 am

i have been at it all day trying to set up a share so i can send file to my newly purchased Pi. The idea is i have CAM software that creates a gcode and i can save that file to any directory (a shared folder on Pi) i then use BCNC to open and run the Gcode.

i have tried samba, i have updated, i have upgraded i have tried the install and the client install (thats what i think it is) but no one of these functions works. the update is missing files so it uses old ones. the up date is incomplete the samba client returned 404 errors.

i purchased the pi kit with a pre installed flash card.

i have spent hours on this (should be) simple task.

i have read and tried everyone's else suggestions from forums, youtube and here but absolutely nothing...

Some help on this would be greatly appreciated.

(note that i am far from experienced in the world of IT and using command prompt)

jbudd
Posts: 1409
Joined: Mon Dec 16, 2013 10:23 am

Re: sharing files from windows 10 to Pi

Sun May 27, 2018 12:39 pm

Computers are especially good at being frustrating.
i have read and tried everyone's else suggestions from forums, youtube and here
You have tried everyone else's suggestions? Not being psychic we don't know what they suggested. Perhaps you could give some more details of what you tried?
but absolutely nothing
Absolutely nothing is in fact the Linux command line's indication of success. I guess that's not what you mean here. What error messages have you seen?

Lots of people do get Samba shares working. There are other ways to send files from Windows too, including scp, ftp, email... But maybe you need to do it by Samba because the software that generates the gcode only lets you choose a folder name to save it to?

jbudd
Posts: 1409
Joined: Mon Dec 16, 2013 10:23 am

Re: sharing files from windows 10 to Pi

Sun May 27, 2018 12:48 pm

i purchased the pi kit with a pre installed flash card.
A lot of beginners' posts here contain similar words.

If you have access to an SD card reader, try downloading the latest version of Raspbian https://www.raspberrypi.org/downloads/raspbian/ and burn it to the sd card with Etcher https://etcher.io/. You may find that some of your initial problems go away.

stewmac570
Posts: 3
Joined: Sun May 27, 2018 10:22 am

Re: sharing files from windows 10 to Pi

Sun May 27, 2018 11:42 pm

Thanks for your reply.
I have had some rest and calmed down. First I will reformat and install the OS.

The software I'm using has a file path to set where the output file is going so it would be nice to set this file path directly to the Pi via WiFi.

I had a look at SCP but that is an extra step after creating the file. Not sure about FTP so i'll have a little look at that too.

I'll test the new OS install tonight and see how we go.

thanks again for getting back to me.

jahboater
Posts: 5759
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: sharing files from windows 10 to Pi

Mon May 28, 2018 12:30 am

stewmac570 wrote:
Sun May 27, 2018 11:42 pm
I have had some rest and calmed down. First I will reformat and install the OS.
You do not reformat first when using etcher to copy on the new OS.
stewmac570 wrote:
Sun May 27, 2018 11:42 pm
I had a look at SCP but that is an extra step after creating the file. Not sure about FTP so i'll have a little look at that too.
I would forget FTP. Scp is short for "secure copy" and it acts much like the copy command in Linux called "cp" to copy files. You can set it to use key based authentication that does not require a password every time. Very easy to use, secure (encrypted) and quick. Or Samba of course.

mikerr
Posts: 2825
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: sharing files from windows 10 to Pi

Mon May 28, 2018 10:45 am

Code: Select all

sudo apt-get update
sudo apt-get install samba
add this to bottom of /etc/samba/smb.conf:

Code: Select all

[home]
path = /home/pi
guest ok = yes
read only = no
make home directry writeable to all:

Code: Select all

sudo chmod a+w /home/pi/
Now you can access your pi from windows at \\raspberrypi
Android app - Raspi Card Imager - download and image SD cards - No PC required !

jbudd
Posts: 1409
Joined: Mon Dec 16, 2013 10:23 am

Re: sharing files from windows 10 to Pi

Mon May 28, 2018 11:14 am

That worked for me, except:

Samba was already installed (my setup script for new Pi's installs it, though I don't often use it)
I restarted the Samba service after changing the config file sudo systemctl restart smbd
On my PC, to map the network drive I had to type in the Pi's IP address \\192.168.1.141 then click Browse.

stewmac570
Posts: 3
Joined: Sun May 27, 2018 10:22 am

Re: sharing files from windows 10 to Pi

Tue May 29, 2018 11:56 am

Ok so i reformatted the SD re installed Raspi and it all worked fine.

What I worked out is the kit is not a Raspberry kit. its a company called techbrands that makes the kit and elliment14 supplied the pre-installed SD card.

now my next issue is that i use a company PC on a domain. I have no idea how this stuff works but i can ping the Pi's IP but can't see it on my next work computers.

any thoughts on this

Thanks again for baring with me in my hour of frustration.

User avatar
thagrol
Posts: 3077
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: sharing files from windows 10 to Pi

Tue May 29, 2018 5:44 pm

stewmac570 wrote:
Tue May 29, 2018 11:56 am
now my next issue is that i use a company PC on a domain.
You should probably talk to whoever maintains your company network/domain before doing too much more. The last thing you want to do is break the company network.
Arguing with strangers on the internet since 1993.

DLMiller2005
Posts: 1
Joined: Sat Mar 02, 2019 12:42 am

Re: sharing files from windows 10 to Pi

Sat Mar 02, 2019 12:47 am

The question was "sharing files from windows 10 to Pi" you gave an example to share pi files to Windows 10. is it the same?

Return to “Beginners”