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?
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...
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?]
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?
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.
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.
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!]
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...
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,