HOWTO : Share files and folders between Computers

How to do things, solutions, recipes, tutorials
Message
Author
User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#21 Post by rarsa »

See my response in your original thread. There is no need to cross post.

If you cross post I read both and have less time to respond to any.

User avatar
VSh
Posts: 16
Joined: Wed 06 Jul 2005, 13:32

Re: How to let puppy see a windows share

#22 Post by VSh »

rarsa wrote:LinNeighborhood:
...
12. Set the parameters for the mount or accept the defaults. The "mount point" is the puppy folder under which you will see the contents of the shared folder. (write down that path so you remember where it's mounted)
13. Click "Mount". Rox should open on that folder
Done!
...
I observed that in Puppy 1.0.7 the default is /root/mnt/<Server>/<SharedDir>. And during shutdown, Puppy tries to copy its contents to pup100 file. And it fails usually. Probably, it's a bug.

banoncom

Sharing Puppy drivr wth Windows

#23 Post by banoncom »

Hi.
I am relatively new to this linux stuff. I came across this puppy distro as I was looking for a light linux to run on an old laptop which has been retired to jukebox duties. So far it's great, best i've found so far for this task.
The "jukebox" (HP omnibook xe2) uses a USB 200G NTFS HD as its mp3 file source, i need to share the drive on my hme network with other win boxes. I found the ftp solution great except for some minor details which i am trying to find a solution for.
1- when I connect to the "jukebox share" which i set to "/mnt/sda1/Music" I can access the Music folder but none of the sub-directories where the music is sorted in sub folders (Albums - Various etc.) permission denied. I have tried setting owner to the user created for the share for all directories in the tree, and set permissions to 755 for same - no luck so far - any ideas?
2- When i disconnect the USB drive or re-boot the box I have to mannualy mount the USB drive and reset permission etc. Is there a way to automount the drive and keep the settings??

Thanks muchly :D

User avatar
ApeMan
Posts: 21
Joined: Sat 08 Apr 2006, 17:54

file transfer too slow

#24 Post by ApeMan »

I followed the above instructions to connect my puppy computer to a Windows computer. They are connected via a network hub. I tried both SMB and FTP, as explained above. Both are very slow at transfering files. I'm trying to transfer a 700MB file and apparently it will take over 4 hours to do it using the FTP method. If that is the case, I might as well just pull the hard drive out and carry it over to the other computer, which is in the same house, and plug it in to transfer the file that way. Before I do resort to this, does anyone know of a better way to transfer files quickly through the network hub?

Thanks,

ApeMan

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

#25 Post by John Doe »

Sounds like you have a 10MB ethernet connection somewhere in the chain. I can do an 11GIG file over 100MB ethernet in 40minutes.

USB2.0 will do the same file in 10minutes. If you have USB2.0 in both machines and a USB drive use that. If USB1.1 is in either, stick with the 10MB Ethernet.

IDE over the board would be faster yet (probably about 1-2minutes).

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

Re: file transfer too slow

#26 Post by rarsa »

ApeMan wrote: I'm trying to transfer a 700MB file and apparently it will take over 4 hours to do it using the FTP method.
Don't blame FTP or puppy. Blame your network.

There is something wrong with your network.

I can download a 700MB From the Internet in a few minutes over a 3 Mbps connection. Over my intranet at 100 Mbps I can do it in a few seconds.
[url]http://rarsa.blogspot.com[/url] Covering my eclectic thoughts
[url]http://www.kwlug.org/blog/48[/url] Covering my Linux How-to

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

#27 Post by gabriel_007 »

I'm probably doing something wrong here:
I set up the ftp server following your advice.
Than I tried to access it from my Debian machine
first with a browser - I typed the address of ftp into the path and it says that login is incorrect. It didn't ask for a login or anything.
Than I thought I'd try gftp: I connected to my puppy computer and could see the contents of my "share" folder - but I have problems when I try to download anything from it.
It disconnects, says that there's no such file or directory, or that it can't modify some directory, "invalid response from server".

I can see the contents of the "share" folder, when I access the ftp with konqueror. When I use my default nautilus, there's an error, that it can't display the contents of this folder. I still can't copy any files from that computer though - with any browser.

I'm using puppy 2.02
I'm clueless

User avatar
fluxit
Posts: 326
Joined: Sat 24 Jun 2006, 04:14
Location: Ketchikan, AK USA

#28 Post by fluxit »

gabriel_007,

Betaftp has problems on Puppy >=2.0 http://www.murga.org/~puppy/viewtopic.php?t=10711

Just FYI, to have mozilla prompt for an ftp password use the format: ftp://username@ipaddress-or-servername

r__hughes
Posts: 359
Joined: Thu 13 Apr 2006, 04:14
Location: Montreal, Canada

#29 Post by r__hughes »

GuestToo on 9 Sep 2005 wrote:if i wanted to copy files from Puppy, i would click /root/ghttpd/httpd

files and folders (and symlinks) in /root/ghttpd/htdocs will now be available on your network and on the internet

pic: http://tinypic.com/dlm9n7.jpg

i find this easier than setting up file sharing

you may have to open a port in your firewall, or shut it down

there's a roxapp that starts/stops the httpd server with the click of a button on my dotpups page
------------------------

---- and now time warp over 1 year to 26 SEP 2006
and I've just been using this technique in pup2.02sm and it works fine for transferring windows-shares to puppys (my network has 4 PCs which frugally dual boot to windows or various pup versions - the actual state being the whim of the current user).

Anyway - I've created puppy ghttpd symlinks on each computer to the required windows shared folder- eg
ln -s /mnt/home/junk /root/ghttpd/Shares/c_junk
ln -s /mnt/home/box /root/ghttpd/Shares/c_box
ln -s /mnt/home/audio_files /root/ghttpd/Shares/c_audio

I've set the ghttpd config to home in on the ghttpd/Shares directory and all works perfectly - almost -
All symlinks navigate fine from remote puppy PCs & all target windows folders/subfolders can be navigated & all individual files can be copied by 'save target as ---'

Only problem is - this won't copy folders & contents - trying to save the target folder by 'save target as---' results in the saving of the html address of the folder :(

This is such a nifty technique to get windows shares from puppies I'm just praying that someone has a solution to this folder problem.

User avatar
fluxit
Posts: 326
Joined: Sat 24 Jun 2006, 04:14
Location: Ketchikan, AK USA

#30 Post by fluxit »

r__hughes,

wget -r url will recurse directories. You might want to read the help(wget --help) first. I'm not sure if you also wanted to copy these files from Windows? Wget is also available for Windows.
Of course you could always install and use Samba instead, or an ftpd+ncftp(or similar) client.

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 »


Post Reply