Re: Emulating 8.2 images on QEMU for windows

2008-11-16 Thread Mark Warren
Wade,

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:

cd %~dp0
... rest of script...

(That syntax means to take the (d)irectory and (p)ath from parameter %0. )

Cheers,

Mark




From: Wade Brainerd [EMAIL PROTECTED]
To: Ton van Overbeek [EMAIL PROTECTED]
Cc: Mwarren [EMAIL PROTECTED]; devel@lists.laptop.org
Sent: Thursday, November 13, 2008 2:02:04 PM
Subject: Re: Emulating 8.2 images on QEMU for windows

Oh, and Ton - if you're interested in hacking on QEMU some more, I
would love to see a build with some extra command line parameters:

--start-kqemuExecutes 'net start kqemu' automatically if the service exists.
--window-title=   Changes the title of the window from QEMU to
whatever, say 'OLPC Software Environment 8.2.0'.

Then we could have the shortcut run qemu.exe directly and eliminate
the command prompt window, for a more seamless experience.

Best,
Wade

On Thu, Nov 13, 2008 at 4:30 PM, Wade Brainerd [EMAIL PROTECTED] wrote:
 I'd love to get the Windows installer capable of installing without
 issue on Vista, but I lack a Vista machine to test.  I would welcome
 any assistance with this matter!

 Also, regarding downloading the image instead of bundling it, It easy
 to modify the installer to download the image.  NSIS has a Download
 plugin for this exact purpose.  That would drop the initial file size
 down to a few MB, and we could add a disk space check beforehand.

 --

 To work on the installer:

 Install NSIS from nsis.sourceforge.net.

 Get the installer source code:
 git clone git://dev.laptop.org/git/users/wadeb/wininstall/.git

 Or, download the source .tgz source file from this link:
 http://dev.laptop.org/git?p=users/wadeb/wininstall/.git;a=snapshot

 The installer code is all in the 'olpc.nsi' file.  This is a simple,
 text based install script.  The NSIS download has full documentation
 for the language.

 Cheers,
 Wade


 On Thu, Nov 13, 2008 at 3:29 PM, Ton van Overbeek [EMAIL PROTECTED] wrote:
 Mwarren wrote:

 I put together a new Quick Start bundle at
 http://sites.google.com/site/olpcqemu/Home/olpc_qemu_8.2.0.zip (4.7 MB).
 The
 bundle includes Ton's qemu-svn-4887, KQEMU 1.4.0pre1, the cwRsync bundle
 (rsync, cygwin1.dll, PuTTY), curl and bunzip2. The OLPC image has been
 replaced with a get-image.cmd script that automatically downloads an
 image,
 bunzip2's it, and creates a linked .qcow2.img file.  I would appreciate it
 if you can try out the bundle and give feedback -
 http://wiki.laptop.org/index.php?title=User_talk:Mwarrenaction=edit .

 Thank you,

 Mark


 Works fine for me on Win XP/SP3.
 A few remarks:
 - Might put a warning in for people (like me) who already have Cygwin
 installed.
  Two cygwin1.dll on the same system can create problems.
 - Put more emphasis on 'run as Administrator' for the install start and stop
  of the kqemu service.
  Without kqemu you do not have run as Administrator (but it will be very
 slow).
 - You do not say how to ssh into the emulated XO:
  For a command line ssh: 'ssh -p  [EMAIL PROTECTED]'.
  For PuTTY you have to change the port from 22 to .
  Also you first have to set a password on the olpc account in the emulated
 xo,
  otherwise no ssh logins are allowed.
 - You might want to mention to let software update download all the G1G1
 activities
  on the first boot of the emulated xo.
  Alternatively we could set up an image somewhere with the G1G1 activities
 already
  included.

 It might be an idea to combine your approach with Wade Brainerd's installer.
 See http://lists.laptop.org/pipermail/devel/2008-November/021016.html .
 However the installer has problems installing the service on Vista due to
 UAC.

 I cc'ed Wade on this email.

 Good work !!

 Ton van Overbeek
 PS Have not updated my original zip with libusb0.dll yet. Will do this soon.





  ___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Emulating 8.2 images on QEMU for windows

2008-11-13 Thread Ton van Overbeek
Mwarren wrote:
 I put together a new Quick Start bundle at
 http://sites.google.com/site/olpcqemu/Home/olpc_qemu_8.2.0.zip (4.7 MB). The
 bundle includes Ton's qemu-svn-4887, KQEMU 1.4.0pre1, the cwRsync bundle
 (rsync, cygwin1.dll, PuTTY), curl and bunzip2. The OLPC image has been
 replaced with a get-image.cmd script that automatically downloads an image,
 bunzip2's it, and creates a linked .qcow2.img file.  I would appreciate it
 if you can try out the bundle and give feedback -
 http://wiki.laptop.org/index.php?title=User_talk:Mwarrenaction=edit .

 Thank you,

 Mark
   
Works fine for me on Win XP/SP3.
A few remarks:
- Might put a warning in for people (like me) who already have Cygwin 
installed.
  Two cygwin1.dll on the same system can create problems.
- Put more emphasis on 'run as Administrator' for the install start and stop
  of the kqemu service.
  Without kqemu you do not have run as Administrator (but it will be 
very slow).
- You do not say how to ssh into the emulated XO:
  For a command line ssh: 'ssh -p  [EMAIL PROTECTED]'.
  For PuTTY you have to change the port from 22 to .
  Also you first have to set a password on the olpc account in the 
emulated xo,
  otherwise no ssh logins are allowed.
- You might want to mention to let software update download all the G1G1 
activities
  on the first boot of the emulated xo.
  Alternatively we could set up an image somewhere with the G1G1 
activities already
  included.

It might be an idea to combine your approach with Wade Brainerd's installer.
See http://lists.laptop.org/pipermail/devel/2008-November/021016.html .
However the installer has problems installing the service on Vista due 
to UAC.

I cc'ed Wade on this email.

Good work !!

Ton van Overbeek
PS Have not updated my original zip with libusb0.dll yet. Will do this soon.
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Emulating 8.2 images on QEMU for windows

2008-11-13 Thread Wade Brainerd
I'd love to get the Windows installer capable of installing without
issue on Vista, but I lack a Vista machine to test.  I would welcome
any assistance with this matter!

Also, regarding downloading the image instead of bundling it, It easy
to modify the installer to download the image.  NSIS has a Download
plugin for this exact purpose.  That would drop the initial file size
down to a few MB, and we could add a disk space check beforehand.

--

To work on the installer:

Install NSIS from nsis.sourceforge.net.

Get the installer source code:
git clone git://dev.laptop.org/git/users/wadeb/wininstall/.git

Or, download the source .tgz source file from this link:
http://dev.laptop.org/git?p=users/wadeb/wininstall/.git;a=snapshot

The installer code is all in the 'olpc.nsi' file.  This is a simple,
text based install script.  The NSIS download has full documentation
for the language.

Cheers,
Wade


On Thu, Nov 13, 2008 at 3:29 PM, Ton van Overbeek [EMAIL PROTECTED] wrote:
 Mwarren wrote:

 I put together a new Quick Start bundle at
 http://sites.google.com/site/olpcqemu/Home/olpc_qemu_8.2.0.zip (4.7 MB).
 The
 bundle includes Ton's qemu-svn-4887, KQEMU 1.4.0pre1, the cwRsync bundle
 (rsync, cygwin1.dll, PuTTY), curl and bunzip2. The OLPC image has been
 replaced with a get-image.cmd script that automatically downloads an
 image,
 bunzip2's it, and creates a linked .qcow2.img file.  I would appreciate it
 if you can try out the bundle and give feedback -
 http://wiki.laptop.org/index.php?title=User_talk:Mwarrenaction=edit .

 Thank you,

 Mark


 Works fine for me on Win XP/SP3.
 A few remarks:
 - Might put a warning in for people (like me) who already have Cygwin
 installed.
  Two cygwin1.dll on the same system can create problems.
 - Put more emphasis on 'run as Administrator' for the install start and stop
  of the kqemu service.
  Without kqemu you do not have run as Administrator (but it will be very
 slow).
 - You do not say how to ssh into the emulated XO:
  For a command line ssh: 'ssh -p  [EMAIL PROTECTED]'.
  For PuTTY you have to change the port from 22 to .
  Also you first have to set a password on the olpc account in the emulated
 xo,
  otherwise no ssh logins are allowed.
 - You might want to mention to let software update download all the G1G1
 activities
  on the first boot of the emulated xo.
  Alternatively we could set up an image somewhere with the G1G1 activities
 already
  included.

 It might be an idea to combine your approach with Wade Brainerd's installer.
 See http://lists.laptop.org/pipermail/devel/2008-November/021016.html .
 However the installer has problems installing the service on Vista due to
 UAC.

 I cc'ed Wade on this email.

 Good work !!

 Ton van Overbeek
 PS Have not updated my original zip with libusb0.dll yet. Will do this soon.

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Emulating 8.2 images on QEMU for windows

2008-11-13 Thread Wade Brainerd
Oh, and Ton - if you're interested in hacking on QEMU some more, I
would love to see a build with some extra command line parameters:

--start-kqemuExecutes 'net start kqemu' automatically if the service exists.
--window-title=   Changes the title of the window from QEMU to
whatever, say 'OLPC Software Environment 8.2.0'.

Then we could have the shortcut run qemu.exe directly and eliminate
the command prompt window, for a more seamless experience.

Best,
Wade

On Thu, Nov 13, 2008 at 4:30 PM, Wade Brainerd [EMAIL PROTECTED] wrote:
 I'd love to get the Windows installer capable of installing without
 issue on Vista, but I lack a Vista machine to test.  I would welcome
 any assistance with this matter!

 Also, regarding downloading the image instead of bundling it, It easy
 to modify the installer to download the image.  NSIS has a Download
 plugin for this exact purpose.  That would drop the initial file size
 down to a few MB, and we could add a disk space check beforehand.

 --

 To work on the installer:

 Install NSIS from nsis.sourceforge.net.

 Get the installer source code:
 git clone git://dev.laptop.org/git/users/wadeb/wininstall/.git

 Or, download the source .tgz source file from this link:
 http://dev.laptop.org/git?p=users/wadeb/wininstall/.git;a=snapshot

 The installer code is all in the 'olpc.nsi' file.  This is a simple,
 text based install script.  The NSIS download has full documentation
 for the language.

 Cheers,
 Wade


 On Thu, Nov 13, 2008 at 3:29 PM, Ton van Overbeek [EMAIL PROTECTED] wrote:
 Mwarren wrote:

 I put together a new Quick Start bundle at
 http://sites.google.com/site/olpcqemu/Home/olpc_qemu_8.2.0.zip (4.7 MB).
 The
 bundle includes Ton's qemu-svn-4887, KQEMU 1.4.0pre1, the cwRsync bundle
 (rsync, cygwin1.dll, PuTTY), curl and bunzip2. The OLPC image has been
 replaced with a get-image.cmd script that automatically downloads an
 image,
 bunzip2's it, and creates a linked .qcow2.img file.  I would appreciate it
 if you can try out the bundle and give feedback -
 http://wiki.laptop.org/index.php?title=User_talk:Mwarrenaction=edit .

 Thank you,

 Mark


 Works fine for me on Win XP/SP3.
 A few remarks:
 - Might put a warning in for people (like me) who already have Cygwin
 installed.
  Two cygwin1.dll on the same system can create problems.
 - Put more emphasis on 'run as Administrator' for the install start and stop
  of the kqemu service.
  Without kqemu you do not have run as Administrator (but it will be very
 slow).
 - You do not say how to ssh into the emulated XO:
  For a command line ssh: 'ssh -p  [EMAIL PROTECTED]'.
  For PuTTY you have to change the port from 22 to .
  Also you first have to set a password on the olpc account in the emulated
 xo,
  otherwise no ssh logins are allowed.
 - You might want to mention to let software update download all the G1G1
 activities
  on the first boot of the emulated xo.
  Alternatively we could set up an image somewhere with the G1G1 activities
 already
  included.

 It might be an idea to combine your approach with Wade Brainerd's installer.
 See http://lists.laptop.org/pipermail/devel/2008-November/021016.html .
 However the installer has problems installing the service on Vista due to
 UAC.

 I cc'ed Wade on this email.

 Good work !!

 Ton van Overbeek
 PS Have not updated my original zip with libusb0.dll yet. Will do this soon.


___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Emulating 8.2 images on QEMU for windows

2008-11-13 Thread Ton van Overbeek
On Mon, Oct 6, 2008 at 1:10 PM, Ton van Overbeek [EMAIL PROTECTED] wrote:
 Thanks for the update on how to install kqemu on Vista.
 libusb0.dll is from the libusb-win32 project on Sourceforge:
 http://sourceforge.net/projects/libusb-win32
 Right now I am on travel in Europe through the end of the month.
 When back, I will update my port (include libusb0.dll and document
 Vista installation)

 Ton van Overbeek

Finally updated the zip file
http://www.v-overbeek.nl/XO-1/qemu-svn-4887-for-windows.zip.
It now includes the missing libusb0.dll and your instructions for
Windows Vista in the README file.

Ton van Overbeek
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Emulating 8.2 images on QEMU for windows

2008-11-13 Thread Wade Brainerd
On Thu, Nov 13, 2008 at 9:31 PM, Ton van Overbeek [EMAIL PROTECTED] wrote:
 --start-kqemuExecutes 'net start kqemu' automatically if the service 
 exists.

 This will require some real hacking. Will probably require to run qemu as
 Administrator:

I wonder if we could make the installer cause the service to start at
boot, since the installer will require Administrator privileges
anyway.  Does the kqemu service use significant resources?

 --window-title=   Changes the title of the window from QEMU to
 whatever, say 'OLPC Software Environment 8.2.0'.


 You can already do this today.
 Use the -name option on qemu:
  -name OLPC Software Environment 8.2.0 
 The qemu window will then have QEMU (OLPC Software Environment 8.2.0) as 
 title.

Cool, I'll add this in the next version of the installer.

-Wade
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Emulating 8.2 images on QEMU for windows

2008-11-12 Thread Mwarren

I put together a new Quick Start bundle at
http://sites.google.com/site/olpcqemu/Home/olpc_qemu_8.2.0.zip (4.7 MB). The
bundle includes Ton's qemu-svn-4887, KQEMU 1.4.0pre1, the cwRsync bundle
(rsync, cygwin1.dll, PuTTY), curl and bunzip2. The OLPC image has been
replaced with a get-image.cmd script that automatically downloads an image,
bunzip2's it, and creates a linked .qcow2.img file.  I would appreciate it
if you can try out the bundle and give feedback -
http://wiki.laptop.org/index.php?title=User_talk:Mwarrenaction=edit .

Thank you,

Mark


Ton van Overbeek wrote:
 
 Thanks for the update on how to install kqemu on Vista.
 libusb0.dll is from the libusb-win32 project on Sourceforge:
 http://sourceforge.net/projects/libusb-win32
 Right now I am on travel in Europe through the end of the month.
 When back, I will update my port (include libusb0.dll and document
 Vista installation)
 
-- 
View this message in context: 
http://n2.nabble.com/Emulating-8.2-images-on-QEMU-for-windows-tp1115692p1492569.html
Sent from the OLPC Software development mailing list archive at Nabble.com.

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Emulating 8.2 images on QEMU for windows

2008-10-06 Thread Mwarren


Ton van Overbeek wrote:
 
 In the kqemu-1.4.0pre1 directory right click kqemu.inf and select Install.
 See also http://bellard.org/qemu/kqemu-doc.html .
 

In Windows Vista, install KQEMU with this command line from an Administrator
CMD prompt:
 
   rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 kqemu.inf

Right clicking on the .inf file and selecting Install returns the error The
INF file you selected does not support this method of installation on Vista
:-(. QEMU+KQEMU, however, works fine under VistaB-).  This QEMU build also
asks for libusb0.dll which can be found in
http://slimak.onet.pl/_m/onetlajt/olpc/olpc_qemu_full.zip .

-- 
View this message in context: 
http://n2.nabble.com/Emulating-8.2-images-on-QEMU-for-windows-tp1115692p1300264.html
Sent from the OLPC Software development mailing list archive at Nabble.com.

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Emulating 8.2 images on QEMU for windows

2008-10-06 Thread Ton van Overbeek
Thanks for the update on how to install kqemu on Vista.
libusb0.dll is from the libusb-win32 project on Sourceforge:
http://sourceforge.net/projects/libusb-win32
Right now I am on travel in Europe through the end of the month.
When back, I will update my port (include libusb0.dll and document
Vista installation)

Ton van Overbeek

On Mon, Oct 6, 2008 at 9:50 AM, Mwarren [EMAIL PROTECTED] wrote:


 Ton van Overbeek wrote:

 In the kqemu-1.4.0pre1 directory right click kqemu.inf and select Install.
 See also http://bellard.org/qemu/kqemu-doc.html .


 In Windows Vista, install KQEMU with this command line from an Administrator
 CMD prompt:

   rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 kqemu.inf

 Right clicking on the .inf file and selecting Install returns the error The
 INF file you selected does not support this method of installation on Vista
 :-(. QEMU+KQEMU, however, works fine under VistaB-).  This QEMU build also
 asks for libusb0.dll which can be found in
 http://slimak.onet.pl/_m/onetlajt/olpc/olpc_qemu_full.zip .
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel