MacOS

7
Dec

Accessing a VirtualBox Machine with NAT


The default way a VirtualBox machine connects to the network is using NAT. Since it’s connected to a private network, you can connect to the outside world but other machines cannot contact you (this holds true even for the host machine). NAT is the easiest and most lightweight way of connecting your virtual machine to the network. VirtualBox also supports others ways of connecting to the network such as a bridge adaptor.

My current setup: I have one virtual machine running Ubuntu 9.04 where I have all my development tools and languages installed (ruby, php, python etc). I run VirtualBox 3.0.8 on my MacOS laptop. This way I can be as close to the server environment as possible while building my applications. I run Apache, Passenger, PHP, MySQL on the guest machine and just forward 22 (ssh), 80 (http) and 3306 (mysql) to MacOS this way I can use apps like MySQL workbench to play with my database or Textmate to code.

7
Dec

MacOSX and Ubuntu Samba Fix


This should fix issues with making MacOSX talk to Ubuntu (Samba)

  1. Make sure that you are not currently connected to any Samba or Windows (SMB/CIFS) servers and that you do not have any Samba or Windows-related error messages open.
  2. Open the Terminal (/Applications/Utilities/).
  3. At the prompt, type: sudo pico /etc/nsmb.conf
  4. Press Return.
  5. Enter your password when prompted, then press Return again.
7
Dec

Disable Dashboard MacOSX


To disable the dashboard:

defaults write com.apple.dashboard mcx-disabled -boolean YES

To enable the dashboard

defaults write com.apple.dashboard mcx-disabled -boolean NO

Dont forget to after running the command.

killall Dock
Tags:
7
Dec

How many cycles has your Powerbook battery done


Ever wanted to know how many cycles your Apple Powerbook battery has done?

ioreg -l | grep Capacity

Most Powerbooks should work well upto 300-500 cycles.

Tags:
Syndicate content