然後/usr/sbin/smbd -no-symlinks
$sudo launchctl unload /System/Library/LaunchDaemons/com.apple.smbd.plist $sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.smbd.plist
然後/usr/sbin/smbd -no-symlinks
$sudo launchctl unload /System/Library/LaunchDaemons/com.apple.smbd.plist $sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.smbd.plist
pwpolicy -u SomeUser -sethashtypes SMB-NT on dscl . -passwd /Users/SomeUser "UserPassword"
setenv CLICOLOR 1 setenv LSCOLORS ExGxFxdxCxDxDxBxBxExEx
<?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>Label</key><string>VsMdaAgent</string> <key>ProgramArguments</key> <array> <string>/usr/local/bin/node</string> <string>/usr/local/bin/vs-mda-remote</string> <string>--secure</string> <string>false</string> <string>--serverDir</string> <string>/Users/VsMdaAgent/remote-builds/builds</string> </array> <key>KeepAlive</key><true> <key>LaunchOnlyOnce</key><true> <key>UserName</key><string>VsMdaAgent</string> </dict> </plist>然後測試一下:
啟動 launchctl load -F /Library/LaunchDaemons/tw.com.skymirror.vs-mda-remote.plist 停止 launchctl load -F /Library/LaunchDaemons/tw.com.skymirror.vs-mda-remote.plist看一下 /var/log/system.log 有沒有錯誤訊息,然後 netstat -an |grep 3000 看有沒有跑起來。重開看看運作正不正常。
/usr/local/lib/ruby/2.1/tmpdir.rb:34:in `tmpdir': could not find a temporary directory (ArgumentError)就把 /tmp 的 Sticky bit 加上去吧
chmod +t /tmp最近怎麼老是被 server 咬呢 :~~
email_delivery: delivery_method: :smtp smtp_settings: enable_starttls_auto: true address: "smtp.gmail.com" port: 587 domain: "your.domain" authentication: :plain user_name: "youraccount@your.domain" password: "yourpassword"
email_delivery: delivery_method: :sendmail sendmail_settings: arguments: '-i'後看一看 maillog 有這常運作的話就可以收工了。 這樣總不會又被 google 把信丟到黑洞裡去了吧.....。
mkdir -p /usr/local/etc/pkg/repos vim /usr/local/etc/pkg/repos/FreeBSD.conf --- FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest", mirror_type: "srv", enabled: yes } ---然後就可以愉快的使用 pkg 了。
freebsd-update upgrade -r 9.3-RELEASE freebsd-update install
portmaster portmaster pkg
portmaster -a