• Mac OS X Server

    Setting Up Site To Site VPN With Mac OS X Server

    The OS X Server would have 2 NICs with one on the WAN and the other on the LAN. The WAN would have the WAN IP and the LAN would run the LAN subnet. For this there would be no need for DNS or DHCP running on the remote box. The gateway setup assistant will config all of the conf files for you and then we would use the s2svpn command line utilities to configure an MD-5 CRAM hash to encrypt all data running over our custom tunnels. Then, we’d troubleshoot the connection. For more info on the specific command line utils, It’s all CLI stuff. You can man s2svpnadmin…

  • Mac OS X Server

    Installing MediaWiki on Mac OS X

    I originally posted this at http://www.318.com/TechJournal 1. Create a database in MySQL called wikidb. 2. Create a new user called wikiserver that has full priviledges to this database (the user does not need to be called wikiserver, but that is the username we will be using for this walkthrough). 3. Download the latest stable release of MediaWiki from http://mediawiki.sourceforge.net. 4. Extract the tar files into a new folder (for this example we are going to call it wiki to keep things easy). This can be done using the tar -xvzf mediawiki.tar.gz (or subsititute your file name for mediawiki.tar.gz 5. Make the configuration files writeable using the command chmod a+w config…

  • Mac OS X Server

    What is MySQL?

    MySQL is a relational database management system. MySQL is a daemon, mysqld, that can listen for network traffic on port 3306. That daemon runs a database (or a number of databases in most cases) that warehouse data for other applications to utilize.

  • Mac OS X,  Mac OS X Server,  Unix

    Viewing Folder Sizes from the Command Line in Mac OS X

    Here’s a lovely command for figuring out how much disk space each folder on a drive consumes. It is an excellent command to run if the currently logged in user does not have sufficient read permissions to view the used space on the directory in the Finder. By default it runs on the current directory. So navigate to the hard drive’s root folder and run this command: sudo du -xhd 1 In this case, the “x” instructs the system not to traverse file system mount points (so /Volumes is skipped), the “h” expresses results in human readable format (G for gigabytes, M for megabytes, K for kilobytes, B for bytes,…

  • Mac OS X,  Mac OS X Server

    Finding Things on Mac OS X

    Mac OS X has a number of commands that will help you find things.  There’s find, grep and way more.  But the easiest of them all to use is locate.  To run locate simply type the word locate from within terminal followed by the case sensitive string of what you are looking for.  For example, if you want to find all files with the word Krypted in the name use the following command: locate Krypted Keep in mind when using the locate command that it will also find files that have the name in the path, so if I have a folder called Krypted, every single file in that folder…

  • Mac OS X,  Mac OS X Server

    Symbolic Link vs Alias

    A symbolic link is *not* an alias. A symlink (symbolic link) is in the filesystem so all of the layers of the OS can use symlinks. This includes Carbon, Cocoa, Java, and BSD apps. Alias files are Finder-specific concept. Aliases are not used by the rest of the system. Only the Finder deals with aliases. At the Finder level, aliases and symlinks are similar, but symlinks are far more versatile and used in pretty much every flavor of *nix.

  • Mac OS X,  Mac OS X Server

    Link Aggregation and Tiger

    I originally posted this at http://www.318.com/TechJournal Mac OS X 10.4 includes support for link aggregate networking. Link aggregate networking shares network traffic over two or more bonded Ethernet controllers, giving them one IP address for communication. This can allow the servers controllers to run at speeds of 2Gbps. Link aggregation is configured using the Network System Preference Pane. To enable Link Aggregate Networking 1. Open the Network Pane from System Preferences 2. Click the Show: box and select Network Port Configurations 3. Click New 4. In the Name: box enter a name for the new aggregate port 5. In the Port: box select Link Aggregate 6. Places check marks in…