Ads 468x60px

Pages

2010年1月22日 星期五

Mac OS X Server v10.6: Starting up with the 32-bit or 64-bit kernel

Summary

Mac OS X Server v10.6 Snow Leopard includes a new 64-bit kernel that increases performance and scalability on supported hardware. On hardware that supports the 64-bit kernel, you can choose whether to start up (boot) your server using the new 64-bit kernel or the earlier 32-bit kernel.

Note: To determine whether or not your server can use the 64-bit kernel, and which kernel it uses by default, see this article.

Products Affected
Mac OS X Server 10.6

You can use either of these methods:

Method 1: Startup key combination (for current startup only)

  • If your server uses the 32-bit kernel by default, but supports the 64-bit kernel, you can start up using the 64-bit kernel by holding the 6 and 4 keys during startup.
  • If your server uses the 64-bit kernel by default, you can start up with the 32-bit kernel by holding the 3 and 2 keys during startup.

Your server will revert to the default kernel the next time you reboot it.

Method 2: On-disk setting (persistent)

To select the 64-bit kernel for the current startup disk, use the following command in Terminal:
sudo systemsetup -setkernelbootarchitecture x86_64

To select the 32-bit kernel for the current startup disk, use the following command in Terminal:
sudo systemsetup -setkernelbootarchitecture i386

Note: This setting is stored in the /Library/Preferences/SystemConfiguration/com.apple.Boot.plist file and will take effect every time you start up from this disk. If you start up from a different disk, the setting on that disk, or the hardware default, will take effect.

Additional Information

  • Keys held during startup (such as 3-2 or 6-4, method 1 above) will override the setting in com.apple.Boot.plist (method 2 above).

如何克服公司檔我 facebook on MacBook

Configure Routing Table For Facebook in MAC OSX by Kevin.L

It's very troublesome while you need to access both Facebook and internal resources.
You need to switch internet connection to acheive this manually.
You only need to execute the following command in TERMINAL.
After that you don't have to switch between connections anymore.
PS: You need to connect to wireless SSID: muchiii_lab_dir685(hinet) first.

sudo route  add -net 69.63 192.168.0.1 255.255.0.0

關機時,自動設定
1. 增加一個目錄 AddRoutes 到 /Library/StartupItems/
2. 在 AddRoutes/ 目錄下,新增一個檔案叫 StartupParameters.plist
        Description     = "Add static routing tables";
        Provides        = ("AddRoutes");
        Requires        = ("Network");
        OrderPreference = "None";

3. 在 AddRoutes/ 目錄下,新增一個檔案叫 AddRoutes (沒錯,它跟目錄名稱一樣)
#!/bin/sh
# Set up static routing tables
# Roark Holz, Thursday, April 6, 2006

. /etc/rc.common

StartService ()
{
        ConsoleMessage "Adding Static Routing Tables"
        /sbin/route add -net 69.63 192.168.0.1 255.255.0.0
        /sbin/route add -net 66.220 192.168.0.1 255.255.0.0
}

StopService ()
{
        return 0
}

RestartService ()
{
        return 0
}

RunService "$1"