Shang Ning’s Blog

How to boot up Mac OS X in console mode

Tags:
This entry was posted on Sunday, May 18th, 2008.

I have a Mac Mini conputer and it is too slow to do anything, because there is only 256MB memories and the free memories is few when the Aqua running.

So, I think I can DIY it into a server, just booting up in console mode, and running the Apache, Mysql, PHP and Perl on it.

There are the steps:

First, running SSH server on it, you can login the Mac OS in another conputer in SSH. If you do anything wrong, you can login in another computer and recover the modification.

Then, edit the file “/etc/ttys”, found two lines below:

# console “/usr/libexec/getty std.9600″ vt100 on secure
console “/System/Library/CoreServices/loginwindow.app/loginwindow” vt100 …

Delete the # character from in front of the first line, and place a # character in front of the second line. Then save the file.

Third, delete (or move) the file “/etc/mach_init.d/WindowServer.plist”.

Now, restart your Mac and you will find it is running in the console mode :D

Some friends did not do the third step, so they can not book up Mac in console mode, and their Mac OS stopped in a blue screen, just login in Root in ssh with another computer, and done the third step, then your Mac will be startup again.

When my Mac became a server, the free memories incresase to more than 100MB, now, I installed a lot of interesing servers on it, cool~


Leave a Reply