HanSamBen-a derivative of Edupup with Gcompris 8.4- Alpha V2

For talk and support relating specifically to Puppy derivatives
Message
Author
sidders
Posts: 464
Joined: Wed 23 Jul 2008, 18:47
Location: Bolton, uk

#226 Post by sidders »

The command SED can insert lines to a file (it can do lots of other stuff too). So i was thinking a sed command in the pinstall can insert a line in puppypin.

Its a plan

sidders
Posts: 464
Joined: Wed 23 Jul 2008, 18:47
Location: Bolton, uk

#227 Post by sidders »

The plan worked. I tried it with Etoys sfs just to experiment.


Code: Select all

#!/bin/sh
#script to place etoys sfs icon on desktop
sed '4i\
<icon x="72" y="500" label="Squeakland Etoys" locked="true">/usr/share/applications/etoys.desktop</icon>' /root/Choices/ROX-Filer/PuppyPin > /root/PuppyPin1
mv /root/PuppyPin1 /root/Choices/ROX-Filer/PuppyPin 
It will put the etoys entry into line 4 (under the background entry) in Puppypin. X server needs to be restarted, so i'll put that at the bottom of the script to automate the whole process. Just gotta stick it in a pinstall which i assume will run all\any scripts after the sfs is loaded.

edit. stuck restartwm at the end

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#228 Post by ecomoney »

:D

So thats how its done.

Have added a link in the making sfs howto.
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#229 Post by sunburnt »

Yep... "Sed" or "grep" can add and remove lines of text from files or variables.
The commands "head" and "tail" can help do this also...
The SFA files that I proposed to jrb would have a standard Bash script in them.
So anything could be done that`s needed to setup the SFA file to work.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#230 Post by sunburnt »

I wrote a little utility to do exactly this many many years ago.
But it still has not been taken care of that I know of...

Note: The file: PuppyPin sets the executable, but the file: globicons sets the icon pic.

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#231 Post by ecomoney »

Sunburnt, seems you have a goldmine of routines. Cheers for the tips
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#232 Post by sunburnt »

I have rewritten my utility to add and remove desktop icons.
If any there`s interest I`ll post it... Terry

sidders
Posts: 464
Joined: Wed 23 Jul 2008, 18:47
Location: Bolton, uk

#233 Post by sidders »

Thanks Terry. There certainly is interest. Could we have a look.

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#234 Post by ecomoney »

Definitely, at the local playgroup in particular!
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

sidders
Posts: 464
Joined: Wed 23 Jul 2008, 18:47
Location: Bolton, uk

#235 Post by sidders »

Last edited by sidders on Wed 23 Sep 2009, 12:21, edited 1 time in total.

sidders
Posts: 464
Joined: Wed 23 Jul 2008, 18:47
Location: Bolton, uk

#236 Post by sidders »

Just had a rush of blood and worked out the disabling of the right click. It is indeed in the xorg.conf

Code: Select all

Option "ButtonMapping" "1 1 1"
However as i was working on my Dell Latitude Osx it wasnt working because the protocol for the touchpad and ps2 mouse (which is where is had my rush) were different. I need that old freind SED to insert it into the xorg.conf. Going to try from /usr/sbin/inputwizard. Logic tells me that it write to xorg.conf.

Before that i came up with some code (with Googles help) to see whats going on in a script, in particular the full install PUI

Code: Select all

puppyinstaller > pui.log 2>&1
Not tested it yet

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#237 Post by sunburnt »

sidders; I`m posting the utility "pupin-edit" in the Cutting Edge forum.
I would have yesterday, but...

sidders
Posts: 464
Joined: Wed 23 Jul 2008, 18:47
Location: Bolton, uk

#238 Post by sidders »

Polished the additional coinsOz and Euro games.

Thinking out loud - HSB Full

Looking at Sunburnts utillity, maybe map the individual sfs (with regards to screen position), stick the utillity in there and is it possible to make it self destruct after the icon has been set?. or some script within the sfs to call the utillity and then kill itself so it doesnt run at every boot?.

Tested the command to look at script output

Code: Select all

input-wizard > input.log 2>&1


and got a log after reconfiguring the mouse! Will try the full install and see what transpires.

Script surfing

Really for livecd\kiosk version. Harked back to /bin/mount

http://www.murga-linux.com/puppy/viewto ... 700#303700

Couldnt quite fathom where to put a warning and wondering if its really needed if it can be locked down.

Still trying to see where to put the "ButtonMapping option, had a look at input-wizard, which led me to function4puppy4.

Never-the-less the sfs on the full is priority, then stick it up as a beta and look at the full install and live cd

sidders
Posts: 464
Joined: Wed 23 Jul 2008, 18:47
Location: Bolton, uk

#239 Post by sidders »

Sorted the SFS icon. The sfs Etoys and KDEEDU will be uploaded with a pinstall script, this will be dropped in /root/my-applications/bin.

rc.local will have a snoop:

Code: Select all

if [ ./root/my-applications/bin/pinstall ]; then
 cd /root/my-applications/bin
 ./pinstall #execute script for desktop icon
fi
If its there it will execute then pass on to a little script pfinish, which will wipe it out, so its not found again.
What if 2 sfs's are loaded at once- i dont know, its a workaround because by the time the kids are in bed, searching through the init scripts is like sticking pins in my eyes. I'd better try it anyway.

User avatar
ecomoney
Posts: 2178
Joined: Fri 25 Nov 2005, 07:00
Location: Lincolnshire, England
Contact:

#240 Post by ecomoney »

Thanks for sorting this sidders. Would you just give me a rundown of the installation procedure again with the files I need....the preschool to is a bit of a harsh environment for puppying in! It would be good to know exactly what Im doing before I go back.
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]

Sorry, my server is down atm!

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#241 Post by sunburnt »

Uploaded a new pupin-edit, beta. 2.
It has a command MU gave me to refresh the desktop, read the post.
http://www.murga-linux.com/puppy/viewto ... 467#343467

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#242 Post by sunburnt »

### Success !!! New ROX desktop icon manager app. is Beta 3.
I renamed it to: roxDTicon (it just makes more sense than pupin-edit).
http://www.murga-linux.com/puppy/viewtopic.php?t=46875

sidders
Posts: 464
Joined: Wed 23 Jul 2008, 18:47
Location: Bolton, uk

#243 Post by sidders »

Worked out the disable right click (which was giving me sleepless nights)
http://www.murga-linux.com/puppy/viewto ... 551#345551

Tried my little scripts with the sfs. You can only load one at a time. Going to study Sunburnts roxDTicon. Could a conf file be made in the sfs for the uttillity?. Just another idea.

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#244 Post by sunburnt »

sidders; ecomoney asked almost the same thing.
roxDTicon should be part of the main Puppy distro. then all apps. can use it.
However that may not happen so it certainly could be included in every SFS file.

As I`ve stated, a Bash script in SFS files could to do the setup needed.
The SFS Manager would run the script after mounting and then again to cleanup.
The script could have an argument: "-m" for the mount, and "-u" to unmount.
That way it sets thing up and then cleans up after itself.
Desktop icons and menu items are several of the things it could do.

sidders
Posts: 464
Joined: Wed 23 Jul 2008, 18:47
Location: Bolton, uk

#245 Post by sidders »

I see, put the script in the sfs.

SFS manager. Rather than dig about in initrd, could use something like JRB's load_sfs.pet, and tweak that to look for Surnburnt's roxDTicon.

http://www.murga-linux.com/puppy/viewto ... 559#339559

Post Reply