pnethood 0.6.8 - samba share mounter

Configuration wizards, scanners, remote desktop, etc.
Post Reply
Message
Author
User avatar
clarf
Posts: 613
Joined: Wed 13 Jun 2007, 19:22
Location: The old Lone Wolf

pnethood 0.6.8 - samba share mounter

#1 Post by clarf »

Hi,

I´m proud to announce the immediate release of pnethood 0.6.8, this update includes minor GUI changes. The mayor addition is the use of scrollable windows for shares thanks to new features on gtkdialog added by user thunor (http://murga-linux.com/puppy/viewtopic.php?t=69188), the code is backward compatible and it enable the new GUI features only if the new gtkdialog version is found.

0.6.8 version is based on my latest 0.6.7 version (http://murga-linux.com/puppy/viewtopic.php?t=64206) and latest HairyWill version 0.65 (http://www.murga-linux.com/puppy/viewtopic.php?t=23464).

Fixes:

* Run out of screen space for large number of shares. Needs 0.7.21 gtkdialog version, you can compile latest from https://code.google.com/p/gtkdialog/

* Save button on options window does not close the options child window.

New Features:

* Hanlde servers with lots of shares (using new features in gtkdialog 0.7.21)

* Separate options Window
- Added option to define the minimun number of servers for the initial scan to enable the popup window server list

Credits

Special Thanks to HairyWill who originally developed pnethood, your work is greatly appreciated.

Thanks to thunor for mantaining and developing new features for gtkdialog.

Thanks to the people that helped to make this updated possible and everyone that tested and helped to improve the original version.

Any previous pnethood configuration file (/root/.pnethood/pnethood.rc) must be removed before use this new version. New information is written to the configuration file and previous versions (0.6.6 or earlier) are not supported, there is not problem if you already have pnethood 0.6.7 version.

Greetings,
clarf


EDIT:


pnethood 0.6.8.1 released

This is a quick fix release backward compatible for the password visibility (this is the proper fix discussed below).

I also added width adjustem for the GUI window, it´ll change according to actual display resolution. For 800x600 or lower display resolutions the GUI is set to 400x300, for higher display resolutions the GUI is set to 500x400. To change the deafult size just edit the pnethood executable file and modify the XBOX_SIZE and YBOX_SIZE variables. Needs 0.7.21 gtkdialog version otherwise won´t change in GUI size
Attachments
clarf_pnethood-0.6.8.1.pet
pnethood 0.6.8.1, quick fix for password visibility entry and width GUI auto-setting
(27.4 KiB) Downloaded 1305 times
Scrollable Window shares.jpg
Scrollable Windows for shares using gtkdialog 0.7.21
(38.67 KiB) Downloaded 3798 times
clarf_pnethood-0.6.8.pet
pnethood 0.6.8
(27.36 KiB) Downloaded 1138 times
Last edited by clarf on Sat 10 Sep 2011, 16:36, edited 6 times in total.

User avatar
clarf
Posts: 613
Joined: Wed 13 Jun 2007, 19:22
Location: The old Lone Wolf

gtkdialog 0.7.21 -

#2 Post by clarf »

I add the 0.7.21 gtkdialog version (r14) compiled in puppy 214X, minimun gtkdialog version needed for new GUI pnethood features.

Regards,
clarf
Attachments
gtkdialog-r14-i486.pet
(49.96 KiB) Downloaded 1068 times

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#3 Post by Geoffrey »

I have just updated the gtkdialog , I now seem to have a small problem with pnethood 0.6.8, it still works but the password input won't highlight so that whats typed in can be seen.
In other words there is no indication that anything as been inputted, so just wondering if anyone else has found that also or is it just me.

edit: just checked it by replacing gtkdialog to the version posted here and it works fine, so it is the latest version of thunor's that's causing it.
I complied the latest in quirky 1.20 which seems to have complied correctly with no errors.

User avatar
clarf
Posts: 613
Joined: Wed 13 Jun 2007, 19:22
Location: The old Lone Wolf

#4 Post by clarf »

Hi Geoffrey. Thanks for using pnethood and feedback your test.

I´m glad you could solve your problem, haven`t tried the latest gtkdialog version but if there are problems with it, you should report the issue in the gtkdialog thread or in the project HomePage. Thunor is very diligent solving these kind of bugs.

IF you find any other issue with pnethood, please feel free to report here.

Regards,
clarf

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#5 Post by 01micko »

Clarf, seems to work fine in latest Slacko Beta 1, running r220 of gtkdialog.

I have had a feature request.. an adjustment of the GUI size to be a little wider and perhaps not so tall.

Regards , 01micko
Puppy Linux Blog - contact me for access

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#6 Post by 01micko »

Hi again clarf,

With the very latest gtkdialog the password syntax seems to fail.. It's the same in PupDial. There is a backward compatible solution. Just making you aware.

http://www.murga-linux.com/puppy/viewto ... 419#555419

Cheers
Puppy Linux Blog - contact me for access

User avatar
clarf
Posts: 613
Joined: Wed 13 Jun 2007, 19:22
Location: The old Lone Wolf

#7 Post by clarf »

Hi 01micko, thanks for using latest pnethood.
I have had a feature request.. an adjustment of the GUI size to be a little wider and perhaps not so tall.
In this version I implemented some GUI adjustment on heigh, it resize the Windows according to screen resolution. I could do the same for the weight size:

Code: Select all

line 42:
[ $SCRN_Y -le 600 ] && SBOX_SIZE=300 || SBOX_SIZE=400

line 423:
PNETHOOD_GUI=$PNETHOOD_GUI"<vbox height-request=\"$SBOX_SIZE\">"
or I could implement the share window size as an additional user option. But I think there are enough user options (automatic size could be enough and the scrollable Window could handle the rest).

With the very latest gtkdialog the password syntax seems to fail.. It's the same in PupDial. There is a backward compatible solution. Just making you aware.
Thanks for the advise.

Seems like thunor is going to support the backward solution but I don`t know which is better for older gtkdialog versions:
use invisible-char="120" or use <visible>password</visible>

EDIT:
OK. I read the Gtkdialog Development thread, thunor explained that the correct implementation is
<sensitive>password</sensitive>
and the invisible-char="120" will work for newer gtkdialog only, then the best option for backward compatibility seems to be:
<visible>password</visible>

thank you 01micko

Regards,
clarf

User avatar
clarf
Posts: 613
Joined: Wed 13 Jun 2007, 19:22
Location: The old Lone Wolf

#8 Post by clarf »

new release (minor fix update) on first post.

clarf

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

Re: gtkdialog 0.7.21 -

#9 Post by ttuuxxx »

clarf wrote:I add the 0.7.21 gtkdialog version (r14) compiled in puppy 214X, minimun gtkdialog version needed for new GUI pnethood features.

Regards,
clarf
Hi clarf your gtkdialog package places the gtkdialog bin in usr/local/bin where as the default gtkdialog bin is located in usr/sbin, so there are now 2 gtkdialog bin files. will this mess things up, its in the next release like this.
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
clarf
Posts: 613
Joined: Wed 13 Jun 2007, 19:22
Location: The old Lone Wolf

#10 Post by clarf »

Hi ttuuxxx,

I didn´t find any backward problem with the r14 release posted here, it should replace the default gtkdialog executable in usr/sbin without problems on 214X. I apologize, I didn´t check what default path is used for each Puppy version so I used the default one when I compiled the source.

Advice for the gtkdialog package users:

The user that loads this package also must check if his Puppy version has a gtkdialog3 symlink and correct this if necessary.

In case of having two gtkdialog binaries then the first coincidence in the "PATH" user environment variable will have priority over others. This is like this, if the PATH variable contains "PATH=/usr/local/bin; /usr/sbin", the system will look on /usr/local/bin path first for the executables given (in this example gtkdialog or gtkdialog3) and if the executable is found then the system will use it and omit the executables on the following /usr/sbin path.

To find what gtkdialog executable the system will lookup and use first, launch "which gtkdialog" and check the path returned.

Regards,
Andrés Caro

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#11 Post by ttuuxxx »

clarf wrote:Hi ttuuxxx,

I didn´t find any backward problem with the r14 release posted here, it should replace the default gtkdialog executable in usr/sbin without problems on 214X. I apologize, I didn´t check what default path is used for each Puppy version so I used the default one when I compiled the source.

Regards,
Andrés Caro
are you sure did you manually delete the one in usr/sbin? since yours install in a different location.
Also the next release is almost ready, a couple of hours away, Its the last of the stable 2.14X branch before I change to the latest GTK2, I used the newer GTK without any issues for 2+ weeks, so it should be good, but I'll play it safe first :)
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
clarf
Posts: 613
Joined: Wed 13 Jun 2007, 19:22
Location: The old Lone Wolf

#12 Post by clarf »

Hi ttuuxxx,

well, there is always a small risk present changing gtkdialog as it´s an important/extensive component.

I don´t habituate to mix such kind of changes (in this case GTK and gtkdialog) releasing new software and don´t wan to affect latest stable 214X either.

Anyway pnethood 0.6.8.1 detects actual gtkdialog version and disable new features when needed, so pnethood is fail safe where gtkdialog has a risk...

In other words, I also bet for a latest stable first. :)

clarf

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

#13 Post by peebee »

Hi there

pnethood works great for me - but I've noticed in all recent puppies that the display isn't quite wide enough.....screenie attached from latest wary5.1.103

Thanks
peebee
Attachments
screen-pnethood.png
(36.19 KiB) Downloaded 2862 times
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

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

pnethood in k3.1.n

#14 Post by peebee »

Hi there

Just a possible "heads up".........

pnethood on puppies using k3.0.n is saying in dmesg:
CIFS VFS: default security mechanism requested. The default security mechanism will be upgraded from ntlm to ntlmv2 in kernel release 3.1
Does this mean a pnethood update will be needed???

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

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#15 Post by 01micko »

peebee,

Working fine here in slacko beta k3.1.10, I've been playing with mount.cifs to day .. same message though but it says kernel 3.2!
Puppy Linux Blog - contact me for access

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

[SOLVED] failed to preserve ownership

#16 Post by shinobar »

At last, the solution :D

I posted the issue at first on 03 Dec 2010.
http://www.murga-linux.com/puppy/viewto ... 451#473451
Copying /mnt/sda3/tmp/some.txt as /mnt/network/SHINOBAR/video/public/tmp/some.txt
cp: failed to preserve ownership for `/mnt/network/SHINOBAR/video/public/tmp/some.txt': Permission denied
Failed to copy '/mnt/sda3/tmp/some.txt'
Actually, the file is copied successfully. The problem is only the error message.
I saw the mount command:
//192.168.11.2/video on /mnt/network/SHINOBAR/video type cifs (rw,mand,relatime,unc=\192.168.11.2\video,username=guest,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.11.2,serverino,acl,rsize=16384,wsize=57344)
At last, i have found that the key was the 'acl'.
Next is fine.
# mount -t cifs
//192.168.11.2/video on /mnt/network/SHINOBAR/video type cifs (rw,mand,relatime,unc=\\192.168.11.2\video,username=root,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.11.2,file_mode=0755,dir_mode=0755,rsize=16384,wsize=57344)
(//192.168.11.2/video is a samba share)

The solution is simple. The 'nounix' option for mount.cifs.
http://linux.die.net/man/8/mount.cifs
nounix
Disable the CIFS Unix Extensions for this mount. This can be useful in order to turn off multiple settings at once. This includes POSIX acls, POSIX locks, POSIX paths, symlink support and retrieving uids/gids/mode from the server. This can also be useful to work around a bug in a server that supports Unix Extensions.

I have attached a patch against the curf_pnethood-0.6.8.1.
Or, you can get a test package pnethood-0.6.8.9.pet from http://shino.pos.to/party/bridge.cgi?puppy/test/.
It has more tweaks:
#23mar2012 shinobar: use mount.cifs with 'nounix' option(func_mount), UTF-8 encording default
# mount.cifs accepts 'guest' option (rcrsn51)

Tested on 431JPreturns2012, Wary-511-01j, lupu-528-04, slacko-5.3.2.7p. Shared folder without password is at Windows 7 and samba.
Attachments
pnethood-0.6.8.1-nounix.patch.gz
a patch against the curf_pnethood-0.6.8.1. the root is /usr/local/apps.
(2.02 KiB) Downloaded 737 times
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

pnethood-0.6.9

#17 Post by shinobar »

UPDATED:
#23mar2012 shinobar: use mount.cifs with 'nounix' option(func_mount), UTF-8 encording default
#17may2012 shinobar: extracting sharename
#20jun2012 shinobar: export GTKDIALOG for other func

pnethood-0.6.9.pet
pnethood-0.6.9.i18n.pet (I18N'ed)
http://shino.pos.to/party/bridge.cgi?puppy/opt/

NOTE: both do not contain nbtscan, do support gtkdialog3 or gtkdialog4.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

pnethood-0.7

#18 Post by shinobar »

pnethood-0.7.i18n.pet
http://shino.pos.to/party/bridge.cgi?puppy/opt/
NOTE: does not contain nbtscan.

#12jan2011 shinobar: refresh button, scanspeed 2 seconds, check if the rcfile exists
#23mar2012 shinobar: use mount.cifs with 'nounix' option(func_mount), UTF-8 encording default
#17may2012 shinobar: extracting sharename
#17may2012 shinobar: i18n
#20jun2012 shinobar: export GTKDIALOG for other func
#5jul2012 shinobar: fix was failed on Dpup Exprimo
http://www.murga-linux.com/puppy/viewto ... &start=595
(servernetbiosname in func_mount)
VERSION=0.7.i18n #shinobar
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

Post Reply