LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   SMB4K query when connecting to a share. (https://www.linuxquestions.org/questions/linux-software-2/smb4k-query-when-connecting-to-a-share-675082/)

uncle-c 10-08-2008 12:16 PM

SMB4K query when connecting to a share.
 
Hello there.
I'm running a PCLOS2007 box linked directly to an XP machine.
I have a directory of files on XP which I have set to share on my linux box. I am using SMB4K software for the sharing of files.
Now, when I start up SMB4K and do --> NETWORK --> SCAN NETWORK for any shares, nothing shows up. However, when I click on the "SEARCH DIALOGUE" tab and enter the IP address of my XP machine the WORKGROUP and the shared directory show up. How can I get SMB4K to find the share automatically by using the "SCAN NETWORK" method. The XP machine is firewalled but I have allowed TCP ports 139 and 445 to remain open.
Do I need to do some configuring on the SMB4K / Linux end ?

Thanks,
UC

{BBI}Nexus{BBI} 10-08-2008 04:56 PM

Have you configured the workgroup in smb4k?

uncle-c 10-09-2008 04:53 AM

Thanks Nexus,
Configuring the workgroup in smb4k ? By this do you mean going into the

smb4k --> settings --> configure smb4k --> network tab and altering the options from there ?

I've done that to no avail. If that is not correct could you kindly explain how one configures workgroups in smb4k. Do I have to edit the smb.conf file ?

Thanks,

UC

{BBI}Nexus{BBI} 10-09-2008 10:34 AM

Do you have the xp box listed in your /etc/hosts file? To check start a konsole (terminal) session and type:
Code:

cat /etc/hosts
You should see something like this:

cat /etc/hosts

127.0.0.1 <hostname>
192.168.1.151 <hostname>
192.168.1.121 <hostname>


If you don't have an entry, add one, keeping the same format: <ip address> <hostname>. Save and close the file, then try smb4k again.

--> Before you add the entry, take a copy of your hosts file. From commandline do:
Code:

cp /etc/hosts ~/hosts
This will place a copy of that file in your /home/username folder.

uncle-c 10-09-2008 11:46 AM

Thanks Nexus. My /etc/hosts file does contain a reference to the XP machine as I personally put it in there :

Code:


127.0.0.1                PCLOS2007 localhost
#                generated by drakhosts
192.168.0.7                WindowsXP xp NASA-034A2J8PW3
192.168.0.10                Ubuntu ubuntu

Here is a screenshot of the results of NETWORK --> SCAN NETWORK in SMB4K. Only the MDKGROUP is found.

http://i36.tinypic.com/350s19v.png

This is a screen after I click on the "Search Dialog" tab and enter the IP 192.168.0.7 ( XP machine IP address). As you can see it has found the WORKGROUP

http://i33.tinypic.com/2m3jinp.png

And finally when I now revert to the "NETWORK BROWSER" tab I can see both the Groups.

http://i34.tinypic.com/2gwx4p3.png

The long and short of the situation is that smb4k is not automatically picking up "WORKGROUP" from the XP machine when I do "scan network." Do I need to have some other ports open on linux or maybe need to configure something on XP ?

Hope this helps.

UC

{BBI}Nexus{BBI} 10-09-2008 05:15 PM

Try as I might I cannot get smb4k not to pick up my other workgroups as soon as it starts up or by scanning the network. What I have noticed from your screenshots is you are using version 0.8.3. Upgrade to the latest version 0.9.5 and see if that helps. You can upgrade via the Package Manager. Don't forget to hit Reload first before searching for the newer smb4k. I recommend you use the Mark All Upgrades option to update your whole system.

uncle-c 10-10-2008 03:32 AM

Thanks a lot for the advice Nexus. Will do

UC


All times are GMT -5. The time now is 07:43 PM.