Install the required packages (Ubuntu 12.04):
apt-get install nfs-kernel-server portmapOpen the exports file:
vim /etc/exportsOk, I geeked out, and this is probably more information than you need. But it completely answers the question. Sorry. ☺
Locally, I'm at this commit:
$ git show
commit d6cd1e2bd19e03a81132a23b2025920577f84e37
Author: jnthn <[email protected]>
Date: Sun Apr 15 16:35:03 2012 +0200
When I added FIRST/NEXT/LAST, it was idiomatic but not quite so fast. This makes it faster. Another little bit of masak++'s program.
| #!/usr/bin/env ruby | |
| require 'getoptlong' | |
| include Process | |
| include Signal | |
| $ignored_signals = ["CLD", "WINCH"] | |
| def usage(strm) | |
| strm.puts <<-EOF |
| if (node['memory']['total'].to_i / 4) > ((node['chef_server']['postgresql']['shmmax'].to_i / 1024) - 2097152) | |
| # guard against setting shared_buffers > shmmax on hosts with installed RAM > 64GB | |
| # use 2GB less than shmmax as the default for these large memory machines | |
| node.override['chef_server']['postgresql']['shared_buffers'] = "14336MB" | |
| else | |
| node.override['chef_server']['postgresql']['shared_buffers'] = "#{(node['memory']['total'].to_i / 4) / (1024)}MB" | |
| end |
| # BART Transit Helper | |
| # | |
| # bart (stn|stns|station|stations) list - Requests a list of all of the BART stations. | |
| # bart (stn|stns|station|stations) info <station> - Requests detailed information on the specified station. | |
| # bart (stn|stns|station|stations) access <station> - Requests access/neighborhood information for the specified station. | |
| # bart (etd|me) <station> - Requests current departure information. | |
| # bart ver - Requests current API version information. | |
| # bart bsa - Requests current advisory information. | |
| # bart elev - Requests current elevator infromation. |
| # Create a Gist (of 2 files) through the GitHub API | |
| # ..uses cUrl but could of course also be done through PHP etc. | |
| curl -H "Content-Type: application/json" -d '{"description": "Your XPATHr Gist test","public": true,"files": {"test.xml": {"content": "Paste your XML code.."},"test.xsl": {"content": "Paste your XSL code here.."}}}' 'https://api.github.com/gists' |
| _________________________________________ | |
| / You will pay for your sins. If you have \ | |
| | already paid, please disregard this | | |
| \ message. / | |
| ----------------------------------------- | |
| \ / \ //\ | |
| \ |\___/| / \// \\ | |
| /0 0 \__ / // | \ \ | |
| / / \/_/ // | \ \ | |
| @_^_@'/ \/_ // | \ \ |