Jun 12
首先, 先變成管理者模式
# sudo -s
在 /Library -> Preferences -> SystemConfiguration 建立 com.apple.RemoteAccessServers.plist 檔案
# vi /Library/Preferences/SystemConfiguration/com.apple.RemoteAccessServers.plist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?xml version ="1.0" encoding ="UTF-8" ?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version ="1.0" >
<dict>
<key> ActiveServers</key>
<array>
<string> com.apple.ppp.l2tp</string>
</array>
<key> Servers</key>
<dict>
<key> com.apple.ppp.l2tp</key>
<dict>
<key> DNS</key>
<dict>
<key> OfferedSearchDomains</key>
<array />
<key> OfferedServerAddresses</key>
<array>
<string> 168.95.1.1</string>
<string> 168.95.192.1</string>
</array>
</dict>
<key> IPv4</key>
<dict>
<key> ConfigMethod</key>
<string> Manual</string>
<key> DestAddressRanges</key>
<array>
<string> 192.168.x.101</string>
<string> 192.168.x.120</string>
</array>
</dict>
<key> Interface</key>
<dict>
<key> SubType</key>
<string> L2TP</string>
<key> Type</key>
<string> PPP</string>
</dict>
<key> L2TP</key>
<dict>
<key> IPSecSharedSecret</key>
<string> com.apple.ppp.l2tp</string>
<key> IPSecSharedSecretEncryption</key>
<string> Keychain</string>
<key> Transport</key>
<string> IPSec</string>
</dict>
<key> PPP</key>
<dict>
<key> AuthenticatorProtocol</key>
<array>
<string> MSCHAP2</string>
</array>
<key> LCPEchoEnabled</key>
<integer> 1</integer>
<key> LCPEchoFailure</key>
<integer> 5</integer>
<key> LCPEchoInterval</key>
<integer> 60</integer>
<key> Logfile</key>
<string> /var/log/ppp/vpnd.log</string>
<key> VerboseLogging</key>
<integer> 1</integer>
</dict>
<key> Server</key>
<dict>
<key> Logfile</key>
<string> /var/log/ppp/vpnd.log</string>
<key> MaximumSessions</key>
<integer> 128</integer>
<key> VerboseLogging</key>
<integer> 1</integer>
</dict>
</dict>
</dict>
</dict>
</plist>
記得把 OfferedServerAddresses裡面的值改成你要指定的dns server位址. 還有把 DestAddressRanges 內的值改成你要發放的 IP 位址
指定 root:wheel 到 com.apple.RemoteAccessServers.plist檔案
# chown root:wheel /Library/Preferences/SystemConfiguration/com.apple.RemoteAccessServers.plist
建立好vpn的log檔案
# touch /var/log/ppp/vpnd.log
設定 secret 密碼到 system keychian
security add-generic-password -a com.apple.ppp.l2tp -s com.apple.net.racoon -p “TOP_SECRET” /Library/Keychains/System.keychain
打開 Utilities -> Keychain Access 程式 右上方 搜尋 racoon
點選”Access Control” Tab
打勾”Allow all applications to access this item”
設定撥號進來的帳號密碼 :
# vi /etc/ppp/chap-secrets
1
"YOUR_ACCOUNT" * "YOUR_PASSWORD" *
# vi /etc/ppp/users.plist
1
2
3
4
5
6
7
8
9
10
11
12
<?xml version ="1.0" encoding ="UTF-8" ?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version ="1.0" >
<array>
<dict>
<key> Password</key>
<string> YOUR_PASSWORD</string>
<key> User</key>
<string> YOUR_ACCOUNT</string>
</dict>
</array>
</plist>
記得將 YOUR_ACCOUNT & YOUR_PASSWORD 改成你要設定的帳號密碼.
然後啟動vpn
# vpnd
這樣vpn就能運作了
如果你要讓vpn每次開機都啟動, 就要設定 /etc/hostconfig 檔案. 在檔案的最末端加入下列設定
VPNSERVERS=-YES-
Tagged with: apple • mac • Macintosh • tips
May 30
先看一下今年2月的時候這個胖子(Skype CEO)說什麼 ?
來源 : An update on Skype for iPhone and calling over 3G
記者問 : skype over 3g 哪時候會有
胖子回答 : 很快就會有了. (it’s gonna coming real soon, now)
很拔辣吧. 我從二月初等到現在五月底. 這個叫做 real soon. OOXX. 不過最後還是出來了 2.0.0 版本
這是直接透過 Skype over 3G 網路撥打的狀況. 品質其實還不錯.
打完之後就出現這個畫面. 提醒我們只能免費到8月. 這時候心中又開始”暗”起來了.
看了說明之後, 心裡又更”暗”了. 不是skype out都花錢買了.這個軟體還要收月費. 至於 small monthly fee 不知道每個月是多少錢? 看來之後真的得 JB 了.
What’s New in Version 2.0.0
Upgrades / improvements include:
- Call using your 3G connection. Skype-to-Skype calls on 3G are free until at least end of August 2010, after which there will be a small monthly fee (operator charges for data will still apply).
- Near CD-quality sound for Skype-to-Skype calls using wideband audio (SILK codec) on iPhone 3GS and 2nd generation iPod touch.
- Enhanced call quality indicator.
- Improved start-up time.
- Fast access to the dial pad from iPhone home screen.
Tagged with: iphone • mac • skype
May 19
1. 直接改密碼 :
開機後按 Command-S, 然後輸入下列指令. username 改成你的username. password 改成你要的密碼
# fsck -fy
# mount -uw /
# launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
# dscl . -passwd /Users/username password
# Reboot
2. 直接取得 root 權限 :
開機後按 Command-S, 然後輸入下列指令
# fsck -fy
# mount -uw /
# passwd
# exit
之後用 root 登入, 再去重設其他 user 密碼
3. 欺騙註冊程序 :
開機後按 Command-S. 輸入下列指令
# fsck -fy
# mount -uw /
# rm /var/db/.AppleSetupDone
# shutdown -h now
重新開機後, 要輸入註冊資訊. 有點小麻煩
Tagged with: apple • mac • tips • 蘋果秘計
May 19
打開 Terminal 輸入下列指令就可以了 :
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1
這樣在 System Preferences -> Time Machine 就可以設定你要用 SMB or AFP 備份.
如果要取消, 輸入下列指令 :
defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 0
Tagged with: mac • tips • 蘋果技巧
May 08
這裡有30組 promotional codes :
特別謝謝 mobile01 的網友熱情支持!!
KKMJYFXFJKL6
3XMPX99MEJEE
63KFJ9YRFE63
EP63FLF9X7N6
FME9AMWMATXL
3RFEKMJJRKLM
MN97RAWXAN6K
HKKTJY6F9LLH
FAHFE7P396YK
YKXLXLK9L3YN
4LWHWE7JNXH4
KXKMEF9KK6XW
6EF4F4L9XKJN
LKT3NJJAWKLR
XH799L3R6ETW
6WP3LE9EER47
6PP6PMWXJTFA
W9JP47MMPNAL
WN7LKT6Y3LN4
4RWWRA67JETJ
346XNAF7HWWM
7JLYW7HMP3EL
FP693FAKFTLH
HFHTY7HKN7JN
EK34WEAWKP7Y
PFTY4RY4HJ4Y
KFXL9A7PP7W6
PA9PRFF3F9JH
P36HR79MXN3J
9YJ463XAWX47
您必須要有美國 iTunes 帳號才能使用. 為了不照成網友的麻煩. 如果您使用了請留言. 謝謝您的配合!!
如果您覺得使用上有什麼問題歡迎留言或是寄信到 iphone ‘at’ liho.tw , 也當然如果您愛用也歡迎您推薦您的親友. 還有也期望您不吝嗇的給予正面的評價. 謝謝.
Tagged with: iphone • mac
May 07
這張是用iPhone內建的照相軟體拍的.裡面可以 Room.
Room到這種地步, 還意外的發現頭髮
蘋果鍵不見了.只剩下蝴蝶
拍攝小技巧 : 長按螢幕 Room 的捲軸就出現了.
補充一下, iPhone OS 4 beta 3拍照速度很快.拍了馬上就儲存.
Tagged with: iphone • mac
Feb 02
Pre-release pTunes widget for test. So far, it only supports 759 songs lyrics. Searching rest of songs lyrics rely on Google. If you would like to search who’s album, please reply a comment. I will add it for you.
目前只能收尋759首歌詞. 其他就要靠 Google. 如果你想搜尋誰的專輯. 請留言會優先處理.
Download : pTunes widget 0.1p
Tagged with: apple • mac • Widgets
Jan 24
一切還沒完成. 還在努力中.
so far, the pTunes Widget is not finished yet. it’s still under construction.
相關閱讀 : pTunes (Preview)
Tagged with: apple • mac • Macintosh • pTunes • Widgets
Jan 14
在蘋果裡面網路設定很好用. 蘋果可以按照你不同地點給予不同網路環境設定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)
如果有不懂. 歡迎留言交流. 我相信我沒有寫很仔細. :$
Tagged with: apple • mac • Macintosh • tips • 蘋果技巧
Jan 01
分享 :
如何在蘋果電腦的 iCal 訂閱?
在選單上找 Calendar ->Subscribe…
然後貼上上列 iCal 的連結
自定一些你喜歡的設定
最後就可以在 iCal 內看到農曆
Tagged with: apple • mac • share
Recent Comments