Skip to main content
Engineering LibreTexts

1.1: Getting the VM and the Image

  • Page ID
    43778
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    First here is a way to download a zero configuration script to download the latest 2.0 Pharo image and vm.

    wget get.pharo.org/20+vm
    

    If you do not have wget installed you can use curl -L instead.

    To execute the script that we just downloaded, you should change its permissions using chmod a+x or invoke it via bash as follows.

    Configurations. There is a plethora of configurations available. The URL for each script can be easily built from an image version and a vm following the expression: get.pharo.org/$IMAGE+$VM

    Possible values for $IMAGE are: 12 13 14 20 30 stable alpha

    Possible values for $VM are: vm vmS vmLatest vmSLatest

    Of course, one can just download an image as well get.pharo.org/$IMAGE or just the VM get.pharo.org/$VM

    Looking at the help. Now let’s have a look at the script help.

    bash 20+vm --help
    

    The help says that the 20+vm command downloads the current virtual machine and puts it into the pharo-vm folder. In addition, it creates several scripts: pharo to launch the system, pharo-ui a script to launch the image in UI mode. Finally, it also downloads the latest image and changes files.

    This script downloads the latest Pharo 20 Image.
    This script downloads the latest Pharo VM.
    
    The following artifacts are created:
        Pharo.changes    A changes file for the Pharo Image
        Pharo.image      A Pharo image, to be opened with the Pharo VM
        pharo            Script to run the downloaded VM in headless mode
        pharo-ui         Script to run the downloaded VM in UI mode
        pharo-vm/        Directory containing the VM
    

    Grabbing and executing it. If you just want to directly execute the script you can also do the following

    wget -O - get.pharo.org/20+vm | bash
    

    The option -O - will output the downloaded bash file to standard out, so we can pipe it to bash. If you do not like the log of web, use --quiet.

    wget --quiet -O - get.pharo.org/20+vm | bash
    

    Note for the believers in automated tasks. The scripts are fetched automatically from our Jenkins server (https://ci.inria.fr/pharo/job/Scripts-download/) from the gitorious server https://gitorious.org/pharo-build/pharo-build. Yes we believe in automated tasks that free our energy.


    This page titled 1.1: Getting the VM and the Image is shared under a CC BY-SA 3.0 license and was authored, remixed, and/or curated by Alexandre Bergel, Damien Cassou, Stéphane Ducasse, Jannik Laval (Square Bracket Associates) via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.