Thats the only way its gonna make its way into UK schools, because of their current lock into Micro$oft, through the "building schools for the future" programme.Either way, I like the idea of an "appliance" requiring no install on a machine that needs to keep running Winblows.
HanSamBen-a derivative of Edupup with Gcompris 8.4- Alpha V2
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]
Sorry, my server is down atm!
Sorry, my server is down atm!
Thinking of Icons automatically placed on desktop for SFS. The Puppy event management handles the drive icons, inparticular the pup_event_frontend (with the drive icons the backend tells the frontend that there is a drive, the front end then sorts the icon).
Could a script in an sfs tell the front end that it has been loaded and create the icons on the desktop?.
Just knocking a couple of ideas about.
http://puppylinux.com/technical/event-management.htm
http://www.puppylinux.com/blog/?viewDetailed=00145
Could a script in an sfs tell the front end that it has been loaded and create the icons on the desktop?.
Just knocking a couple of ideas about.
http://puppylinux.com/technical/event-management.htm
http://www.puppylinux.com/blog/?viewDetailed=00145
SFS files pose a big problem for our newbies, which is why they are always requesting .pets when .sfs files have been supplied i.e.
http://www.murga-linux.com/puppy/viewtopic.php?t=45950
The desktop icons are defined in the file /root/Choices/ROX-Filer/PuppyPin , like this...
Any sfs file would need to add lines to this file (I believe usb-auto has code in it to add lines to XML format). This is tricky as an sfs file doesnt have a script that it runs like a .pet.
The workaround would be to use the /root/Startup folder (everything in here is run at startup) Have the .sfs file place a script in there, which checks to see if the application name is present in the PuppyPin file, and if it is not adds it.
Problem is, puppy 4.1.2 doesnt have a /root/Startup folder (I think), so it would need to be backported from 4.1.2 .
http://www.murga-linux.com/puppy/viewtopic.php?t=45950
The desktop icons are defined in the file /root/Choices/ROX-Filer/PuppyPin , like this...
Code: Select all
<?xml version="1.0"?>
<pinboard>
<icon x="224" y="960" label="sdb1" args="usbdrv vfat">/root/.pup_event/drive_sdb1</icon>
<icon x="160" y="960" label="sda2" args="drive vfat">/root/.pup_event/drive_sda2</icon>
<icon x="96" y="960" label="sda1" args="drive vfat">/root/.pup_event/drive_sda1</icon>
<icon x="32" y="960" label="fd0" args="floppy vfat">/root/.pup_event/drive_fd0</icon>
<icon x="768" y="128" label="save">/usr/sbin/save2flash</icon>
<icon x="240" y="80" label="Explore Internet">/root/bin/Firefox</icon>
<icon x="400" y="80" label="aMSN">/root/bin/aMSN</icon>
<icon x="544" y="80" label="Yahoo">/root/bin/Yahoo</icon>
<icon x="688" y="80" label="skype">/root/bin/skype</icon>
<icon x="96" y="192" label="Downloads">/root/bin/Downloads</icon>
<icon x="96" y="80" label="firefox">/root/bin/firefox</icon>
</pinboard>
The workaround would be to use the /root/Startup folder (everything in here is run at startup) Have the .sfs file place a script in there, which checks to see if the application name is present in the PuppyPin file, and if it is not adds it.
Problem is, puppy 4.1.2 doesnt have a /root/Startup folder (I think), so it would need to be backported from 4.1.2 .
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]
Sorry, my server is down atm!
Sorry, my server is down atm!
Forget the front_end etc i was waffling on about earlier, your solution to put entries in puppypin is simpler. Maybe a pinstall.sh in the root of the sfs (already suggested by technosaurus) using sed with the insert or add option for new entries into the puppypin. Sounds feasable to me. There again i will have to spend the evening trawling the net to work out the correct sed format.
Well thats my friday night in sorted.
Edit. How hard is the sed command. ans - very
Well thats my friday night in sorted.
Edit. How hard is the sed command. ans - very
Of course...yes an .sfs can have a pinstall file. I didint know this before. Perhaps you would make the routine to ad an icon to the desktop a library/function...so it can be incorporated in other .sfs's.
Thank you for your long hours Sidders.
Thank you for your long hours Sidders.
Puppy Linux's [url=http://www.murga-linux.com/puppy/viewtopic.php?p=296352#296352]Mission[/url]
Sorry, my server is down atm!
Sorry, my server is down atm!
The plan worked. I tried it with Etoys sfs just to experiment.
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
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
edit. stuck restartwm at the end
Coins game with Euro and Oz
[/url]http://www.murga-linux.com/puppy/viewto ... 343368[url]
[/url]http://www.murga-linux.com/puppy/viewto ... 343368[url]
Last edited by sidders on Wed 23 Sep 2009, 12:21, edited 1 time in total.
Just had a rush of blood and worked out the disabling of the right click. It is indeed in the xorg.conf
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
Not tested it yet
Code: Select all
Option "ButtonMapping" "1 1 1"
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
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
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
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
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:
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.
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
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.
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!
Sorry, my server is down atm!