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 21 Oct 2014, 03:39
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
Woofy 0.91
Post new topic   Reply to topic View previous topic :: View next topic
Page 6 of 8 [119 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8 Next
Author Message
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Fri 27 May 2011, 13:54    Post subject:  

Hi sc0ttman - just a quick comment as i am about to cook tea - will post again later Smile

For the icon layout the minimal configuration is formated wrong in my v002 update above - around about line #254 it needs to be changed to:

Code:
  if [ "$minimal" = true ]; then
   echo "Applying minimal desktop icon layout"
    touch -f /tmp/woofyPuppyPin
  cat >> /tmp/woofyPuppyPin <<EOF
<?xml version="1.0"?>
<pinboard>
  <backdrop style="Stretched">/usr/share/backgrounds/default.jpg</backdrop>
  <icon x="32" y="162" label="edit">/usr/local/bin/defaulttexteditor</icon>
  <icon x="32" y="354" label="console">/usr/bin/urxvt</icon>
  <icon x="32" y="450" label="browse">/usr/local/bin/defaultbrowser</icon>
  <icon x="32" y="66" label="file">/usr/local/bin/rox</icon>
  <icon x="32" y="258" label="play">/usr/local/bin/defaultmediaplayer</icon>
</pinboard>
EOF


cheers.
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2385
Location: UK

PostPosted: Fri 27 May 2011, 16:52    Post subject:  

Thanks Stu, I never even noticed... But corrected now Wink

Another question, is there any reason you put the puppypin_options() function inside the get_themes() function? I think it can safely be moved out to the main script, and then there should be no need to re-declare 'set -a' ... Unless I am missing something..

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Sat 28 May 2011, 07:30    Post subject:  

sc0ttman wrote:
Thanks Stu, I never even noticed... But corrected now Wink

Another question, is there any reason you put the puppypin_options() function inside the get_themes() function? I think it can safely be moved out to the main script, and then there should be no need to re-declare 'set -a' ... Unless I am missing something..


hey sc0ttman,
good news - Applied your .sfs fix on the previous page and have done a remaster of squeezed puppy .sfs automatically detected and renamed correctly and boots ok Very Happy

Just looked at Barrys download page for squeezed puppy there is a zdrv .sfs to download named "zdrv_sqzd_4.99.2.sfs" - i didn't try with a separate zdrv so am unsure what woofy calls it?
http://distro.ibiblio.org/quirky/test/squeezed-4.99.2/

Regarding the PuppyPin setting - no you won't be missing anything - I should have probibly warned you, what i know about writing scripts you could fit on the back of a postage stamp so best to prepare for unusual oddities, errors and wtf's Razz

The commented out lines - i thought they might be needed but looking in some .iso the entry in /root/.config/wallpaper/bg_img doesn't always match the wallpaper that is in the /root/Choices/ROX-Filer/PuppyPin file.

Maybe what is needed is instead to use what ever background is in then PuppyPin - this would mean woofy would need to replace the wallpaper that is in PuppyPin with the new custom wallpaper if one is selected.

Then for setting the Desktop icon layout could maybe do something like below under the EOF - i think this should get any custom wallpaper or if no custom wallpaper used then the .iso default that is in PuppyPin?

Code:
EOF
# display wallpaper line of puppypin #
wall=` grep "<backdrop" $basedir/root/Choices/ROX-Filer/PuppyPin`     
 
# replace woofypuppypin wallpaper line with that of puppypin #
sed -i "
/<backdrop/ c\
$wall" $basedir/tmp/woofyPuppyPin

# replaces puppypin with woofypuppypin #
p -a -v $basedir/tmp/woofyPuppyPin $basedir/root/Choices/ROX-Filer/PuppyPin
fi



Im not quite sure how woofy applies custom wallpapers but maybe something like this could be added to it?
Code:
   
# $woofywallpaper being /path/to/woofy/wallpaper.jpg #
woofywall="<backdrop style=\"Stretched\">$woofywallpaper</backdrop>"
   
   sed -i "
/<backdrop/ c\
$woofywall" $basedir/root/Choices/ROX-Filer/PuppyPin


Looking in /usr/sbin/icon_switcher mine seems to be the same.

Code:
if [ "$NEWTHEME" != "" ];then
 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 -type f -name \*.png | tr '\n' ' '`
 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" ];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



cheers.
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2385
Location: UK

PostPosted: Sat 28 May 2011, 12:38    Post subject:  

stu90 wrote:
hey sc0ttman,
good news - Applied your .sfs fix on the previous page and have done a remaster of squeezed puppy .sfs automatically detected and renamed correctly and boots ok Very Happy

Good, thought it might... Very Happy I've made lots of changes , yet to test any of it so far, but I think it should all work fine.. The next version should be a good one!

stu90 wrote:
Just looked at Barrys download page for squeezed puppy there is a zdrv .sfs to download named "zdrv_sqzd_4.99.2.sfs"

Yeah good... I forgot the obvious, and stupidly asked where to find zdrv filename info - Barry says to look inside the DISTRO_SPECS in initrd.gz or in /etc (they should be the same) for the zdrv filename... Here is what spup is using, according to DISTRO_SPECS: "zdrv_spup_121.02.sfs", so that seems to be consistent..

Woofy does not support these zdrv names... yet... But it does support 2 kinds of zdrv naming already used in other pups and older Woof builds... Rolling Eyes

But getting the name from DISTRO_SPECS (if it is present) should be easy enough.. For older pups, without DISTRO_SPECS, that's easy too... So even zdrv creation will work for all puppies in the next Woofy Smile


Quote:
The commented out lines - i thought they might be needed but looking in some .iso the entry in /root/.config/wallpaper/bg_img doesn't always match the wallpaper that is in the /root/Choices/ROX-Filer/PuppyPin file.p

I've also found that the wallpaper value in PuppyPin does not seem to be accurate, or match what is used... So that's fine then, can leave that...

About wallpaper setting in Woofy, I think we can leave as is, cos Woofy just adds the new wallpaper image to /usr/share/backgrounds creates a symlink to it called default.jpg - as far as I am aware, this is always the chosen wallpaper on first boot in Puppy... I maybe wrong though, gonna test soon...

If you said that wallpaper changing worked for you, then that's fine...

Quote:
Looking in /usr/sbin/icon_switcher mine seems to be the same.

Good, I think I will add the relevant code from icon_switcher into the set_themes function... Hopefully that will remove your problems with missing icons in fbpanel...

Quote:
cheers.

No.... Thank you!

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2385
Location: UK

PostPosted: Mon 30 May 2011, 15:31    Post subject:  

updated to 0.7, see main post... Thanks Stu! Very Happy

EDIT: Re-uploaded 0.7 - fixed important typo .. download again if u already got it

The good news: I am posting this from a remastered Spup alpha, mostly went well, had to do 2 remasters, 2nd one with no zdrv.. See issues below:

known issues with 0.7, will be fixed for 0.8

- do not create a zdrv for any ISO with a different kernel to the one you're using (named wrong)
- wallpaper needs fixing if themes are edited, but wallpaper NOT changed
- add fix for defaultaudioplayer

- in general the 'chroot' parts of the script need looking at, maybe I am doing it wrong
(CONFIRMED.. I'm doing it wrong... help appreciated)

I need something like
Code:
KER=`chroot $basedir uname -r`
I need this to return the kernel version of the mounted SFS, not the host system! Alternatively I could get the kernel version from the /lib/modules dir ... But do I need the full version number, or the shortened symlink??

Please help if you can...

plans for future:

- fix above issues
- new: option to create SFS of removed files - use list
- update: localisation possible
- defaults-chooser 0.9 (GUI to add new default**, show all added, integrate MIME editor)
- choose a kernel pet to change kernel, in the new ISO
- option to make SFS of files removed from ISO

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search

Last edited by sc0ttman on Tue 31 May 2011, 07:38; edited 1 time in total
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 1828
Location: South Australia

PostPosted: Tue 31 May 2011, 04:55    Post subject:  

Hi sc0ttman,

Woofy is really coming along and seems to be working quite nicely.

I have a couple of questions:

I created an exclude.lst to delete files but did not define the path to those files. All except sylpheed was deleted. This is the list:

sylpheed
ycalc
xcalc
cgtkcalc
ayttm

As you can see I did not include the path but it still worked for all except sylpheed. Should I include the full path?

What happens if there is more than one file to the application you wish to remove? Do you need to list them all?

I made geany the default text editor instead of nicoedit. Worked

I also changed the desktop background which worked fine.

I created a directory where I placed Skype and Pidgin and both were included in the ISO and worked perfectly when burned to disk. It did delete the PETS from the directory though which was a bit of a bugger but it may have been me being too quick clicking on buttons in your script.

Is it possible to add additional items in the drop down list for default programs. EG Text editor offers NicoEdit and Geany. If I was to type in, say VI would that then become the default?

Anyway it becoming a very impressive remastering tool.

Thanks

_________________
Puppy Software <-> Distros <-> Puppy Linux Tips
Back to top
View user's profile Send private message Visit poster's website 
sc0ttman


Joined: 16 Sep 2009
Posts: 2385
Location: UK

PostPosted: Tue 31 May 2011, 07:26    Post subject:  

Quote:
I created an exclude.lst to delete files but did not define the path to those files. All except sylpheed was deleted. This is the list:

sylpheed
ycalc
xcalc
cgtkcalc
ayttm

As you can see I did not include the path but it still worked for all except sylpheed. Should I include the full path?

What happens if there is more than one file to the application you wish to remove? Do you need to list them all?

You must list the full path to each file to delete, not only the package name.

Hmm... It should not delete stuff if the path is not correct, I will have to look over the code... The GUI and the Help page both state you should use full paths... That way you can delete multiple files of the same name. Click the Help button for more info, on how me and Stu90 make our lists...

I am guessing sylpheed was not deleted, as only the first thing matching 'sypheed' was deleted - which may have gone unnoticed.

So your list should be something like:

/usr/bin/ayttm
/usr/bin/sylpheed
/usr/share/ayttm/

and so on...

I may change the way stuff is deleted, but for now listing the full paths is the most accurate way (and accuracy is very important)

But for me, mounting or extracting the SFS, then using pfind or pfilesearch on the mounted sfs directory, limited to search only within the mounted SFS files, works well....pfind can even save the results for you...

As I say, I may try to automate this process in Woofy itself, may not be too hard, but will lead to auto deletion - at least the list can be checked before it is used....

Quote:
I made geany the default text editor instead of nicoedit. Worked

I also changed the desktop background which worked fine.

Good - the defaults chooser should work fine, I wasn't sure, but on further testing, it all seems good.. Setting the wallpaper works fine too, but choosing to edit themes and then NOT setting the wallpaper causes missing wallpaper (due to broken symlink, I think) at the moment...

Quote:
It did delete the PETS from the directory though which was a bit of a bugger but it may have been me being too quick clicking on buttons in your script.

Yes, woofy will ask to delete the PETs, and it also recommends against it... I also have clicked 'yes' at this point, cos I was being lazy.. easily done... but the text is there to be read...

Quote:
Is it possible to add additional items in the drop down list for default programs. EG Text editor offers NicoEdit and Geany. If I was to type in, say VI would that then become the default?

Yes.. Again, click the help button, and it will explain... But basically you can write whatever you want in the lists, and save it, then it should work...

Quote:
Anyway it becoming a very impressive remastering tool.

Thanks

Thanks, glad you like it...
With a few more fixes it should be rock solid. Very Happy

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 1828
Location: South Australia

PostPosted: Tue 31 May 2011, 08:20    Post subject:  

When I used the following list all was deleted as expected.

/root/.packages/builtin_files/sylpheed
/root/.sylpheed-2.0
/root/.sylpheed-2.0/sylpheed.log
/root/.sylpheed-2.0/sylpheed.log.bak
/root/.sylpheed-2.0/sylpheedrc
/root/.sylpheed-2.0/sylpheedrc.bak
/root/.sylpheed-2.0/sylpheedrc.bak.1
/root/.sylpheed-2.0/sylpheedrc.bak.2
/root/.sylpheed-2.0/sylpheedrc.bak.3
/usr/bin/sylpheed
/usr/lib/libsylpheed-plugin-0.so.0
/usr/lib/libsylpheed-plugin-0.so.0.0.1
/usr/local/lib/X11/mini-icons/sylpheed.xpm
/usr/share/applications/Sylpheed-mail-and-news.desktop
/usr/share/pixmaps/sylpheed.png
/usr/share/sylpheed
/usr/share/sylpheed/faq/en/sylpheed-faq.html
/usr/share/sylpheed/manual/en/sylpheed.html
/etc/ayttmrc
/root/.ayttm
/root/.packages/builtin_files/ayttm
/usr/bin/ayttm
/usr/bin/ayttm_streamer_wrapper
/usr/lib/ayttm
/usr/sbin/ayttmshell
/usr/share/applications/ayttm.desktop
/usr/share/ayttm
/usr/share/pixmaps/ayttm.png
/root/.packages/builtin_files/ycalc
/root/.ycalcmem
/usr/local/bin/ycalc
/usr/share/applications/Ycalc-TI-59-scientific-calculator.desktop
/usr/share/doc/ycalc.txt
/etc/X11/app-defaults/XCalc
/usr/bin/xcalc
/usr/share/applications/Xcalc-scientific-calculator.desktop
/root/.packages/builtin_files/cgtkcalc
/usr/share/applications/Cgtkcalc-complex-numbers.desktop
/usr/share/cgtkcalc
/usr/local/lib/X11/mini-icons/cgtkcalc.xpm
/usr/bin/cgtkcalc

I just thought it strange that the calculators would be deleted without actually defining the full pathnames. I thought you must have done something very clever.

I might try and get rid of Gnome-mplayer and mplayer. I bet this breaks some stuff. I really prefer VLC although it's bigger.

Thanks

_________________
Puppy Software <-> Distros <-> Puppy Linux Tips
Back to top
View user's profile Send private message Visit poster's website 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Tue 31 May 2011, 09:29    Post subject:  

Hi sc0ttman thank you for the Woofy updates. Cool

Just done a quick remaster of squeezed puppy so far setting JWM, GTK, Icon, wallpaper and desktop layout - all worked as expected, will do some further testing tonight. Smile

cheers.
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2385
Location: UK

PostPosted: Tue 31 May 2011, 18:20    Post subject:  

You're welcome.. updated to version 0.8 .. Quite a few fixes, works nicely so far, remastering 431 and spup, creating zdrvs, then remastering again, putting zdrv back into main sfs.. all other features seem to work ok too... Smile But time will tell...

EDIT.. oops.... re-uploaded 0.8..
the 1 person who downloaded should re-download..

i tested and tested, everything seems to be working fine (this time)..

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Wed 01 Jun 2011, 09:05    Post subject:  

Hi sc0ttman,

I made a short run through video on doing a simple remastering of a Puppy .iso using Woofy. Smile

http://www.youtube.com/watch?v=cpMk7frOEho
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2385
Location: UK

PostPosted: Wed 01 Jun 2011, 11:19    Post subject:  

stu90 wrote:
Hi sc0ttman,

I made a short run through video on doing a simple remastering of a Puppy .iso using Woofy. Smile

http://www.youtube.com/watch?v=cpMk7frOEho

that's excellent... looks really good.. Nice work! Very Happy
Added to main post!

Did that ISO actually boot though? Wink lol...

I like your desktop... What puppy are you using, and did you have to setup xcomposite for the fade in/out of windows, GTK widgets, etc?

EDIT: known issues (not critical) for 0.8:

- empty icon/jwm/gtk/etc theme dirs should not be listed in theme selection
- urxvt wrongly identified as installed in ISO sometimes, when updating to 'default' puppypin
- some PETs do not install (may be bad PET files, have to check them)
- some SFS files may cause problems when in package dir (not sure yet, though)
- default chooser fix, to show it works with defaultaudioplayer - actually works fine already, but shows blank..
- theme selection GUI should really list the default themes of ISO as default choices, so you definitely know when u changed them

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
Jim1911

Joined: 19 May 2008
Posts: 2457
Location: Texas, USA

PostPosted: Wed 01 Jun 2011, 16:03    Post subject:  

Hi sc0ttman,

Just tried your latest Woofy 0.8. Impressive, you have made a lot of progress since version 0.2, it is now so simple and quick to set up a custom iso. It's the fastest remaster I've used. So far, it has worked fine and the new iso booted perfectly with all changes, both additions and deletions. I'm posting from it now. I still have some of your fine features to check out.

Thank you,
Jim
Back to top
View user's profile Send private message 
stu90


Joined: 25 Feb 2010
Posts: 1401
Location: England. Dell Inspiron 1501. Dpup

PostPosted: Thu 02 Jun 2011, 10:27    Post subject:  

Hi sc0ttman,

The Puppy i used for recording is lucid lite - for the fade in / out etc i use xcompmgr and for window transparency transset. Cool

Regarding showing the default themes in the Woofy GUI - i made this script the other day for displaying the default openbox or JWM themes in use for when i take screen shots.

Maybe some of this could be used to obtain the relevant information from the base .iso ?
The only problem i ran into was obtaining the current JWM theme - i had to edit the JWM theme switcher GUI to output to a file the JWM theme when it is changed as there is no file containing the name of the JWM theme in use.
pti.gz
Description  Puppy theme info (pti)
gz

 Download 
Filename  pti.gz 
Filesize  744 Bytes 
Downloaded  519 Time(s) 
Back to top
View user's profile Send private message 
Henry

Joined: 29 Jul 2006
Posts: 829
Location: Oregon USA

PostPosted: Thu 02 Jun 2011, 21:17    Post subject: edit solved  

Woofy looks wonderful. Even the video is a tour de force. I only took a quick glance, but is there any possibility a puppy based on QuirkyNop-1.2 (xfce, Thunar) could be woofied? I know, some people are never satisfied Smile

Quote:
- Woofy can remaster any Puppy Linux ISO, using any version of Puppy Linux. . .


EDIT: Never mind - I should have known.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 6 of 8 [119 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
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.1302s ][ Queries: 13 (0.0088s) ][ GZIP on ]