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 25 Oct 2014, 14:56
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Derivatives
HanSamBen-a derivative of Edupup with Gcompris 8.4- Alpha V2
Moderators: Flash, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 16 of 19 Posts_count   Goto page: Previous 1, 2, 3, ..., 14, 15, 16, 17, 18, 19 Next
Author Message
sidders

Joined: 23 Jul 2008
Posts: 470
Location: Bolton, uk

PostPosted: Sat 19 Sep 2009, 09:17    Post_subject:  

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
Back to top
View user's profile Send_private_message 
sidders

Joined: 23 Jul 2008
Posts: 470
Location: Bolton, uk

PostPosted: Sat 19 Sep 2009, 12:02    Post_subject:  

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



Code:
#!/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
Back to top
View user's profile Send_private_message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Sat 19 Sep 2009, 16:06    Post_subject:  

Very Happy

So thats how its done.

Have added a link in the making sfs howto.

_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send_private_message Visit_website MSNM 
sunburnt


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

PostPosted: Sun 20 Sep 2009, 01:09    Post_subject:  

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.
Back to top
View user's profile Send_private_message 
sunburnt


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

PostPosted: Sun 20 Sep 2009, 03:31    Post_subject:  

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.
Back to top
View user's profile Send_private_message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Sun 20 Sep 2009, 14:04    Post_subject:  

Sunburnt, seems you have a goldmine of routines. Cheers for the tips
_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send_private_message Visit_website MSNM 
sunburnt


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

PostPosted: Sun 20 Sep 2009, 18:51    Post_subject:  

I have rewritten my utility to add and remove desktop icons.
If any there`s interest I`ll post it... Terry
Back to top
View user's profile Send_private_message 
sidders

Joined: 23 Jul 2008
Posts: 470
Location: Bolton, uk

PostPosted: Mon 21 Sep 2009, 06:01    Post_subject:  

Thanks Terry. There certainly is interest. Could we have a look.
Back to top
View user's profile Send_private_message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Mon 21 Sep 2009, 06:20    Post_subject:  

Definitely, at the local playgroup in particular!
_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send_private_message Visit_website MSNM 
sidders

Joined: 23 Jul 2008
Posts: 470
Location: Bolton, uk

PostPosted: Tue 22 Sep 2009, 13:24    Post_subject:
Sub_title: Coins
 

Coins game with Euro and Oz
[/url]http://www.murga-linux.com/puppy/viewtopic.php?p=343368#343368[url]

Edited_time_total
Back to top
View user's profile Send_private_message 
sidders

Joined: 23 Jul 2008
Posts: 470
Location: Bolton, uk

PostPosted: Tue 22 Sep 2009, 18:19    Post_subject:  

Just had a rush of blood and worked out the disabling of the right click. It is indeed in the xorg.conf
Code:
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:
puppyinstaller > pui.log 2>&1


Not tested it yet
Back to top
View user's profile Send_private_message 
sunburnt


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

PostPosted: Tue 22 Sep 2009, 18:29    Post_subject:  

sidders; I`m posting the utility "pupin-edit" in the Cutting Edge forum.
I would have yesterday, but...
Back to top
View user's profile Send_private_message 
sidders

Joined: 23 Jul 2008
Posts: 470
Location: Bolton, uk

PostPosted: Wed 23 Sep 2009, 17:52    Post_subject:  

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:
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/viewtopic.php?p=303700#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
Back to top
View user's profile Send_private_message 
sidders

Joined: 23 Jul 2008
Posts: 470
Location: Bolton, uk

PostPosted: Thu 24 Sep 2009, 17:16    Post_subject:
Sub_title: SFS Icon
 

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:
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.
Back to top
View user's profile Send_private_message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Thu 24 Sep 2009, 21:19    Post_subject:  

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 Mission

Sorry, my server is down atm!
Back to top
View user's profile Send_private_message Visit_website MSNM 
Display_posts:   Sort by:   
Page 16 of 19 Posts_count   Goto page: Previous 1, 2, 3, ..., 14, 15, 16, 17, 18, 19 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Puppy Derivatives
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0860s ][ Queries: 12 (0.0186s) ][ GZIP on ]