LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Other computer folder browsing in network (lin,xp) (https://www.linuxquestions.org/questions/linux-networking-3/other-computer-folder-browsing-in-network-lin-xp-376163/)

itz2000 10-23-2005 06:06 PM

Other computer folder browsing in network (lin,xp)
 
We got 2 comps here, 1 with XP
1 with linux (Fedora Fc4, x86_64) [offcourse I use the linux hehe ].

Anyways, we got 1Cable modem we both connect to that modem and surf from the same 1.
We both have diffrent dial ups.


When I'm on my xp with bootloader, I can surf in his computer's shared folders within writing
\\his-comp-name

and all the shared files are loaded.




Is it possible to do the same here? and how?
Thanks alot.

teckk 10-23-2005 08:40 PM

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.

itz2000 10-24-2005 03:52 AM

Quote:

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"


What shall I do now m8?

pingu 10-24-2005 09:13 AM

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)

itz2000 10-28-2005 03:31 PM

Quote:

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


teckk 10-28-2005 05:30 PM

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

itz2000 10-29-2005 11:12 AM

Quote:

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?

:Pengy:

thanks.

teckk 10-29-2005 07:23 PM

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.

itz2000 11-11-2005 06:07 AM

on linux ifconfig

Code:

[root@localhost ~]# ifconfig
eth1      Link encap:Ethernet  HWaddr 00:50:BF:DA:BA:71
          inet addr:172.24.1.71  Bcast:255.255.255.255  Mask:255.255.224.0
          inet6 addr: fe80::250:bfff:feda:ba71/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:124967 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15179 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:42023805 (40.0 MiB)  TX bytes:2378412 (2.2 MiB)
          Interrupt:193 Base address:0xb800

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1595 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1595 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1923481 (1.8 MiB)  TX bytes:1923481 (1.8 MiB)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:84.94.126.87  P-t-P:212.199.26.106  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1460  Metric:1
          RX packets:12399 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12164 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:7845027 (7.4 MiB)  TX bytes:1553080 (1.4 MiB)



On windows IPCONFIG :
Code:


Ethernet adapter Local Area Connection 3:
 
        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 172.23.237.55
        Subnet Mask . . . . . . . . . . . : 255.255.224.0
        Default Gateway . . . . . . . . . : 172.23.224.1
 
PPP adapter 012test:
 
        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 84.94.123.22
        Subnet Mask . . . . . . . . . . . : 255.255.255.255
        Default Gateway . . . . . . . . . : 84.94.123.22



Now what shall I do guys?

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.

michaelk 11-11-2005 09:11 AM

Try this command and if successfull post the output. If you see a password prompt just press the enter key.
smbclient -L (niks IP address)

itz2000 11-11-2005 09:33 AM

okay...
I've checked the new ipconfig on xp computer (nik) because we both had sudden electricity poweroff (-p LOL)



then, I've rechecked his ipconfig and got this :
Code:

C:\DOCUME~1\ADMINI~1>ipconfig



Windows IP Configuration





Ethernet adapter Local Area Connection:



        Connection-specific DNS Suffix  . :

        IP Address. . . . . . . . . . . . : 192.168.0.1

        Subnet Mask . . . . . . . . . . . : 255.255.255.0

        Default Gateway . . . . . . . . . :



Ethernet adapter Local Area Connection 3:



        Connection-specific DNS Suffix  . :

        IP Address. . . . . . . . . . . . : 172.23.237.55

        Subnet Mask . . . . . . . . . . . : 255.255.224.0

        Default Gateway . . . . . . . . . : 172.23.224.1



PPP adapter 012test:



        Connection-specific DNS Suffix  . :

        IP Address. . . . . . . . . . . . : 84.94.129.96

        Subnet Mask . . . . . . . . . . . : 255.255.255.255

        Default Gateway . . . . . . . . . : 84.94.129.96

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


what's now?

michaelk 11-11-2005 11:22 AM

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?

itz2000 11-11-2005 12:32 PM

Quote:

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

teckk 11-11-2005 02:08 PM

Quote:

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.
http://linuxcommand.org/man_pages/mount8.html
http://linuxcommand.org/man_pages/smbmount8.html
http://rute.2038bug.com/index.html.gz
http://rute.2038bug.com/node28.html.gz
http://www.linuxhomenetworking.com/
http://www.practicallynetworked.com/

itz2000 11-11-2005 02:30 PM

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...).


All times are GMT -5. The time now is 01:22 AM.