Jul 31 2012
Installing MacPorts on your Mac
What is MacPorts?
MacPorts provides an infrastructure for building, installing, and packaging open source software. It is designed to match the functionality of the FreeBSD Ports system and to be extensible for future enhancements.
Installing MacPorts
Download the macports package for your version here or you can click on the version of the MacOS you have here: Mountain Lion, Lion, Snow Leopard orLeopard. Double click on the package to run the Installer and follow the on-screen instructions until completion.
Basic Usage
The main user interface to MacPorts is the port command and the various facilities it provides for installing ports. The first thing you should do after you install MacPorts is to make sure it is fully up to date by pulling the latest revisions to the Portfiles and any updated MacPorts base code from our rsync server, all accomplished simply by running the port selfupdate command as the Unix superuser:
1 | sudo port selfupdate |
Running this command on a regular basis is recommended — it ensures your MacPorts installation is always up to date. Afterwards, you may search for ports to install:
1 | port search <portname> |
where
1 | sudo port install <portname> |
where now
Aug 6 2012
Free Windows Vista & Windows 7 for Testing on Mac/Linux
If you want to test exploits against windows machines or if you’re a web developer and need to test code in IE 7, 8, and 9 you will want to have multiple windows virtual machines handy. This tutorial will show you how to legally get copies of windows installed on virtualbox using the free editions provided by Microsoft. These additions are not fully registered and you will need to restore the images after every 30 days so they aren’t useful for desktop machines but they are perfect for testing purposes.
This will produce the following virtual machines:
We will be using a script to automate the build process courtesy of Greg Thornton and it is available via github at https://raw.github.com/xdissent/ievms/master/ievms.sh. The admin password for all of the IE VMs is “Password1″ without the quotes. This has been tested and confirmed to work with Mac OS X 10.7 Lion and Mac OS X 10.6 Snow Leopard.
Instructions
Step 1: Download and install VirtualBox
Step 2: Launch the Terminal (located in /Applications/Utilities/)
Step 3: Run the installation script, this will take some time to download and install
Step 4: Launch VirtualBox and boot one of the virtual machine
Recovering from a failed installation
Each version is installed into a subdirectory of “~/.ievms/vhd/“. If the installation fails for any reason (corrupted download, for instance), delete the version-specific subdirectory and rerun the install. If nothing else, you can delete “~/.ievms“ and rerun the install.
By James Ford • Mac, Virtual Box 0