<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><div>Wade,</div><div><br></div><div>The installation works OK, however, the run.bat script needs to "cd" to the install directory when "Run as Administrator..." is used to start it; I'm not sure why UAC starts batch scripts differently as Admin, but here's the line I added to my copy of start-olpc.cmd to fix the problem:</div><div><br></div><div>cd %~dp0</div><div>... rest of script...</div><div><br></div><div>(That syntax means to take the (d)irectory and (p)ath from parameter %0. )</div><div><br></div><div>Cheers,</div><div><br></div><div>Mark</div><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><br><div style="font-family:arial, helvetica, sans-serif;font-size:13px"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Wade Brainerd
 <wadetb@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> Ton van Overbeek <tvoverbeek@gmail.com><br><b><span style="font-weight: bold;">Cc:</span></b> Mwarren <mwarren_us@yahoo.com>; devel@lists.laptop.org<br><b><span style="font-weight: bold;">Sent:</span></b> Thursday, November 13, 2008 2:02:04 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: Emulating 8.2 images on QEMU for windows<br></font><br>
Oh, and Ton - if you're interested in hacking on QEMU some more, I<br>would love to see a build with some extra command line parameters:<br><br>--start-kqemu    Executes 'net start kqemu' automatically if the service exists.<br>--window-title="...."   Changes the title of the window from QEMU to<br>whatever, say 'OLPC Software Environment 8.2.0'.<br><br>Then we could have the shortcut run qemu.exe directly and eliminate<br>the command prompt window, for a more seamless experience.<br><br>Best,<br>Wade<br><br>On Thu, Nov 13, 2008 at 4:30 PM, Wade Brainerd <<a ymailto="mailto:wadetb@gmail.com" href="mailto:wadetb@gmail.com">wadetb@gmail.com</a>> wrote:<br>> I'd love to get the Windows installer capable of installing without<br>> issue on Vista, but I lack a Vista machine to test.  I would welcome<br>> any assistance with this matter!<br>><br>> Also, regarding downloading the image instead of bundling it, It easy<br>> to modify the installer to
 download the image.  NSIS has a Download<br>> plugin for this exact purpose.  That would drop the initial file size<br>> down to a few MB, and we could add a disk space check beforehand.<br>><br>> --------------------------<br>><br>> To work on the installer:<br>><br>> Install NSIS from <a target="_blank" href="http://nsis.sourceforge.net">nsis.sourceforge.net</a>.<br>><br>> Get the installer source code:<br>> git clone git://dev.laptop.org/git/users/wadeb/wininstall/.git<br>><br>> Or, download the source .tgz source file from this link:<br>> <a href="http://dev.laptop.org/git?p=users/wadeb/wininstall/.git;a=snapshot" target="_blank">http://dev.laptop.org/git?p=users/wadeb/wininstall/.git;a=snapshot</a><br>><br>> The installer code is all in the 'olpc.nsi' file.  This is a simple,<br>> text based install script.  The NSIS download has full documentation<br>> for the language.<br>><br>> Cheers,<br>> Wade<br>><br>><br>> On Thu, Nov 13, 2008 at 3:29
 PM, Ton van Overbeek <<a ymailto="mailto:tvoverbeek@gmail.com" href="mailto:tvoverbeek@gmail.com">tvoverbeek@gmail.com</a>> wrote:<br>>> Mwarren wrote:<br>>>><br>>>> I put together a new Quick Start bundle at<br>>>> <a href="http://sites.google.com/site/olpcqemu/Home/olpc_qemu_8.2.0.zip" target="_blank">http://sites.google.com/site/olpcqemu/Home/olpc_qemu_8.2.0.zip</a> (4.7 MB).<br>>>> The<br>>>> bundle includes Ton's qemu-svn-4887, KQEMU 1.4.0pre1, the cwRsync bundle<br>>>> (rsync, cygwin1.dll, PuTTY), curl and bunzip2. The OLPC image has been<br>>>> replaced with a get-image.cmd script that automatically downloads an<br>>>> image,<br>>>> bunzip2's it, and creates a linked .qcow2.img file.  I would appreciate it<br>>>> if you can try out the bundle and give feedback -<br>>>> <a href="http://wiki.laptop.org/index.php?title=User_talk:Mwarren&action=edit" target="_blank">http://wiki.laptop.org/index.php?title=User_talk:Mwarren&action=edit</a>
 .<br>>>><br>>>> Thank you,<br>>>><br>>>> Mark<br>>>><br>>><br>>> Works fine for me on Win XP/SP3.<br>>> A few remarks:<br>>> - Might put a warning in for people (like me) who already have Cygwin<br>>> installed.<br>>>  Two cygwin1.dll on the same system can create problems.<br>>> - Put more emphasis on 'run as Administrator' for the install start and stop<br>>>  of the kqemu service.<br>>>  Without kqemu you do not have run as Administrator (but it will be very<br>>> slooooow).<br>>> - You do not say how to ssh into the emulated XO:<br>>>  For a command line ssh: 'ssh -p 2222 olpc@localhost'.<br>>>  For PuTTY you have to change the port from 22 to 2222.<br>>>  Also you first have to set a password on the olpc account in the emulated<br>>> xo,<br>>>  otherwise no ssh logins are allowed.<br>>> - You might want to mention to let software update download all the G1G1<br>>> activities<br>>>  on the first boot of the emulated xo.<br>>>  Alternatively
 we could set up an image somewhere with the G1G1 activities<br>>> already<br>>>  included.<br>>><br>>> It might be an idea to combine your approach with Wade Brainerd's installer.<br>>> See <a href="http://lists.laptop.org/pipermail/devel/2008-November/021016.html" target="_blank">http://lists.laptop.org/pipermail/devel/2008-November/021016.html</a> .<br>>> However the installer has problems installing the service on Vista due to<br>>> UAC.<br>>><br>>> I cc'ed Wade on this email.<br>>><br>>> Good work !!<br>>><br>>> Ton van Overbeek<br>>> PS Have not updated my original zip with libusb0.dll yet. Will do this soon.<br>>><br>><br></div></div><div style="position:fixed"></div></div><br>

      </body></html>