Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 23 Oct 2014, 16:42
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
Network Samba Share Rox App
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [22 Posts]   Goto page: 1, 2 Next
Author Message
01micko


Joined: 11 Oct 2008
Posts: 7835
Location: qld

PostPosted: Mon 29 Oct 2012, 20:05    Post subject:  Network Samba Share Rox App
Subject description: mounts smb shares
 

This app was originally written by kirk for Fatdog64 but works just as well in Slacko and Precise. It is a simple rox app where you just click it and it scans for shares, then it makes a drive icon for each share which you simply click and it shows the network share. If a password is needed a box pops up requiring the username and password.

The reason for this app is that Pnethood, while it has served us well for many years is often failing to discover network shares in the latest Puppies even though the shares exist. This is because it's major dependency nbtscan is getting old and largely unmaintained.

This is designed for home use. For a more heavy-duty solution use YASSM by rcrsn51. The next Slacko will be shipping with both in place of Pnethood.

This is tested working with XP, Windows 7, Mac and Puppy-samba shares. It is tested with the latest Slacko-beta, Precise Puppy and latest Wary/Racy Beta.

Once you install the pet there is a directory made in /root/network with the Network icon inside. Navigate to that and just click the Network icon to begin. There is no menu entry.

If you forget to unmount shares at shutdown then there is a service script to take care of that.

Warning: No warranty. There is the possibility that if you do something silly like deleting a mounted share then there will be data loss on the share. If you have problems just reboot.

Dependencies:
    rox-filer
    mpscan (should be already there in most pups)
    mount.cifs (should be already there in most pups)
    smbclient (should be already there in most pups)
    base64 (only in latest pups - includes slacko-533, wary/racy-5.3,precise-5.4)


This will likely fail in Lupu, just test if base64 is there with
Code:
which base64


EDIT:
update to 0.8 fixed issues with nounix and sec=ntlm thanks to shinobar and gcmartin

update to 0.7 fixed verbosity at boot, now echoes "ok", fixed guest password. (base64 error)

update to 0.6, improved unmounting at shutdown thanks to jamesbond
network_roxapp-0.8.pet
Description 
pet

 Download 
Filename  network_roxapp-0.8.pet 
Filesize  26.32 KB 
Downloaded  1186 Time(s) 
capture5884.jpg
 Description   What it looks like inside /root/network after it has been run if shares are available.
 Filesize   20.67 KB
 Viewed   3388 Time(s)

capture5884.jpg


_________________
Woof Mailing List | keep the faith Cool |

Last edited by 01micko on Sun 04 Aug 2013, 22:19; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website 
peebee


Joined: 21 Sep 2008
Posts: 1463
Location: Malvern, Worcs, UK

PostPosted: Tue 30 Oct 2012, 14:23    Post subject:  

Hi Mick

I'm afraid that this new app doesn't seem to work very well for me Sad

I'm running samba on my desktop pc under slacko 5.3.3 - my system definitely falls into "home use" as I just use it to gain access to my files on my desktop from my laptop.

pnethood connects reliably and quickly under most puppies (I have reported speed problems recently with precise but these were fixed)

I loaded the new "final version" 5 of the app onto a pristine frugal install of slacko 5.3.6.5.

On my first attempt to connect nothing happened - the scanning message appeared and then after about 1 min disappeared again with no shares discovered.

On my 2nd attempt I did get a prompt box to enter a user name and password but this took a very long time to appear. A share was established and accessible.

For my setup this would be a retrograde replacement for pnethood as it currently stands.....

Thanks
Peter
capture21101.png
 Description   
 Filesize   51.53 KB
 Viewed   3243 Time(s)

capture21101.png


_________________
LxPup-14.10 = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
rcrsn51


Joined: 05 Sep 2006
Posts: 9203
Location: Stratford, Ontario

PostPosted: Tue 30 Oct 2012, 15:07    Post subject:  

@peebee: Can you do some testing? Using your network prefix, run this command. Note the spaces around the "-".
Code:
mpscan -p 139 aaa.bbb.ccc.1 - aaa.bbb.ccc.254

Then
Code:
mpscan -t 3 -p 139 aaa.bbb.ccc.1 - aaa.bbb.ccc.254


I find that mpscan is slower in Slacko than in other Puppies, but not as slow on my network as you are reporting.
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 1463
Location: Malvern, Worcs, UK

PostPosted: Tue 30 Oct 2012, 18:09    Post subject:  

rcrsn51 wrote:
@peebee: Can you do some testing?


Hi rcrsn51

Results:
Code:
# mpscan -p 139 192.168.1.1 - 192.168.1.254
Timeout: 1
# mpscan -t 3 -p 139 192.168.1.1 - 192.168.1.254
Timeout: 1
Timeout: 2
Timeout: 3
Timeout: 4
Timeout: 5
Timeout: 6
Timeout: 7
Timeout: 8
Timeout: 9
Timeout: 10
Timeout: 11
Reach max number of timeouts
#
For command #1 - the Timeout 1 output only appeared after 30-40 sec. For command #2 the outputs appeared at roughly 2 sec intervals.

Hope helps
Cheers
peebee

_________________
LxPup-14.10 = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
rcrsn51


Joined: 05 Sep 2006
Posts: 9203
Location: Stratford, Ontario

PostPosted: Tue 30 Oct 2012, 18:15    Post subject:  

And in neither case did it find the target server. I'm curious - what other devices are connected to this network?

What happens if you probe the server directly with
Code:
mpscan -p 139 aaa.bbb.ccc.ddd
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 1463
Location: Malvern, Worcs, UK

PostPosted: Tue 30 Oct 2012, 18:36    Post subject:  

rcrsn51 wrote:
And in neither case did it find the target server. I'm curious - what other devices are connected to this network?

What happens if you probe the server directly with
Code:
mpscan -p 139 aaa.bbb.ccc.ddd


Just 2 devices:
- desktop pc ethernet direct wired to wifi router
- laptop over wpa wifi

Direct probe (from slacko 5.3.3 as that's what's loaded):
Code:
# mpscan -p 139 192.168.1.69
ip: 192.168.1.69 139 OK


Your test commands seem to find the server on 5.3.3 but not on 5.3.6.5.....

I better try 5.3.6.5 again.....

_________________
LxPup-14.10 = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7835
Location: qld

PostPosted: Tue 30 Oct 2012, 18:47    Post subject:  

Quote:
I'm curious - what other devices are connected to this network?

Me too Smile (ok saw post, no smart-phone, smart-TVs?)

In any case, The scan only needs to be done when you need to find new shares, the existing shares need not be updated.

kirk actually hacked mpscan in fatdog to time out quicker. I have that source and will compile soon. I just checked, and mpscan is a part of kirk's File-Sharing rox app present in all puppies. I compiled mpscan on the raspberry-pi so I can test how fast it is in SAP6 (provided I have smbclient, can't remember). I know the FIle-Sharing works fine in SAP6.

peebee, do you ever use that File-Sharing app? I'd be interested to know how fast/slow that is for you.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
peebee


Joined: 21 Sep 2008
Posts: 1463
Location: Malvern, Worcs, UK

PostPosted: Tue 30 Oct 2012, 19:00    Post subject:  

01micko wrote:
Quote:
I'm curious - what other devices are connected to this network?

Me too Smile (ok saw post, no smart-phone, smart-TVs?)

peebee, do you ever use that File-Sharing app? I'd be interested to know how fast/slow that is for you.


No other devices - just the desktop and laptop....I'm a simple soul lol

No - haven't used the file-sharing app - not even sure I knew it existed - is it in the menu?? Where would I find it?

When I went back to 5.3.6.5 the direct command found the server. Then when I did rcrsn51's test command it also found the server but took a long time to finish with the Timeout output.

Actually pnethood sometimes doesn't find the server and a couple of presses of the rescan are needed - its almost like the server goes to sleep and has to be kicked back into action.

_________________
LxPup-14.10 = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
rcrsn51


Joined: 05 Sep 2006
Posts: 9203
Location: Stratford, Ontario

PostPosted: Tue 30 Oct 2012, 20:03    Post subject:  

[Deleted]
Last edited by rcrsn51 on Wed 31 Oct 2012, 02:14; edited 1 time in total
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7835
Location: qld

PostPosted: Tue 30 Oct 2012, 23:51    Post subject:  

Attached is kirk's mpscan source and accompanying binary compiled in slacko-5.3.6.5

If you want to recompile just run ./configure && make and strip the bin in the src dir with strip --strip-unneeded mpscan

Back up the old /usr/sbin/mpscan and replace with the new binary.

I can't see any difference.

-

BTW, it works (sort of) on the raspberry pi, but network_roxapp doesn't produce the win7 mounts. even though I get the prompt for a user and password. It's some weird error, probably to do with the fact that I had to install nearly all of debian samba, which links to kerberos and all the security stuff. The mac and my puppy share worked fine. I'll save that for another day.
NOTE: raspi users, please don't use on SAP6 because there is a potential data loss bug specific to the SAP6 OS and the network_roxapp.
mpscan_kirk-0.1.0.tar.bz2
Description 
bz2

 Download 
Filename  mpscan_kirk-0.1.0.tar.bz2 
Filesize  55.13 KB 
Downloaded  868 Time(s) 

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
peebee


Joined: 21 Sep 2008
Posts: 1463
Location: Malvern, Worcs, UK

PostPosted: Wed 31 Oct 2012, 05:23    Post subject:  

01micko wrote:
Back up the old /usr/sbin/mpscan and replace with the new binary.
I can't see any difference.
Very Happy Very Happy Very Happy

Hi Mick & rcrsn51

Big difference here....

Installed the "new" mpscan

Ran rcrsn51 tests - showed that it found my share.

Installed the network_roxapp-0.5.pet

Network scan found my share in an acceptable time - c. 10 secs

Share survived reboot.

Seems to have fixed it for me.

Many thanks
Peter
capture14468.png
 Description   
 Filesize   20.05 KB
 Viewed   3081 Time(s)

capture14468.png


_________________
LxPup-14.10 = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7835
Location: qld

PostPosted: Wed 31 Oct 2012, 06:09    Post subject:  

peebee wrote:

Network scan found my share in an acceptable time - c. 10 secs
~
Seems to have fixed it for me.
Ok, good news Smile . Even though I had no issues and and couldn't really tell the difference in speed, kirk must have seen something and made the appropriate adjustments. I haven't done a diff so as of now I don't know. Maybe I don't need to know Laughing .

I'll put the new binary in the next slacko beta.

Thanks.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
jamesbond

Joined: 26 Feb 2007
Posts: 2230
Location: The Blue Marble

PostPosted: Wed 31 Oct 2012, 07:19    Post subject:  

Note: some windows servers only listen on ports 445 instead of 139.
_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7835
Location: qld

PostPosted: Wed 31 Oct 2012, 07:24    Post subject:  

jamesbond wrote:
Some note: some windows servers only listen on ports 445 instead of 139.


Yeah.. do you reckon it's worth running a second loop on failure ? Or maybe a 'help' file or README ? It's nice and simple how it is, more complication breeds complications .. Smile . There is the config file, a readme file could point that out I guess.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7835
Location: qld

PostPosted: Thu 08 Nov 2012, 08:51    Post subject:  

Updated to 0.6

Changed the service script (run at shutdown) to ensure everything is killed before unmounting the shares, thanks to jamesbond

See main post

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [22 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Network
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0953s ][ Queries: 12 (0.0048s) ][ GZIP on ]