Skip to content

Instantly share code, notes, and snippets.

@peterjmit
Created February 18, 2012 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterjmit/1858934 to your computer and use it in GitHub Desktop.
Save peterjmit/1858934 to your computer and use it in GitHub Desktop.
Settings for NFS and host only networking in vbox
# EXPORTS FILE (OSX)
#
# /etc/exports
#
# You can change the directory to wherever
# you store your project files
/Users/user_name/code -alldirs -mapall=501:501
# EXPORTS FILE (ubuntu 11.04)
#
# /etc/exports
#
/home/user_name/code 10.10.4.15(rw,sync)
# VBOX FILE
#
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
# Mount for apache
10.10.4.1:/Users/user_name/code /var/www nfs _netdev,defaults 0 0
# VBOX FILE
#
# /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 10.10.4.15
netmask 255.255.255.0
network 10.10.4.0
broadcast 10.10.4.255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment