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

PostgreSQL and PHP install tutorial UNIX
If you'd like to get PostgreSQL and PHP running on Mac OS X, the following tutorial should help. Please refer to my previous instructions on installing Apache, PHP, MySQL in this web site to make these instruction clearer.

- Vip Malixi.

[Read the rest of the article for the step-by-step instructions]
read more (464 words)   Post a comment  •  Comments (1)  
  • Currently 3.67 / 5
  You rated: 2 / 5 (3 votes cast)
 
[10,687 views] Email Article To a Friend View Printable Version
Setting up sendmail for SMTP usage UNIX
I managed to set up sendmail as SMTP and have it actually start up properly during boot-time. The instructions can be found here:
http://www.tijsseling.com/professional/xtipstop.html

It also explains why it did not work before.

Adriaan
  Post a comment  •  Comments (25)  
  • Currently 3.25 / 5
  You rated: 3 / 5 (4 votes cast)
 
[14,010 views] Email Article To a Friend View Printable Version
Using Pine (UNIX) for POP-based mail UNIX
[Editor's note: Submitted by phlbbrtn on Sat Jul 28]

I came to Macs from being a PC Linux user previously. One thing I have missed in the Macintosh world is my all-time favorite mail reader -- Pine. Pine is a plain-text Mail User Agent. It is designed to be used primarily on networked UNIX systems. Thus it is not set up to perform all the functions of Mail.app or Outlook Express. All you can do with it is read, write and send mail. It also has an Address Book. But for accessing your mail you need a Mail Transport system like Sendmail, Postfix, or Qmail. For POP mail accounts you need, in addition, something like Fetchmail to get your mail from your ISP.

I had been wondering, since installing OSX, if there was a way to use Pine in OSX -- as a Terminal program. The trouble with that is that you would have to make the effort to configure Sendmail [editor: and this has been described to me as one of the tougher things to do in UNIX!]. But mine is a single-user Mac with an ISP and a POP mail account. Sendmail is overkill. Yesterday I figured out how to do it.

Read the rest of the article if you'd like a step-by-step guide on how to install and use Pine with your POP-based email accounts.
read more (248 words)   Post a comment  •  Comments (18)  
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[9,560 views] Email Article To a Friend View Printable Version
Fun with the UNIX command interpreter UNIX
This is probably one of the oldest ones in the book, but for the new UNIX users out there...open a terminal and type "Bill Gates" (without the quotes) and read the response for OS X's opinion of what you're trying to do.

This friendly advice is due to the shell trying to 'correct' what it thought you might have typed incorrectly. There are probably hundreds of others like this, but this one seems to get the most notoriety, for obvious reasons.

[Submited by macgeek007 on Thu Jul 26.]
  Post a comment  •  Comments (2)  
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[4,056 views] Email Article To a Friend View Printable Version
Use phpmyadmin to manage mySQL databases UNIX
I published a pointer to this program earlier, but it was buried with some other mySQL information, and I felt it was worth its own article.

If you use mySQL databases on OS X, phpmyadmin is one of the better database administration programs I've run across. It's free, and it gives you browser-based access to all your databases. You can add and delete tables, databases, and records, create queries, change data, etc., all from your favorite web browser.

You can find phpmyadmin on the phpwizards.net web site. The latest version is on the downloads page.

Until recently, phpmyadmin did not get along nicely with OmniWeb (the database names wouldn't show up, making it tough to use the program!). However, there's a release candidate of phpmyadmin 2.2 on the site, and it works very nicely with OmniWeb. There may be a couple of bugs, but I didn't find anything major in 30 minutes of working with it at lunch today. If you're working with version 4 of PHP, make sure you download the version for .PHP files (not .PHP3 files).
  Post a comment  •  Comments (0)  
  • Currently 2.00 / 5
  You rated: 2 / 5 (2 votes cast)
 
[3,072 views] Email Article To a Friend View Printable Version
A GUI app for UNIX scripts UNIX
After trying out all the suggestions for running scripts (Perl, bash, tcsh, etc.) in the GUI and finding them less than satisfying, I decided to write my own app to do it the right way. I'm looking for a few folks to help give it a once-over prior to releasing it for general availability.

If you're interested in giving it a try and willing to give me a thorough critique, you can download it from my mac.com homepage. The code has been tested thoroughly on my own TiBook, but I'd like some "thumbs up" from independent third parties before I release it.

[Editor's note: I downloaded and ran Charles' program, and it seems to do exactly what he claims - it puts a nice GUI (and basic editor!) around your UNIX scripts. I have not extensively tested it, but it ran the three simple scripts I threw at it without any problems. Definitely worth a look, and Charles is looking for feedback if you give the program a trial run...]
  Post a comment  •  Comments (6)  
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[2,670 views] Email Article To a Friend View Printable Version
Hidden games in Mac OS X UNIX
Those of you who lust after the good old days of the text adventure may find this tip useful. The default installation of Mac OS X includes Emacs 20.7.1. Emacs is a very powerful tool, and includes the ability to retrieve/post news or mail, act as a calendar/diary application and has powerful text editing features. It also includes a few amusing games, most of which need to be executed within Emacs itself, except for one... dunnet. Using the following command at the shell will execute the game without opening up Emacs directly:
emacs -batch -l dunnet
For anyone familiar with text-based adventure games you will find most of the usual commands work (north, east, south, west, get, look, help, quit...). The following two commands allow you to save and restore your game to or from a specific file:
save [filename]
restore [filename]
Have fun!
  Post a comment  •  Comments (1)  
  • Currently 3.00 / 5
  You rated: 5 / 5 (3 votes cast)
 
[11,243 views] Email Article To a Friend View Printable Version
Shell-based file and directory manager UNIX
Demos Commander is a great shell utility for directory browsing and file management including viewing, copying, editing, and moving. This is a Unix app similar to Norton Commander for DOS. You can find the source for it at: ftp://ftp.cronyx.ru/cronyx/deco/deco383.tgz.

Mike Stolove
Toronto, Canada

[Editor's note: I downloaded and installed this package, and it does exactly what Mike claims - it brought back instant memories of working in the the Norton DOS Commander back in the early 1980's! If you dislike typing 'mv' and 'cp' commands in the shell, this is a great utility! Read the rest of the article for full installation instructions. You'll need to have the dev tools installed.]

[UPDATE: I've made a pre-compiled binary version available on my mac.com home page for those that don't have the dev tools or don't want to muck around with compiling. Read the rest of the article for the brief instructions to get the pre-compiled binary working.]
read more (311 words)   Post a comment  •  Comments (2)  
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[7,510 views] Email Article To a Friend View Printable Version
Using name-based virtual hosts on OS X UNIX
[Editor's note: Submitted by bobdavis on July 6th.]

I'm a web developer using MacOS-X for all of my development. I wrote a quick instructional article detailing the steps for creating Name-Based Virtual Hosts on a MacOS-X machine to aid in the development of multiple sites.

You can find the article on the evolt.org site:

http://www.evolt.org/MacOSX_vhosts/

I hope you find it useful.
  Post a comment  •  Comments (0)  
  • Currently 1.00 / 5
  You rated: 1 / 5 (2 votes cast)
 
[2,838 views] Email Article To a Friend View Printable Version
How to run CGIs from the user's Sites folder UNIX
[Editor's note: Submitted by Crusty on July 5th. This question has been asked numerous times in the last month, so I figured I would see if one of the Apache wizards out there can provide the answer for the interested readers...I have an idea of what needs to be done, but not all the details.]

Hello all,

I've recently installed OS X on my Powerbook and love it. The main reason I purchased OS X was so I could work on Web pages that use SSI, Perl, PHP and MySQL without always having to connect to the Internet. I've followed some tutorials on this site about installing Apache, PHP and MySQL, and have them all running properly from my user directory called "Sites"!! I love it. But... I can't get any CGI/Perl scripts or SSI to work properly. I've used the terminal to go into the config file and altered the following lines:
Options Indexes FollowSymLinks MultiViews ExecCGI +Includes
and
DirectoryIndex index.html index.htm index.shtml
and
AddType text/html .shtml
AddHandler server-parsed .shtml
Neither CGI or SSI work in my users "Sites" folder, but PHP and MySQL do. What have I missed? How can I get CGI/SSI to work in my personal site? Any help would be greatly appreciated.
  Post a comment  •  Comments (11)  
  • Currently 4.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[8,197 views] Email Article To a Friend View Printable Version