$ yum install ntp -y
find out your timezone, as my case I used SGT. (/usr/share/zoneinfo/Asia/Singapore)
$ ll /usr/share/zoneinfo
$ chkconfig ntpd on
$ /etc/init.d/ntpd start
sync the time manually
$ ntpdate pool.ntp.org
Wednesday, April 24, 2013
Ubuntu Relaying Postfix SMTP (gmail)
The purpose is to sent mail through my Linux laptop with mailutils...
1. # apt-get install postfix
2. Edit /etc/postfix/main.cf by edit any exist entry as below values:
relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes
3. Saved your gmail authentication info to /etc/postfix/sasl_passwd as below:
[smtp.gmail.com]:587 user.name@gmail.com:password
4. Change permissions
#sudo chmod 400 /etc/postfix/sasl_passwd
#sudo postmap /etc/postfix/sasl_passwd
5. Tell it where it can validate the certificate.
# cat /etc/ssl/certs/Thawte_Premium_Server_CA.pem | sudo tee -a /etc/postfix/cacert.pem
6. Restart & Test
#sudo service postfix restart
# echo 'test' | mail user.name@gmail.com
end.
[ref :https://help.ubuntu.com/community/Postfix]
Thursday, April 18, 2013
SVN merge between trunk & branch
Branched out 'branch_xxx' for feature AA, after branch out 'trunk' is continue changes, now need all changes on 'trunk' merge to 'branch_xxx'.
1. Find out the version since branch_xxx copy.
svn log -v --stop-on-copy
<comment>
------------------------------------------------------------------------
r503 | <user> | 2013-03-06 10:56:01 +0800 (Wed, 06 Mar 2013) | 1 line
2. svn merge -r 503:519 svn+ssh://user@svnurl/var/local/svn/proj/trunk
ver 519 is trunk latest ver, you might have some conflicts need to resolve.
3. svn ci -m "comment"
Friday, April 5, 2013
Enable flash player for Chromium on Ubuntu
1 sudo apt-get install flashplugin-nonfree
2 sudo cp /usr/lib/flashplugin-installer/libflashplayer.so /usr/lib/chromium-browser/plugins
3 chromium-browser --enable-plugins
Tuesday, April 2, 2013
SSH to ESXi host with public key
cat ~/.ssh/id_rsa.pub | ssh root@esxi.local 'cat >> /etc/ssh/keys-root/authorized_keys'
Subscribe to:
Posts (Atom)