LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-23-2005, 06:06 PM   #1
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Rep: Reputation: 30
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.
 
Old 10-23-2005, 08:40 PM   #2
teckk
Senior Member
 
Registered: Oct 2004
Distribution: Arch
Posts: 4,603
Blog Entries: 5

Rep: Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627
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.
 
Old 10-24-2005, 03:52 AM   #3
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
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?
 
Old 10-24-2005, 09:13 AM   #4
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
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)
 
Old 10-28-2005, 03:31 PM   #5
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
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
 
Old 10-28-2005, 05:30 PM   #6
teckk
Senior Member
 
Registered: Oct 2004
Distribution: Arch
Posts: 4,603
Blog Entries: 5

Rep: Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627
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

Last edited by teckk; 10-28-2005 at 05:33 PM.
 
Old 10-29-2005, 11:12 AM   #7
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
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?



thanks.
 
Old 10-29-2005, 07:23 PM   #8
teckk
Senior Member
 
Registered: Oct 2004
Distribution: Arch
Posts: 4,603
Blog Entries: 5

Rep: Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627
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.
 
Old 11-11-2005, 06:07 AM   #9
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
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.
 
Old 11-11-2005, 09:11 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,153

Rep: Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350
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)
 
Old 11-11-2005, 09:33 AM   #11
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
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?
 
Old 11-11-2005, 11:22 AM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,153

Rep: Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350Reputation: 5350
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?

Last edited by michaelk; 11-11-2005 at 11:23 AM.
 
Old 11-11-2005, 12:32 PM   #13
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
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
 
Old 11-11-2005, 02:08 PM   #14
teckk
Senior Member
 
Registered: Oct 2004
Distribution: Arch
Posts: 4,603
Blog Entries: 5

Rep: Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627Reputation: 1627
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/

Last edited by teckk; 11-11-2005 at 02:11 PM.
 
Old 11-11-2005, 02:30 PM   #15
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
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...).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dsl-wap-lin/win Network ! mjolnir LinuxQuestions.org Member Success Stories 3 08-05-2006 01:45 PM
konqueror folder browsing rhb327 Slackware 2 11-01-2005 07:12 PM
Network Win/Lin chat barghota Linux - General 1 08-10-2005 01:09 PM
file browsing experience - I don't want a new window per folder.. sokar Fedora 9 07-08-2004 07:22 PM
Samba authentication - Lin/Win Network gyodai Linux - Networking 3 03-12-2004 08:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration