Fatdog64-600 alpha2

A home for all kinds of Puppy related projects
Message
Author
jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

Re: Fatdog64-600 alpha2

#141 Post by jamesbond »

Billtoo wrote:I won't fill this savefile up in a hurry!
Hahaha :D Can you please run "calcfreespace.sh" from terminal and copy and paste the output here? Most likely has been fixed but still good to know why it fails on your machine.

Jim, I'd never guess you are running a WEP network. It is deprecated and much less secure than WPA/WPA2. Anyway, with that hindsight now, for WEP, whatever settings you put in your wireless router, you will have do duplicate it in wpa_gui (I'm sure your router also has 4 fields for WEP key).

Anyway, here is Linus Torvalds (no less!) comments on slow blkid ... http://www.spinics.net/lists/util-linux ... 02852.html He was complaining that it took 30 seconds just to scan a (admittedly slow) usb disk.
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
Billtoo
Posts: 3720
Joined: Tue 07 Apr 2009, 13:47
Location: Ontario Canada

Re: Fatdog64-600 alpha2

#142 Post by Billtoo »

jamesbond wrote:I won't fill this savefile up in a hurry!
Hahaha :D Can you please run "calcfreespace.sh" from terminal and copy and paste the output here? Most likely has been fixed but still good to know why it fails on your machine.
/quote]

# calcfreespace.sh
5324599148
#

When is the next version coming?

Edit:I made some qt482 pets and can upload them to you if you'd like them,if so pm me.

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#143 Post by smokey01 »

jamesbond don't forget mhwaveedit. I tried the one in the 500 repo but it didn't work. Was missing an .so file.

Thanks

Jim1911
Posts: 2460
Joined: Mon 19 May 2008, 20:39
Location: Texas, USA

Re: Fatdog64-600 alpha2

#144 Post by Jim1911 »

jamesbond wrote:Anyway, here is Linus Torvalds (no less!) comments on slow blkid ... http://www.spinics.net/lists/util-linux ... 02852.html He was complaining that it took 30 seconds just to scan a (admittedly slow) usb disk.
I unplugged the usb printer and got the same results with no save file, about 10 min for desktop drive icons to show up versus about 20 sec with the save file with the fixed code, you PM'd. Of course, when blkid is disabled, drive icons show up immediately as they do with Fatdog64-521. I am curious about why others haven't observed the same problem. Although drive icons show up immediately on my Laptop with a similar i7 processor and on an old Dell computer with a much slower 2-core processor.

Hopefully alpha 3 won't have this problem on any hardware.

Cheers,
Jim

kirk
Posts: 1553
Joined: Fri 11 Nov 2005, 19:04
Location: florida

#145 Post by kirk »

It starts with the improper notation in the Authentication box "(no authentication)"
That's probably correct, but confusing. With WEP you have Open System authentication and Shared Key authentication, the first being more common and probably what you're using. With Open System authentication you can associate with the access point without being authenticated. You can't connect to the network without the key but anyone can associate with the access point. But like James wrote, WEP is broke. Even with bad luck you can crack 128bit WEP in less than an hour. But in reality almost no one is that interested to try.

Jim1911
Posts: 2460
Joined: Mon 19 May 2008, 20:39
Location: Texas, USA

Feature Request

#146 Post by Jim1911 »

Please include a battery monitor or am I overlooking it on my laptop installation. :(

Thanks,
Jim

kirk
Posts: 1553
Joined: Fri 11 Nov 2005, 19:04
Location: florida

#147 Post by kirk »

Should have a battery monitor, see letter M on this page:

http://distro.ibiblio.org/pub/linux/dis ... /tray.html

Jim1911
Posts: 2460
Joined: Mon 19 May 2008, 20:39
Location: Texas, USA

#148 Post by Jim1911 »

kirk wrote:Should have a battery monitor, see letter M on this page:

http://distro.ibiblio.org/pub/linux/dis ... /tray.html
Then, there is another problem. There are a number of missing tray icons. See desktop image below.

The problem is only with the JWM desktop. I switched back to Openbox and see the icons.

kirk
Posts: 1553
Joined: Fri 11 Nov 2005, 19:04
Location: florida

#149 Post by kirk »

JWM is still in there, but we don't really support it. Mainly because nether one of us use it. It probably should be removed, unless James wants to do something with it. I haven't tried JWM for a while, maybe it's better now?
Anyway, please use Openbox. Sorry for the confusion.

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

#150 Post by 01micko »

Later JWM versions are improving, fullscreen bugs fixed, screen rotation.. but there is a compositing bug which Joe is working on.

-

Ok.. there is a "bug" with your nifty samba share rox app.. and it only occurs when mounting a Mac share [ :roll: ]. ( I might "steal" this one :wink: )

My wife has a macbook and the sharename is "Kriista's Public Folder" .. yeah trust mac devs to whack in spaces and an apostrophe for good measure!

Any way, I patched the rox app for my purposes and it seems to work fine. I'll offer the patch FWIW, so anyone who knows what they're doing can patch and use with a mac. It doesn't break windows share mount with my limited testing, but, I could have introduced something.. as there appear a lot of "mounts" for my son's windows 7 machine which aren't really shares.

Also, I made a cool overlay that I use as a "mount" icon. Attached.

Patch:

Code: Select all

diff -ru /aufs/pup_ro/usr/share/Shares/Network/AppRun /usr/share/Shares/Network/AppRun
--- /aufs/pup_ro/usr/share/Shares/Network/AppRun	2012-05-02 08:52:10.000000000 +0000
+++ /usr/share/Shares/Network/AppRun	2012-05-27 07:18:09.140193879 +0000
@@ -90,20 +90,21 @@
 
 smbclient -U $Username%$Password -g -L $IP | grep Disk | cut -d "|" -f 2 > ${TMP}shares
 NAME=$(nmblookup -A $IP | grep "<20>" | cut -d " " -f 1 | sed 's/^[ \t]*//') #couldn't reliably grep server name from smbclient.
-for SHARE in $(cat ${TMP}shares) ; do #Make rox app for each share.
-SHARE2=$(echo $SHARE | sed 's/[!@#\$%^&*()]//g') #remove some ugly characters
-mkdir $MNTDIR/$NAME"--"$SHARE2
-cp  $APPDIR/icons/*  $MNTDIR/$NAME"--"$SHARE2/
-cp  $APPDIR/icons/.DirIcon  $MNTDIR/$NAME"--"$SHARE2/
-cat $APPDIR/scripts/part1 > $MNTDIR/$NAME"--"$SHARE2/AppRun
-echo "Name="${NAME[$I]} >> $MNTDIR/$NAME"--"$SHARE2/AppRun
-echo "Share="$SHARE >> $MNTDIR/$NAME"--"$SHARE2/AppRun
-echo "Username="$Username >> $MNTDIR/$NAME"--"$SHARE2/AppRun
-echo "Password="$Password >> $MNTDIR/$NAME"--"$SHARE2/AppRun
-echo "IOCHARSET="$IOCHARSET >> $MNTDIR/$NAME"--"$SHARE2/AppRun
-cat $APPDIR/scripts/part2 >> $MNTDIR/$NAME"--"$SHARE2/AppRun
-cp $APPDIR/scripts/AppInfo.xml $MNTDIR/$NAME"--"$SHARE2/
-chmod -R 755 $MNTDIR/$NAME"--"$SHARE2
+for SHARE in $(cat ${TMP}shares|sed 's/ /___/g') ; do #Make rox app for each share.
+SHARE2=$(echo "$SHARE" | sed -e 's/[!@#\$%^&*()]//g' \
+                             -e 's/___/ /g') #remove some ugly characters and replace space with underscore
+mkdir $MNTDIR/$NAME"--""$SHARE2"
+cp  $APPDIR/icons/*  $MNTDIR/$NAME"--""$SHARE2"/
+cp  $APPDIR/icons/.DirIcon  $MNTDIR/$NAME"--""$SHARE2"/
+cat $APPDIR/scripts/part1 > $MNTDIR/$NAME"--""$SHARE2"/AppRun
+echo "Name="${NAME[$I]} >> $MNTDIR/$NAME"--""$SHARE2"/AppRun
+echo "Share=""\"$SHARE2\"" >> $MNTDIR/$NAME"--""$SHARE2"/AppRun
+echo "Username="$Username >> $MNTDIR/$NAME"--""$SHARE2"/AppRun
+echo "Password="$Password >> $MNTDIR/$NAME"--""$SHARE2"/AppRun
+echo "IOCHARSET="$IOCHARSET >> $MNTDIR/$NAME"--""$SHARE2"/AppRun
+cat $APPDIR/scripts/part2 >> $MNTDIR/$NAME"--""$SHARE2"/AppRun
+cp $APPDIR/scripts/AppInfo.xml $MNTDIR/$NAME"--""$SHARE2"/
+chmod -R 755 $MNTDIR/$NAME"--""$SHARE2"
 done
 done
 killall yaf-splash
diff -ru /aufs/pup_ro/usr/share/Shares/Network/scripts/part2 /usr/share/Shares/Network/scripts/part2
--- /aufs/pup_ro/usr/share/Shares/Network/scripts/part2	2012-05-02 08:52:10.000000000 +0000
+++ /usr/share/Shares/Network/scripts/part2	2012-05-27 10:02:38.710681980 +0000
@@ -7,33 +7,34 @@
 fi
 
 
-if [ "$(mount | grep $Name )" = "" ] ; then #for some reason can't grep $APPDIR when used as a rox app, guess it's something with /.
+if [ "$(mount | grep $Name )" = "" ] ; then #for some reason can't grep "$APPDIR" when used as a rox app, guess it's something with /.
 	[ "$PARAMS" = "unmount" ] && exit
-	mkdir $APPDIR/mnt-point
+	mkdir "$APPDIR"/mnt-point
 	IP=$(nmblookup $Name | grep "<00>" | cut -d " " -f 1) #Ip address my change so look it up by netbios name.
-	mount.cifs "//$IP/$Share" "$APPDIR/mnt-point" -o "$Name,username=$Username,password=$Password,noserverino$IOCHARSET"
+	echo "mount.cifs "//$IP/\"$Share\"" "mnt-point" -o "$Name,username=$Username,password=$Password,noserverino$IOCHARSET"" > /tmp/trymount
+	. /tmp/trymount
 	if [ $? -ne 0 ]; then
 	Xdialog --title "$APPTITLE" --stdout --ok-label "OK" --infobox "Could not mount the shared folder." 0 0 90000
 	exit
 	else
-	rox $APPDIR/mnt-point
-	cp $APPDIR/drive_mntd48.png $APPDIR/.DirIcon
-	rox -x $(echo $APPDIR | sed 's,/*[^/]\+/*$,,') #refresh window so new icon shows up.
+	rox "$APPDIR"/mnt-point
+	cp "$APPDIR"/drive_mntd48.png "$APPDIR"/.DirIcon
+	rox -x $(echo "$APPDIR" | sed 's,/*[^/]\+/*$,,') #refresh window so new icon shows up.
 	fi
 else #if already mounted
 if [ "$PARAMS" = "unmount" ] ; then
-rox -D $APPDIR/mnt-point
-umount.cifs $APPDIR/mnt-point
+rox -D "$APPDIR"/mnt-point
+umount.cifs mnt-point #no need for $APPDIR
 	if [ $? -ne 0 ]; then
 	Xdialog --title "$APPTITLE" --stdout --ok-label "OK" --infobox "Could not umount. Close all files open on the shared folder and try again." 0 0 90000
-	cp $APPDIR/drive_mntd48.png $APPDIR/.DirIcon
-	rox -x $(echo $APPDIR | sed 's,/*[^/]\+/*$,,')
+	cp "$APPDIR"/drive_mntd48.png "$APPDIR"/.DirIcon
+	rox -x $(echo "$APPDIR" | sed 's,/*[^/]\+/*$,,')
 	exit
 	else
-	cp $APPDIR/drive48.png $APPDIR/.DirIcon
-	rox -x $(echo $APPDIR | sed 's,/*[^/]\+/*$,,')
+	cp "$APPDIR"/drive48.png "$APPDIR"/.DirIcon
+	rox -x $(echo "$APPDIR" | sed 's,/*[^/]\+/*$,,')
 	fi
 else
-rox $APPDIR/mnt-point	
-fi
+rox "$APPDIR"/mnt-point	
 fi
+fi
\ No newline at end of file

Cheers

EDIT.. hmm.. can't add attachment.. ownership maybe?

Added later in slacko
Attachments
smb_overlay.png
(1.16 KiB) Downloaded 456 times
Puppy Linux Blog - contact me for access

mories
Posts: 70
Joined: Mon 21 Dec 2009, 12:51

Locale es_ES

#151 Post by mories »

Please, as set locale other than english?
The Fatdog64 Locale Selector only offers English.
Thanks in advance.

kirk
Posts: 1553
Joined: Fri 11 Nov 2005, 19:04
Location: florida

#152 Post by kirk »

01micko wrote:
Ok.. there is a "bug" with your nifty samba share rox app.. and it only occurs when mounting a Mac share [ :roll: ]. ( I might "steal" this one :wink: )

My wife has a macbook and the sharename is "Kriista's Public Folder" .. yeah trust mac devs to whack in spaces and an apostrophe for good measure!

Any way, I patched the rox app for my purposes and it seems to work fine. I'll offer the patch FWIW, so anyone who knows what they're doing can patch and use with a mac. It doesn't break windows share mount with my limited testing, but, I could have introduced something.. as there appear a lot of "mounts" for my son's windows 7 machine which aren't really shares.

Also, I made a cool overlay that I use as a "mount" icon. Attached.
Glad you like the Samba browser, I thought it turned out pretty well too. Thanks for the patch, didn't think about the name having a apostrophe. Feel free to use it, that's why it's public domain :wink: . Yes, with Windows smbclient returns a list of shares that sometimes contain shares that don't share anything. I guess we could add a loop that tries to mount each share, and if the mount fails, don't make a rox app for it.

A couple things to note if you're going to use it in another distro. If the user does not umount their shares the shutdown may hang and the mounted/unmounted icons will be left in the wrong state. The icon state problem is just cosmetic though and will fix it self after a cycle. You'll want to have something in your shutdown script or init.d that takes care of umounting and the icons. We put it in rc.shutdown. Also, mpsan is hacked to timeout faster, there are some command line switches you can use if you want to make the un-hacked version of mpscan do about the same thing. The patched source is on ibiblio if you need it.
What does the new mount icon do or look like?


Please, as set locale other than english?
Sorry mories, it's english only.

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

#153 Post by 01micko »

Thanks for the info kirk.

The original idea for the overlay is in this post where I made my mount a desktop icon. I scripted the overlay to cover all icon themes installed at the time with pngoverlay (iirc), a script of Barry's using the netpbm suite. There's a screenshot at the link. It may or may not be useful to you. :)

Maybe you could set an icon for the share folder on the desktop, but I guess you may already have ideas of that?

Cheers
Puppy Linux Blog - contact me for access

kirk
Posts: 1553
Joined: Fri 11 Nov 2005, 19:04
Location: florida

#154 Post by kirk »

Maybe you could set an icon for the share folder on the desktop, but I guess you may already have ideas of that?
I thought users could just drag the created rox apps to the desktop if they wanted.

I added a few lines to test mount each share to see if it's real. This weeds out the bogus shares from my daughter's Vista laptop. I've attached a pet with that along with your fixes.

If you've been using the Samba Browser on the desktop, please test this pet. Thanks
Attachments
samba-browser.pet
(35.89 KiB) Downloaded 244 times

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

#155 Post by 01micko »

Thanks kirk,

Samba sharing working well :)

On my son's win7 lappy I get a more sane list of shares now, "dad" (my account), Public and Users. I can only login to my account because that is the only one I have a password for which is the expected behaviour.
I thought users could just drag the created rox apps to the desktop if they wanted.
great idea, and if you overlay the stock drive icons you have, then the user has a distinction :wink: (you could probably get real fancy, but I guess sanity has to prevail!)
Puppy Linux Blog - contact me for access

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#156 Post by jamesbond »

01micko wrote:great idea, and if you overlay the stock drive icons you have, then the user has a distinction :wink: (you could probably get real fancy, but I guess sanity has to prevail!)
I think this this http://www.murga-linux.com/puppy/viewto ... 431#619136 is a better idea. It does use SVG so it is probably a tad slower; but I don't notice it :D I'll what I can do with this.
PS: The drive icons are using these. No multiple versions of the same icons are involved.

cheers!
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

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

#157 Post by 01micko »

jamesbond wrote:
01micko wrote:great idea, and if you overlay the stock drive icons you have, then the user has a distinction :wink: (you could probably get real fancy, but I guess sanity has to prevail!)
I think this this http://www.murga-linux.com/puppy/viewto ... 431#619136 is a better idea. It does use SVG so it is probably a tad slower; but I don't notice it :D I'll what I can do with this.
PS: The drive icons are using these. No multiple versions of the same icons are involved.

cheers!
Svg ... even better :)
Puppy Linux Blog - contact me for access

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#158 Post by jamesbond »

01micko wrote:Svg ... even better :)
You can overlay as many images as you want. I took your "SMB" icon, change the color to red, make it bolder a bit, and thanks to technosaurus' SVG icon technique, now samba shares features the "SMB" word there :D
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#159 Post by jamesbond »

kirk wrote:JWM is still in there, but we don't really support it. Mainly because nether one of us use it. It probably should be removed, unless James wants to do something with it. I haven't tried JWM for a while, maybe it's better now?
Anyway, please use Openbox. Sorry for the confusion.
We'll probably keep JWM as an alternative but as kirk said - it's basically an unloved child, not fully tested etc. Both myself and kirk definitely don't use it. Do report any problems with it (even better with the fixes), we'll look at them and fix the easy ones. The difficult ones will probably stay there for a (long) while :)

Note: JWM configuration is not working. As far as I know, this is basically an unmaintained piece of software. The author ("thoughtjourney") last post in the forum is from 2006. It's a nice piece of software, well-written too but JWM probably has changed since then. Unless I have a better option we will probably have to drop it.
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

Jim1911
Posts: 2460
Joined: Mon 19 May 2008, 20:39
Location: Texas, USA

#160 Post by Jim1911 »

jamesbond wrote:Note: JWM configuration is not working. As far as I know, this is basically an unmaintained piece of software. The author ("thoughtjourney") last post in the forum is from 2006. It's a nice piece of software, well-written too but JWM probably has changed since then. Unless I have a better option we will probably have to drop it.
It works well in Slacko and I believe that 01micko refined it with code that launches an improved JWM Panel Button application, I'm sure Mick will share his code improvements.
Attachments
image-6.jpg
(24.07 KiB) Downloaded 614 times

Post Reply