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 Dec 2014, 19:44
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Derivatives
ChoicePup431 - a gnu way
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 9 [124 Posts]   Goto page: 1, 2, 3, ..., 7, 8, 9 Next
Author Message
jrb


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

PostPosted: Mon 05 Oct 2009, 18:05    Post subject:  ChoicePup431 - a gnu way
Subject description: Mount, link and use SFS files
 

ChoicePup 431 has begun!

ChoicePup is a stripped version of Puppy with major software provided by separate SFS files which can be installed and uninstalled quickly, easily and as needed. This makes it versatile and low on computer resource use.

I have uploaded ChoicePup430test1.iso and SFS_Linker-431bk-1.1.pet. You have to install the SFS_Linker pet. The 21 SFS files that I have got working are at ChoicePup431/sfs/, more to come soon.

I have also uploaded SFS_Linker-no_def-1.1.pet which does not have modified /usr/local/bin/defaultprograms for people who wish to have SFS_Linking without changing the desktop icon or MIME-type behavior.

This is not a polished puppy. It is a stripped version of Puppy430 with major programs removed and a few ChoicePup features added to use as a testbed for the new system.
You will have to add the SFS_Linker-1.1-430.pet to make the new system work. (I figured there might be improved versions coming soon so didn't put it in the ISO).

I'm looking for testers to try it out. It should work with any other puppy (I've only tried it with 412) that has SFS capabilities (2.18 up to 4.21) but you will have to use the old SFS3 packages with them and those are not all compatible with the new system. (Please use a new pup_save if you are going to try this on something other that ChoicePup430, I don't want to mess up anyone's hard work)

The original ChoicePup412 used a file layering system which mounted the SFS and placed its contents into the puppy files. When the SFS was unmounted its files disappeared. Unfortunatley this only worked with the AUFS1 file system which does not work with the newer kernels. So ChoicePup430 had to use a different system.

Instead of file layering I have set up a system that mounts the SFS and then symlinks each of the files in the SFS to its proper position in the puppy files. The symlinks are kept track of by Petget manager. When the SFS is uninstalled it is unmounted and Petget manager removes the symlinks. (Thanks to trio for the idea)

No longer necessary to use "max_loop=28"

I'm quite pleased with performance so far and look forward to getting a slim trim polished version going soon, and more SFS files as well.

Oh yeah, If you don't know how to use it check out the ChoicePup412 thread. Works the same.

Note: I have not installed OpenGL so to used the Googleearth package you will have to install xorg_xorg_full_dri-7.3.pet and reboot.

Last edited by jrb on Thu 12 Nov 2009, 11:31; edited 12 times in total
Back to top
View user's profile Send private message 
jrb


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

PostPosted: Mon 05 Oct 2009, 18:06    Post subject:  

Items available for download

ISO's
barebones431-jrb1.0.iso New!

Pets
SFS-TCZ_Linker-2.1.pet

SFS's
ch4-Mplayer1rc2b.sfs New!
ch4-pnethood-0.65-utf8-2.sfs New!
ch4-AdobeReader-8.0.sfs
ch4-alsa-streamtuner-3.sfs
ch4-fbreader-0.10.7.sfs
ch4-firefox-3.5.3.sfs
ch4-FirePup-0.04.3-ln.sfs
ch4-FoxitReader1.0.sfs
ch4-frostwire-4.17.0-jre.sfs
ch4-geany-0.16.sfs
ch4-gimphoto-1.4.3.sfs
ch4-GoogleEarth-4.3-ln.sfs
ch4-gxine-0.5.9b.sfs
ch4-jre1.6.0_11.sfs
ch4-K-Office-1.6.3.sfs
ch4-mtpaint-3.31.1-i486.sfs
ch4-OpenOffice-3.0-ln.sfs
ch4-OpenOffice-3.1.1.sfs
ch4-Opera10final-4585.sfs
ch4-pwidgets-2.0.8.sfs
ch4-seamonkey-1.1.18-full.sfs
ch4-vlc_nogui-0.8.6.sfs
ch4-winelite-1.1.14.sfs
ch4-winelite-1.1.30.sfs
gcompris_431.sfs Thanks Sidders
hsb_431.sfs Thanks Sidders

Note: Links updated 21dec10

Last edited by jrb on Wed 22 Dec 2010, 00:12; edited 22 times in total
Back to top
View user's profile Send private message 
jrb


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

PostPosted: Mon 05 Oct 2009, 18:07    Post subject:  

Developer Notes

1.) For use in other puppies please install SFS_Linker-1.4-430.petSFS_Linker-1.2-430.pet[/url], my_links.pet, and ldconfig430.pet. This should give you full functionality with both older and newer kernels.

2.) I'm afraid SFS_linker isn't really compatible with puppy412 and puppy 421. They use an older version of petget manager than the new woof built puppies and unlinking seems to be a problem.

Here's a summary of what SFS_Linker-431bk-1.1.pet does:

SFS_Linker has 5 basic parts:
1.)sfs_boot_handler
2.)sfs_linker
3.)sfs_unlinker
4.)sfs_remove.sh
5.)/usr/sbin/filemnt

1.)sfs_boot_handler:
identifies and creates symlinks in /root/my_links/sfs_mnt_home to either SFS4 or SFS3 depending on the kernel
removes any SFS links left from last work session
loads any SFS's linked into /root/my_links/sfs_boot_links

2.)sfs_linker
checks to make sure SFS chosen is proper type
checks if a new /dev/loop is needed to mount the SFS and creates one if necessary
mounts the SFS to /mnt/$SFSNAME
checks to make sure it mounted properly by looking for /mnt/$SFSNAME/usr
renames seamonkeys /root/.mozilla if the SFS contains /root/.mozilla
creates a symlink from each file in /mnt/$SFSNAME to /$FILEPATH
copies any special need files from /mnt/$SFSNAME/choice to /$FILEPATH
creates a text file, /root/.packages/$SFSNAME.files
adds an entry to /root/.packages/user-installed-packages
adds lines to etc/ld.so.conf listing the standard, i.e. /mnt/$SFSNAME/usr/bin, lib_paths in the SFS then runs ldconfig (included in .pet) to add them to lib_path
creates a symlink to the SFS in /root/my_links/sfs_loaded
makes any new fonts available with mkfonddir

3.)sfs_unlinker
unmounts the SFS
checks to make sure it unmounted properly, quits and gives error message if not, SFS will be unlinked at next bootup in this case.
calls sfs_remove.sh to delete all symlinks to the SFS
removes the lib_path lines from /etc/ld.so.conf
removes empty folders from all except /root, /tmp, /var, /mnt
fixmenus and restart jwm

4.)sfs_remove.sh
uses code from puppy package manager to remove the symlinks listed in /root/.packages/$SFSNAME.files

5.)/usr/sbin/filemnt
Checks to see if there is a free loop for file mounting. If not it creates one.

Last edited by jrb on Thu 12 Nov 2009, 11:58; edited 7 times in total
Back to top
View user's profile Send private message 
Bert


Joined: 30 Jun 2006
Posts: 998

PostPosted: Mon 05 Oct 2009, 18:08    Post subject:  

Removed.
(was not a good joke)

_________________



Last edited by Bert on Tue 06 Oct 2009, 03:53; edited 1 time in total
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 888

PostPosted: Mon 05 Oct 2009, 20:41    Post subject:  

Jrb,

Incredible amount of work. Congratulations. (I'll bet you'd like to have union back) Very Happy

I quickly tried out mtpaint Very Happy with link and unlink (on pup 412-old sfs) and it left all the mimetypes intact Very Happy

Well done and will do some more testing tomorrow - just one
question which probably will be answered in a "reserved spot" later, is about identifying old and new sfs files.

Impressive,

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


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

PostPosted: Mon 05 Oct 2009, 21:04    Post subject:  

seaside wrote:
identifying old and new sfs files

Well, there's the next item on my todo list. Right now all the old choice SFS3 packages start with ch-, the new SFS4 packages start with ch4-. Only the ch4- files show up in the desktop my_links/mnt_home_sfs/ folder.

I should build in some kind of bailout and error message if the SFS file fails to mount (because its the wrong type or whatever),

Thanks for the idea.
Back to top
View user's profile Send private message 
tlchost

Joined: 05 Aug 2007
Posts: 1741
Location: Baltimore, Maryland USA

PostPosted: Tue 06 Oct 2009, 05:25    Post subject:  

jrb wrote:
ChoicePup 430 has begun!
I have uploaded ChoicePup430test1.iso

Downloaded three times....burner tells me the size of the iso is not correct.

I'm looking for testers to try it out. It should work with any other puppy (I've only tried it with 412) that has SFS capabilities (2.18 up to 4.21) but you will have to use the old SFS3 packages with them and those are not all compatible with the new system. (Please use a new pup_save if you are going to try this on something other that ChoicePup430, I don't want to mess up anyone's hard work)

I am confused(nothing new for me). How does one use it with 412?

Thanks
Thom
Back to top
View user's profile Send private message Visit poster's website 
ICPUG

Joined: 24 Jul 2005
Posts: 1290
Location: UK

PostPosted: Tue 06 Oct 2009, 07:43    Post subject:  

Well done jrb for starting this.

Two queries.

Barry has said 4.3 can only cope with 7 sfs files. Am I to assume in ChoicePup430 you have adjusted the init code to expand this to 24?

When you say it works with previous pups do you mean that we start off with a standard barebones of (say) 4.2.1 and then it will automatically work - no need to adjust init code?
Back to top
View user's profile Send private message 
jrb


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

PostPosted: Tue 06 Oct 2009, 14:04    Post subject:  

tlchost wrote:
Downloaded three times....burner tells me the size of the iso is not correct.

I downloaded once, took 2 hrs on my crappy connection, burned in pburn3.0.4 in ChoicePup430, booted no problem. Burned again in pburn2.5.6 in ChoicePup412, again no problem. Maybe try different burner?

As for use in 412, just install SFS_Linker-1.1-430.pet and try installing an SFS with sfs_linker.

ICPUG wrote:
I to assume in ChoicePup430 you have adjusted the init code

No need for the new system. File layering, as in ChoicePup412, mounts the SFS's on /initrd/pup_roXX which are created by the init code. SFS_Linker simply mounts the SFS on a /dev/loopXX which can be created after boot. I have provided for 18 extra /dev/loops to be created at boot so that any version of Puppy can use this .pet.

Quote:
start off with a standard barebones of (say) 4.2.1 and then it will automatically work
Yes! Great idea, I'll try it today, should work fine. I'll upload a .pet with the ChoicePup /usr/local/bin/defaultprograms for use in barebones puppy versions. I'll rebuild the SFS_Linker.pet to accomodate the older SFS3 files too.
Back to top
View user's profile Send private message 
tlchost

Joined: 05 Aug 2007
Posts: 1741
Location: Baltimore, Maryland USA

PostPosted: Tue 06 Oct 2009, 18:08    Post subject:  

jrb wrote:

I downloaded once, took 2 hrs on my crappy connection, burned in pburn3.0.4 in ChoicePup430, booted no problem. Burned again in pburn2.5.6 in ChoicePup412, again no problem. Maybe try different burner?

Was able to burn it with burn2iso....but, it doesn;t recognize my keyboard...can not enter any commands via the keyboard.

I am using a pc style to usb converter for the keyboard....

Thom
Back to top
View user's profile Send private message Visit poster's website 
seaside

Joined: 11 Apr 2007
Posts: 888

PostPosted: Tue 06 Oct 2009, 20:37    Post subject:  

Jrb,

Can't offer any comments on burning since I just use the iso directly.

There was something I was wondering about though - this code in link_sfs
Code:

   echo "/mnt/"$SFSNAME"/usr/lib" >> /etc/ld.so.conf
   echo "/mnt/"$SFSNAME"/usr/local/lib" >> /etc/ld.so.conf
   echo "/mnt/"$SFSNAME"/usr/X11R7/lib" >> /etc/ld.so.conf
   echo "/mnt/"$SFSNAME"/opt/samba/lib" >> /etc/ld.so.conf 
ldconfig


If all files are linked, wouldn't these be seen without "echoing to ld.so.conf"?

So far, the link and unlink has worked on any pre 43 puppy, I've tried (no reason it shouldn't, as long as the SFS can be mounted)

I noticed that Pizzasgood has posted a new SFS file editor which apparently will edit the old sfs files if run from a pre43 puppy, and the new sfs files if run from 43 (due to no backward compatibility of the new sfs).

Since you have id'd your new sfs files by placing " ch4" in front, is that going to be a "standard" for creating sfs files in pup 43 or is it kind of open?

Is there an SFS converter around, or is it just a case of changing it to a Pet and then converting.

Still amazed at how you can work around all the stumbling blocks that come up with new versions Very Happy


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


Joined: 08 Jun 2005
Posts: 5043
Location: Arizona, U.S.A.

PostPosted: Wed 07 Oct 2009, 01:10    Post subject:  

Hey jrb; What does the file: /etc/ld.so.conf do exactly?
It`s a list of the paths in: LD_LIBRARY_PATH.

Also... I made a "stand alone" SFS file of Skype, would you like to include it?
Back to top
View user's profile Send private message 
jrb


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

PostPosted: Wed 07 Oct 2009, 01:44    Post subject:  

seaside wrote:
If all files are linked, wouldn't these be seen without "echoing to ld.so.conf"?

The files are seen but /etc/ld.so.conf contains a list of the directories where Puppy should look for lib files. By adding the normal lib file path, i.e. /usr/lib with the mount point of the SFS in front and then running ldconfig, Puppy will look for program libs in the mounted SFS.

Quote:
the link and unlink has worked on any pre 43 puppy

Just got around to trying it on 2.18 and 421barebones. 2.18 doesn't like the folder specific right click feature but it works from console just fine, it will need to have sfs_linker put on the OpenWith menu I think. Unfortunately Not many of the SFS packages from choicepup412 work with Puppy2. 421 works quite well but really shows off which program dependencies were included in ChoicePup and not in the SFS packages.

Quote:
" ch4" in front, is that going to be a "standard"

It will be the ChoicePup standard, don't know about anyone else. I may go back and rename the earlier packages with ch3.

Quote:
Is there an SFS converter around?

sfs-converter-1.3.2.pet is in Puppy430 and in the pet_packages-woof repository. I doubt if there's a converter to go from sfs4 back to sfs3.

Quote:
how you can work around all the stumbling blocks that come up with new versions

I just wish I had the talent that goes into coming up with the new versions.
Back to top
View user's profile Send private message 
sunburnt


Joined: 08 Jun 2005
Posts: 5043
Location: Arizona, U.S.A.

PostPosted: Wed 07 Oct 2009, 02:00    Post subject:  

I assume you mean the new versions of Puppy...

It seems like the file: ld.so.conf would get really full after loading lots of SFS files.

### JRB: Did you want to include the Skype SFS file in your downloads?
Back to top
View user's profile Send private message 
tlchost

Joined: 05 Aug 2007
Posts: 1741
Location: Baltimore, Maryland USA

PostPosted: Wed 07 Oct 2009, 04:52    Post subject: Keyboard not recognized  

JRB,
Are you using the small 4.30 iso?

I found the post I had made in bug reports...the audio issue was solved, the keyboard issue never was answered

http://208.109.22.214/puppy/viewtopic.php?t=46594&start=16&sid=b602640eb40c5af15f20b67983ebb55f

Thom
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 9 [124 Posts]   Goto page: 1, 2, 3, ..., 7, 8, 9 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Derivatives
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.1164s ][ Queries: 12 (0.0062s) ][ GZIP on ]