Yet Another Samba Share Mounter

Configuration wizards, scanners, remote desktop, etc.
Post Reply
Message
Author
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.

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

#111 Post by sc0ttman »

rcrsn51 wrote:
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.
I'm using akita, which was turbopup back in the day, maybe that;s why it was missing... anyway, i added it, and yassm works fine... cheers.
[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]

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#112 Post by Scooby »

HOw to use

/etc/init.d/rc.yassm ?

Code: Select all

case "$1" in
  start)
  ;;
  stop)
    for M in $HOME/YASSM/*; do
      umount-FULL $M  > /dev/null 2>&1
      rmdir $M > /dev/null 2>&1
    done
  ;;
esac
IS it for shutdown script?

Also I was thinking would it be possible to add a button to samba-login that
puts info into samba-select.dat?

augras
Posts: 1487
Joined: Mon 11 Nov 2013, 17:37
Location: france

#113 Post by augras »

Hi,
I like to use Yassm : very easy to use and works fine.
Thank you rcrsn51.
But i would like to have a timeout after a share is not in use : is there an option for that ?
Thank you again,
Philippe

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

#114 Post by rcrsn51 »

augras wrote:But i would like to have a timeout after a share is not in use
Please explain. Do you want the share to be automatically unmounted if it has not been used for a while? I think that would be too difficult to implement.

augras
Posts: 1487
Joined: Mon 11 Nov 2013, 17:37
Location: france

#115 Post by augras »

rcrsn51 wrote:Do you want the share to be automatically unmounted if it has not been used for a while?
It's exactly what i'm looking for.
Autofs do it, but to be authenticate everything is clear in a file and yassm is a better way for that.
Philippe

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

#116 Post by rcrsn51 »

augras wrote:Autofs do it
Sorry, but that is far too complicated for YASSM.

augras
Posts: 1487
Joined: Mon 11 Nov 2013, 17:37
Location: france

#117 Post by augras »

Thank you for your quick answer.
And "just" for a time out after the share is mount, is it possible ?
Philippe

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

#118 Post by rcrsn51 »

YASSM v2.7 has several important changes.

1. The program filenames samba-login, etc. are now yassm-login, etc. This is to avoid any confusion with other Samba tools.

2. The user configuration files have moved from /root/.config/yassm to /root/.yassm.

3. YASSM-search continues to identify shares by their server name. But now it sends the server's IP address to YASSM-login. This is a more reliable way to mount shares.

4. If you select a "hidden" share, the procedure is unchanged. Enter the username and password. Click the Shares button. Select a share. Enter any required options. Click Mount.

5. If you run YASSM-login as a separate tool, you can still use server names.

6. YASSM-select can use either server names or IP addresses. But the latter are preferred, provided that they are static.

7. Previous versions of YASSM-search had an option for scanning alternate subnets. This feature has been removed. If anyone still wants it, please post a request.

lemmy999
Posts: 102
Joined: Sat 12 Jan 2008, 16:52

#119 Post by lemmy999 »

Nice tool. Only problem I am having is with "automount on boot" Your instructions state
4. Drag the file yassm-automount into your Startup folder.
I don't have a yassm-automount file in /usr/local/yassm but do have a samba-automount file. I've had a quick look at it and reckon its the same file. Is that correct?

On reboot my YASSM directory is on the desktop, clicking it I can see the Windows share I want to access but its empty.

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

#120 Post by rcrsn51 »

lemmy999 wrote:I don't have a yassm-automount file in /usr/local/yassm but do have a samba-automount file. I've had a quick look at it and reckon its the same file. Is that correct?
See my post above yours. In v2.7, the program names have changed.
On reboot my YASSM directory is on the desktop, clicking it I can see the Windows share I want to access but its empty.
Automount uses the yassm-select database for its mounting information. Do you have your Windows share set up correctly in yassm-select?

lemmy999
Posts: 102
Joined: Sat 12 Jan 2008, 16:52

#121 Post by lemmy999 »

Aha!! Updated my version of Yassm to 2.7, edited yassm-select to include the Windows share that I wanted to access and rebooted. And everything now works!!

Thank you for your help ( and this very useful application, which will make my father-in-laws life a little easier)

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#122 Post by Argolance »

Bonjour,
I was running an old version of Puppy today (4.3.1) and accidentally (or by chance!) noticed that, using yassm 2.4, I could access to an usb key plugged on my Internet box, what I couldn't do with later versions 2.6 and 2.7! I thought it was my box or any misconfigured permission/password which was the cause of the problem but it is finally not the case.

Have you any idea of what's wrong?

Cordialement.

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

#123 Post by rcrsn51 »

YASSM v2.7 uses a new scanning method based on a tool called pnscan. Earlier versions used mpscan, but the 4.x Puppies may have contained a different version of mpscan.

Pnethood used a different tool called nbtscan!

Based on a variety of tests, it appears that v2.7 works better than the older versions of YASSM. But that may not be true in your case.

With v2.7, did you try using Wake or Rescan?

[Edit] In v2.7, was the share detected by YASSM-search? This may be a situation where new Puppies need to use the "sec=ntlm" option in YASSM-login.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#124 Post by Argolance »

Bonsoir,
Thanks for your quick reply!
Pnethood used a different tool called nbtscan!
Pnethood doesn't "see" my usb key, contrary to yassm.
did you try using Wake or Rescan?
Not needed. I just couldn't mount it...
In v2.7, was the share detected by YASSM-search? This may be a situation where new Puppies need to use the "sec=ntlm" option in YASSM-login.
... and with the option "sec=ntlm", all works fine. 8)
Thanks.

Cordialement.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#125 Post by Argolance »

Bonjour,
rcrsn51 wrote:Do you want the share to be automatically unmounted if it has not been used for a while? I think that would be too difficult to implement.
For those who are interested in, the French team did it!
:arrow: Please see this thread.

Cordialement.

Post Reply