From brcisna at eazylivin.net Sat Feb 9 22:13:45 2013 From: brcisna at eazylivin.net (Barry R Cisna) Date: Sat, 09 Feb 2013 16:13:45 -0600 Subject: [K12OSN] bash scripting request Message-ID: <1360448025.22307.20.camel@server1.eazylivin.net> Hello All, Can someone here that is into bash scripts give me some insight on how to accomplish the following? Our school is in talks of possibly at least partially going to Chromium os for the next school year. I have built a few 32-bit and 64-bit dev images and have done several hours of testing at this point. When using the dd if=myimage of=/dev/sd# bs=4MB the images are taking almost 15 mins to build on to each usb stick. Can someone post here,,possibly how to run a shell script that would contiguously write dd to say all of the inserted usb sticks,in each of the 8 usb ports of my build bot host machine,with omitting of course,,the actual hard disk of the build bot machine? Thank You, Barry From stegil at hotmail.com Sat Feb 9 22:44:01 2013 From: stegil at hotmail.com (SteveG) Date: Sat, 9 Feb 2013 17:44:01 -0500 Subject: [K12OSN] bash scripting request In-Reply-To: <1360448025.22307.20.camel@server1.eazylivin.net> References: <1360448025.22307.20.camel@server1.eazylivin.net> Message-ID: Try this, Multi-Copy Device - mdcp. http://mdcp.sourceforge.net/ SteveG On 13-02-09 05:13 PM, Barry R Cisna wrote: > Hello All, > > Can someone here that is into bash scripts give me some insight on how > to accomplish the following? > Our school is in talks of possibly at least partially going to Chromium > os for the next school year. I have built a few 32-bit and 64-bit dev > images and have done several hours of testing at this point. > When using the dd if=myimage of=/dev/sd# bs=4MB the images are taking > almost 15 mins to build on to each usb stick. > > Can someone post here,,possibly how to run a shell script that would > contiguously write dd to say all of the inserted usb sticks,in each of > the 8 usb ports of my build bot host machine,with omitting of > course,,the actual hard disk of the build bot machine? > > Thank You, > Barry > > > > _______________________________________________ > K12OSN mailing list > K12OSN at redhat.com > https://www.redhat.com/mailman/listinfo/k12osn > For more info see > > From brcisna at eazylivin.net Sun Feb 10 13:38:06 2013 From: brcisna at eazylivin.net (Barry R Cisna) Date: Sun, 10 Feb 2013 07:38:06 -0600 Subject: [K12OSN] bash scripting request Message-ID: <1360503486.22307.27.camel@server1.eazylivin.net> SteveG, Thank You for the link for mdcp package. This is exactly what i was looking for. Never heard of this utility before. Now I just have to remember when I am in a hurry, and when running it I do not use /dev/sda(host machine hdd) as a target device to write to.,,Wipeout! Don't ask me why i am saying this,,,:) Thank You, Barry From lesmikesell at gmail.com Sun Feb 10 20:14:50 2013 From: lesmikesell at gmail.com (Les Mikesell) Date: Sun, 10 Feb 2013 14:14:50 -0600 Subject: [K12OSN] bash scripting request In-Reply-To: <1360503486.22307.27.camel@server1.eazylivin.net> References: <1360503486.22307.27.camel@server1.eazylivin.net> Message-ID: On Sun, Feb 10, 2013 at 7:38 AM, Barry R Cisna wrote: > > Thank You for the link for mdcp package. This is exactly what i was > looking for. Never heard of this utility before. > Now I just have to remember when I am in a hurry, and when running it I > do not use /dev/sda(host machine hdd) as a target device to write > to.,,Wipeout! > Don't ask me why i am saying this,,,:) I haven't used it to image USB drives but I'd expect clonezilla-live to be good at it. It knows enough about filesystems to only copy the used blocks. -- Les Mikesell lesmikesell at gmail.com From sergio.chaves at gmail.com Wed Feb 13 01:34:20 2013 From: sergio.chaves at gmail.com (Sergio Chaves) Date: Tue, 12 Feb 2013 20:34:20 -0500 Subject: [K12OSN] bash scripting request In-Reply-To: <1360448025.22307.20.camel@server1.eazylivin.net> References: <1360448025.22307.20.camel@server1.eazylivin.net> Message-ID: Barry, I do not code much at all but it seems rather simple. First, make sure you know the name the devices when mounted. Then you check for it with an if statement: if device is mounted , do dd..... fi. This link can point you in the right direction: http://superuser.com/questions/193437/how-do-i-write-a-bash-script-to-detect-a-mounted-usb-drive On Sat, Feb 9, 2013 at 5:13 PM, Barry R Cisna wrote: > Hello All, > > Can someone here that is into bash scripts give me some insight on how > to accomplish the following? > Our school is in talks of possibly at least partially going to Chromium > os for the next school year. I have built a few 32-bit and 64-bit dev > images and have done several hours of testing at this point. > When using the dd if=myimage of=/dev/sd# bs=4MB the images are taking > almost 15 mins to build on to each usb stick. > > Can someone post here,,possibly how to run a shell script that would > contiguously write dd to say all of the inserted usb sticks,in each of > the 8 usb ports of my build bot host machine,with omitting of > course,,the actual hard disk of the build bot machine? > > Thank You, > Barry > > > > _______________________________________________ > K12OSN mailing list > K12OSN at redhat.com > https://www.redhat.com/mailman/listinfo/k12osn > For more info see From brcisna at eazylivin.net Sat Feb 23 14:54:39 2013 From: brcisna at eazylivin.net (Barry R Cisna) Date: Sat, 23 Feb 2013 08:54:39 -0600 Subject: [K12OSN] local apps time stamps off Message-ID: <1361631279.4010.7.camel@server1.eazylivin.net> Hello All, Can anyone give me a link,,or "how they done it" in regards to getting time stamps to come in correctly when running various apps as a local app? I have tried for many variations of setting time zone on the client chroot,but, ultimately, when running for example, web browser ,chat client, evoultion, the time stamps for various events are some times,two hours off,and sometimes even a half day off. I have tried setting up a network time sync in the chroot,but does not seem to take effect. Long story short I have never messed much with running apps locally,but as of now,we have some very nice machines running as TC's and can without a doubt handle all of the apps that could possibly be run in a K12LInux setting. It is very much a hinderence for end users seeing this very obvious problem,running local apps in K12Linux. Thank You, Barry From burke at thealmquists.net Sat Feb 23 18:53:04 2013 From: burke at thealmquists.net (burke at thealmquists.net) Date: Sat, 23 Feb 2013 12:53:04 -0600 Subject: [K12OSN] local apps time stamps off Message-ID: <74aqw8ucdyu2r7q0h9em90io.1361645584868@email.android.com> Probably best to set up ntp in the client chroot. Since the root chroot is read only, you will have to make the edits to your ntp client setup from the server. You probably won't be able to use to drift file either. Maybe get the correct config set up on the server and copy it to the chroot? Barry R Cisna wrote: >Hello All, > >Can anyone give me a link,,or "how they done it" in regards to getting >time stamps to come in correctly when running various apps as a local >app? >I have tried for many variations of setting time zone on the client >chroot,but, ultimately, when running for example, web browser ,chat >client, evoultion, the time stamps for various events are some times,two >hours off,and sometimes even a half day off. >I have tried setting up a network time sync in the chroot,but does not >seem to take effect. >Long story short I have never messed much with running apps locally,but >as of now,we have some very nice machines running as TC's and can >without a doubt handle all of the apps that could possibly be run in a >K12LInux setting. >It is very much a hinderence for end users seeing this very obvious >problem,running local apps in K12Linux. > >Thank You, >Barry > > > >_______________________________________________ >K12OSN mailing list >K12OSN at redhat.com >https://www.redhat.com/mailman/listinfo/k12osn >For more info see