<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ### 設置Mac OS X 10.5 Leopard打開NetBoot服務 注: 無論是[Mac OS X: 實用腳本程序(bash scripts)系列-4](http://blog.csdn.net/afatgoat/archive/2009/07/04/4321379.aspx),還是這里的腳本,都是在默認的當前系統的根/下面設置NetBoot的,也就是在/Library/NetBoot目錄里面,通過修改可以變更這個目錄到其它的分區/盤的其它目錄中。 ? 簡單介紹NetBoot服務,NetBoot/NetInstall服務用于網絡啟動Mac電腦/安裝Mac系統的服務,它的啟動功能如同無盤工作站,而安裝可以即時網絡更新客戶端的Mac操作系統。 ? <table id="ep:e" style="width: 100%;" border="1" cellspacing="0" cellpadding="3" bordercolor="#000000"><tbody><tr><td width="100%"><span style="font-family: Courier New; color: #660000;">#!/bin/bash</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">#This script sets up netbooting on a Leopard (Client) machine.</span><br style="font-family: Courier New; color: #660000;"/><br style="font-family: Courier New; color: #660000;"/><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;"># START WITH SOME SANITY CHECKS</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;"># -----------------------------</span><br style="font-family: Courier New; color: #660000;"/><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;"># Make sure only root can run our script</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">if [ "$(id -u)" != "0" ]; then</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">??????? echo "You must run this script as the root user.? (Try /"sudo $0/")"</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">??????? exit 1</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">fi;</span><br style="font-family: Courier New; color: #660000;"/><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;"># check that this is Mac OS X Leopard (Client)</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">if [[ "`sw_vers -productName`" != "Mac OS X" ]] || [[ "`sw_vers -productVersion`" &lt; "10.5" ]]; then</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">??????? echo "The script is designed to be run on Mac OS X Leopard, on a non-server version."</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">??????? exit 2</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">fi;</span><br style="font-family: Courier New; color: #660000;"/><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">echo "Make sure Internet Sharing is turned OFF Before continuing! (System Preferences &gt; Sharing)</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">Press Enter to continue."</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">read junk</span><br style="font-family: Courier New; color: #660000;"/><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;"># CREATE DIRECTORIES AND SIMLINKS NEEDED FOR NETBOOTING</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;"># -----------------------------------------------------</span><br style="font-family: Courier New; color: #660000;"/><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">mkdir -p /Library/NetBoot/NetBootSP0</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">mkdir /Library/NetBoot/NetBootClients0</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">chown root:admin /Library/NetBoot/NetBoot*</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">chmod 775 /Library/NetBoot/NetBoot*</span><br style="font-family: Courier New; color: #660000;"/><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">cd /Library/NetBoot</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">ln -s NetBootSP0 /Library/NetBoot/.sharepoint</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">ln -s NetBootClients0 /Library/NetBoot/.clients</span><br style="font-family: Courier New; color: #660000;"/><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;"># EXPORT NETBOOTING FOLDERS OVER NFS (NETWORK FILE SYSTEM)</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;"># --------------------------------------------------------</span><br style="font-family: Courier New; color: #660000;"/><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">echo "/Library/NetBoot/NetBootSP0 -ro" &gt;&gt; /etc/exports</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;"># Note that as soon as the file changes, the OS restarts the NFS daemon</span><br style="font-family: Courier New; color: #660000;"/><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;"># CREATE DIRECTORIES AND SIMLINKS NEEDED FOR NETBOOTING</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;"># --------------------------------Boot</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">ln -s /Library/NetBoot /private/tftpboot/NetBoot</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">service tftp start</span><br style="font-family: Courier New; color: #660000;"/><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;"># SET UP BSDP (BOOT SERVICE DISCOVERY PROTOCOL)</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;"># ---------------------------------------------</span><br style="font-family: Courier New; color: #660000;"/><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;"># Create the /etc/bootpd.plist file.</span><br style="font-family: Courier New; color: #660000;"/><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;"># This file below is based on information from the bootpd man page.</span><br style="font-family: Courier New; color: #660000;"/><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">echo '&lt;?xml version="1.0" encoding="UTF-8"?&gt;</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">&lt;plist version="1.0"&gt;</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">&lt;dict&gt;</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">??????? &lt;key&gt;bootp_enabled&lt;/key&gt;</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">??????? &lt;string&gt;en0&lt;/string&gt;</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">??????? &lt;key&gt;netboot_enabled&lt;/key&gt;</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">??????? &lt;string&gt;en0&lt;/string&gt;</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">??????? &lt;key&gt;old_netboot_enabled&lt;/key&gt;</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">??????? &lt;string&gt;en0&lt;/string&gt;</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">&lt;/dict&gt;</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">&lt;/plist&gt;' &gt; /etc/bootpd.plist</span><br style="font-family: Courier New; color: #660000;"/><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">service bootps start</span><br style="font-family: Courier New; color: #660000;"/><br style="font-family: Courier New; color: #660000;"/><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;"># WE ARE FINISHED</span><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;"># ---------------</span><br style="font-family: Courier New; color: #660000;"/><br style="font-family: Courier New; color: #660000;"/><span style="font-family: Courier New; color: #660000;">echo"NetBoot setup script complete. Please make sure to add the NetBootSP0and NetBootClients0 folders to your Shared Folders (System Preferences&gt; Sharing &gt; File Sharing)."</span><br style="font-family: Courier New; color: #660000;"/><br/></td></tr></tbody></table> ?
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看