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 …
更新了VMware Workstation 11, “View > Autosize > Autofit guest” 沒了. 再安裝VMware Tools (close source) 也不成. (Mint 17) sudo apt-get install open-vm-tools 也不能. 用了幾小時重新安裝vmware workstation, host’s graphic card driver, 還是沒有效用. 打開 synaptic package manager, search “open-vm-tools”. 頂, 原來還有個 GUI 的open-vm-tools-desktop
1 |
$ sudo apt-get install open-vm-tools open-vm-tools-desktop |
續篇, 前一篇: Upgrade Mint 14 to Mint 17 (1/2: installation) 1st issue: Theme broken Preference > Apperance > select new theme : e.g. Mint-X 2: pluma error:
1 |
Fontconfig error: "/etc/fonts/conf.d/65-khmer.conf", line XX: out of memory (pluma:24894): IBUS-WARNING **: The owner of ~/.config/ibus/bus is not root! |
run Update Manager 就會冇左65-khmer.conf , 或者 apt-get purge fonts-khmeros-core 3: Panel 自行加入menu icon, unlock panel, 再自己加入 short cut. 由4 workspaces個改做2個 4: gradle version 太舊, 在synaptic package manager 中移除, 再用gvm install Gradle …
Mint 14 (mate) 已經end-of-life, 2個月前更新了工作用的電腦. 現在留下一個記錄. 如果沒有太多customization, 其實直接安裝mint 17 再copy home directory back 比較方便. Reference: http://www.linuxmint.com/oldreleases.php https://wiki.ubuntu.com/Releases https://gist.github.com/hgomez/7074150 http://www.tecmint.com/upgrade-linux-mint-16-to-linux-mint-17/ Step 1: Backup $ sudo cp /etc/apt/sources.list ~/sources.list.org 備份home 連同其他有需要directories, mysqldump, CloneZilla image ….etc. Step 2: verify current version
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
$ sudo cat /etc/issue.net && echo -e \\n && cat /etc/lsb-release && echo -e && cat /etc/os-release Linux Mint 14 Nadia DISTRIB_ID=LinuxMint DISTRIB_RELEASE=14 DISTRIB_CODENAME=nadia DISTRIB_DESCRIPTION="Linux Mint 14 Nadia" NAME="Ubuntu" VERSION="12.10, Quantal Quetzal" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu quantal (12.10)" VERSION_ID="12.10" |
Step 3: mint 14 升級到 mint 17 將code name 改到 17
1 2 3 4 5 6 7 |
$ sudo sed -i 's/quantal/trusty/' /etc/apt/sources.list $ sudo sed -i 's/nadia/qiana/' /etc/apt/sources.list $ sudo sed -i '/medibuntu/s/^/#/' /etc/apt/sources.list # medibuntu has been closed $ sudo apt-get update && sudo apt-get dist-upgrade 1998 upgraded, 534 newly installed, 31 to remove and 4 not upgraded. Need to get 1,463 MB of archives. After this operation, 1,415 MB of additional disk space will be used. |
過程中會有問題要回答, Yes 就可以 例如 “install the package maintainer’s …
– download jenkins.war from http://jenkins-ci.org/ – increase upload limit on /var/packages/Tomcat/target/src/webapps/manager/WEB-INF/web.xml
1 2 3 4 5 6 |
<multipart-config> <!-- 100MB max --> <max-file-size>104857600</max-file-size> <max-request-size>104857600</max-request-size> <file-size-threshold>0</file-size-threshold> </multipart-config> |
– edit username and roles on /var/packages/Tomcat/target/src/conf/tomcat-users.xml e.g. <user username="manager" password="manager" roles="manager-gui,manager-status"/> – config JENKINS_HOME on /var/packages/Tomcat/target/src/conf/context.xml
1 |
<Environment name="JENKINS_HOME" value="/volume2/homes/username/.jenkins" type="java.lang.String"/> |
Anywhere of your choice, remember to modify that directory, allow access by tomcat(http group). #cd /volume2/homes/ #chown username.http username #cd username && mkdir .jenkins && chmod 775 .jenkins – Control panel > Groups …
1 2 3 4 5 6 7 8 9 10 |
# create new directory and cd in single command function mkdircd () { mkdir -p "$@" && eval cd "\"\$$#\""; } # ssh to remote host and go to directory function sshcd () { ssh username@"$@" -t "cd /path/dir1/dir2/ ; \$SHELL -l"; } ALL_HOSTS="hostname1 hostname2 hostname3" for AHOST in $ALL_HOSTS do alias ssh2"$AHOST"="sshcd $AHOST " done |
create/insert to .bashrc
1 2 3 |
if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi |
Then $ source ~/.bash_aliases , $ ssh2hostname1 should go there directly if ssh without password configured.
Initially found a script to install gradle, but later on found out that script is not required because groovy environment manager can also install gradle.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#!/bin/bash # installs to /opt/gradle # existing versions are not overwritten/deleted # seamless upgrades/downgrades # $GRADLE_HOME points to latest *installed* (not released) gradle_version=1.12 gradle_path=~/gradle wget -N http://services.gradle.org/distributions/gradle-${gradle_version}-all.zip -P /tmp/ sudo unzip -q /tmp/gradle-${gradle_version}-all.zip -d ${gradle_path} sudo ln -sfn gradle-${gradle_version} ${gradle_path}/gradle sudo printf "export GRADLE_HOME=${gradle_path}/gradle/\nexport PATH=\$PATH:\$GRADLE_HOME/bin" > /etc/profile.d/gradle.sh . /etc/profile.d/gradle.sh # check installation gradle -v |
GVM – Groovy enVironment Manager official webpage: http://gvmtool.net/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
## install gvm $ curl -s get.gvmtool.net | bash ## isstall groovy on default version $ gvm install groovy ## see avaliable version of gradle $ gvm list gradle $ gvm install gradle 1.12 ## verify $ gvm current Using: gradle: 1.12 groovy: 2.3.6 |