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 Tue 17 Jul 2018, 23:17
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
pnethood - samba share mounter
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 20 [288 Posts]   Goto page: Previous 1, 2, 3, 4, 5, ..., 18, 19, 20 Next
Author Message
HairyWill


Joined: 26 May 2006
Posts: 2946
Location: Southampton, UK

PostPosted: Tue 27 Nov 2007, 04:11    Post subject:  

@Beem
I have avoided giving the user any choices so far and don't really want to start. I could implement a .pnethood file in home or I could assign the filemanager in a variable at the top of the code. I should add some checks for dependencies when it starts as well. smbclient, smbmount, nbtscan, rox, rxvt.
If you want to fix the file manager for yourself these are the two lines you need to edit, I suppose the first one should be defaultbrowser / defaultbarehtmlviewer or maybe just "man pnethood"
Code:
# grep -n rox usr/local/pnethood/pnethood
107:    <action>rox /usr/share/doc/pnethood.html</action>
186:    <action>rox "${MOUNTPOINT}"</action>
#


@disciple
Barry is squeezing in alltray, interesting. I'm not sure about the minimising to tray.

The scenario I have in mind includes being able to manage several servers. I think I will just have to check mount on startup and add any servers listed to the list of tabs.

I presume "GREEN ROOM" works for you.

Do either of you have an opinion on whether the mountpoints should be in a hidden directory.

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11775
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Tue 27 Nov 2007, 04:20    Post subject:  

HairyWill,

Thank you for the tip on the filemanager.
But I have no problem to leave it as is.
Maybe when given too much choice people could get confused indeed.

In the Puppy system, no mounting point is hidden.
So maybe it's better to leave it as is.
Some people could try to find the mounting point and not thinking it could be a hidden point.

Bernard

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6830
Location: Auckland, New Zealand

PostPosted: Wed 28 Nov 2007, 03:13    Post subject:  

Quote:
Barry is squeezing in alltray, interesting.
Alltray is tiny if you remember to strip it (and huge otherwise Smile )

I think you can also tell alltray not to put something in the tray, so you could run pnethood with alltray, but in the taskbar. (then you wouldn't have to make it sticky, which things in the tray need to be, otherwise they do strange things when you click on them from a different desktop from the one they were started on).
I think it is much more user-friendly (particularly for new and-non technical users) if mounting and unmounting programs can't be easily closed by accident, especially if they are programs that can take a long time to do a scan on startup.

You're approach of scanning for mounts is more "proper" though Smile

Quote:
I presume "GREEN ROOM" works for you
Sorry, I'll probably check that on the weekend if not before. I haven't used Puppy this week as my parents are keeping me off the computer Sad

Quote:
Do either of you have an opinion on whether the mountpoints should be in a hidden directory.

I seem to remember that clicking "unmount" in ROX for a SAMBA mount did something really bad, but maybe that was just with the older rox and with mount points with spaces or something. If there is a problem like this then I think they should be hidden, otherwise definitely not.
BTW I personally like to put SAMBA mount points in /mnt/network Smile It seems to make much more sense than somewhere in /root

regarding a configuration file, I think it would be cool to have a basic configuration file, to specify filemanager and maybe things like a default server(s) to scan, or shares to mount automatically.
If you didn't feel like this it would still be good to just initialise a filemanager variable at the start of the script, so people could change one line to get it to work with something else.
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6830
Location: Auckland, New Zealand

PostPosted: Sat 01 Dec 2007, 00:51    Post subject:  

0.42 still identifies itself as 0.41 Smile

Yes - it does work great with spaces in domain and server and share names, and without passwords, although you are obviously right about the possible name conflicts.
It seems to scan much faster now Smile

Good work Will.
Back to top
View user's profile Send private message 
HairyWill


Joined: 26 May 2006
Posts: 2946
Location: Southampton, UK

PostPosted: Sat 01 Dec 2007, 04:21    Post subject:  

version 0.5 released
Some bug fixes by dougal he has also converted it to a roxapp, I've done a fair bit of work since so any new bugs are mine!.
I've removed the use of gxmessage and yaf-splash for errors and progess information. All of this is now handled by gtkdialog, this reduces dependencies and also means that all windows match the gtk theme.
Added a FILER variable at the start, this makes it easier to edit the code and specify a different one.
added a quit button (this also makes the GUI big enough to show the refresh message when no shares are reported).
removed the horrible while loops iterating over the arrays this is now done properly using for
help page is now launched using the man command
introduced a check for a server named <unknown> which appears on my network at work sometimes (the sometimes bit made debugging especially interesting). I don't believe this is a valid netBIOS name and it was crashing gtkdialog (unsurprisingly), so I've just deleted the server from the list.
tabs are always shown for servers with shares that are currently mounted (you can't loose track of the machines with mounted shares on a big network)
status, error handling and reporting improved a bit (can't really be improved much without further user feedback)

If you are upgrading an older release
Conversion to a roxapp, means the main file location has moved to /usr/local/apps/pnethood
In dingo Barry has moved nbtscan and the pnethood launcher from /root/my-applications/bin to /usr/sbin so I have copied this (otherwise upgrading would fail)
This all means upgrading may leave a few old files on your system but they shouldn't cause a problem, unless you have mucked about with the order of locations in your PATH variable.

Still To Do
* Allow user with more than 10 machines to select a new one without rescanning the entire network
* Allow user with more than 10 machines to select several
* Handle servers with lots of shares. This will probably mean changing the interface implementation to use gtkdialog tree instead of buttons. This is a shame because I like the buttons.
* replace nbtscan with a scan that works with netbios over tcp/ip, this will probably just be a backup in case nbtscan produces nothing
* there are a number of situations where grep, sed and tr are used to generate values with no input checking it would be a good idea to generate regular expressions that could be used to check that there output was correct, this would have trapped the <unknown> server error or a least displayed a warning.
I think I've hit the 80/20 barrier so I'm not committing to actually doing these unless some says they actually need them.

Downloads were at 83 before I uploaded the new version.

disciple
Thanks for the feedback, glad it works. The startup time is mainly determined by how long it takes a server to respond tosmbclient -N -L servername my single home server seems to vary widely between 1 and 10 seconds to reply, I have no idea what causes the discrepancy.
I had never tried using ROX right-click to unmount before, it seems to work OK for me.
I used /$HOME/pnethood for the mountpoints because it matched linneighborhood and it mounted the users shares inside their own space. Maybe I should make this specified by a variable at the start as well.

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6830
Location: Auckland, New Zealand

PostPosted: Sat 01 Dec 2007, 05:38    Post subject:  

Sounds great Smile
Quote:
I used /$HOME/pnethood for the mountpoints because it matched linneighborhood and it mounted the users shares inside their own space. Maybe I should make this specified by a variable at the start as well.

That would be a good way of doing it, although I still think it is silly to mount SAMBA shares inside /$HOME by default, particularly when Puppy is generally a single user system. If, for example, the average Puppy user runs a file search in /root, they won't generally be wanting to search mounted network shares...
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11775
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Sat 01 Dec 2007, 06:51    Post subject:  

Hi,

You might remember that I have the 'special' case of having two connections, the WiFi one and the 10.0.0.10 one.
Specifying
Code:
pnethood md8818, 10.0.0.10
only gives me the md8818 one,.
BUT,
specifying
Code:
pnethood 10.0.0.10, md8818
gives me the two tabs.
hmmm.

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
HairyWill


Joined: 26 May 2006
Posts: 2946
Location: Southampton, UK

PostPosted: Sat 01 Dec 2007, 11:51    Post subject:  

@Beem
Don't put any spaces in, there may also be a bug in the parameter parsing. I would expect to see both appear either way and it shouldn't cause a problem, though I'm not sure what happens if you start trying to move/copy stuff from inside one mountpoint location to somewhere else inside the other. I would hope that the connection would terminate or lockup to avoid you doing this. I don't fancy experimenting, I'm sure its been considered by the samba team and you can't end up in this situation without deliberately telling pnethood to open two tabs for the same server.

You should be able to do
pnethood 10.0.0.10,192.168.1.2,MD8818
and get three tabs. I presume that the first two will guarantee to use the firewire and wireless nics respectively and the third one will use whatever the netbios name resolves to. I think we've established that it always points to the 192.168..... network in your case.

@tout de le monde
I tried installing pnethood on Debian Lenny the other day. I had to make a couple of minor edits including installing cifs support for mounting. I ran it as root and it worked fine. I didn't try as a normal user.

This adds another item to the todo
cifs support
Does anyone out there use cifs in puppy?

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
black

Joined: 10 Aug 2007
Posts: 14

PostPosted: Mon 03 Dec 2007, 02:43    Post subject: cifs  

Hey HW,

Been toying with "pnethood" 0.41 for several days and it's a neat little app. Running well in both puppy, kanotix, and cpx. Would like to see it with "cifs" support, as I('ve been a user for several years) and prolly others prefer it. Connections seem faster, file xfers are much faster on my 'machines...CIFS PLEASE!

55
Back to top
View user's profile Send private message 
HairyWill


Joined: 26 May 2006
Posts: 2946
Location: Southampton, UK

PostPosted: Mon 03 Dec 2007, 03:36    Post subject:  

I've just had a look and mount.cifs seems to be in my puppy though it isn't in pup_300.sfs I don't remember putting it there. I'll investigate further some time this week.
_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11775
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Mon 03 Dec 2007, 05:16    Post subject:  

@HairyWill,
Sorry for the confusion.
Indeed with the comma separating the two, even either way, I get the two tabs. Nice

about cifs:
Is this a follow-on of Sun's nfs?
Is cifs an industry agreed one or a proprietary one?

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
HairyWill


Joined: 26 May 2006
Posts: 2946
Location: Southampton, UK

PostPosted: Mon 03 Dec 2007, 08:09    Post subject:  

Common Internet File System, becoming preferred over smbfs
http://linux-cifs.samba.org/

my initial research

I think it needs cifs.ko or to be already compiled into the kernel, beyond my experience.

Servers are identified by IP address or by tcp host name. Not by netBIOS name.

mount.cifs is needed to resolve hostnames.

Currently smbmount in puppy is over 800k if the cifs module is considerably smaller this might be an incentive for Barry to consider it as an alternative. This might also be a way to remove the need for nmblookup another 600+k. This is speculative, I do not have sufficient understanding to recommend that this is doable and I have no idea of the implications for samba printing.

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11775
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Wed 05 Dec 2007, 18:36    Post subject:  

With the .41 I could mount my windows share through the 10.0.0.10 (1394) interface.
I just tried the .5 in muppy008 now.
When scanning on 10.0.0.10 no shares are found.
If I scan on the WiFi (192.168.1.2) interface pnethood finds them.

Any idea why?

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
HairyWill


Joined: 26 May 2006
Posts: 2946
Location: Southampton, UK

PostPosted: Wed 05 Dec 2007, 19:40    Post subject:  

Do you know for certain that the firewire interface is active in muppy 8?
What do you get for
smbclient -N -L 10.0.0.10

_________________
Will
contribute: community website, screenshots, puplets, wiki, rss
Back to top
View user's profile Send private message 
deceptika

Joined: 02 Dec 2007
Posts: 3

PostPosted: Fri 07 Dec 2007, 05:45    Post subject:  

HairyWill wrote:
Common Internet File System, becoming preferred over smbfs
http://linux-cifs.samba.org/

my initial research

I think it needs cifs.ko or to be already compiled into the kernel, beyond my experience.

Servers are identified by IP address or by tcp host name. Not by netBIOS name.

mount.cifs is needed to resolve hostnames.

Currently smbmount in puppy is over 800k if the cifs module is considerably smaller this might be an incentive for Barry to consider it as an alternative. This might also be a way to remove the need for nmblookup another 600+k. This is speculative, I do not have sufficient understanding to recommend that this is doable and I have no idea of the implications for samba printing.


no need for that, do just like Windows of any flavor does, they rely on LM hosts to resolve canonical \\MACHINE or \\IPC$ name through the somewhat primitive netBIOS protocol, first by touching {IPC$} name and then matching/touching IP# (underscore is forbidden in NT(IPC$) naming) which means use your hosts...in etc/

nice job! good luck
Cool
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 20 [288 Posts]   Goto page: Previous 1, 2, 3, 4, 5, ..., 18, 19, 20 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
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.0804s ][ Queries: 12 (0.0122s) ][ GZIP on ]