Automating VMWare Player installs with expect

Jurjen Bokma

December 2009


  1. Fetch it from the VMWare site, after submitting all your personal data, family tree three generations upwards and proof of vaccination, registering, yadayadayada. This is still tedious.

  2. sudo apt-get install expect expect-dev

    With expect-dev comes autoexpect...

    gzip -dc /usr/share/doc/expect-dev/examples/expect_autoexpect.gz > autoexpect
    chmod u+x ./autoexpect

  3. sudo ./autoexpect sh ./VMware-Player-3.0.0-203739.x86_64.bundle --console --custom

    This creates ./script.exp

  4. sudo vmware-installer -u vmware-player

  5. Now comes the fun part:

    sudo ./script.exp