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

Help with mod_mp3 streaming server UNIX
I have recently tried setting up a MP3 server using mod_mp3, but so far have had trouble streaming my files.

If anyone who has had experience setting this up could please share there experiences and httpd.conf directives, that would be great.
  Post a comment  •  Comments (3)  
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[3,404 views] Email Article To a Friend View Printable Version
How to uninstall UNIX packages UNIX
I was having problems with XFree86, where a window manager i installed caused the whole thing to go kablooey and I wanted to un-install it. After reading this site, I found that the standard way of uninstalling doesnt work because of a bug in the installer. Well, I got the installer to list the files that the .pkg included, and I saved it to a text file. I then opened it up and found that besides the first line of the document, every line contained the name of one file and its path.

Now, while I dont know UNIX or scripting, I do know that there are enough smart people out there to figure out how to write something that will take this file listing and delete them all....Maybe a piped rm thing or something? Any thoughts?

swammifool
  Post a comment  •  Comments (4)  
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[9,213 views] Email Article To a Friend View Printable Version
Compiling snort for OS X UNIX
It may just be paranoia, but I've ahd a rash of anon FTP and other attempts on my systems here after the attack. I've got Brickhouse installed (still new to the use of it) but I wanted to add in some alert security.

SNORT (www.snort.org) is highly recommended from what I hear, but I'm having some trouble getting it to work. I've installed the devTools have tried to compile it (after chaninging the HOST info to "localhost" in the configure file) but I'm getting a make error after the compile...

Read the rest of the article for the error output if you think you can help debug this issue...
read more (132 words)   Post a comment  •  Comments (6)  
  • Currently 2.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[12,492 views] Email Article To a Friend View Printable Version
Another method of changing your hostname UNIX
We all know you can change the host name in OS X through /etc/hostconfig, but that can have problems, such as Apache not working right.

In the Terminal type:
% sudo open -a /Applications/TextEdit.app /usr/share/init/tcsh/rc
In TextEdit look for a line:
set host = `hostname`
change `hostname` to anything you like:
set host = "Big Papa"
There you go, new host name without the hassle of hostconfig.

[Editor: I have not tested this myself, but the rc file does contain the hostname reference. I don't know the implications of changing it here versus editing hostconfig or using NetInfo Manager...anyone have any thoughts?]
  Post a comment  •  Comments (10)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[6,400 views] Email Article To a Friend View Printable Version
Help with CVS on new machine UNIX
I've just bought my new PowerBook G4, throwing away the corporate Intel machine. Working with CVS on my old machine I wanted to continue doing so with my Mac, but... CVS isn't there?

And even if it is there, is it possible to use my old keys, since I use ssh to authenticate, in an easy way?

Or would I have to go back to my Wintel§ on which everything works just fine?

Thankful for any responses.

  Post a comment  •  Comments (5)  
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[2,586 views] Email Article To a Friend View Printable Version
Unlock locked files from the terminal UNIX
In response to a newsgroup request for a way to unlock files from the command line I wrote this script. Note that it uses developer tools SetFile and GetFileInfo (so you'll need the Dev Tools installed for this to work).

Read the rest of the article for the cut-and-paste script and instructions.
read more (148 words)   Post a comment  •  Comments (4)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[29,605 views] Email Article To a Friend View Printable Version
Listserv for X or X server UNIX
Does anyone know of a listserv (mailing list) program that will work under MacOS X, X Server 10.0, or Darwin? If there's not one with a GUI, I'm more than willing to configure and install one under the terminal if necessary, but I want to stay out of Classic for this.
  Post a comment  •  Comments (2)  
  • Currently 2.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[2,551 views] Email Article To a Friend View Printable Version
Random words from the terminal UNIX
Here's a nifty but somewhat useless quickie that will pick random words from the built-in dictionary file:
perl -e 'open IN, "</usr/share/dict/words";rand($.) < 1 && ($n=$_) while <IN>;print $n'
Notes:
  • Inspired by an example in the 'Camel' book and the fact that I couldn't come up with a non-Bash way to generate random numbers from the shell. (Any ideas why there's no /dev/random? It kinda seems that this was a design decision rather than an oversight...)
  • The /usr/share/dict/words exists on most Unix systems. Curiously, the words seem to be different from that of the system-wide spellchecker service built into OSX.
  • You can use the standard backtick operator to plop the word into another cmd-line program.
  • DO NOT *EVER* USE THIS [OR ANY DICTIONARY] TO GENERATE PASSWORDS!
[To the editor: I admit this is sort of off-topic as far as Mac OSX is concerned. Perhaps you can use it when there's a dry spell in hints or as a 'stupid shell tricks' feature.]

[From the editor: Hey, it is a bit slow with everyone awaiting 10.1's arrival, and this is an interesting trick. There are some strange words in the dictionary!]
  Post a comment  •  Comments (4)  
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[7,706 views] Email Article To a Friend View Printable Version
Installation tutorial for xspim UNIX
I have spent the last few days trying to get xspim (a MIPS emulator) to work with OS X and have finally got it going. After spending many frustrating hours on it I figured that I would post how to get it working for the few who might need it (unless you are really into assembler or need it for class or work there is really no point). fyi: download spim from here

Read the rest of the article for detailed installation instructions...
read more (319 words)   Post a comment  •  Comments (1)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[8,041 views] Email Article To a Friend View Printable Version
Adding to the standard library functions? UNIX
Since reading a recent Hint, I'm compiling a C++ scientific computing package to run on OSX and do some parallel calculations on my dual G4 (MPI and OpenMP). It's all working fine except when I turn on a feature that uses the functions drand48() and sdrand48(), which are a random number generator and a seed respectively. In OSX they aren't defined.

On other *nix systems these functions are defined in stdlib.h, and the corresponding library. Taking into account that I have never compiled a library without explicit instructions - is there an easy way to add these functions without doing anything dangerous to the libraries that came with OSX? Could I replace the standard library safely?

I've currently installed bash and rpm if that would shorten the instruction list at all. Thanks for any help,

Joe.
  Post a comment  •  Comments (4)  
  • Currently 4.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[3,099 views] Email Article To a Friend View Printable Version