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 01 Nov 2014, 06:37
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to build your personal SFS Puppy
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
R-S-H

Joined: 18 Feb 2013
Posts: 490

PostPosted: Wed 13 Mar 2013, 23:54    Post subject:  How to build your personal SFS Puppy
Subject description: An easy guide for the Puppy Linux users, but: dedicated to nooby!
 

Hi.

Most of you surely already do know: I like to run my applications from sfs without using a save file (pupmode 5). To make this possible the easiest way for any other Puppy Linux user, I did decide to make this little guide here.

Two things are needed:

1. Shinobar's sfs_load version 1.9.x has to be installed
2. The attached script (remove the fake .gz and make it executable)

Ok, here's what to do if one wants to make this usable for a firefox.sfs and its executable would be named firefox.

1. Make a copy of my_sfs_runscript.sh and rename it to my_firefox_sfs_runscript.sh
2. Open it in geany or any other text editor
3. Change NameOfProg="alsaplayer" to NameOfProg="firefox"
4.
- a: Change NameOfSFS="LP2_ALSAPlayer-0.99.81.sfs" to NameOfSFS="firefox.sfs" or
- b: Add path to the sfs name and change NameOfSFS="LP2_ALSAPlayer-0.99.81.sfs" to NameOfSFS="/your/path/to/sfs/firefox.sfs"
5. Change NameOfDependentSFS"" to NameOfDependentSFS"TheRealNameHere" if maybe python or such things are needed (not yet surely)
6. If you don't want to have the sfs automatically unloaded after exiting the application, do make comments out of the following lines:
- CreateAutoUnloadScript
- /tmp/$BNameOfSFS.AutoUnload.sh
- rm /tmp/$BNameOfSFS.AutoUnload.sh
You could then also remove completely function CreateAutoUnloadScript - if you know what you are doing Laughing
7. Save the script

A single left click onto the script should now load the firefox.sfs and after this executing the firefox executable. But we all would not be in Puppy Linux, if it would be really that easy. Because it is not always that easy I did choose the firefox as an example.

Some applications like firefox and gimp do have already symbolic links placed in Puppy Linux. These symbolic has to be removed and this would result in a new issue. Files that are removed from the running OS usually are not seen if an equal file is loaded with an sfs. That's why a remaster of your puppy is needed in such cases. So, check your puppy first for symbolic links in /bin, /sbin, /usr/bin and /usr/sbin for each and every sfs you want to use. Remove these symbolic links and do a remaster.

Ok, let's assume that one has removed all those symbolic links and done successfully a remaster. The OS is then ready to use this feature completely.

Do the above noted steps on every sfs you want to use this way and create all the scripts needed. Now, after all scripts are created you have to make a decision: How do I want to use these runscripts?

- from a directory outside the OS (hd, usb) or
- from within the OS (maybe from a menu entry?)

Ok, let's assume one decides to use this from within the OS, from a menu entry or desktop icon (button).

Here's what to do:

1. Put all the scripts into /usr/local/bin
2. Create a directory in /root named menu_entries and open it in rox
3. Do this for each sfs file you did create a runscript for
- Open the sfs file with left-click onto it
- go to /usr/share/applications (inside the sfs's path)
- copy the needed .desktop file to /root/menu_entries
- search for the icon of the application (might be /usr/share/pixmaps or the application's directory)
- copy the icon to /usr/share/pixmaps (inside the OS)
- Close the sfs file again with left-click onto it
4. Do this for each .desktop file in /root/menu_entries
- open it in geany or any other text editor
- change its Exec= entry and replace it with the name of the runscript (my_firefox_sfs_runscript)
- remove any path from its Icon= entry (just use the name)
- save the .desktop file
5. After all .desktop files are edited move them to /usr/share/applications (inside the OS)
6. Open a terminal program and enter fixmenus
7. Check the menu for the new entries and icons
8. If everything seems to be fine, remove /root/menu_entries
9. Do a remaster

Done!

If anyone has problems using the remaster function, let me know. I will do the second post as a placeholder for this.

Have fun with your new SFS Puppy! Smile

RSH
my_sfs_runscript.sh.gz
Description 
gz

 Download 
Filename  my_sfs_runscript.sh.gz 
Filesize  3.07 KB 
Downloaded  199 Time(s) 

_________________
LazY Puppy Home
The new LazY Puppy Information Centre


Last edited by R-S-H on Thu 14 Mar 2013, 00:31; edited 2 times in total
Back to top
View user's profile Send private message 
R-S-H

Joined: 18 Feb 2013
Posts: 490

PostPosted: Wed 13 Mar 2013, 23:55    Post subject:  

Placeholder
_________________
LazY Puppy Home
The new LazY Puppy Information Centre

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

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Thu 14 Mar 2013, 03:12    Post subject:  

Quote
Sub_title: An easy guide for the Puppy Linux users, but: dedicated to nooby!
/Quote

Ah thanks. I make a bookmark link to it and keep it in mind
for to use it when I am ready for to apply it. Much appreciated.

Hope many try it out and give you feedback on it.

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send private message 
pl3589

Joined: 06 Mar 2013
Posts: 12

PostPosted: Sun 07 Apr 2013, 22:35    Post subject: Unable to extract script  

I haven't been able to extract your script.

This is my first time doing this, so it may be something wrong that I'm doing.

Clicking on the file I get the prompt "do I want to decompress the file?" When I click on "yes", the prompt goes away, but nothing else happens. The file does not extract.

I opened a terminal, and tried tar and gzip, but I always get a "not in gzip format" error.

I redid the download a couple of times, just to try to make sure I didn't have a corrupt download. But I get the same results every time.
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 448
Location: Oslo, Norway

PostPosted: Sun 07 Apr 2013, 23:47    Post subject:  

R-S-H wrote:
2. The attached script (remove the fake .gz and make it executable)


tallboy

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
pl3589

Joined: 06 Mar 2013
Posts: 12

PostPosted: Sat 13 Apr 2013, 20:49    Post subject:  

tallboy wrote:
R-S-H wrote:
2. The attached script (remove the fake .gz and make it executable)


Oops! Thanks for the assist!!

.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0678s ][ Queries: 13 (0.0053s) ][ GZIP on ]