"Luca" <(E-Mail Removed)> wrote in message
news:SXVfb.169922$(E-Mail Removed)...
> Adam Dyga ha scritto:
>
> > did you try smbclient (-L) ?
>
> I tried smbclient //croby/c where croby is the name of the windows
> computer and c is one of the units shared. The response is:
>
> added interface ip=192.168.0.1 bcast=192.168.255.255 nmask=255.255.0.0
> Connection to croby failed
>
> 192.168.0.1 is the address of this computer, that with linux red hat
> installed, while the address of the windows pc is 169.254.89.124.
>
> I've even tried to ping the address of the windows pc but the response
> is this:
>
> [luca@localhost luca]$ ping 169.254.89.124
> PING 169.254.89.124 (169.254.89.124) 56(84) bytes of data.
>
> [2]+ Stopped ping 169.254.89.124
>
> There was no response from the windows pc.
> Someone has suggested me to check if the smb service was on, and it is.
> I checked it in the services window of my red hat.
> What should I do.
> Thanks.
>
> Luca
>
As others have sia, you will need to get ping working first, either by
changing your subnet settings or to change one of the machines IP addresses.
I would recommend the latter, have both machines on the same subnet, i.e.
both start 192.168.0.
Your windows machine will need to be setup to do this - go to network
connections(control panel), and open up your Local Area Connection.
Now go to properties.
Find Internet Protocol (TCP/IP) and go to its properties. Now specify an
address there, e.g 192.168.0.2 and a subnet of 255.255.255.0 and leave the
rest (for now).
XP should take a few seconds to cahnge the settings. Once done, you should
be able to ping fine

)
Ok, then you need to get the samba mount working to view the windows machine
from linux.
First, get the name of your shared drive on windows (right click on the
drive then goto sharing). You need this to get it all working. You will
need a dir on the linux machine to mount to so type (assuming mounting the
windows c drive)
mkdir /mnt/croby-c
Then in Linux, type
smbmount //croby/"windows(c)" /mnt/croby-c /-o username=XXX,password=XXX
Where XXX are replaced by your actual username and pass. Now you should be
able to go to /mnt/croby-c and view your windows files.
To make this automatic when you start the linux machine then add the
'smbmount...' line to your /etc/rc.local
HTH
Allan