Alright, the title is a little bit grand. In any case, let it be known that I pretty much hate darwinports and fink, as something always seems to go wrong when I try to use them. [Although, they are very necessary for development in OSX -- and I am certain I won't be [...]
Archive for February, 2009
VirtualBox on OSX as a replacement for DarwinPorts
February 20, 2009
VirtualBox Portforward Helper Script
February 19, 2009
On a Mac change directories to:
/Applications/VirtualBox.app/MacOS
vim portfw.rb
#!/usr/bin/ruby
if(ARGV.size < 4)
print “Ussage: ruby portfw.rb \n”
exit()
end
print “Adding Portforwarding from #{ARGV[2]} to #{ARGV[3]} named (#{ARGV[1]} on VBOX:#{ARGV[0]}\n”
`./VBoxManage setextradata “#{ARGV[0]}” “VBoxInternal/Devices/pcnet/0/LUN#0/Config/#{ARGV[1]}/HostPort” #{ARGV[2]}`
`./VBoxManage setextradata “#{ARGV[0]}” “VBoxInternal/Devices/pcnet/0/LUN#0/Config/#{ARGV[1]}/GuestPort” #{ARGV[3]}`
`./VBoxManage setextradata “#{ARGV[0]}” “VBoxInternal/Devices/pcnet/0/LUN#0/Config/#{ARGV[1]}/Protocol” TCP`
This simple script will make it easy to port forward local ports to a NATed virtualbox.
I recommend adding [...]
Whew, Partition Found!
February 19, 2009
So the IT people told me my harddrive on my macbookpro was dead, I assured them, that the hardrive was fine, and the real problem was that the motherboard had died. However, somewhere in the process I of trying to recover osx I managed to corrupt the partition table.
I tried a variety of [...]