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 12 Dec 2017, 04:19
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
sfs_load-2.4 on-the-fly
Post new topic   Reply to topic View previous topic :: View next topic
Page 23 of 25 [371 Posts]   Goto page: Previous 1, 2, 3, ..., 21, 22, 23, 24, 25 Next
Author Message
ASRI éducation


Joined: 09 May 2009
Posts: 3203
Location: France

PostPosted: Sat 12 Sep 2015, 22:05    Post subject:  

Argolance wrote:
Quote:
Suggestion: the button "Install SFS" [of filemount] should be labeled "Un/Install SFS" because user can uninstall/unload any SFS file this way too,

This is done for several months.
https://github.com/puppylinux-woof-CE/woof-CE/commit/1ad1fb30be20dfb8e6a9e65066b59f3a067b4c00
https://github.com/puppylinux-woof-CE/woof-CE/commit/a30bd4b00085bfebcd99dfad012ea2a30efa84d1
Regards,

_________________
Projet ASRI éducation => Association | Forum | Dépôt | Espace kids
Back to top
View user's profile Send private message Visit poster's website 
Iguleder


Joined: 11 Aug 2009
Posts: 2031
Location: Israel, somewhere in the beautiful desert

PostPosted: Sun 27 Sep 2015, 06:13    Post subject:  

There's a bug in sfs_load - it should obtain the numeric kernel version using `uname -r | cut -f 1 -d \-`. Otherwise, it doesn't work at all with kernels that have an extra version string.
_________________
My homepage
My GitHub profile
Back to top
View user's profile Send private message Visit poster's website 
ASRI éducation


Joined: 09 May 2009
Posts: 3203
Location: France

PostPosted: Sun 27 Sep 2015, 06:44    Post subject:  

Iguleder wrote:
There's a bug in sfs_load - it should obtain the numeric kernel version using `uname -r | cut -f 1 -d \-`. Otherwise, it doesn't work at all with kernels that have an extra version string.

Yes, need to replace:
KERNVER="`uname -r`"
by
KERNVER="`uname -r | cut -f 1 -d \-`"

Thank you.

_________________
Projet ASRI éducation => Association | Forum | Dépôt | Espace kids
Back to top
View user's profile Send private message Visit poster's website 
ASRI éducation


Joined: 09 May 2009
Posts: 3203
Location: France

PostPosted: Sun 04 Oct 2015, 09:46    Post subject:  

sfs_load-2.3.3

I incorporated:
- sfs_load-2.3 (by shinobar)
- sfs_load-2.3.0 (by ASRI)
- sfs_load-2.3.2 (by mavrothal)
- improve kernel detection KERNVER (by Iguleder)

Regards,
sfs_load-2.3.3.jpg
 Description   
 Filesize   47.22 KB
 Viewed   813 Time(s)

sfs_load-2.3.3.jpg

sfs_load-2.3.3.pet
Description 
pet

 Download 
Filename  sfs_load-2.3.3.pet 
Filesize  34.12 KB 
Downloaded  217 Time(s) 

_________________
Projet ASRI éducation => Association | Forum | Dépôt | Espace kids

Last edited by ASRI éducation on Sun 04 Oct 2015, 15:14; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 11256
Location: Gatineau (Qc), Canada

PostPosted: Sun 04 Oct 2015, 12:38    Post subject:  

ASRI éducation wrote:
sfs_load-2.3.3

This version is based on:
- sfs_load-2.3 (by shinobar)
- sfs_load-2.3.0 (by ASRI)
- sfs_load-2.3.2 (by mavrothal)
- improve kernel detection KERNVER (by Iguleder)

Regards,


Hello, ASRI.

Sorry, I have to translate to understand... "Based on", you mean
"incorporates", right?

Also, if you could kindly look over the translation I made for 01micko's
change-kernels script. It's in that thread.

I translated to "international French", but I'd like to have an European
editor go over it, to make double sure there are no "canadianisms". If
you can't, that's fine, I'll ask someone else.

Thanks.

musher0

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
ASRI éducation


Joined: 09 May 2009
Posts: 3203
Location: France

PostPosted: Sun 04 Oct 2015, 15:12    Post subject:  

musher0 wrote:
Sorry, I have to translate to understand... "Based on", you mean "incorporates", right?

That's it.
Thank you for pointing that out, I'll edit my previous message.

musher0 wrote:
look over the translation I made for 01micko's
change-kernels script. It's in that thread

I just do it, everything seems ok.

Regards,

_________________
Projet ASRI éducation => Association | Forum | Dépôt | Espace kids
Back to top
View user's profile Send private message Visit poster's website 
mavrothal


Joined: 24 Aug 2009
Posts: 2922

PostPosted: Fri 09 Oct 2015, 05:03    Post subject:  

As reported sfs_load in PUPMODE=5 fails to install as SFS saved in /tmp (ok when saved in other locations)
The problem is that the union (re)mount fails in this case. I think that this may be the expected behavior of aufs but it needs further investigation.
Till then the attached patch stops sfs_load from loading an SFS from /tmp or suggesting to copy it there when running in pupmode 5
The patch is against ASRI's 2.3.3 but should work in other versions too.
Code:
--- a/usr/sbin/sfs_load   2015-10-04 15:25:30.000000000 +0300
+++ b/usr/sbin/sfs_load   2015-10-09 11:45:01.760463314 +0300
@@ -885,7 +885,7 @@
   local TOPPART="$1"
   # Offer RAM only if enough
   RAMPART=""
-  if [ "$FILEISAT" != "tmpfs" -a "$FILEISAT" != "ata" ]; then
+  if [ "$FILEISAT" != "tmpfs" -a "$FILEISAT" != "ata" -a "$PUPMODE" != "5" ]; then
    RAMPART=$(echo "RAM|($(gettext "Available"):$(kbyte2 $RFREE))"|tr ' ' '_')
    REST=$(($RFREE - $FILESIZE))
    if [ $REST -gt $RESERVRAM ]; then
@@ -1697,7 +1697,7 @@
       DIRNAME=$(dirname "$EXTRASFS")
       FILENAME=$(basename "$EXTRASFS")
       #if echo "$DIRNAME" | grep -qw '/tmp$' || [ "$(df "$DIRNAME" | tail -n 1 | cut -d ' ' -f1)" = "tmpfs" ]; then
-     if [ "$(df "$DIRNAME" | tail -n 1 | cut -d ' ' -f1)" = "tmpfs" ]; then
+     if [ "$(df "$DIRNAME" | tail -n 1 | cut -d ' ' -f1)" = "tmpfs" -a "$PUPMODE" != "5" ]; then
         rm -f "$EXTRASFS"
         RMLOG=$(printf "$(gettext "The temporary file '%s' is deleted.")" "$EXTRASFS")
         FOUND=""
@@ -1734,6 +1734,14 @@
 basename "$0" | grep -q '^un' && ACTION="unload"
 [ "$DISPLAY" != "" ] && GUI="y"
 basename "$0" | grep -q 'debug' && DEBUGFLAG="y"   # v1.3.9
+
+# Temp work around. Do not mount SFS from /tmp when running in pupmode 5
+. /etc/rc.d/PUPSTATE
+if [ "$(echo $ORGOPT | cut -f2 -d/)" = "tmp" -a "$PUPMODE" = "5" ]; then
+  Xdialog --title "$(gettext 'Error')" --msgbox \
+   "$(gettext 'You can not install an SFS saved in the /tmp directory \nwhen running in PUPMODE=5')" 0 0
+ exit 0
+fi
 #v1.9.2: allow --skip-fixmenus with multiple files
  while [ "$1" ] ; do
   case "$1" in

Since the forum may add spaces at the end of the lines, it is also attached below.
sfs_load.patch.gz
Description  Patch to stop loading SFSs saved in /tmp when running in PUPMODE=5
gz

 Download 
Filename  sfs_load.patch.gz 
Filesize  842 Bytes 
Downloaded  147 Time(s) 

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
ASRI éducation


Joined: 09 May 2009
Posts: 3203
Location: France

PostPosted: Fri 09 Oct 2015, 12:08    Post subject:  

mavrothal wrote:
sfs_load in PUPMODE=5 fails to install as SFS saved in /tmp (ok when saved in other locations)

Thank you for the patch (sfs_load.patch.gz).

_________________
Projet ASRI éducation => Association | Forum | Dépôt | Espace kids
Back to top
View user's profile Send private message Visit poster's website 
jplt


Joined: 12 Nov 2010
Posts: 282
Location: Terre

PostPosted: Sat 24 Oct 2015, 06:14    Post subject:  

Is there a way to launch an sfs file with this :

Code:
sfs_load -c -q xxx.sfs


And then have a box that say "The software is launching" and then launch the software ?

I want to do this because i found annoying to click on x box to launch an sfs file .

_________________
Precise , Tahr
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 3033
Location: Worcestershire, UK

PostPosted: Sat 24 Oct 2015, 09:38    Post subject:  

jplt wrote:
Is there a way to launch an sfs file with this :

Code:
sfs_load -c -q xxx.sfs


And then have a box that say "The software is launching" and then launch the software ?

I want to do this because i found annoying to click on x box to launch an sfs file .

My script to load the wine sfs and then run irfanview called from a desktop file:
Code:
#!/bin/sh
# Purpose: To convert Linux-style filename to Windows-style
# to pass as an argument to Irfanview within wine

sfs_load -n -c wine.sfs

Filename=${1//\//\\}
wine "C:\Program Files\IrfanView\i_view32.exe" "$Filename"

sleep 8
sfs_load -n -c -wine.sfs
sfs_load -n -c -wine.sfs &

You could add a yaf-splash message if you need one...

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


Joined: 24 Aug 2009
Posts: 2922

PostPosted: Sun 25 Oct 2015, 06:28    Post subject: sfs_load-2.3.5  

Here is an updated version of sfs_load that is based on ASRI's version, plus the pupmod 5 patch abpve plus some code to warn if you try to unload the (new) fdrv sfs
sfs_load-2.3.5.pet
Description 
pet

 Download 
Filename  sfs_load-2.3.5.pet 
Filesize  29.54 KB 
Downloaded  152 Time(s) 

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
ASRI éducation


Joined: 09 May 2009
Posts: 3203
Location: France

PostPosted: Sun 25 Oct 2015, 08:15    Post subject: Re: sfs_load-2.3.5  

mavrothal wrote:
Here is an updated version of sfs_load that is based on ASRI's version, plus the pupmod 5 patch abpve plus some code to warn if you try to unload the (new) fdrv sfs

Thank you mavrothal.

_________________
Projet ASRI éducation => Association | Forum | Dépôt | Espace kids
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2664
Location: Japan

PostPosted: Mon 26 Oct 2015, 21:15    Post subject: Re: sfs_load-2.3.5  

mavrothal wrote:
Here is an updated version of sfs_load that is based on ASRI's version, plus the pupmod 5 patch abpve plus some code to warn if you try to unload the (new) fdrv sfs

Thank you all for developing.

sfs_load-2.3.5.pet could not install on Puppy-571JP, but extracted and re-created package can be installed.

As for the "Total of mounted SFS", does not work in some case because the file /tmp/sfs_load/loop_device_list is not always created.
Next is my patch.
Code:
# diff sfs_load235 sfs_load
773,780c773
<       list="/tmp/sfs_load/loop_device_list"
<       cntsfsloaded=0
<       while read LINE
<       do
<          if [ "$LINE" != "" ]; then
<             cntsfsloaded=`expr $cntsfsloaded + 1`
<          fi
<       done < "$list"
---
>    cntsfsloaded=$(echo $LOADEDLIST|wc -w)

_________________
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
mavrothal


Joined: 24 Aug 2009
Posts: 2922

PostPosted: Mon 26 Oct 2015, 23:37    Post subject: Re: sfs_load-2.3.5  

shinobar wrote:
sfs_load-2.3.5.pet could not install on Puppy-571JP,

Ah, this is because in recent pups dir2pet defaults to xz compression that is problematic with older pups.
Here is 2.3.6 that includes your change above and is compressed with gzip. Should work fine in older pups too.

Maybe is time to stop this sublevel versions and you release a new minor version Wink
sfs_load-2.3.6.pet
Description 
pet

 Download 
Filename  sfs_load-2.3.6.pet 
Filesize  35.42 KB 
Downloaded  119 Time(s) 

_________________
== Here is how to solve your Linux problems fast ==
Back to top
View user's profile Send private message 
shinobar


Joined: 28 May 2009
Posts: 2664
Location: Japan

PostPosted: Wed 28 Oct 2015, 00:43    Post subject: Re: sfs_load-2.3.6  

mavrothal wrote:
Here is 2.3.6

Thanks. But it fails unloading SFS. Next is my patch.
Code:
# diff sfs_load236 sfs_load
2322c2322,2324
<     [ "$FILENAME" = "$DISTRO_FDRVSFS" ] && confirm --ok-cancel "$(gettext "'$FILENAME' contains additional firmware that maybe needed. Are you sure you want to remove it?")" || finish
---
>     if [ "$FILENAME" = "$DISTRO_FDRVSFS" ]; then
>       confirm --ok-cancel "$(gettext "'$FILENAME' contains additional firmware that maybe needed. Are you sure you want to remove it?")" || finish
>     fi

_________________
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 23 of 25 [371 Posts]   Goto page: Previous 1, 2, 3, ..., 21, 22, 23, 24, 25 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
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.1077s ][ Queries: 14 (0.0381s) ][ GZIP on ]