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

Double-click remote connectivity (with SSH) UNIX
I am lazy and don't like to type ssh me@wherever.com whenever I want to log in to a remote server to check my mail.

So, using the Terminal I created an executable file like this:
echo 'ssh myusername@server.com' > click_me
chmod 755 click_me
Then, from the Finder, get info on the file 'click_me' and set the default application to Terminal. Double-click and voila!

Even better: put the 'click_me' file in your startup applications, and your prompt will be ready and waiting at login.
  Post a comment  •  Comments (8)  
  • Currently 2.33 / 5
  You rated: 1 / 5 (3 votes cast)
 
[8,095 views] Email Article To a Friend View Printable Version
A collection of UNIX tips UNIX
I have compiled a bunch of hints about the Unix underpinnings of OS X, including how to get Sendmail running, making finger work, tons of links, and lots of other useful information.

[Editor's note: Ian has taken his web site off line, but the collection of tips has been posted in the body of this article. If you'd like to see the collection, simply read the rest of this article. There's minimal HTML markup, but there's a lot of good info here. Happy reading!]
read more (524 words)   Post a comment  •  Comments (0)  
  • Currently 2.00 / 5
  You rated: 1 / 5 (4 votes cast)
 
[36,622 views] Email Article To a Friend View Printable Version
Setting up Apache access restrictions per user UNIX
[Editor's note: .htaccess is a means of placing password protection on web sites, and pages within sites. digidoodle had been trying to get it working for each user's individual site on Mac OS X ... here's what he discovered]

I just submitted a question that has been nagging me for days about how to get .htaccess files working, and I just figured out the very simple answer.

I had been spending all my time messing with the setting in the main httpd.conf file, and then realized that in the private/etc/httpd/users directory is a small config file for each user.

This is the file where the following change needs to be made:

AllowOverride none changes to AllowOverride AuthConfig

Every other source I found on the web talked about altering httpd.conf, but changes to this will not effect the pages within any particular user folder. Hope this helps somebody else!

Nate
  Post a comment  •  Comments (5)  
  • Currently 4.20 / 5
  You rated: 2 / 5 (5 votes cast)
 
[13,694 views] Email Article To a Friend View Printable Version
Using BBEdit to work on system files UNIX
No need to learn vi or pico to edit system files, you can use the great BBEdit editor to work on system text files.

Read the rest of this article if you'd like to make it easy to open BBedit from the terminal to work on system files! Thanks to Marc L. for submiting this tidbit!
read more (150 words)   Post a comment  •  Comments (15)  
  • Currently 3.00 / 5
  You rated: 3 / 5 (3 votes cast)
 
[7,220 views] Email Article To a Friend View Printable Version
Install a more powerful 'vi' editor UNIX
VIM ('Vi IMproved') is a replacement for vi that features a ton of enhancements, including colored syntax highlighting for a number of languages (Java, C/C++, HTML, PHP, PERL, etc) and the ability to save edited files as HTML with syntax colors. If you like using vi, you'll love VIM. Thanks to macosxhints reader jpzr, a friend from Poland, for the information on how to get this working! I followed his tips, tweaked a couple of things, and installed it with no problems.

Read the rest of this article if you'd like the step-by-step instructions on installing VIM for OS X. NOTE: You need to have the developer tools installed to compile VIM, and you should be fairly comfortable in the terminal ... then again, if you're using vi, you're probably quite comfortable in the terminal!
read more (335 words)   Post a comment  •  Comments (9)  
  • Currently 3.75 / 5
  You rated: 4 / 5 (4 votes cast)
 
[84,834 views] Email Article To a Friend View Printable Version
Detailed article on Apache, PHP and mySQL UNIX
Webmonkey has posted an in-depth article covering Apache, PHP and mySQL on Mac OS X. It's written with a UNIX novice in mind, and walks you through the steps required to get each application running. It also includes an overview of Tenon's iTools.

A good read, and helpful if you're just getting started with this stuff.
  Post a comment  •  Comments (10)  
  • Currently 4.33 / 5
  You rated: 5 / 5 (3 votes cast)
 
[3,280 views] Email Article To a Friend View Printable Version
Killing a root process UNIX
How can one kill a root-owned process? I installed mysql and have it loading itself automatically on login. However, I need to kill it to reconfigure it and I realized I can't do so. In process viewer it shows that it's running, and that it's owned by root, but it won't let me kill it because I'm not root. If I use terminal and use the su command to become root, it doesn't show the mysqld process, only ps and tsch.

Any ideas how to either kill the process from within OS X or how to switch to the root user in terminal such that I can see the processes?

Thanks. Philip
  Post a comment  •  Comments (13)  
  • Currently 3.33 / 5
  You rated: 4 / 5 (3 votes cast)
 
[15,454 views] Email Article To a Friend View Printable Version
Installing the ArgoUML CASE tool UNIX
If you're a software developer using UML, you may want to know about ArgoUML, an open-source Java CASE tool available from Tigris. It lets you draw different views of your project and such.

Version 0.8.1 appears to work fine using their install steps when running it from Terminal, or you can use MRJAppBuilder to create a clickable application if you have installed the Dev Tools CD.

Read the rest of this article if you'd like instructions on installing ArgoUML on Mac OS X.

read more (157 words)   Post a comment  •  Comments (0)  
  • Currently 2.33 / 5
  You rated: 3 / 5 (3 votes cast)
 
[7,931 views] Email Article To a Friend View Printable Version
Installing the Korn shell UNIX
If you're like me, you are lost without the beloved Korn shell. Oddly enough, it's not included with OSX (of course, that statement most likely points out my lack of knowledge in BSD).

Anyway, I found 'pdksh', and was able to successfully compile it on my OSX 10.0.1 system.

I had to tweak a few things, such as add a .profile to my home directory. You also need to use the Terminal Preferences to change the shell of the shell (?) to /usr/local/bin/ksh. I also updated /etc/shells, although I'm unsure whether or not that was needed.

Try this link - http://web.cs.mun.ca/~michael/pdksh/ - for more information.

Of course, make sure you are root during the install process.

I also might add that I haven't done any extensive testing of the ksh, but so far it behaves as I expected, and also runs various shell scripts I had written on Solaris 2.x.

Good luck!
Frank
  Post a comment  •  Comments (3)  
  • Currently 3.50 / 5
  You rated: 1 / 5 (4 votes cast)
 
[6,970 views] Email Article To a Friend View Printable Version
Using the built-in firewall software (ipfw) UNIX
Mac OS X contains built-in firewall software, known as ipfw. You can use this to protect your machine from outside entry, but it's not trivial nor GUI-friendly. If you want that, go get Brickhouse from Versiontracker.

If you'd prefer to work directly with UNIX, Daniel Cote has published his ipfw configuration file, along with some tips on how to use ipfw in Mac OS X - you can read the article right here.

NOTE: You should really understand exactly what it is you're doing before you going mucking about with the firewall software! For a more simplistic approach, try Brickhouse or any of the hardware routers.
  Post a comment  •  Comments (3)  
  • Currently 3.67 / 5
  You rated: 1 / 5 (3 votes cast)
 
[6,180 views] Email Article To a Friend View Printable Version