淺談蘋果 Location profile, 深入用 command 切換 Location

在蘋果裡面網路設定很好用. 蘋果可以按照你不同地點給予不同網路環境設定profile. 例如, 在家裡撥接ADSL然後撥VPN回公司, 在辦公室用固定ip. 在會議室設定無線網路…etc 不同環境都會有不同的 profile. 甚至, 我在辦公室還有不同 profile. 例如, 上班用固定ip. 然後, 有些特殊情況要用另外一組 ip. 這時候 Location profile 就很好用.

就在 System Preferences (系統偏好) -> Network (網路) -> Location 下拉就可以編輯不同的 profile. 當你編輯好不同情境的 profile 後, 你就可以在蘋果那 選 Location.

當然用滑鼠選比較快. 但是如果要遠端執行切換 profile. 那就要靠 scselect (Select system configuration “location”) 指令來完成

例如, 我要選 Home 那就用下列指令 :

HOST:~ username$ scselect Home
CurrentSet updated to A3F0DE9C-C708-43FE-9D1D-F9230BB31C61 (Home)

如果有不懂. 歡迎留言交流. 我相信我沒有寫很仔細. :$

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.