I have a Samsung smart TV, it can play AAC video format, but only with mp4 container, mkv file format is NOT supported. Here is a simple way to convert them. materials: synology linux 1. create NFS share on Synology Shared Folder > Edit > NFS Permission hostname/IP: 192.168.x.0/24 (allow whole subnet) then press “OK” …
CentOS 6 1. 移除sendmail 安裝postfix
1 2 3 |
# /etc/init.d/sendmail stop # yum remove sendmail # yum install postfix cyrus-sasl mailx |
2. Gmail username and password Simple Authentication and Security Layer (SASL)
1 2 3 |
# echo "smtp.gmail.com GMAIL_USERNAME:GMAIL_PASSWORD" > /etc/postfix/sasl_passwd # chmod 600 /etc/postfix/sasl_passwd # postmap hash:/etc/postfix/sasl_passwd |
3. Postfix 設定 vim /etc/postfix/main.cf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
myhostname = xxxx.hang321.net mydomain = hang321.net # use Gmail SMTP server. Remember to set on Google to allow access with less secure method relayhost = smtp.gmail.com:587 smtp_use_tls = yes smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous # set the required TLS options smtp_tls_CApath = /etc/ssl/certs smtp_tls_security_level = secure smtp_tls_mandatory_protocols = TLSv1 smtp_tls_mandatory_ciphers = high smtp_tls_secure_cert_match = nexthop |
CApath here, not CAfile 4. 重新啟動Postfix
1 |
# service postfix restart |
5. Google 安全性設定 https://myaccount.google.com/security 「我的帳戶」> 「低安全性應用程式」專區 > 「安全性較低的應用程式存取權限」旁邊的 [啟用] 6. 測試mail server 是否有正常寄信 寄信俾自己
1 2 |
Testing email, tail -f /var/log/maillog to see the result. # echo "body of your email" | mail -s "This is a Subject" [email protected] |
後記: Goolge 可能係最近才有這個安全性設定,大多數reference 都沒有提及,搞到我白忙一場。 不同Linux distro, CA file name 有分別。
最近花了太多時間在MMORPG elder scroll online 上. 幸好 (不幸) 今天PS4 server 又死掉, 走去搞下個docker, 個SSD 都唔夠位放images, 都係早D set 做其他位置好d .
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 |
## installation sudo apt-get install apparmor lxc cgroup-lite sudo apt-get install docker.io ## verification sudo service docker.io start sudo docker run hello-world ## show current images sudo docker images ## view location sudo cat /var/lib/docker/repositories-aufs | python -m json.tool ## change docker image installation directory sudo docker ps -q | xargs docker kill sudo service docker.io stop mkdir /your/path/to/docker && chmod 700 /your/path/to/docker sudo vim /etc/default/docker.io # add new line DOCKER_OPTS="-g /your/path/to/docker" ## as root: su chown root.root /your/path/to/docker mv /var/lib/docker/* /your/path/to/docker/ echo "image location moved, see /etc/default/docker.io for new location" > /var/lib/docker/README ## as normal user sudo service docker.io start sudo docker images ## hellow-world listed |
similar to previous blog: http://35.233.158.97/2014/08/16/debian-chroot-on-dsm/ Prerequisite: add custom source: Package Centre > Settings > Package Sources > add Name: SynoCommunity Location: https://packages.synocommunity.com/ Installation: – select Debian Chroot and click install – select yes to install python (SynoCommunity version) as well. – after installation completed, ssh to DSM as root
1 2 3 |
root@diskstation> /var/packages/debian-chroot/scripts/start-stop-status chroot bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8) root@diskstation:/# |
– now under chroot
1 2 3 4 5 6 7 8 9 10 |
##backup and update source list. e.g. from France to Australia ##see https://www.debian.org/mirror/list sed -i.`date +%Y%m%d` 's/fr.debian.org/au.debian.org/g' /etc/apt/sources.list aptitude update aptitude upgrade aptitude install locales dpkg-reconfigure locales dpkg-reconfigure tzdata # optional: packages to install aptitude install less vim curl rsync screen openssh-server bash-completion |
– enable home for …
Download: Boot images of XPEnoboot DSM 5.2 from http://xpenology.me/downloads/ Official DSM 5.2 file from https://www.synology.com/en-global/support/download/DS3615xs Installation: 1. upload XPEnoboot_DS3615xs_5.2-5565.1-9d792e9.vmdk and XPEnoboot_DS3615xs_5.2-5565.1-9d792e9-flat.vmdk to datastore via vSphere client 2. Edit the old boot image hard disk to IDE (0:1) 3. Then add a new Hard disk from the image uploaded above, make it as “Nonpersistent” 4. start virtual machine, select …
My installation record. As of today, DSM 5.2 is out. Thanks to XPEnology team, bootloader now support DSM 5.2 Basically follow official documentation: http://www.xpenology.nl/vmware-esxi-installatie/ http://www.xpenology.nl/installation-dsm-5-1/ http://xpenology.me/downloads/ and somebody’s tutorial http://seiler.it/vmware-esxi-5-5-installation-hp-proliant-microserver-gen8/ http://www.chiphell.com/thread-867588-1-1.html ESXi (vShpere 6) For me, my iLo web interface does not support after POST (boot up), so I used unetbootin to expand the …
當設定 Jenkins 時發現沒有JAVA_HOME, 正奇怪明明已經安裝了Open JDK 7. 原來未安裝devel packages. yum install java-1.7.0-openjdk-devel -y 然後加上java.sh 到 /etc/profile.d
1 2 |
[ -z "$JAVA_HOME" ] && JAVA_HOME="/usr/lib/jvm/java" export JAVA_HOME |
Maven: link from https://maven.apache.org/download.cgi
1 2 3 4 5 6 7 8 |
wget http://apache.mirror.digitalpacific.com.au/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz tar zxvf apache-maven-3.3.3-bin.tar.gz -C /usr/local ln -s /usr/local/apache-maven-3.3.3 /usr/local/maven vim /etc/profile.d/maven.sh #add following lines to maven.sh export M2_HOME=/usr/local/maven export M2=$M2_HOME/bin PATH=$M2:$PATH |
Ant: links from https://ant.apache.org/bindownload.cgi
1 2 3 4 5 6 7 |
wget http://mirror.ventraip.net.au/apache//ant/binaries/apache-ant-1.9.5-bin.tar.gz tar zxvf apache-ant-1.9.5-bin.tar.gz -C /usr/local ln -s /usr/local/apache-ant-1.9.5 /usr/local/ant vim /etc/profile.d/ant.sh # add following line to ant.sh ANT_HOME=/usr/local/ant PATH=$PATH:$ANT_HOME/bin |
Yesterday I read about Telstra provides their SMS API for 1000 SMS free per month, so today I spent some time to play with it. One of the use case is Synology DSM to send alert notification if any warning message happened. Well, installing the DS Finder app would be easier, but hey, just wanna try …
話說幾個月前, 我揸車停係紅綠燈時, 後面個司機機拍我車窗話我架車剎車燈唔著, 她差點撞上我. 放工後到汽車舖買燈換, 依然唔著. 再上網查, 先知原來仲有保險絲係軚盤下. 拿fog light 那個fuse 頂住先. http://www.agcoauto.com/content/news/p2_articleid/243 http://www.agcoauto.com/content/news/p2_articleid/245