Other computer folder browsing in network (lin,xp)
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm not sure what you are asking. Users can share any folder under their /home. If the user has shared it then he knows about it. Or are you trying to view the windows shares from a Linux box?
Code:
mount -t smbfs //machine_name/share /home/<user>/mounting_point
Or you can use konqueror or another file mgr that views shares.
To view linux shares from a windows box you need to have samba installed, configured, and running on the linux box. Then you can view them in windows network neighborhood.
Originally posted by teckk I'm not sure what you are asking. Users can share any folder under their /home. If the user has shared it then he knows about it. Or are you trying to view the windows shares from a Linux box?
Code:
mount -t smbfs //machine_name/share /home/<user>/mounting_point
Or you can use konqueror or another file mgr that views shares.
To view linux shares from a windows box you need to have samba installed, configured, and running on the linux box. Then you can view them in windows network neighborhood.
here's what I get
Code:
[root@localhost ~]# mount -t smbfs //nik/ /home/zuki/nik
26694: Connection to nik failed
SMB connection failed
Nik its his computer name, and he uses winxp.
I can see it without any user/pass while I dual boot to xp, I just write on "mycomp" "\\nik"
Originally posted by pingu You forgot the share-name:
mount -t smbfs //nik/ /home/zuki/nik
should be:
mount -t smbfs //nik/the_share /home/zuki/nik
(Sometimes -t smbgs fails, if so try -t cifs)
I didn't get what does the "the_share" means... translate it to XP language :]
here's what I get for my tries :
Code:
[root@localhost nik]# pwd
/home/zuki/nik
[root@localhost nik]# mount -t smbfs //nik/ /home/zuki/nik
6446: Connection to nik failed
SMB connection failed
[root@localhost nik]# mount -t smbfs //nik/ /home/zuki/nik/
6451: Connection to nik failed
SMB connection failed
[root@localhost nik]# mount -t smbfs //nik/the_share /home/zuki/nik
6460: Connection to nik failed
SMB connection failed
[root@localhost nik]# mount -t smbfs //nik/download /home/zuki/nik
6464: Connection to nik failed
SMB connection failed
[root@localhost nik]# mount -t smbfs //nik/nik /home/zuki/nik
6467: Connection to nik failed
SMB connection failed
[root@localhost nik]# mount -t smbfs //nik/Shared /home/zuki/nik
6471: Connection to nik failed
SMB connection failed
[root@localhost nik]# mount -t smbgs //nik/Shared /home/zuki/nik
mount: unknown filesystem type 'smbgs'
[root@localhost nik]# mount -t smbgs //nik/ /home/zuki/nik
mount: unknown filesystem type 'smbgs'
[root@localhost nik]# mount -t cifs //nik/ /home/zuki/nik
mount error: could not find target server. TCP name nik/ not found No ip address specified and hostname not found
[root@localhost nik]# mount -t cifs //nik/Shared /home/zuki/nik
mount error: could not find target server. TCP name nik/Shared not found No ip address specified and hostname not found
[root@localhost nik]# mount -t cifs //nik/the_share /home/zuki/nik
mount error: could not find target server. TCP name nik/the_share not found No ip address specified and hostname not found
How is the network set up? How is the Linux machine physically connected to the XP machine? Are you using a hub or switch? I looks like the Linux machine can not find the toy XP machine on the network. Can you ping the windows machine from the linux machine? Can you ping it by IP and by hostname?
For example
ping nick
ping 172.16.0.40 (use you own parameters.)
If you can't ping it then fix your network.
If you can then specify a valid share after you are sure that you have windows set to share folders, and have one shared, and you have access permissions to it.
Originally posted by teckk How is the network set up? How is the Linux machine physically connected to the XP machine? Are you using a hub or switch? I looks like the Linux machine can not find the toy XP machine on the network. Can you ping the windows machine from the linux machine? Can you ping it by IP and by hostname?
For example
ping nick
ping 172.16.0.40 (use you own parameters.)
If you can't ping it then fix your network.
If you can then specify a valid share after you are sure that you have windows set to share folders, and have one shared, and you have access permissions to it.
Also look at
man mount
It's via hub I think (well actually it's through the Cable Modem, we are both connected to it)
The computer name is nik
when I'm @ XP I write in "mycomputer" : "\\nik" and I'm at the shared folders!.
What shall I do here then?
When I ping nick, what nick shall I ping? his computer name?
If you are trying to connect to another machine on a network and can't connect to it, start troubleshooting by pinging the other machines IP address. If you can't ping it then you've got a network problem. Either there is no physical connection between the two, your network card is not configured correctly or your using the wrong driver or none at all, a bad cable end etc.
On the windows box run ipconfig and see what the machines IP is. Then ping it from the Linux box. If you can ping it then it's just a permissions problem. If you can ping it by IP and not machine name then it is a DNS problem. Your going to have to check if there is a usable connection between the 2 machines first. Then if you have folder sharing enabled on the windows box you can mount the share, enter smb://machine_name/share in Konqueror, or use smb4k, linNeighborhood, or whatever you want.
ifconfig will give you the IP address on the Linux box.
I don't know your network so you will have to troubleshoot it.
Good luck.
one of the folder he shares is C:\Download ... I just thought some extra info would help since I can't get it work... maybe I'm not doing something good.
so I've done the smbclient -L on those IPS, I did on all of them cause no one got unweird results :
Code:
[root@localhost ~]# smbclient -L 172.23.237.55
timeout connecting to 172.23.237.55:445
timeout connecting to 172.23.237.55:139
Error connecting to 172.23.237.55 (Operation already in progress)
Connection to 172.23.237.55 failed
[root@localhost ~]# smbclient -L 172.23.224.1
timeout connecting to 172.23.224.1:445
timeout connecting to 172.23.224.1:139
Error connecting to 172.23.224.1 (Operation already in progress)
Connection to 172.23.224.1 failed
[root@localhost ~]# smbclient -L 84.94.129.96
timeout connecting to 84.94.129.96:445
timeout connecting to 84.94.129.96:139
Error connecting to 84.94.129.96 (Operation already in progress)
Connection to 84.94.129.96 failed
[root@localhost ~]# smbclient -L 192.168.0.1
timeout connecting to 192.168.0.1:445
timeout connecting to 192.168.0.1:139
Error connecting to 192.168.0.1 (Operation already in progress)
Connection to 192.168.0.1 failed
Originally posted by michaelk Your linux IP 172.24.1.71
niks IP 172.23.237.55?
What is your XP IP address?
The linux IP address needs to be on the same subnet. i.e 172.23.237.xxx
How are you configuring the IP address in linux? Static?
from what I understand -
xp Internet adress = IP Address. . . . . . . . . . . . : 84.94.129.96
xp network adress = 172.23.237.55
linux network IP 172.24.1.71
linux inet adress 84.94.134.79
The Ip in linux = dynamic, not static.
I can be wrong though
from what I understand -
xp Internet address = IP Address. . . . . . . . . . . . : 84.94.129.96
xp network address = 172.23.237.55
linux network IP 172.24.1.71
linux inet address 84.94.134.79
You need to get the Linux and windows machines on the same subnet. Something like
Linux 172.23.1.1
Windows 172.23.1.2
If you are going to have them like you do you will have to unmask the last 3 octets for them to talk.
If you are giving them a static IP which it appears that you are, put everything on the same subnet. I'm talking about everything on the LAN side of the cable modem.
The 84.94.129.96 is the internet address that your ISP has given your box. That's fine. Configure the LAN side machines to receive IP from the DHCP server or set them up all on the same subnet.
If your cable modem is the DHCP server then all machines will get their addresses from it if you allow them to get addresses dynamically. If you want to set it up statically then give the modem and address and then the machines an individual address. Something like
Modem 172.22.0.1
Linux 172.22.1.1
Windows 172.22.1.2
Next machine 172.22.1.3
Also if you can't mount a shared resource by name //nick, then try to mount the machine by it's IP address. You also need to specify the share, that is if you have permissions to access the folder. That could be something like
Code:
mount -t smbfs //172.22.1.2/shared_docs /home/user/mounting_point.
how can I change the linux network subnet?
linux network IP 172.24.1.71 to 172.23.237.56???? (becuase xp network address = 172.23.237.55 so it will follow this by one, and I won't have to change the XP network stuff...).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.