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 Sat 20 Sep 2014, 10:02
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
SFS-TCZ_Linker-2.2.pet
Post new topic   Reply to topic View previous topic :: View next topic
Page 7 of 10 [136 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 Next
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4351

PostPosted: Sun 19 Sep 2010, 20:44    Post subject:  

tcl is up to 3.X now so the 2.X repo may start to go stale.

ftp://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/tcz

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: Wed 22 Sep 2010, 19:18    Post subject:  

Jrb,

Nice work on getting the Dev sfs to work.

I've been using this script on a rox right-click menu just to properly link the Dev files. My script looks for just broken links and copies those over.
Code:
#!/bin/sh
#SFSDEV Link & copy for Puppy4.3.1

SFSDEV=`basename $1`

mkdir /mnt/"$SFSDEV"

mount -t squashfs "$1" /mnt/"$SFSDEV" -o loop

find /mnt/"$SFSDEV" -type l -print0|\
 xargs -r0 file|\
 grep "broken symbolic"|
 sed -e 's/^\|: *broken symbolic.*$//g' >/tmp/blfile
 
 cp -rs /mnt/"$SFSDEV"/* /
 
for file in `cat /tmp/blfile`;do
 cpfile=`echo "$file" |  sed 's/.*sfs//'` ;cp -a "$file" "$cpfile"
done

# redo circular link below
rm  /lib/libsysfs.so
ln -s /lib/libsysfs.so.2.0.1 /lib/libsysfs.so


Since I usually only run the Dev sfs in ram, I never needed to unlink anything Very Happy

As many of the SFS files, not specifically made for Puppy, need some additional help for configuration persistence or other customization, here is something else you might find interesting.

The following code is in the linker script
Code:
if [ -f "/mnt/"$SFSNAME"SETUP" ]; then
   /mnt/"$SFSNAME"SETUP
   fi


If an SFS file needs some additional commands, I make up a script called "nameofsfs.sfsSETUP" with whatever commands necessary.

Now when the sfs linker is run, any code that's in my "nameofsfs.sfsSETUP" script, is run specifically for that sfs file

I use this system for Thunderbird and several other sfs files and usually avoid any repetitive work or having to edit SFS files this way.

Regards,
s
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1036
Location: Smithers, BC, Canada

PostPosted: Fri 24 Sep 2010, 16:04    Post subject:  

technosaurus wrote:
tcl is up to 3.X now so the 2.X repo may start to go stale. ftp://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/tcz

Thanks technosaurus, I'll update that in sfs_linker-1.9

Last edited by jrb on Fri 24 Sep 2010, 16:31; edited 1 time in total
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1036
Location: Smithers, BC, Canada

PostPosted: Fri 24 Sep 2010, 16:29    Post subject:  

seaside wrote:

As many of the SFS files, not specifically made for Puppy, need some additional help for configuration persistence or other customization, here is something else you might find interesting.

The following code is in the linker script
Code:
if [ -f "/mnt/"$SFSNAME"SETUP" ]; then
   /mnt/"$SFSNAME"SETUP
   fi


If an SFS file needs some additional commands, I make up a script called "nameofsfs.sfsSETUP" with whatever commands necessary.

Now when the sfs linker is run, any code that's in my "nameofsfs.sfsSETUP" script, is run specifically for that sfs file

I use this system for Thunderbird and several other sfs files and usually avoid any repetitive work or having to edit SFS files this way.

Regards,
s


Nice idea seaside. These SETUP scripts could be in the SFS and run once the SFS is mounted. More elegant than my setting up a special directory in the SFS to copy from. Just change /mnt/"$SFSNAME"SETUP to /mnt/"$SFSNAME"/"$SFSNAME"SETUP. Will definitely keep this in mind for sfs_linker-1.9.

Will compare your script for dealing with symlinks with mine when I get a few spare minutes. Busy times right now.

Thanks, J
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: Fri 24 Sep 2010, 16:57    Post subject:  

jrb wrote:


Nice idea seaside. These SETUP scripts could be in the SFS and run once the SFS is mounted. More elegant than my setting up a special directory in the SFS to copy from. Just change /mnt/"$SFSNAME"SETUP to /mnt/"$SFSNAME"/"$SFSNAME"SETUP. Will definitely keep this in mind for sfs_linker-1.9.

Will compare your script for dealing with symlinks with mine when I get a few spare minutes. Busy times right now.

Thanks, J


Jrb,

Thanks, and I should elaborate to say that the "sfsname.sfsSETUP" files are not in the SFS file itself, but in the same directory as the SFS file. The linker code looks for the *SETUP file (if any) and executes any commands.

Your symlink script looks for any symlinks, while mine looks for broken ones (the ones pointing back to the main puppy files).

Cheers,
s
Back to top
View user's profile Send private message 
tazoc


Joined: 11 Dec 2006
Posts: 1157
Location: Lower Columbia Basin WA US

PostPosted: Sat 09 Oct 2010, 17:45    Post subject: /etc/choice  

Just a couple of thoughts after testing SFS-TCZ_Linker-1.8

Great idea and well-thought out! I especially appreciate the efforts to test on Lighthouse and other Puplets.

Would you consider moving the /choice directory (for files that need copying rather than linking) to /etc/choice? I think it is best to avoid adding directories to the top level /. Or at least add /etc/choice to the code that checks /choice.

Maybe /root and /home should be copied instead of linked--many apps need their config files writable.

Thanks,
TazOC

_________________
lhpup.org Lighthouse 64 6.02
Back to top
View user's profile Send private message Visit poster's website 
gcmartin

Joined: 14 Oct 2005
Posts: 4276
Location: Earth

PostPosted: Sat 30 Oct 2010, 13:45    Post subject: I have a contribution and a question  

@jrb
I want to share this with you as you may not have this info AND, I want to ask a question about use of the Linker.
Share:
tazoc wrote:
gcmartin wrote:
I saw your post on SFS processing.

Does this have ANY impact on SFS processing on LiveCD if a /mnt/home folder is copied to the root of the LiveCD?

Thanks in advance
P.S. Great idea on "update announcement" PET.
Thanks, gcmartin. As I understand it, Puppy BootManager cannot layer extra SFS files into the / file system from first boot PUPMODE=5. Layering is done during the second reboot, after a pupsave is created and BootManager has run.

I tried SFS-TCZ_Linker and had mixed results. I think maybe /root and /home should be copied instead of linked--many apps need their config files writable. To get some of the Lighthouse SFS files to work with it I had to manually remove the links in /root and copy the files over instead.
-TazOC


Question:
Does the following mean that a reboot is REQUIRED after installing you PET V1.8? "I run a LiveCD environment and have run into problems when trying to your PET in the past."
jrb wrote:
tlchost wrote:
Does this remove the requirement for ldconfig430 and my_links?

Yes, they are both built in to this SFS_Linker. Click once on the .pet, reboot and you're ready to start using SFS's. Very Happy

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1036
Location: Smithers, BC, Canada

PostPosted: Sat 30 Oct 2010, 16:05    Post subject: Re: /etc/choice  

tazoc wrote:
Would you consider moving the /choice directory (for files that need copying rather than linking) to /etc/choice? I think it is best to avoid adding directories to the top level /. Or at least add /etc/choice to the code that checks /choice.

Maybe /root and /home should be copied instead of linked--many apps need their config files writable.

Thanks,
TazOC
Hi TazOC, Sorry for the lateness of reply, was contemplating an answer and got distracted. Embarassed

The /choice directory that I have included in some of my SFS's and built into the Linker gets deleted out of the top level after serving its purpose when SFS's are initially linked. You are absolutely right that some apps need there config files copied. Thats what the /choice folder is for. For instance:

When I made my OO3.1 SFS I wanted scripts to start the applications copied, i.e. /usr/local/bin/writer. So in my SFS I made /choice/usr/local/bin/writer. When the SFS gets linked the writer script is copied to /usr/local/bin. Any links from the choice folder in the SFS are deleted at the end of the Linker install.

This may not be the ideal way to do it. I kind of like seaside's idea of an accompanying install script. It is a more versatile approach acting like the pinstall script in a .pet.

I continue to contemplate (among other things) and at some point may come to a decision. Wink

Cheers, J
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1036
Location: Smithers, BC, Canada

PostPosted: Sat 30 Oct 2010, 16:24    Post subject: Re: I have a contribution and a question  

gcmartin wrote:

Does this have ANY impact on SFS processing on LiveCD if a /mnt/home folder is copied to the root of the LiveCD?

In the latest version of SFS-Linker I set it up to check if PUPMODE=77, live CD/DVD. If so it creates a new folder, /root/SFS and then links this as /mnt/home. SFS's placed in this folder will be detected by both SFS-Linker and Bootmanager and will be useable (I think I tested this in Bootmanager?, definitely tested and worked in SFS-Linker).

I tried making this folder at the top level, /, but it didn't work so I put it one level down in /root and it worked.


Quote:
Does the following mean that a reboot is REQUIRED after installing you PET V1.8?
Actually no. SFS-Linker will work perfectly fine without a reboot or anything else. Just install the .pet and you're good to go. The reboot does two things: It places the my_links folder on the desktop (restarting the X server will do this too) and it checks /mnt/home for appropriate SFS's and links them to /root/my_links/sfs_mnt_home/ where they are available to right click and install.

Hope that helps, J

Edit: I should also mention for running from Live CD/DVD to create /root/SFS and use SFS's saved on your CD/DVD you must reboot and save after installing SFS-Linker.

Last edited by jrb on Sat 30 Oct 2010, 21:22; edited 1 time in total
Back to top
View user's profile Send private message 
tazoc


Joined: 11 Dec 2006
Posts: 1157
Location: Lower Columbia Basin WA US

PostPosted: Sat 30 Oct 2010, 16:43    Post subject: Re: /etc/choice  

jrb wrote:
The /choice directory that I have included in some of my SFS's and built into the Linker gets deleted out of the top level after serving its purpose when SFS's are initially linked. You are absolutely right that some apps need there config files copied. Thats what the /choice folder is for.
Hi Jrb,
Thanks for replying J, I'm glad to hear from you! I received a request to include SFS-TCZ_Linker in Lighthouse Pup, primarily for Live-CD usage, and apart from the layering order concerns I have with Lighthouse SFS files, (the order that SFS files are linked could be critical as some SFS may have different versions of the same files, and I solved that with a naming convention--files that begin with a numeral are layered above), I'm struggling with how to build future SFS that can be used either with SFS-TCZ_Linker, or the traditional BootManager Puppy--layered SFS after reboot method.

I understand that /choice is deleted by the Linker, but when the SFS is used in the traditional way, without the Linker, /choice would probably not be deleted. That's why I'd prefer /etc/choice.

Thanks again,
TazOC

_________________
lhpup.org Lighthouse 64 6.02
Back to top
View user's profile Send private message Visit poster's website 
jrb


Joined: 11 Dec 2007
Posts: 1036
Location: Smithers, BC, Canada

PostPosted: Sat 30 Oct 2010, 20:29    Post subject: Re: /etc/choice  

tazoc wrote:
I understand that /choice is deleted by the Linker, but when the SFS is used in the traditional way, without the Linker, /choice would probably not be deleted. That's why I'd prefer /etc/choice.

Doh!!! Of course, I should have thought of that. Will make the change in SFS-TCZ_Linker-1.9.pet (coming soon). I want to give people the option of using Seaside's technique as well and also update the TCZ link that technosaurus mentioned.

Getting to work now, J Very Happy
Back to top
View user's profile Send private message 
reckrhodes

Joined: 30 May 2007
Posts: 116

PostPosted: Sun 31 Oct 2010, 18:30    Post subject:  

Hi jrb!

Just to inform you that I am really fascinated with what you have done with this wonderful pet. It is really useful indeed. I Hope that this linker will also be included in the Lucid Puppy development. (just an additional of 424k will make me happy Laughing )

Tried your program many times and it is operational.

Congrats! I can't wait to test your updated version of SFS-TCZ Linker. Very Happy

God Bless to all devs and testers and to Sir BK too.
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1036
Location: Smithers, BC, Canada

PostPosted: Sun 31 Oct 2010, 23:00    Post subject:  

Have just uploaded SFS-TCZ_Linker-1.9.pet. See the write up on page one.

Incorporated suggestions by technosaurus, seaview and tazoc. Thanks guys! Very Happy

Cheers, J
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: Mon 01 Nov 2010, 18:35    Post subject:  

Jrb,

I downloaded a couple of TCZ's from the depository, made some .setup files and all linked and ran "smooth as silk".

The "dev" file linked perfectly and all testing was on Pup 431.

No testing of the unlinking part, because I don't use pup save files now.

At this point, it's hard to imagine any further improvements, and thank you for all your good work.

Regards,
s
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 4276
Location: Earth

PostPosted: Tue 02 Nov 2010, 02:28    Post subject:  

@jrb Check your PM
Does the LInker work without rebooting if running on a LiveCD? I run LiveCDsfron the following 4 environments:
  1. LightHouse - (Yes/No)
  2. Lucid 5.1.1 - (Yes/No)
  3. Lucid 5.2 - (Yes/No)
  4. QuickSET - (Yes/No)
Thanks in advance. Great work

Edited 10/02/10: You have already answered this days ago. Sorry as I missed that response.

Your answer is "LIveCD works" without reboot. Thanks again for all of your good work.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 7 of 10 [136 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 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.1132s ][ Queries: 13 (0.0119s) ][ GZIP on ]