Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Using multiple IP addresses for serving UNIX
IP aliasing allows your server (or more accurately your interface card) to respond to more than one IP address.

I like to use a mixture of header based IP and real or aliased IP addresses, meaning that a number of URL's point (in DNS) to the same IP number, and other URL's have their own IP address.

eg -> -> -> ->

To do this, your interface device has to recognise and listen for the different IP numbers. This is done via IP aliasing.

Using the ifconfig command in OSX/BSD appears to be different from Linux.

Instructions for the syntax to do this is over on the Stepwise site.

Linux instructions for IP aliasing are available at Linux Documentation Project

You will also need to add listen directives to the apache config file - this is covered else where on this site.
  Post a comment  •  Comments (0)  
  • Currently 3.33 / 5
  You rated: 1 / 5 (3 votes cast)
[3,097 views]  View Printable Version
How to launch a terminal app from the toolbar UNIX
For those of you out there that like to do M*ing (Moo, Mud, Muck, Mush, Cold, etc) there is a Unix program called TinyFugue that, to my knowledge, is the leading client for these types of games. This installs just fine on OSX and runs great. (You can go to FreshMeat to find TinyFugue)

I have found that if you just drag the file 'tf' (the TinyFugue app) to the Toolbar and click on it absolutely nothing happens.

Here is how you can get it working. You can go and Get Info on the 'tf' file itself, then 'Show Application' and set it to 'A specific application' and have it fire up Terminal. You will need to set it to show 'All Applications' and you will get a warning that it is not known if this application will launch up this file, but it works great.

I do not know if this works with all terminal based apps, but it did work for TinyFugue.

  Post a comment  •  Comments (1)  
  • Currently 2.67 / 5
  You rated: 2 / 5 (3 votes cast)
[6,966 views]  View Printable Version
Darwin FreeBSD Ports Collection UNIX
rlucia writes: "Now we have some patches to The FreeBSD Ports Collection to make it working on Darwin 1.3 (as shipped with Mac OS X). I also patched pkg_* from FreeBSD source tree to use with Darwin. The work is at early stage but I could compile and install (also deinstall) lots of packages."

Check it out at Darwin pkg, Darwin ports or compiled packages files.
  Post a comment  •  Comments (1)  
  • Currently 2.33 / 5
  You rated: 1 / 5 (3 votes cast)
[5,926 views]  View Printable Version
How to run a compiled UNIX application UNIX
[Editor's note: See the comments for the answer]

I built a hello world simple application that built great. That simply means that it compiled. I did this in my home directory in a terminal application. It compiles to a.out. When I try to run this application it says I cannot find a.out. Any clues on how I can make this work?
  Post a comment  •  Comments (3)  
  • Currently 3.40 / 5
  You rated: 2 / 5 (5 votes cast)
[10,706 views]  View Printable Version
Apache-mySQL-PHP installation tutorial UNIX
[Editor's Note: This is the most detailed how-to I've received in six months' running this site! I have not used the tutorial, mainly because I already have this group of programs running, but this looks like a very good step-by-step on how to get them installed. -rob.]

[Second editor's note: I received a referral to another site with a step-by-step guide for compiling all three of these programs from source; I haven't used it, but it's a similar step-by-step tutorial, but it doesn't use any package files.]

Compiled and partly written by Vip Malixi with contributions from Scott Anguish, René Voorburg, Matthew Vaughn. The following tutorial is a comprehensive set of instructions for installing a new version of Apache (1.13.19), along with PHP 4.04 and mySQL 3.23.28. In order to follow these instructions, you will need to have (a) root access [detailed elsewhere on the site] and (b) the developer tools installed.

If you'd like to see how this is done, please read the rest of this article for a thorough, step-by-step guide to the process.
read more (837 words)   Post a comment  •  Comments (55)  
  • Currently 2.25 / 5
  You rated: 2 / 5 (4 votes cast)
[50,463 views]  View Printable Version
Running multiple proceses of the same Cocoa app UNIX
Not sure if this is by any means useful, but here you go:

You can run more than one instance of the same Cocoa app, for example two Clock apps running under the different process id, from the command line. It is pretty simple to do:
  1. Launch
  2. Using Finder, navigate to the app you want to run
  3. Control-click, then select the 'Show Package Contents' item
  4. Open ./Contents/MacOS folder. There is usually only one executable file.
  5. Drag and drop the file on the terminal window. This prints a path to the file.
  6. Put '&' at the end of the path and type return
  7. Repeat 5 and 6
Now, you have two processes of the app.
Caveat: GUI apps are not intended to be executed by this way. If more than one instances are running, they access the same configuration files, e.g. a preferences file. So, there is a chance to corrupt these files. Do it at your own risk and just for entertainment.
  Post a comment  •  Comments (0)  
  • Currently 2.25 / 5
  You rated: 3 / 5 (4 votes cast)
[3,530 views]  View Printable Version
Terminal 101 - Handy aliases UNIX
Warning - For new unix users only... this is intended for mac users new to unix who wish to make the terminal a bit more comfortable.

You can define any number of shortcuts (aliases) to start up applications. For example, to start up TextEdit from the command line and open a file, all you need to do is type:

te main.C &

where: te is the alias you specify, main.C is the name of the text file that you want to edit, and & backgrounds the process (which means you can continue working in the command line).

To learn how to set this up and add to your UNIX knowledge, read the rest of the article ... and thanks to 'anonymous' for sending this in!
read more (449 words)   Post a comment  •  Comments (9)  
  • Currently 1.75 / 5
  You rated: 1 / 5 (4 votes cast)
[21,344 views]  View Printable Version
Building mySQL for OS X v10.0 UNIX
mySQL is a free SQL database program that can work in conjunction with PHP (see PHP hint elsewhere here) to create dynamically generated web sites, such as this one. It's important to me, as I use mySQL and PHP locally to test new elements for this site, and it was getting to be a pain booting back to the Public Beta every time I had to work on something. I tried running the mySQL installer package from the PB, but it failed (not sure why). So I'd been waiting on a new installer package, to make things easy. Last night, I got tired of waiting :-).

I received an email stating that a new binary package was available on the iDisk of 'skribble', so I went and checked it out. Go to, click on the iDisk tab, sign on with your ID, and then enter 'skribble' in the box for "Open Public Folder" section to mount that folder. You'll see the binary for mySQL. I downloaded this and installed it, but couldn't quite get it running - but it may have been user error. It did not install the 'var' directory, where mySQL keeps the databases. You may have better luck than I, so it might be worth a shot.

After a few minutes of mucking around with it (without success), I "rm"ed the mysql directory, and decided to go straight to the source (literally), and grabbed the files from to try and build it myself. I was successful, and now have a fully functional PHP 4.04 and mySQL 3.23.36 installation on my OS X machine! Read the rest of the article if you'd like instructions on how to build it yourself -- it's really not that hard!
read more (642 words)   Post a comment  •  Comments (15)  
  • Currently 2.25 / 5
  You rated: 2 / 5 (8 votes cast)
[5,668 views]  View Printable Version
Running terminal commands from the GUI UNIX
[Editor's note: See the comments for a discussion on a number of alternative methods to making this work]

I have a number of apps/scripts that I've built that can only be launched from the command line. Is there any way to either:

A) Make these double-clickable for launching


B) Create a simple app that basically executes the same commands I would type in the terminal window

For example, I have a bulletin-board client that I run locally. At present, the only way to run it is to either type the full path to it, put a link to it in a bin folder, or be in the same folder and type ./bbs . What I really want is an icon that I can double click which will open a terminal window and execute a file in a given path.
  Post a comment  •  Comments (5)  
  • Currently 5.00 / 5
  You rated: 5 / 5 (3 votes cast)
[7,517 views]  View Printable Version
mod_jk and OS X UNIX
I have Tomcat 3.2.1 Servlet engine running in standalone mode right now, but I want to integrate it with Apache. I can't figure out how to build mod_jk on OS X using the Jakarta docs. Also, when configuring tomcat, will it be able to find everything using JAVA_HOME given that things are in completely different places that a traditional JDK installation?
  Post a comment  •  Comments (4)  
  • Currently 3.33 / 5
  You rated: 2 / 5 (3 votes cast)
[5,465 views]  View Printable Version