A question on the Macaddict forums asked how to disconnect other users from an OS X machine using the terminal. One method, courtesy of an experienced UNIX-using friend of mine, is as follows:
1) Type ps aux | grep username, where username is the short name of the user you wish to disconnect.
2) Look for the shell process for the user in question in the 'ps' output. If your users use the standard (tcsh) shell, the process name will be -tcsh (tcsh).
3) Note the process number in the second column. For this example, assume it's 123.
4) Type kill -15 123, where 123 is the actual process number you found in step two. My admittedly poor interpretation of this step is that it attempts to nicely end the processes associated with the user. I'm sure that's not completely correct, but it is the general idea.
5) Type kill -9 123, where 123 is the actual process number from step two. This will end the user's session for certain.
I haven't tried this one myself yet, but I fully expect it will work. Are there other (easier, cleaner?) ways to log out a user from the terminal?
Alongside Quake3, Tomb Raider is probably one of the more popular Mac action games. I noticed tonight that Aspyr has released a demo of the new Tomb Raider Chronicles for both OS 9 and OS X. After downloading and playing with the new OS X demo, I have to say I'm impressed. I was never a Tomb Raider fan, but the demo runs very smoothly on my box (admittedly a high-end machine), even at 1024x768 in 32-bit color.
Although it's relatively simple (by editing three PDF files) to change the background of the dock, it still retains a dark-colored border line. There's been some discussion on various forums about how to eliminate the border, and it appears that this has now been accomplished!
'kfel' has posted TransparentDock, which will give you three different transparency settings for your dock, including completely transparent. Make sure you visit kfel's home page for some important notes about TransparentDock, as well as some links to other useful utilities he (she?) has written.
[Editor's note: Submitted by jpbjpbjpb on July 6th.]
I got frustrated when I realized my TiBook was not rebuilding its locate database, then realized it was because it sleeps over night when all the cron tasks are scheduled to run.
What it does
Tempus gets run from cron every 10 minutes, if the machine is awake. When tempus runs, it checks its database to find out when the last time each task was run. If the last run was longer ago than the time specified in the task, it runs the task.
To get tempus to work, you'll need to have python (and make sure its the unix version of python, not MacPython) correctly installed. You will also need to have the developer tools installed if you wish to use the easy installation option found in INSTALL.
[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.
[Editor's note: Submitted by ehintz on July 6th. This story is great news for those of you using non-Apple wireless cards to access your network. Check out the referenced MacNN forum for some great info about the drivers and how they came to be!]
Open source OS X drivers are now available for Lucent's WaveLAN cards. Instructions for installation can be found in this MacNN forum.
[Editor's note: Submitted by Nick Jones on July 5th.]
I had just downloaded a rather large mpg of A Perfect Circle performing on Conan the other night, and was trying to see what brand of drums Josh Freese uses.
I had paused the clip, and accidentally pushed the scroll wheel on my Logitech scrolling mouse forward one "click".
Much to my amazement, the video advanced one frame. This works backwards and forwards and is very smooth and exact on a B&W G3 400/512.
For all you DV editors out there using MoviePlayer for playback, this is an awesome way to simulate a jog wheel on a break out box on the cheap. I haven't checked to see if this works in iMovie as well but I would bet it does...
[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.]
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:
[Editor's note: Submitted by Tony Williams on July 5th. I have not personally tested this script yet, so use at your own risk.]
I did some hacking and testing of robh's Perl script to auto change the desktop picture. Step one was to fix the way it killed the Desktop rather than the Finder (much safer). The other was to fix the handling of the file URL so that it worked with all Mac file names, including ones with spaces or other characters.
Read the rest of this article if you'd like the new and improved script.