.message-sender{
color:rgba(0,0,0,0);
font-size: 30px;
}
.message-time{
color:rgba(0,0,0,0);
font-size: 30px;
}
.message-text{
background-color:rgba(0,0,0,0);
color:rgba(0,0,0,1);
font-family:"Microsoft JhengHei";
font-size: 36px;
font-weight: 600;
line-height: 1.00em;
padding-left: 0.5em;
}
.message-item{
background-color:rgba(0, 0, 0, 0);
}
2017/03/24
2017/03/22
2017/03/15
Run Web UI Automation Test By Selenium on Ubuntu Desktop 14.04
Download Selenium 2.53.1 and extrat it.
Download Firefox Geckodriver v0.15.0 and extrat it.
Set Firefox Webdriver Path
export PATH=$PATH:/home/firefox-driver/geckodriver
Download Google Chrome Browser Install Package
Open Terminal
Type "dpkg -i google-chrome-stable_current_amd64.deb" to install.
nano opt/google/chrome/google-chrome
Modify exec -a "$0" "$HERE/chrome" "$@" to exec -a "$0" "$HERE/chrome" "$@" --user-data-dir --no-sandbox
save and exit
Download Google Chromedriver 2.28 and extrat it.
Download Firefox Geckodriver v0.15.0 and extrat it.
Set Firefox Webdriver Path
export PATH=$PATH:/home/firefox-driver/geckodriver
Download Google Chrome Browser Install Package
Open Terminal
Type "dpkg -i google-chrome-stable_current_amd64.deb" to install.
nano opt/google/chrome/google-chrome
Modify exec -a "$0" "$HERE/chrome" "$@" to exec -a "$0" "$HERE/chrome" "$@" --user-data-dir --no-sandbox
save and exit
Download Google Chromedriver 2.28 and extrat it.
2017/03/12
Install Tomcat 7 on Ubuntu Server 16.04
apt-get update
apt-get install openjdk-8-jdk -y
useradd -s /bin/false -g tomcat -d /opt/tomcat-7.0.75
curl -O http://apache.mirrors.ionfish.org/tomcat/tomcat-7/v7.0.75/bin/apache-tomcat-7.0.75.tar.gz
mkdir /opt/tomcat-7.0.75
tar xzvf apache-tomcat-7.0.75.tar.gz -C /opt/tomcat-7.0.75 --strip-components=1
cd /opt/tomcat-7.0.75
chgrp -R tomcat /opt/tomcat-7.0.75
chmod -R g+r conf
chmod g+x conf
chown -R tomcat webapps/ work/ temp/ logs/
apt-get install openjdk-8-jdk -y
useradd -s /bin/false -g tomcat -d /opt/tomcat-7.0.75
curl -O http://apache.mirrors.ionfish.org/tomcat/tomcat-7/v7.0.75/bin/apache-tomcat-7.0.75.tar.gz
mkdir /opt/tomcat-7.0.75
tar xzvf apache-tomcat-7.0.75.tar.gz -C /opt/tomcat-7.0.75 --strip-components=1
cd /opt/tomcat-7.0.75
chgrp -R tomcat /opt/tomcat-7.0.75
chmod -R g+r conf
chmod g+x conf
chown -R tomcat webapps/ work/ temp/ logs/
2017/03/11
Install GitLab 8 on Ubuntu Server 16.04
sudo apt-get update
sudo apt-get install curl openssh-server ca-certificates postfix
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get install gitlab-ce
sudo gitlab-ctl reconfigure
sudo gitlab-ctl pg-upgrade
Open GitLab by web browser
http://localhost:8080
username is root
password is 5iveL!f
sudo apt-get install curl openssh-server ca-certificates postfix
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get install gitlab-ce
sudo gitlab-ctl reconfigure
sudo gitlab-ctl pg-upgrade
Open GitLab by web browser
http://localhost:8080
username is root
password is 5iveL!f
2017/03/10
How to get iOS logs from Mac and Windows
Mac OS X
1.Launch iTunes.
2.Finder > Go > Go to Folder
3.Type ~/Library/Logs/CrashReporter/MobileDevice/ then press Go button
4.Now you can find all of logs from your device.
Windows
1.Download iOSLongInfo
2.Extract it
3.Open it by Windows File Explorer
4.Top Menu > Files > Open Command Prompt > Open Command Prompt as Administrator
Capture console logs:
sdsiosloginfo.exe -d > C:iOS.log
Capture Carsh logs:
sdsioscrashlog.exe -e -k C:\iOScrashLogs
Pull disk_usage:
sdsdeviceinfo.exe -q com.apple.disk_usage -x > C:\iOS_Disk_Usage.xml
Pull Device Stats:
sdsdeviceinfo.exe -x > C:\iOS_Device_Stats.xml
1.Launch iTunes.
2.Finder > Go > Go to Folder
3.Type ~/Library/Logs/CrashReporter/MobileDevice/ then press Go button
4.Now you can find all of logs from your device.
Windows
1.Download iOSLongInfo
2.Extract it
3.Open it by Windows File Explorer
4.Top Menu > Files > Open Command Prompt > Open Command Prompt as Administrator
Capture console logs:
sdsiosloginfo.exe -d > C:iOS.log
Capture Carsh logs:
sdsioscrashlog.exe -e -k C:\iOScrashLogs
Pull disk_usage:
sdsdeviceinfo.exe -q com.apple.disk_usage -x > C:\iOS_Disk_Usage.xml
Pull Device Stats:
sdsdeviceinfo.exe -x > C:\iOS_Device_Stats.xml
2017/03/09
Install Jenkins 2.49 on Ubuntu 14.04 Server
1.Update your system
sudo su
apt-get update
2.Install Nginx
apt-get install nginx -y
service nginx status
3.Install JDK
apt-get install openjdk-7-jdk -y
java -version
4.Install Jenkins
wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
apt-get update
apt-get install jenkins -y
service jenkins status
nano /etc/default/jenkins (check or modify it)
service jenkins start
5.Open Jenkins by web browser
http://localhost:8080
6.Get Administrator Password
nano /var/lib/jenkins/secrets/initialAdminPassword
sudo su
apt-get update
2.Install Nginx
apt-get install nginx -y
service nginx status
3.Install JDK
apt-get install openjdk-7-jdk -y
java -version
4.Install Jenkins
wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'
apt-get update
apt-get install jenkins -y
service jenkins status
nano /etc/default/jenkins (check or modify it)
service jenkins start
5.Open Jenkins by web browser
http://localhost:8080
6.Get Administrator Password
nano /var/lib/jenkins/secrets/initialAdminPassword
Install GitLab 6 on Ubuntu 14.04 Server
1.Update your system
sudo apt-get update
sudo apt-get upgrade -y
2.Create a git user for GitLab
sudo adduser --disabled-login --gecos 'GitLab' git
3.Install the required packages
sudo apt-get install build-essential cmake zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl openssh-server redis-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev logrotate
4.Install Git
sudo apt-get install git -y
5.Install Postfix mail server
sudo apt-get install postfix -y
sudo apt-get update
sudo apt-get upgrade -y
2.Create a git user for GitLab
sudo adduser --disabled-login --gecos 'GitLab' git
3.Install the required packages
sudo apt-get install build-essential cmake zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl openssh-server redis-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev logrotate
4.Install Git
sudo apt-get install git -y
5.Install Postfix mail server
sudo apt-get install postfix -y
訂閱:
文章 (Atom)