Some people (such as myself) have the need to run OS X services (such as Apache, ftp, ssh, telnet) on alternate ports. In my case, my router has a mini-http server, so I can't use port 80 for Apache, and my ISP blocks all ports below 1000 to prevent servers.
How do you work around this in OS X? For Apache, it's fairly simple. From a terminal session, edit (note: edits referred to in this article should be done as the root user; 'su' before editing!) the file /Library/Web Server/Configuration/apache.conf, and find the line that reads "Port 80." Replace 80 with the port you would like to use -- keep in mind that visitors to your site will have to enter:
(where portnum is the number you chose)in order to see your pages.
[Editor's note: See the comments for a suggestion or two...]
Not sure what happened -- OS X hung, then after two hours of trying various things and then leaving it alone, the system displayed a kernel panic message and rebooted, after I pressed "r" as prompted. I finally had to clear the p-ram for the thing to even boot into OS 9. I followed Apple's instructions in the TILs and booted into single user mode after using the System Disk utility BUT ... fsck won't fix the error it finds: "Problem: Invalid LEOF, 28239, 1024"!!! And yes I've made sure to try -f -y -b16, etc.
It will boot into OS X if I let it (quite unstable and I don't like forceably rebooting Un*x boxen); and when the OS X disk utility is used to verify my OS X volume, it reports the exact same error. I even tried running Disk Doctor after booting into OS 9 but it can't fix the error either ... sigh =(
Am I out of luck, do I have to reinstall? Anyone have any suggestions or run into the same problem? Anyone know what to do in the future to avoid this type of problem?
Although it hasn't received much coverage, the services menu appears to be one of the niftier features of OS X. To get a brief example of how it works, open the Mail application, pick any message, reply to it, and select all the text. Make sure Terminal is also running, although you don't need to have a session open.
Under the Mail menu, select Services, then Terminal, and finally Word Count. All your text will be replaced by a series of three numbers - 7 57 362, in the test I ran. This translates to 7 lines, 57 words, and 362 characters.
For a second demo, start a new email message, and pick Time under the Terminal services menu. The current date and time will be pasted in your email.
Although these are neat demos, the real power appears to lie in the fact that we will (hopefully!) be able to add our own services in the final release. To see what this could look like, look at the Terminal Services menu under Terminal in the (you guessed it!) Terminal application.
Since the terminal application has incredible power, the ability to add a service which will then be available to any application seems like a very useful thing!
I added a test service, but I haven't been able to make it show up in the services menu in other apps yet, but I'll post something if I do.
[Editor's note: Please see the comments for the proposed solution]
I'm using OS X Public Beta as my primary web development environment - that is I develop the html/code using my OS X box. Now, my web servers and my desktops are behind a firewall and DNS hosting has been outsourced to AT&T, so resolving my webservers' URLs "within" my network isn't possible without modifications being made to a desktop's hosts file. Under Windows and Mac OS 9 its easy -- just make the changes to the file. But the hosts file I found in "/etc" under OS X says it "isn't used" and modifications don't take hold.
Does anyone have a suggestion or know the right way to go about doing this?
[Editor's note: See the comments for some recommendations!]
Are there any good tutorials on this? I''m looking into this right now... and am having difficulties finding info on RTSP and Poster Movies / Embedding the Quicktime in web pages... I heard a term today... packetizing?
Any good sources of info on this stuff? Does anyone think Apple will bundle this with OSX 1.0?
[Editor's note: Lots of good info in the comments!]
I'm a new user to OSX, and for that matter Macs too. People keep talking bout how they need help understanding the unix command line, and I understand that (it wasn't that long ago I was in the same boat), But I'm the opposite... A Unix user looking for power tips on macs. I've only had small amounts of experience with macs and am wondering about the advanced features like configurations, cool quick keys, etc.
Could you also point me to resources on the developer side of Macs as well that would be much appreciated. (ie. what the heck is zapping the P RAM anyways- Aussies insert joke here-, or a developer button?!?)