snow leopard 修改mac地址
命令行下执行:
sudo ifconfig en0 ether xx:xx:xx:xx:xx:xx
这个命令在leopard 下是无效的。没想到在snow leopard下又重新能用了。
命令行下执行:
sudo ifconfig en0 ether xx:xx:xx:xx:xx:xx
这个命令在leopard 下是无效的。没想到在snow leopard下又重新能用了。
1. 打开sudo配置文件
命令行下执行:
visudo
2. 将配置文件中
%wheel ALL=(ALL) NOPASSWD: ALL
的注释去掉
3. 将本机用户加入到wheel组
命令行下执行:
dscl . -append /Groups/wheel GroupMembership zhangwenjin
4. 注销后配置就生效了。
Macfusion 能将远程服务器的sftp,ftp映射成本地一个文件系统。对于经常需要改动服务文件的同学有福气了。
macfusion 主界面
添加一个新的sftp
挂载后的效果
挂载后就能像在本地一样编辑删除文件了。类似的项目还有http://code.google.com/p/macfuse/
ical现在已经可以和google calendar 同步了。完全支持中文。
设置方法参考 http://www.google.com/support/calendar/bin/answer.py?answer=99358
设置好同步后,在ical添加一个事件,如图:
访问google calendar,可以看到事件已经同步到google calendar。
将google的事件设置为默认短信提醒,这样每个事件都能收到短信提醒。
好了。google的短信提醒如下:
msmtp是一个命令行的smtp客户端。可是php等脚本调用。
使用默认邮件服务器发送邮件容易被当作垃圾邮件,如果执行使用php进行smtp邮件发送效率太低。msmtp可以作为中介,在google申请一个企业邮箱专门用于网站发邮件,还不用担心邮件被用户当垃圾邮件。
本安装方法在Mac OS leopard操作系统下测试成功。
1.安装MacPort
请到http://www.macports.org下载最新MacPort安装包。
macport会默认安装到/opt/local/bin目录下。
2.打开一个shell窗口:
执行echo $SHELL。
如果bash shell 则执行
echo “export PATH=$PATH:/opt/local/bin” >> ~/.profile
重新开启bash shell使设置变量生效。
3. 执行 sudo port intall msmtp
msmtp安装完成后,执行 touch ~/.msmtprc
以下为.msmtprc的模板:
#Set default values for all following accounts
defaults
tls on
tls_trust_file ~/msmtp/ca-certificates.crt
logfile ~/msmtp/msmtplog
# Gmail service
account gmail
host smtp.gmail.com
from xxx@gmail.com
auth on
user xxxx
password xxxxxx
#port 587 #可要可不要的
# A freemail service
#account freemail
#host smtp.freemail.example
#from joe_smith@freemail.example
#auth on
#user joe.smith
#password secret
# A second mail address at the same freemail service
#account [...]