HOWTO : Share files and folders between Computers

How to do things, solutions, recipes, tutorials
Message
Author
r__hughes
Posts: 359
Joined: Thu 13 Apr 2006, 04:14
Location: Montreal, Canada

#31 Post by r__hughes »

fluxit wrote:wget -r url will recurse directories. ---------
Thanks - I'll look into that.

User avatar
ICanoe2
Posts: 26
Joined: Sat 03 Jun 2006, 23:53
Location: Niagara-on-the-Lake, Canada

Help - I'm really thick!

#32 Post by ICanoe2 »

I have tried following rarsa's instructions and gone through this thread numerous times however with limited success in file sharing.

Problem 1 - Seeing my XP machine
Linneighbourhood works great => no problems
In Lineighbourhood I can see the following
Service: //DININGROOM/Denise
Mountpoint: /root/mnt/DININGROOM/Denise
Command line => problems
I tried the following commands
smbmount //192.168.0.188/Denise/mnt/DININGROOM
result = cannot resolve mount point
smbmount//192.168.0.188/Denise/mnt/DININGROOM
result = no such file or directory
I'm still not sure if there should be a space between smbmount and // :?

After reading further in the post I tried various permutations of the smbmount command as above with the exception being that I replaced the IP address with DININGROOM (the computer name) with results similar to the above.
HELP PLEASE
:oops:

Problem 2 - Seeing Puppy via my XP machine - SOLVED (see below)
I again followed the instructions in the thread.
I tried to add a user named "localuser" via the following command
adduser -h/root localuser
result = login already in use
I tried to add a user named "share" via thr following command
adduser -h/root share
result = SUCCESS :D
I then added name and password and optimism was high.
I went to my XP machine and explored to this location but the only thing I can see is the readme file called betaftpd.anon
How do I see my files and where do I enter this username and password information?
PLEASE HELP! :?

*After posting I played some more on my XP machine and found "Login as... in the file menu. Oops :oops:
Hurray, I can see all of my files both ways. No it's just the command line so that I can make this available with start-up

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#33 Post by trapster »

If your xp machine is //192.168.0.188/Denise
and you have a directory /mnt/DININGROOM on your puppy box.

Then:

Code: Select all

smbmount //192.168.0.188/Denise /mnt/DININGROOM
should work.

note the <space> after Denise.
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#34 Post by MU »

Very nice Howto, it should be added to Linuxneighbourhood in Puppy.

I have a problem though:
Connecting to the XP-machine works fine, and I can copy files among Puppy and XP.
But special characters are shown wrong.

As this is a common problem in applications based on Gtk1 (Rox-filer 1.2), I tried it in the Gnome-Filemanager Nautilus (that can display unicode, as it is based on Gtk2).
Still no joy, even after installing some truetype-fonts (the free dejavu, and tahoma from Windows).

In Nautilus, I can create a file like test-

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#35 Post by MU »

ok, without linneighbourhood I found a solution:

smbmount //MACHINE/folder /root/mnt/MACHINE/folder -o guest,codepage=cp437

I'm writing a script at work that scans the network for shares, and then automatically mounts all available folders in /root/LocalNetwork/ (those without password). Will continue/finish it in 2 days I think.

this is how the script looks like at moment:
http://dotpups.de/tests/Muppy-SMB
It does not work at moment, as I added some test-code, and were interrupted then.

Mark

User avatar
gliezl
Posts: 322
Joined: Sat 06 Aug 2005, 22:30
Location: Manila

#36 Post by gliezl »

Wow, it's an improved smblogin script.
Just tell me Mark when its ready, I'll be glad to test it. :-)
[color=blue][i]"If you have knowledge, let others light their candles in it."
~Margaret Fuller[/i][/color]

User avatar
pakt
Posts: 1157
Joined: Sat 04 Jun 2005, 16:54
Location: Sweden

#37 Post by pakt »

Very interesting, Mark. Your script looks like a good example of what can be done with PuppyBasic.

Hmm, I have been planning to write a script that will run on a MicroClientJr with a remote control interface to turn house lamps on and off. PuppyBasic looks like it might be a good candidate for the job! :)

Paul
Methinks Raspberry Pi were ideal for runnin' Puppy Linux

John Doe
Posts: 1681
Joined: Mon 01 Aug 2005, 04:46
Location: Michigan, US

#38 Post by John Doe »

MU wrote:Does someone know, if there maybe is a parameter that can be used to mount the share with a different charset or codepage?
This looks pretty complicated. You are getting into some RFC level stuff here.

Here are some links I stumbled on:

http://samba.org/samba/docs/man/Samba-H ... icode.html

http://www.adaptec.com/en-US/_whitepape ... wp.htm#4.1

http://lists.samba.org/archive/samba-te ... 42008.html

http://lists.samba.org/archive/samba-te ... 42010.html

http://lists.samba.org/archive/jcifs/20 ... 01721.html

http://lists.mplayerhq.hu/pipermail/mpl ... 34818.html

Perhaps it's been worked out since then? Last time I got down to the socket/character level was about three years ago.

It sure would be great to make sure Puppy had this worked out, if it's a problem.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#39 Post by MU »

my script will not work because of a logical error :?

I wanted to use netstat, to determine the PCs, that are in the network.
Then I could try to run smbclient on the found IP-adresses, to look up, if there are Shares.
This worked during my first test, as I already were connected to the XP machine using LinNeighbourHood or smbclient.
But if you don't run those first, the XP-machine is not visible in netstat.
So of course my "auto-detection" can not work.

I found no solution yet.
Only a hint, that in KDE you can type smb:/ in Konqueror, to list all Windows-shares.

So it must be possible somehow, the question is:
how do I do it without the KDE-mechanisms?

More googling and tests are required, don't expect a quick solution.

Mark

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#40 Post by GuestToo »


User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#41 Post by MU »

Thanks G2, as usual a brilliant suggestions :)
I found it in the samba-dotpup from sunburnt.

Runs without error after creating a symlink, so you don't need to install the whole huge dotpup.

You can get it here:
http://dotpups.de/dotpups/Network/samba-utilities/

I will test it on monday at work.

Thanks!
Mark

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#42 Post by MU »

no, findsmb did not work either.

But it seems that "smbtree" can be used.

./smbtree -N| tr -s " "|cut -f2|grep '\\'

This will list the host.
example:

Code: Select all

sh-3.00# ./smbtree -N| tr -s " "|cut -f2|grep '\\'
\\TORSTEN 
sh-3.00# 
To find the folders:

Code: Select all

sh-3.00# ./smbtree -N| tr -s " "|cut -f3|grep '\\'
\\TORSTEN\Kyocera 
\\TORSTEN\Dokumente 
\\TORSTEN\C 
\\TORSTEN\Exceldateien 
\\TORSTEN\HPOffice 
\\TORSTEN\print$ 
\\TORSTEN\SharedDocs 
\\TORSTEN\IPC$ 
sh-3.00#
I uploaded the binary.

Topic continues in an own thread:
Muppy-SMB to find and mount Windows shared folders
http://www.murga-linux.com/puppy/viewtopic.php?t=12945

Mark

gabriel_007
Posts: 23
Joined: Sat 25 Feb 2006, 13:23
Location: Warsaw

#43 Post by gabriel_007 »

Dear Friends
I tried to follow these steps once again after my xp installations and upgrading to puppy 2.14 (to let puppy see a windows share folder). LinNeighborhood displays this after I try to scan as user:
Error returning browse list: NT_STATUS_OK
I tried to google this, but information I found is simply too complicated for a casual user like me. Could someone be so kind and help me with this? Thank You very much in advance.

giac_fab
Posts: 113
Joined: Thu 25 Jan 2007, 23:15

#44 Post by giac_fab »

Does exist a way to mount puppy share into /mnt/ ????

I have a puppy pc with video files and a pc (also with puppy) connected to my tv; I want stream the video files without download it, with ftp I must download the file before open it ........
:oops: I know, my english is very bad :oops:
Give a man a fish and he eats for a day, teach a man to fish and he eats for a lifetime.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#45 Post by sunburnt »

Hi giac_fab; I assume you want to stream from the Puppy PC to other local PCs?
One way is to install the Samba server, Puppy & Win. PCs can use the shares.
MU's package is: Muppy-SMB

giac_fab
Posts: 113
Joined: Thu 25 Jan 2007, 23:15

#46 Post by giac_fab »

hi.

AWESOME !!!! that's what i wanted , thank you !!!!
:oops: I know, my english is very bad :oops:
Give a man a fish and he eats for a day, teach a man to fish and he eats for a lifetime.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#47 Post by sunburnt »

That's okay... English is a vastly overrated language.

And one of the hardest to learn I hear, it's really quite a mess of exceptions.

mrascii
Posts: 4
Joined: Mon 18 Jun 2007, 18:36

SMB signing problem

#48 Post by mrascii »

Hi, thanks for the great step by step but apparently either my puppy laptop or the windows server at my work doesn't play well with others. LinNeighborhood will only display the server name but won't let me at the shared folders that I need, and when I try the command line method I get the following error:

cli_negprot: SMB signing is mandatory and we have disabled it.
8871: protocol negotiation failed
SMB connection failed


Can someone help me fix this? I'm pretty new to linux so keep it simple for me ;) Thanks in advance for your help!


MDB...

NAKABIRI HARRIET
Posts: 1
Joined: Wed 27 Jun 2007, 10:41

share files and folders between computers

#49 Post by NAKABIRI HARRIET »

mounted using linneighborhood, exported mountscript to /etc/rc.local, windows shared folder icon on desktop but does not automount on reboot until;
-linneighborhood is opened.
-or /etc/rc.d/rc.local is executed from console.[/list]

bicarbon8
Posts: 2
Joined: Sat 11 Aug 2007, 14:42

Read-Write access for FTP login

#50 Post by bicarbon8 »

So I've created a new user and assigned their home to an external drive mapped under /mnt/<drivename>. When I login using FTP from an XP machine I am able to see all the files, but I cannot upload new files. The error says something about not having permissions to perform the action. Is there a way that I can enable read-write access to this drive via FTP for this user? I've tried having the new user assigned as the owner of the drive, but was unsuccessful (possibly my command syntax was incorrect). Thanks!

Post Reply