InfinityQuest - Programming Code Tutorials and Examples with Python, C++, Java, PHP, C#, JavaScript, Swift and more

Menu
  • Home
  • Sitemap

Python Programming Language Best Tutorials and Code Examples

Learn Python Right Now!
Home
Bash
Testing Scripts in VMware in bash
Bash

Testing Scripts in VMware in bash

InfinityCoder April 4, 2017

You need to develop cross-platform scripts but do not have the appropriate systems
or hardware.

If the target platforms run on the x86 architecture, download the free VMware Server and build your own.

Or search for prebuilt virtual machines on the VMware site, the OS vendor or distributor’s site, or the Internet.
The flaw in this solution is the systems such as AIX and HP-UX that don’t run on an
x86 architecture, and thus don’t run under VMware.  Again, if you have these systems, use them.

Testing shell scripts is usually not very resource intensive, so even moderate hardware capable of running VMware or a similar virtualization package should be fine.
We mention VMware specifically because the Server and Player products are without
cost, they run on Linux and Windows (and soon the Mac), and are very easy to use; but there are certainly other alternatives available.
If you install VMware Server on a Linux server, you don’t even need the overhead of
a GUI on the host machine—you can use the VNC-based VMware Console from
another Linux or Windows machine with a GUI.

Minimal virtual machines with 128 MB of RAM, or sometimes even less, should be more than enough for a shell environment for testing.

Set up an NFS share to store your test scripts and data, and then simply telnet or ideally SSH to the test system.
To get you started, here’s a trivial example using VMware player:

1.  Get the free VMware Player for Windows or Linux from http://www.vmware.
com/player/.
2.  Get a pre-built virtual machine image:
a. Ubuntu Linux 5.10 (Debian derivative), Firefox 1.0.7, and Gnome 2.12.1
form the basis for VMware’s “Browser Appliance v1.0.0” (258M at http://
www.vmware.com/vmtn/appliances/directory/browserapp.html).
b.  PC-BSD is a BSD and KDE-based desktop distribution (609M at http://www.
pcbsd.org/?p=download#vmware).
3. Unzip whichever one you selected and open it in Player, creating a new VMware
UUID if prompted.

Once you boot, which takes a while, you will have either an Ubuntu 5.10 Gnomebased desktop with bash 3.0 or a BSD and KDE-based GUI desktop complete with bash 3.1 (as of this writing).

You could also run two instances of Player (or run Server) and have both environments.

Note these are both GUI distributions and so require much more memory and CPU time than a minimal shell-only install; thus, they are presented here as examples and quick and dirty solutions to get you started.
Despite the overhead, they are useful in that they are “official” images rather than
community-based images with widely variable code assurance and quality control.

Full details for the wide variety of VMware implementation possibilities are readily
available via the VMware Forums and Google.

 

Share
Tweet
Email
Prev Article
Next Article

Related Articles

Keeping Files Safe from Accidental Overwriting in bash
You don’t want to delete the contents of a file …

Keeping Files Safe from Accidental Overwriting in bash

Summing a List of Numbers in bash
You need to sum a list of numbers, including numbers …

Summing a List of Numbers in bash

About The Author

InfinityCoder
InfinityCoder

Leave a Reply

Cancel reply

Recent Tutorials InfinityQuest

  • Adding New Features to bash Using Loadable Built-ins in bash
    Adding New Features to bash Using Loadable …
    June 27, 2017 0
  • Getting to the Bottom of Things in bash
    Getting to the Bottom of Things in …
    June 27, 2017 0

Recent Comments

  • fer on Turning a Dictionary into XML in Python
  • mahesh on Turning a Dictionary into XML in Python

Categories

  • Bash
  • PHP
  • Python
  • Uncategorized

InfinityQuest - Programming Code Tutorials and Examples with Python, C++, Java, PHP, C#, JavaScript, Swift and more

About Us

Start learning your desired programming language with InfinityQuest.com.

On our website you can access any tutorial that you want with video and code examples.

We are very happy and honored that InfinityQuest.com has been listed as a recommended learning website for students.

Popular Tags

binary data python CIDR convert string into datetime python create xml from dict python dictionary into xml python how to create xml with dict in Python how to write binary data in Python IP Address read binary data python tutorial string as date object python string to datetime python

Archives

  • June 2017
  • April 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
Copyright © 2021 InfinityQuest - Programming Code Tutorials and Examples with Python, C++, Java, PHP, C#, JavaScript, Swift and more
Programming Tutorials | Sitemap