Re: [OSGeoLive] Building the OSGeoLive docs on Windows

2018-05-17 Thread Angelos Tzotsos
Thanks for testing Seth!

On Tue, May 15, 2018 at 2:04 AM, Seth G  wrote:

> Hi,
>
> The build steps for OSGeo Live worked fine for me on Windows using CMake -
> an excellent job of cross platform configuration!
>
> I've detailed the steps I took below in case anyone else needs to do the
> same. Is there a wiki page these could be added to?
>
> 1. Setup the Python virtual environment
>
> pip install virtualenv
> virtualenv.exe C:\VirtualEnvs\osgeolive
> C:\VirtualEnvs\osgeolive\Scripts\activate
> pip install sphinx==1.6.5
> pip install sphinx-intl
> pip install sphinxjp.themes.revealjs
>
> 2. Download and unzip Strawberry Perl (a portable version of Perl that
> runs on Windows) from http://strawberryperl.com/releases.html e.g.
> http://strawberryperl.com/download/5.26.2.1/strawberry-
> perl-5.26.2.1-64bit-portable.zip
>
> 3. Install the required Perl package:
>
> SET PERL_HOME=D:\Tools\strawberry-perl-5.26.2.1-64bit-portable
> SET PATH=%PERL_HOME%\perl\site\bin;%PERL_HOME%\perl\bin;%
> PERL_HOME%\c\bin;%PATH%
> perl -MCPAN -e shell
> install Text::SimpleTable::AutoWidth
> exit
>
> 4. Download and unzip CMake (https://cmake.org/download/ - a portable
> version can be used e.g. https://cmake.org/files/v3.11/
> cmake-3.11.1-win64-x64.zip)
>
> 5. Create the build folder and checkout the latest code:
>
> cd /D D:\OSGeoLive-doc
> git clone https://github.com/OSGeo/OSGeoLive-doc.git
> mkdir build
> cd build
>
> 6. Create the Visual Studio projects using Cmake:
>
> D:\Tools\cmake-3.9.1-win64-x64\bin\cmake -DHTML=ON ..
>
> 7. Set the Visual Studio environment variables (in this example VS2017)
> and build the projects using msbuild
>
> "C:\Program Files (x86)\Microsoft Visual 
> Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat"
> amd64
> msbuild ALL_BUILD.vcxproj
>
> The output is also in build/doc/_build/html/
>
> To rebuild the docs again in a new command prompt run the commands below:
>
> C:\VirtualEnvs\osgeolive\Scripts\activate
> SET PERL_HOME=D:\Tools\strawberry-perl-5.26.2.1-64bit-portable
> SET PATH=%PERL_HOME%\perl\site\bin;%PERL_HOME%\perl\bin;%
> PERL_HOME%\c\bin;%PATH%
> "C:\Program Files (x86)\Microsoft Visual 
> Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat"
> amd64
> cd /D D:\OSGeoLive-doc\build
> D:\Tools\cmake-3.9.1-win64-x64\bin\cmake -DHTML=ON ..
> msbuild ALL_BUILD.vcxproj
>
>
> --
> web:http://geographika.co.uk
> twitter: @geographika
> ___
> osgeolive mailing list
> osgeolive@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/osgeolive
>



-- 
Angelos Tzotsos, PhD
OSGeo Charter Member
http://users.ntua.gr/tzotsos
___
osgeolive mailing list
osgeolive@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/osgeolive


Re: [OSGeoLive] Hyper-V VMs

2018-05-17 Thread Angelos Tzotsos
Hi Seth,

Thank for the pull request. I actually had in mind that you would describe
how to convert the image to the hyper-V format and add this as a section in
the generic virtualization quickstart...
Do others feel we should include a new page for Hyper-V?
Personally I would like to avoid duplication of data on SF (those guys are
very kind with us and the disk space we occupy on their mirrors so far).

Best,
Angelos

On Tue, May 15, 2018 at 1:42 AM, Seth G  wrote:

> Hi Angelos/list,
>
> Pull request created at https://github.com/OSGeo/OSGeoLive-doc/pull/371 -
> as its my first contribution to the project please let me know if there are
> any steps I've missed out.
> The quickstart would rely on a converted vhdx disk image. The conversion
> process is probably too complicated to put in a quickstart guide.
> Let me know if I can help creating/uploading a converted vhdx to
> SourceForge.
>
> On a separate note the wiki page at https://wiki.osgeo.org/wiki/OSGeoLive 
> seemed
> to have broken links to this mailing list. I updated them, but not sure if
> this had to be reviewed first. I'm happy to revert if this is the case.
>
> Seth
>
> --
> web:http://geographika.co.uk
> twitter: @geographika
>
>
> On Fri, May 11, 2018, at 12:20 PM, Angelos Tzotsos wrote:
>
> Thanks for the feedback Seth.
>
> I think it would be valuable to document the above steps in our VM
> Quickstart on a section for Hyper-V users.
> https://live.osgeo.org/en/quickstart/virtualization_quickstart.html
>
> Best,
> Angelos
>
> On Thu, May 10, 2018 at 10:43 PM, Seth G  wrote:
>
> Hi Brian,
>
> Thanks for getting back to me. I've been trying out the conversion process
> using MS tools to avoid reliance on software, that whilst currently free,
> may not be in the future (the https://www.starwindsoftware.com/converter).
> Full steps are at the end of the email.
>
> I'm fine with disabling Hyper-V for upcoming workshops - but it may make
> things a little easier for users in Windows environments to work directly
> with Hyper-V in the future.
>
> The resultant .vhdx file is 10.3 GB. Using 7-zip this produces a 3.2 GB
> file. This is essentially the same as the VirtualBox HD file, but in
> Hyper-V format. It can then be used directly in Hyper-V on Windows 10
> Professional (and presumably other versions). I'd be happy to create the
> vhdx file for Sourceforge and a Hyper-V installation page for the docs if
> people think this is worthwhile addition to the OSGeoLive project (and
> should be able to do the same for the v12 planned in the summer).
>
> One drawback with Hyper-V / Lubuntu is there is no equivalent to the
> "Guest Additions" of Virtual Box. The shared clipboard and automatic full
> screen don't seem to be available. It looks like this may be on the way
> later this year - https://blogs.technet.microsof
> t.com/virtualization/2018/02/28/sneak-peek-taking-a-spin-
> with-enhanced-linux-vms/
>
> Conversion steps for OSGeoLive 11.0 vmdk for reference are as follows:
>
> - Download the Microsoft Virtual Machine Converter 3.0 from
> https://www.microsoft.com/en-us/download/details.aspx?id=42497 and install
> - Download the "DS File Ops Kit" from http://members.ozemail.com.au/
> ~nulifetv/freezip/freeware/dsfok.zip and unzip
> - Open PowerShell (with admin rights)
> - Run the following command to get the disk descriptor from the OSGeoLive
> vmdk:
>
> cd D:\osgeo-live-11.0-vm
> D:\tools\dsfo.exe .\osgeo-live-11.0-vm.vmdk 512 1024 descriptor1.txt
>
> - This saves the disk description to the "descriptor1.txt" file. Open this
> in Notepad / a text editor and comment out the following lines (using
> hashes). This metadata is VirtualBox specific and is not recognised by the
> converter.
>
> #ddb.uuid.image="0247ca9d-f9aa-4910-9e8c-1c14d83a7749"
> #ddb.uuid.parent="----"
> #ddb.uuid.modification="81a1d704-3e4a-443d-a5ca-2fd085ba086a"
> #ddb.uuid.parentmodification="----"
> #ddb.comment=""
>
> - Run the following command to insert the disk descriptor back into the
> .vmdk
>
> D:\tools\dsfi.exe .\osgeo-live-11.0-vm.vmdk 512 1024 descriptor1.txt
>
> Failing to do the above steps will result in the error
> "ConvertTo-MvmcVirtualHardDisk : The entry 
> 0247ca9d-f9aa-4910-9e8c-1c14d83a7749
> is not a supported disk database entry for the descriptor."
>
> - Finally run the conversion process:
>
> Import-Module "C:\Program Files\Microsoft Virtual Machine
> Converter\MvmcCmdlet.psd1"
> cd D:\osgeo-live-11.0-vm
> ConvertTo-MvmcVirtualHardDisk -SourceLiteralPath .\osgeo-live-11.0-vm.vmdk
> -VhdFormat Vhdx
>
> Above steps based on https://stackoverflow.com/a/49768353/179520 and
> http://semantive.com/converting-ova-vm-to-hyper-v-format/
>
> Regards,
>
> Seth
>
> --
> web:http://geographika.co.uk
> twitter: @geographika
>
> On Thu, May 10, 2018, at 6:26 PM, Brian M Hamlin wrote:
> >
> > On Thu, 10 May 2018 18:01:47 0200, Seth G