Yet Another Samba Share Mounter

Configuration wizards, scanners, remote desktop, etc.
Post Reply
Message
Author
User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#91 Post by rcrsn51 »

Do you have Windows Live Essentials installed on your Win7 machine? It is known to block Linux Samba clients.

Do you have a second Windows machine on your network? You could use it to test that the Win7 share is set up correctly.
If, I click the 'Shares' button in the credentials dialog I get a dropdown list with 'NONE' as the only item so it seems the pupshare directory isn't visible.
Using the Win7 username and password, run this command

Code: Select all

smbclient -U username%password -L acer
Does that list the share?

Also try the command using the Acer's IP address instead of its name.

PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

#92 Post by PaulR »

Thanks for the very quick reply!

No, I don't have Windows Essentials installed.

We have an infrequently used Vista machine..I'll check if that recognizes the share later.
Using the Win7 username and password, run this command
Code:
smbclient -U username%password -L acer

Does that list the share?
No, it gives 'protocol negotiation failed' whether I use the name or the IP address.

Certainly seems like something is amiss on the Win 7 box.... I'll take another look at that end.

Thanks again

Paul

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#93 Post by rcrsn51 »

Maybe this will help?

I found a post by a Ubuntu user who fixed the problem by rebooting his Win7 machine.

PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

#94 Post by PaulR »

Thank you - rebooting has done the trick! (Insert equal amounts of Grrrr and :D here)

So glad I didn't have to work through another load of instructions, I've been at this all day so far as it is!

Cheers

Paul

PS the Vista machine recognized the share before rebooting.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#95 Post by rcrsn51 »

That's good news. It sounds like the problem is a memory cache issue on the Win7 machine as described in the link above. Rebooting cleared it.

PaulR
Posts: 249
Joined: Wed 04 May 2005, 18:45
Location: UK

#96 Post by PaulR »

That's good news. It sounds like the problem is a memory cache issue on the Win7 machine as described in the link above. Rebooting cleared it.
Certainly is - thanks for creating this nice clear and easy-to-use set of utilities.

Paul

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

Wifi problems

#97 Post by peebee »

This is a follow-up attempt to solve the conundrum described in:
http://murga-linux.com/puppy/viewtopic.php?t=83929

The setup is:

A desktop and a laptop both running Slacko5.5
The desktop has samba-4.0.0-i486.pet installed
With the desktop hard wired to my router and the laptop connected by wifi (Broadcom B4312) then YASSM is able to faultlessly find the Samba share on the desktop.

However....
I need to relocate the router close to the main phone socket in preparation for the installation of fibre broadband.

This has meant that the desktop also has to be connected to the router with wifi - rt2800usb driver
VendorID=148f ProductID=5370 Rev= 1.01
Manufacturer=Ralink
Product=802.11 n WLAN
SerialNumber=1.0
Bus 001 Device 002: ID 148f:5370 Ralink Technology, Corp.
rt2800usb : Ralink RT2800 USB Wireless LAN driver.
YASSM can no longer find the share in this new setup.

However....
If I probe the connection with PeasyPort - using various combinations of the "Scan" and "Names" tools then I am able to convince YASSM to access the share. A combination of scan + names + scan again seems to be needed.
Looking at the PeasyPort shellscript it seems to be issuing the mpscan and the pnscan commands - I also saw the nmblookup command recommended - the results of issuing these commands in a terminal are:

Code: Select all

# nmblookup ATHOME
querying ATHOME on 192.168.1.255
192.168.1.64 ATHOME<00>
# nmblookup ATHOME
querying ATHOME on 192.168.1.255
name_query failed to find name ATHOME
# 
# mpscan -p 139 -v 192.168.1.64
ip: 192.168.1.64 139 OK
# pnscan -t 2000 -v 192.168.1.64 139
192.168.1.64    :   139 : ERR : read() failed: Connection timed out
So what I'm wondering is, can I wrap /usr/local/yassm/samba-login in a wrapper that issues the necessary mpscan and pnscan commands to make YASSM connect reliably? and how do I work out which commands I need?

Or is there some other way to make Samba work in my setup?

And finally is there any diagnostics I should be looking at on the desktop to see why the connection is not succeeding?

Cheers & thanks for any advice and assistance
peebee

p.s. apologies for the rather long post
Last edited by peebee on Sat 18 May 2013, 22:33, edited 1 time in total.
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#98 Post by rcrsn51 »

What happens if you run samba-login, but use the desktop's IP address instead of its server name?

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#99 Post by peebee »

rcrsn51 wrote:What happens if you run samba-login, but use the desktop's IP address instead of its server name?
After a short delay that works OK - thanks - should work OK as I can set my router to always use the same IP address I think.
Cheers
peebee
Attachments
capture7568.png
(42.7 KiB) Downloaded 995 times
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#100 Post by rcrsn51 »

Excellent.

Was samba-search able to find the desktop's share when connected by wifi?

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#101 Post by peebee »

rcrsn51 wrote:Was samba-search able to find the desktop's share when connected by wifi?
No shares found by samba-search on initial boot

however after having made a connection using the ip address and then dismounting and running samba-search again the share on the server name was detected.....
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#102 Post by rcrsn51 »

It sounds like your USB adapter needs some coaxing to wake up and reveal the Samba server to the network.

Try using the combo server name in samba-login as described in the Help.

Code: Select all

ATHOME?192.168.1.0
This will force a network scan. If it finds the share, you won't need to give the desktop a static IP address.

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#103 Post by peebee »

rcrsn51 wrote:It sounds like your USB adapter needs some coaxing to wake up and reveal the Samba server to the network.

Try using the combo server name in samba-login as described in the Help.

Code: Select all

ATHOME?192.168.1.0
This will force a network scan. If it finds the share, you won't need to give the desktop a static IP address.
That just gives a "No Connection to Puppy" message - no share found....

:(
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#104 Post by rcrsn51 »

That's too bad. So the only reliable method is to use a static IP address as the server name.

I wonder if Pnethood is any better at finding the server.

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#105 Post by peebee »

rcrsn51 wrote:That's too bad. So the only reliable method is to use a static IP address as the server name.

I wonder if Pnethood is any better at finding the server.
Would have to try a different puppy - no pnethood any more in Slacko5.5....

Tried Precise5.5 - pnethood does not detect any share :(
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#106 Post by disciple »

peebee wrote:Would have to try a different puppy - no pnethood any more in Slacko5.5....
Try installing it. It is more informative if you test on the same system.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

tomfoo13ry
Posts: 1
Joined: Sat 08 Jun 2013, 06:12

#107 Post by tomfoo13ry »

Thank you for this pet rcrsn51. It is very useful.

I was having a problem with automount but it seems to have resolved itself after a few reboots.

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#108 Post by sc0ttman »

I can never find any shares with YASSM...

Why do I get this error? I've got your packages installed, samba-tng, yassm, etc.. What else am I missing?!

Code: Select all

/usr/local/yassm/samba-search: line 103: nmblookup: command not found
From which (wary) pet package can i get this file any any other related files??
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#109 Post by pemasu »

# find /mnt/sda6/woof-july3-raring/woof-out_x86_x86_ubuntu_raring/packages-raring -name nmblookup
/mnt/sda6/woof-july3-raring/woof-out_x86_x86_ubuntu_raring/packages-raring/samba_client/usr/bin/nmblookup

http://distro.ibiblio.org/quirky/pet_pa ... 3.0.37.pet

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#110 Post by rcrsn51 »

sc0ttman wrote:From which (wary) pet package can i get this file any any other related files??
What Puppy are you using? Nmblookup has been included since 4.3.1 or earlier. However, it was sometimes located in /opt/samba/bin and that folder was added to the search path.

Post Reply