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

MySQL 3.23.45 fixes shutdown problem UNIX
One of the big problems that anyone who wants to use MySQL on OS X faced until now was the inability to safely shutdown the MySQL daemon. Version 3.23.45 was released in the last day or so and fixes this long-standing bug. More information on the changes since the previous version can be found here.

I've downloaded and compiled this version from the source code using some pretty standard configuration options (see below for what I did) and everything appears to be working wonderfully.

Here's the breakdown of my configuration options:
./configure 
--enable-assembler
--prefix=/usr/local/mysql
--with-named-z-libs=/usr/local/libz.a
--with-innodb
--with-mysqld-user=mysql
Then just run the make and make install commands to compile and install the new binaries. I suspect Marc Liyanage will shortly post a precompiled binary installation but if you're somewhat impatient like me, you can always go this route.

As always, more information can be found on the MySQL website.
  Post a comment  •  Comments (4)  
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[4,314 views] Email Article To a Friend View Printable Version
Colorized 'ls' in the Terminal UNIX
I was talking to someone over on MacSlash and they commented that their 'ls' command didn't output in color. Hmmph...mine did. I looked and found that I had some "carry-overs" in my .cshrc file from my SGI box. To give yourself colorized 'ls' add the following lines to the end of your .cshrc (if you are using tcsh as your default shell):
  alias ls 'ls-F'
setenv LS_COLORS 'di=35:fi=0:ex=31:or=90'
set color
You can change the colors and/or styles for different types of files by using the variables on the second line. Linux StepbyStep provides a good reference guide on color setting.

Hope everyone enjoys their color!
  Post a comment  •  Comments (6)  
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[3,962 views] Email Article To a Friend View Printable Version
A perl script for managing shared folders UNIX
When I first read the tip about sharing different folders, I thought surely someone will come out with something, and I was right, SharePoints came out, but it was lacking some functions I wanted, like restarting AppleShare.

So I started working on a tool in perl to take care of it for me until a newer version of SharePoints came out that would address these issues. While sharepoints is a great tool with a nice GUI, its new version still lacked this functionality, so I decided to post this one in case anyone wanted to use it.

Read the rest of this article if you'd like to see the script and how to use it...
read more (329 words)   Post a comment  •  Comments (0)  
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[8,705 views] Email Article To a Friend View Printable Version
Compiling and installing the latest OpenSSH UNIX
If you've tried to compile and install openssh yourself, chances are you got the error "Built against 90581f, you have 90602f" that happens when you try and build a new version of OpenSSH."

Most people just punt and stick with the older version of openssh provided with Mac OS 10.1. The trick to compiling openssh so it doesn't give that error is to completely remove the openssl installation and rebuild and install it from source.

The openssl source can be found at Apple's Open Source website. Beware though, the installer doesn't copy over all the header files. You'll need to manually put them in your include/openssl/ directory.

Once you've succesfully done that, you're all set to install the latest version of openssh (3.0.1p1) without any openssl mismatch problems!
  Post a comment  •  Comments (1)  
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[7,725 views] Email Article To a Friend View Printable Version
A primer on using 'jot' in UNIX UNIX
I am new to Mac OS X but come from the FreeBSD world so I'm having fun finding out what is here and what isn't. I just realized that one of my favorite tools, 'jot', is here and I wanted to point this out to people. jot allows you to print sequential and random data. More specifically, it allows you to do some really cool things in the shell. Let me give you an example.

I am a big fan of the online music trading organization Etree. There are well-established ways of organizing and naming the concerts that are traded. Occasionally I'll come across a downloaded show that doesn't follow the scheme. Say there are several songs from a Phish show named something like '2001-05-26-phish-d1t1.shn'. The correct format should be 'ph01-05-26d1t1.shn' It would be a real pain in the ass to rename them, right? Well, with jot the answer is a resounding "NO!"

Read the rest of this article for a great primer on using 'jot'...
read more (657 words)   Post a comment  •  Comments (5)  
  • Currently 5.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[13,393 views] Email Article To a Friend View Printable Version
Exit XWindows cleanly from console mode UNIX
If you use the XDarwin implementation of the X Windows system from console mode (logging in as >console and bypassing Quartz), you might notice that (on my machine at least) exiting X gives you a blank screen and a spinning rainbow cursor. The computer looks frozen, but in fact is still accepting input: typing "exit" or "logout" at this point will bring you back to the login window after a brief pause.

If you find this a little less than smooth, as I do, you can preface your "startx" command line with the "exec" command like this:
exec startx [X startup options ...]
This little UNIX trick starts X while ending your logon shell, instead of just running X as a child process of your shell. The upshot is that when you exit X, you're immediately returned to the login window, instead of having to type unechoed characters to a beachball. A minor tip, to be sure, but it makes running X from the console a little more elegant.
  Post a comment  •  Comments (2)  
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[5,048 views] Email Article To a Friend View Printable Version
Using Mail.app with sendmail in 10.1.1 UNIX
OK, so I was getting a UNIX account in Mail.app to pick up the mail in /var/mail/geoff when it was first set up, then it would fail to pick any more up after that.

If you have had a similar problem, read the rest of the article for the solution...
read more (393 words)   Post a comment  •  Comments (0)  
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[4,020 views] Email Article To a Friend View Printable Version
Great UNIX reference source UNIX
I have been looking for a good, easy to navigate, yet extensive UNIX reference. I finally found one here: http://wks.uts.ohio-state.edu/

I must say that I did not find this myself - it was recommended on a MacNN forum that I started discussing creating shell scripts.

[Editor's note: I've also added the link to the Links collection here for easy future access.]
  Post a comment  •  Comments (1)  
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[2,668 views] Email Article To a Friend View Printable Version
Use SSH with ProjectBuilder's SCM feature UNIX
This document describes how to set up CVS using SSH on a client computer and using Project Builder's SCM feature for version management. It assumes that CVS and SSH are already set up on the server that you will be checking your code out from. It is desirable to use SSH because CVS transmits usernames and passwords in clear text otherwise.

If you'd like the how-to, read the rest of the article...
read more (475 words)   Post a comment  •  Comments (7)  
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[8,343 views] Email Article To a Friend View Printable Version
Stop typo correction suggestions UNIX
Let's say you're typing a command, and you do a typo. The shell will offer you a correction ... for example, you type:
pinge
and it'll ask you:
OK? ping?
If you don't like that, these commands will stop it from suggesting typo corrections:
unset autocorrect
unset correct
You can put those in whatever appropriate .tcshrc file or such-like place you keep such things. BTW, use at your own caution ... I'm a total Unix newbie who swiped this off a Google search result, and I take NO responsibility for absolutely anything in the whole wide world. ;-)

[Editor's note: If you'd like to re-enable the typo corrections, simply use set autocorrect and set correct. You'll need to close and re-open a Terminal window for the changes to take effect. And I think these commands are generally safe to use :-)]
  Post a comment  •  Comments (2)  
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[3,021 views] Email Article To a Friend View Printable Version