The time now is Sun 19 May 2013, 09:55
All times are UTC - 4 |
| Author |
Message |
stu90

Joined: 25 Feb 2010 Posts: 1401 Location: England. Dell Inspiron 1501. Dpup
|
Posted: Tue 24 May 2011, 00:25 Post subject:
|
|
Hi sc0ttman,
Your fix to pick up the .sfs in the .iso worked
And i just noticed what the problem is, for some reason the .sfs in the new .iso is being named wrong - new .sfs is called "puppy_sqzd_4.99.2.sfssqz.sfs" remove the "sqz.sfs" from the end and it boots just fine.
cheers.
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2173 Location: UK
|
Posted: Tue 24 May 2011, 07:11 Post subject:
|
|
| stu90 wrote: | | just noticed what the problem is, for some reason the .sfs in the new .iso is being named wrong - new .sfs is called "puppy_sqzd_4.99.2.sfssqz.sfs" |
Glad it worked (of sorts!)....
Did you try to set a suffix in the main menu, at the start??
It will help me fix it if I know...
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
|
Back to top
|
|
 |
nooby
Joined: 29 Jun 2008 Posts: 9385 Location: SwedenEurope
|
Posted: Tue 24 May 2011, 07:40 Post subject:
|
|
sc0ttman wow this Woofy looks very tempting to try out.
What makes me hesitate is there is no description on what one need.
Does it work on Full install? On frugal install? On USB install and how big should that USB be then? Does a 1GB RAM do or maybe 3GB or something needed or a big swap file to hold things in place? Such info? I have an Atom CPU and them are kind of single core? maybe it does not work on them does it?
_________________
I'm a noob so I use Google Search of Puppy Forum
|
|
Back to top
|
|
 |
stu90

Joined: 25 Feb 2010 Posts: 1401 Location: England. Dell Inspiron 1501. Dpup
|
Posted: Tue 24 May 2011, 07:46 Post subject:
|
|
| sc0ttman wrote: | Also Stu, just a quick question, this got me thinking...
Lots of your remasters do not JWM, is that correct? Have you ever tried editing themes and stuff through Woofy when remastering a non-JWM puppy, that uses OpenBox or whatever?
Would you like something that checks for the WM in use on the ISO, and lets you edit some settings for that WM? (Basically, support for non JWM Wms).. |
lucid puppy has openbox as the default windows manager - if i recall i did try the theme setting through woofy but the desktop icons didn't display properly (they were just the normal script icon) - this wasn't a problem for me as i edit the filesystem anyway so just changed the theme, icons, wallpaper etc then.
I have noticed there has been a few puplets lately using openbox / tint2 - so i think it must be growing as a popular alternative to JWM it also as far as i can tell doesn't have the recurring fullscreen problem that JWM suffers ( i think that was one of the reasons lucid puppy used openbox as the default?)
The ability to set the openbox theme could be a nice feature to have in woofy
| sc0ttman wrote: | | stu90 wrote: | | just noticed what the problem is, for some reason the .sfs in the new .iso is being named wrong - new .sfs is called "puppy_sqzd_4.99.2.sfssqz.sfs" |
Glad it worked (of sorts!)....
Did you try to set a suffix in the main menu, at the start??
It will help me fix it if I know... |
No, no suffix - the input box is just left blank.
cheers.
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2173 Location: UK
|
Posted: Tue 24 May 2011, 12:57 Post subject:
|
|
| stu90 wrote: | The ability to set the openbox theme could be a nice feature to have in woofy
No, (I added) no suffix - the input box is just left blank.
cheers. |
OK thanks... I'll checkout the sfs naming part of the script... Also, if you have any details on how openbox themes work, it would help me in applying the feature to Woofy... Although I can of course check it out myself, but it might take longer... So, up to you...
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
|
Back to top
|
|
 |
stu90

Joined: 25 Feb 2010 Posts: 1401 Location: England. Dell Inspiron 1501. Dpup
|
Posted: Wed 25 May 2011, 11:27 Post subject:
|
|
| sc0ttman wrote: | | stu90 wrote: | The ability to set the openbox theme could be a nice feature to have in woofy
No, (I added) no suffix - the input box is just left blank.
cheers. |
OK thanks... I'll checkout the sfs naming part of the script... Also, if you have any details on how openbox themes work, it would help me in applying the feature to Woofy... Although I can of course check it out myself, but it might take longer... So, up to you... |
I will try to help if i can, although i don't know how much use i will be - probably not much!
Here is how i manually change the openbox theme:
Open the file /root/.config/openbox/rc.xml and edit the openbox theme > name on line #36:
| Code: | <theme>
<name>SomeOpenboxThemeHere</name> |
Openbox themes are located in /usr/share/themes/
Top directory is the openbox theme name (which is applied to the /root/.config/openbox/rc.xml file) all opebox themes as far
as i can tell have the theme name then the next directory is named openbox-3 which contains the themerc file.
In woof BarryK has a theme GUI with the option to set openbox themes - i think maybe that is set to read the default rc.xml file in the openbox package.
Maybe a command something like this would be needed if some one has changed the openbox theme in woof - that way you could obtain what ever the default openbox theme is in the .iso to change it?
| Code: | | awk 'BEGIN{ RS="</name>"}{gsub(/.*<name>/,"");print;exit}' /root/.config/openbox/rc.xml |
cheers.
|
|
Back to top
|
|
 |
stu90

Joined: 25 Feb 2010 Posts: 1401 Location: England. Dell Inspiron 1501. Dpup
|
Posted: Wed 25 May 2011, 22:51 Post subject:
|
|
Hi sc0ttman,
I have added option to select/set openbox themes to woofy - i also changed the GTK selection as well as it was picking up both GTK and openbox themes.
Did a quick remaster with woofy - just had a look in the filesystem (didn't boot) Openbox theme and GTK theme seem to be set correctly - will do another remaster later on today and boot into it to confirm.
cheers.
| Description |
updated /usr/bin/woofy script - updates are tagged with todatys date 25/5/11
|

Download |
| Filename |
woofy.gz |
| Filesize |
10.07 KB |
| Downloaded |
311 Time(s) |
|
|
Back to top
|
|
 |
stu90

Joined: 25 Feb 2010 Posts: 1401 Location: England. Dell Inspiron 1501. Dpup
|
Posted: Thu 26 May 2011, 06:59 Post subject:
|
|
Just to update:
Fixed bug with setting icon theme.
Made a new remaster of Lucid 525 and booted into it - Openbox, JWM, GTK, icon and wallpaper themes are all set correctly.
| Description |
woofy update v001
|

Download |
| Filename |
woofy.gz |
| Filesize |
10.1 KB |
| Downloaded |
298 Time(s) |
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2173 Location: UK
|
Posted: Thu 26 May 2011, 07:59 Post subject:
|
|
| stu90 wrote: | Just to update:
Fixed bug with setting icon theme.
Made a new remaster of Lucid 525 and booted into it - Openbox, JWM, GTK, icon and wallpaper themes are all set correctly.  |
Stu.... awesome!!
I will try to apply the changes today to my latest, double check them, test them, and hopefully re-post and updated Woofy today or tomorrow. (It may also include an initrd.gz editor as well... when I get it working with all types of initrd.gz files....)
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2173 Location: UK
|
Posted: Thu 26 May 2011, 17:13 Post subject:
|
|
| nooby wrote: | sc0ttman wow this Woofy looks very tempting to try out.
What makes me hesitate is there is no description on what one need.
Does it work on Full install? On frugal install? On USB install and how big should that USB be then? Does a 1GB RAM do or maybe 3GB or something needed or a big swap file to hold things in place? Such info? I have an Atom CPU and them are kind of single core? maybe it does not work on them does it? |
Sorry nooby, I missed this post... Whoops!
You can use Woofy with any PC, on any pup, full install or frugal, save file or no save file.
If you have a Linux partition, or a large save file (400mb+ free space), you do not even need much RAM.
The only requirement is you have enough space in your chosen working directory
(which could be your RAM, save file or a mounted linux partition)
... and of course, and ISO file to remaster
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2173 Location: UK
|
Posted: Fri 27 May 2011, 07:54 Post subject:
|
|
| stu90 wrote: | Just to update:
Fixed bug with setting icon theme.
Made a new remaster of Lucid 525 and booted into it - Openbox, JWM, GTK, icon and wallpaper themes are all set correctly.  |
Did you try your updated version with dpup squeezed? I am pretty sure that the main SFS will still not be named correctly on the new ISO, even though it is now found OK in the remaster process...
Here is the relevant code, which creates the SFS file name:
| Code: |
# test
oldsfsname="puppy_sqzd_4.99.2.sfs"
# create the real sfs name, which will be "$sfsprefix$sfsver$suffix.sfs"
export sfsver=$(echo "$oldsfsname"| tr '_' '-'| cut -d'-' -f2| cut -b 1-3)
export sfsprefix=${oldsfsname%%[0-9][0-9][0-9]*}
export sfsname="$sfsprefix$sfsver$suffix.sfs"
echo "The sfs created will be called '$sfsname', on the new iso" |
I will have to look at this code again, to make it work OK - as the new SFS names coming out of Woof have much longer version numbers, and a new prefix...
If anyone can help improve the code above to create the name for SFS files for new Woof filenames, that would be great. I'll give it a go myself, but if you beat me to it, lovely
Here are some example filenames, know to be created by Woof:
puppy_sqzd_4.99.2.sfs
puppy_spup_121.02.sfs
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
|
Back to top
|
|
 |
stu90

Joined: 25 Feb 2010 Posts: 1401 Location: England. Dell Inspiron 1501. Dpup
|
Posted: Fri 27 May 2011, 08:05 Post subject:
|
|
| sc0ttman wrote: | | stu90 wrote: | Just to update:
Fixed bug with setting icon theme.
Made a new remaster of Lucid 525 and booted into it - Openbox, JWM, GTK, icon and wallpaper themes are all set correctly.  |
Stu.... awesome!!
I will try to apply the changes today to my latest, double check them, test them, and hopefully re-post and updated Woofy today or tomorrow. (It may also include an initrd.gz editor as well... when I get it working with all types of initrd.gz files....) |
Sounds good sc0ttman
Maybe hold off for a little bit first as i think i found a problem with fbpanel menu icons in Lucid puppy - as far as i can tell when an icon pack is changed by the puppy 'desktop icon switcher' it generates some resized or renamed icons in /usr/local/lib/X11/pixmaps these icons are missing from the base icon packs so are not present when copying over during the woof remaster - which leaves some of the menu categories in the fbpanel menu with out icons.
This problem doesn't seem to effect JWM menu and is resolved when changing the icon theme, them changing it back in the fbpanel menu.
Maybe what ever command is used to copy/rename/resize or what ever it does in the puppy desktop icon switcher' could be used in woofy to set the icons?
I also added a new option to the theme setting GUI the ability to set a PuppyPin / Desktop icon layout theme like with 01micko's Desktop Template application.
Right now there is the default .iso layout
Minimal layout - Terminal, browser, text editor, media player, file manager + drive icons.
Bare - Drive icons but no application icons.
 |
| Description |
update - v002
|

Download |
| Filename |
woofy.gz |
| Filesize |
10.77 KB |
| Downloaded |
294 Time(s) |
|
|
Back to top
|
|
 |
stu90

Joined: 25 Feb 2010 Posts: 1401 Location: England. Dell Inspiron 1501. Dpup
|
Posted: Fri 27 May 2011, 08:19 Post subject:
|
|
| sc0ttman wrote: | | stu90 wrote: | Just to update:
Fixed bug with setting icon theme.
Made a new remaster of Lucid 525 and booted into it - Openbox, JWM, GTK, icon and wallpaper themes are all set correctly.  |
Did you try your updated version with dpup squeezed? I am pretty sure that the main SFS will still not be named correctly on the new ISO, even though it is now found OK in the remaster process...
Here is the relevant code, which creates the SFS file name:
| Code: |
# test
oldsfsname="puppy_sqzd_4.99.2.sfs"
# create the real sfs name, which will be "$sfsprefix$sfsver$suffix.sfs"
export sfsver=$(echo "$oldsfsname"| tr '_' '-'| cut -d'-' -f2| cut -b 1-3)
export sfsprefix=${oldsfsname%%[0-9][0-9][0-9]*}
export sfsname="$sfsprefix$sfsver$suffix.sfs"
echo "The sfs created will be called '$sfsname', on the new iso" |
I will have to look at this code again, to make it work OK - as the new SFS names coming out of Woof have much longer version numbers, and a new prefix...
If anyone can help improve the code above to create the name for SFS files for new Woof filenames, that would be great. I'll give it a go myself, but if you beat me to it, lovely
Here are some example filenames, know to be created by Woof:
puppy_sqzd_4.99.2.sfs
puppy_spup_121.02.sfs |
No the only updated change i tried with Dpup squeezed so far was the one you posted on page 4:
| Code: | | [ ! "$oldsfspath" ] && oldsfspath=`find /mnt/oldiso -name puppy_sqzd_\*.sfs -o -name puppy_sqzd_\*.sfs` |
This picked up the .sfs location - but the resulting .iso still had the wrong name for the .sfs
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2173 Location: UK
|
Posted: Fri 27 May 2011, 09:09 Post subject:
|
|
| stu90 wrote: | the only updated change i tried with Dpup squeezed so far was the one you posted on page 4:
| Code: | | [ ! "$oldsfspath" ] && oldsfspath=`find /mnt/oldiso -name puppy_sqzd_\*.sfs -o -name puppy_sqzd_\*.sfs` |
This picked up the .sfs location - but the resulting .iso still had the wrong name for the .sfs
 |
OK... I think I fixed it. Replace the stuff around line 467 with this:
(I left the first and last lines the same, so you know where to put it)
| Code: | echo "The sfs to edit: $oldsfsname"
# get version, works for puppy_sqzd_4.99.2.sfs, puppy_spup_1.21.02.sfs, etc
export sfsver=$(echo "${oldsfsname%%.sfs}" | tr '_' '-' | cut -d '-' -f3)
# if $sfsver still empty, use old style SFS file names
if [ "$sfsver" = "" ];then
# this one works for pup_420.sfs, pup_431.sfs, etc
export sfsver=$(echo "${oldsfsname%%.sfs}" | tr '_' '-' | cut -d '-' -f2)
fi
# get the prefix (all characters before the numbers.. example, 'pup_', 'eee-', or 'puppy_spup_')
export sfsprefix=${oldsfsname%%[0-9]*}
## create the new sfs name, which will be "$sfsprefix$sfsver$suffix.sfs"
export sfsname="$sfsprefix$sfsver$suffix.sfs"
echo "The sfs created will be called '$sfsname', on the new iso" |
I will post an new woofy very soon, just got to run a few more tests..
OOH EDIT: missed your previous post... Gonna look at that too.. And you said you won't be much help! ha!
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
|
Back to top
|
|
 |
sc0ttman

Joined: 16 Sep 2009 Posts: 2173 Location: UK
|
Posted: Fri 27 May 2011, 09:50 Post subject:
|
|
Stu,
About the missing icons, I found the key part of the Icon switcher script - it seems to trawl through the given theme dir, then copy or convert the icons, depending on their size and filetype...
I see no reason why I cannot put this in Woofy, hacked up a little bit of course... But before I do, I need to know if you have something similar in your "/usr/sbin/icon_switcher" file...
I am guessing that yours may include extra directories, containing svg files used by fbpanel, or something like that...
Or maybe it is the same... anyway.. Here's what I got, starting from line 67:
| Code: | for ONESVG in `find /usr/local/lib/X11/themes/${NEWTHEME}/ -maxdepth 1 -type f -name \*.svg | tr '\n' ' '`
do
ONEBASENAME="`basename $ONESVG .svg`"
rm -f /usr/local/lib/X11/pixmaps/${ONEBASENAME}48.png
rsvg-convert -w 48 -h 48 -o /usr/local/lib/X11/pixmaps/${ONEBASENAME}48.png $ONESVG
rm -f /usr/local/lib/X11/pixmaps/${ONEBASENAME}24.png
#rsvg-convert -w 24 -h 24 -o /tmp/${ONEBASENAME}24.png $ONESVG
##if svg has transparency, JWM does not render properly in x16 bit color, screen out...
#pngtopnm -mix /tmp/${ONEBASENAME}24.png | pnmtopng > /usr/local/lib/X11/pixmaps/${ONEBASENAME}24.png
rsvg-convert -w 24 -h 24 -o /usr/local/lib/X11/pixmaps/${ONEBASENAME}24.png $ONESVG
done
for ONEPNG in `find /usr/local/lib/X11/themes/${NEWTHEME}/ -maxdepth 1 -name \*.png | tr '\n' ' '` #removed -type f (zigbert - Puppy 4.2)
do
ONEBASENAME="`basename $ONEPNG .png`"
cp -f $ONEPNG /usr/local/lib/X11/pixmaps/
touch -m /usr/local/lib/X11/pixmaps/${ONEBASENAME}.png #v3.98
xONEBASENAME="`basename $ONEBASENAME 48`"
if [ "$xONEBASENAME" != "$ONEBASENAME" ] && [ ! -f /usr/local/lib/X11/themes/${NEWTHEME}/$ONEPNG];then #scale to 24 pixels...
pngtopnm -alpha $ONEPNG > /tmp/temp.pbm #separate transparency channel.
pnmscale -reduce 2 /tmp/temp.pbm > /tmp/temp2.pbm
pngtopnm $ONEPNG | pnmscale -reduce 2 | pnmtopng -alpha=/tmp/temp2.pbm > /usr/local/lib/X11/pixmaps/${xONEBASENAME}24.png
touch -m /usr/local/lib/X11/pixmaps/${xONEBASENAME}24.png #v3.98
fi
done |
Barry K, about icon_switcher and the theme directories:
| Quote: |
When you choose a theme, and in the 'official' Puppy 4.x the choices are 'FlatOrange', 'Original' and 'StarDust', what actually happens? The chosen theme gets copied into /usr/local/lib/x11/pixmaps. The current theme is whatever is in the 'pixmaps' directory.
Notice that they have '24' or '48' in the name. These are to designate that the icons are 24x24 pixels or 48x48 pixels. The '24' images are only used in the window manager (or tray) menu, not on the desktop -- take a look at the top-level of the 'Menu' (button in the tray, bottom-left of screen).
The 'Original' theme is all PNG images, however you can create a theme with SVG images. The Desktop icon switcher GUI application will convert them to PNG images. The 'FlatOrange' is an example -- note that it has a mix of SVG and PNG images. The SVG files do not have a '24' or '48' in their name as they are scalable. |
Also about the Icon layout, it may need some more error checking for other puppy versions, but that is a great addition, too! Just a quixk question though... After each icon layout, you've commented out the wallpaper updates made to PuppyPin...
Any reason for this?
And does anyone know if the file name of the zdrv for puppy_spup or puppy_sqzd?? I reaaally hope it didn't change.. again!
_________________ Akita Linux, VLC-GTK, Pup Search, Pup File Search
|
|
Back to top
|
|
 |
|
|
|
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
|