LAN FS


Forum: Networking
Topic: LAN FS
started by: RyuOniX

Posted by RyuOniX on Aug. 03 2006,20:48
My desktop machine is running with Windows 2000 Pro and I am running an old Pentium II Dell Latitude notebook machine with DSL Live CD. They are connected via cross-over cat5 cable and I can connect to the interweb on my notebook through my desktop with no problem. How do you set up file sharing between Windows and DSL?
Posted by ^thehatsrule^ on Aug. 04 2006,00:49
ssh, sshfs, nfs, samba/smb, ftp, http, any p2p, etc.

There's too many to list :)

Posted by kenboyles72 on Aug. 04 2006,05:05
Quote (^thehatsrule^ @ Aug. 03 2006,20:49)
ssh, sshfs, nfs, samba/smb, ftp, http, any p2p, etc.

There's too many to list :)

posts like this are not going to help nobody. folks new to linux or DSL come here looking for help. you might suggest an easy way of doing it. like me, i'm fairly new to linux. i had vector linux installed, but could never get my shared printer on an xp box setup. installed dsl and got my printer installed no problem. but now, like RyuOniX, i can't get my shared files on my xp box. probably the easiest way would be to mount the shared drive, but can't seem to get it right.
Posted by roberts on Aug. 04 2006,18:05
Do you see your XP box? Do you have a shared folder setup?
Perhaps SCAN AS USERNAME then enter any username you have in your windows will help?

Posted by kenboyles72 on Aug. 04 2006,23:27
I don't know about RyuOniX, but I can see my shared files on WinXP box from DSL (using smbclient). I just can't seem to get 'em mounted.On Vector Linux, what I had installed before, I could do a smbmount. But DSL doesn't have SAMBA installed, so I can't use the same command. What can I use, that comes pre-installed on DSL, to mount shared files?
Posted by roberts on Aug. 05 2006,05:22
Mounting a shared folder requires the mydsl extension samba.dsl.
This will provide LinNeighborhood which does allow such.

Within the base 50MB of DSL we offer smbclient which provides an ftp like interface to Window's shared folders. From the main menu...
Apps->Net->SMBclient

Explore your system.

Posted by kenboyles72 on Aug. 06 2006,02:52
tried to load samba.dsl, but nothing happened. unlike some of the other extensions i tried, no inf file opened or anything. i let it set for a while, since it might take a while to download. after 20 min, still nothing. i have cable internet, so i shouldn't have taken that long. i had dsl loaded on a laptop (ibm 380xd). i needed to get to my shares on my xp box, but couldn't. i had vector linux installed on it before, couldn't connect to my shared printer, but could mount my shared files or drive. with dsl, i could connect to printer, but not to shared files. so ,i put win98 back on it (please don't slap me), at least i can do both. i want to get away windows, at least on one pc (for now), but not if i cant get linux to cooperate.
Posted by kenboyles72 on Aug. 06 2006,05:54
ok, ran dsl as live cd, downloaded samba.dsl and saved to desktop. went to mydsl, chose load local mydsl extensions and it put samba on the desktop. so i reinstalled it to harddrive, did the same thing, but nothing happens now. what am i doing wrong?
Posted by RyuOniX on Aug. 06 2006,06:20
I also get basically no response with samba... I tried using SMBClient but I may be giving it the wrong parameters. In the "Domain:" space I entered my LAN IP (192.168.0.1), for  the "Machine:" space I entered my Windows machines name, I left the "Shared:" space blank, and I tried both of my Windows accounts for the "Name:" and "Password:" fields. What should I try next?
Posted by kenboyles72 on Aug. 06 2006,07:18
Domain= the domain that your network is setup on. ie MSHOME, etc...
Machine= the name of the computer you want to connect to.
Share= the name of the share you want to mount. in terminal type "smbtree" and it will list the computer and shares for that computer.
Name= enter your user name that you logged into windows with.
Password= enter the password (if any) that the above user used to log into windows.

Posted by kenboyles72 on Aug. 06 2006,08:10
Quote (kenboyles72 @ Aug. 06 2006,01:54)
ok, ran dsl as live cd, downloaded samba.dsl and saved to desktop. went to mydsl, chose load local mydsl extensions and it put samba on the desktop. so i reinstalled it to harddrive, did the same thing, but nothing happens now. what am i doing wrong?

finally realized my problem, i was logged in as root. rebooted as user dsl, downloaded samba.dsl, ran it and all is fine.

Posted by kenboyles72 on Aug. 06 2006,09:25
ok, new problem. i can see and mount winxp shares from samba, but can't see my linux box from winxp. i can ping the pc's from both ends. i've config'd the smb.conf file right, winxp just aint see'n linux.
Posted by kenboyles72 on Aug. 07 2006,02:07
ok, fixed that problem. i created a whole new smb.conf file, renamed the original as smb.conf.bak. the new smb.conf file now says this:

#=====Global Settings======
[global]


workgroup = MSHOME
server string = Linux
security = share



#====Share Definitions ==============
[homes]
    comment = Home Directories
    browseable = yes
    writable = yes
   
# this sets the entire hda1 browsable
[linux]
comment =
path = /
public = yes
writable = yes
printable = no

yeah, thats all thats in it. make sure you edit the file as super user. in terminal as super user type "smbd restart &" and "nmbd restart &". now my entire drive in dsl is browsable and writable. the only thing is that the share shows up as Linux (box). which ain't no biggy, at least now i can get to the files on linux.

Posted by ^thehatsrule^ on Aug. 08 2006,06:17
Quote (kenboyles72 @ Aug. 04 2006,01:05)
Quote (^thehatsrule^ @ Aug. 03 2006,20:49)
ssh, sshfs, nfs, samba/smb, ftp, http, any p2p, etc.

There's too many to list :)

posts like this are not going to help nobody. folks new to linux or DSL come here looking for help. you might suggest an easy way of doing it. like me, i'm fairly new to linux. i had vector linux installed, but could never get my shared printer on an xp box setup. installed dsl and got my printer installed no problem. but now, like RyuOniX, i can't get my shared files on my xp box. probably the easiest way would be to mount the shared drive, but can't seem to get it right.

Well, I'm just suggesting ones that he could use.   Anyways, glad that you found a solution that works.
Posted by fioddor on Aug. 26 2006,00:35
Excuse me if the questions are too stupid. I'm new and being late night I'm quite tired and my brain doesn't work well anymore (did it ever do?).


I've seen the proposal listing ssh, sshfs, nfs, etc and I've tried to investigate.

After googling "mount ssh" and a few other similiar combinations and reading quite a lot or references, all of them where actually describing sshfs. Is there another way to transfer files through ssh without sshfs?


Then I've tried to load the nfs-common daemon in the DSL box and mount a directory into a SUSE machine:

SUSE PC # mount -rw //192.168.0.192/home here

and I've gotten error 111 = Connection refused.

then I tried

SUSE PC # mount -t cifs  //192.168.0.192/home here

with the same result. So I look for nfs-related names in ps:

DSL PC # ps -axu

but I don't see anything like nfs so the daemon seems not to load.

I'm connected through ssh (DSL as server, SUSE as console) so ssh is ok. Finally  I've checked the DSL release notes and learned that sshfs was introduced later that DSL 1.5 but I've not seen any change related to nfs.

Any ideas? I'd like to avoid samba and ftp if ever feasible, and a web server is not a solution either. I need to write.

Again: I might be missing something obvious, because I'm quite tired.

Thanks in advanced!

Posted by ^thehatsrule^ on Aug. 26 2006,01:57
for sshfs: < http://damnsmalllinux.org/cgi-bin....t=14476 >

for ssh: use "scp" to transfer files over

for nfs: < http://damnsmalllinux.org/cgi-bin....t=14457 >

Quote
I'd like to avoid samba and ftp if ever feasible, and a web server is not a solution either. I need to write.

What do you mean by write?

Posted by fioddor on Aug. 26 2006,15:29
That's it: scp

I was so near but didn't find it.

Thank you so much!!!!  :-))))



Now I'm losing the connection very fast and I have to shake it on order to do another scp. After trying things like

- cross-pings between both machines
- DSL$ ps -aux
- DSL$ netstat -tul
- SUSE$ ssh root@DSL

the second scp command works. I haven't tried enough to tell, but though i might just need to wait for a while (nothing to do with the described procedures) it seems to me that if I don't 'shake' the connection I get the "lost connection" error. (??)

I'll practice some more to find out what's going on.


Thanks again for the 'scp' tip.  :-))

Posted by ^thehatsrule^ on Aug. 26 2006,18:54
Is this a timeout error during your ssh session?
There's
Code Sample
ServerAliveInterval <number>
that can be used.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.