2017年5月1日 星期一

[Ubuntu] SmartSVN


add java path:
SMARTSVN_JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64/jre"

check the java path:
if [ "$SMARTSVN_JAVA_HOME" = "" ] && [ -f "/usr/lib/jvm/java-7-openjdk-i386/jre/bin/java" ] ; then
SMARTSVN_JAVA_HOME="/usr/lib/jvm/java-7-openjdk-i386/jre/bin/java"
fi

modifty the max memory:

SmartSVN version 8:
if [ "$SMARTSVN_MAX_HEAP_SIZE" = "" ] ; then
SMARTSVN_MAX_HEAP_SIZE=2048m
fi

SmartSVN version 9:
_GC_OPTS="-XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:InitiatingHeapOccupancyPercent=25 -Xmx2048m"



http://tecadmin.net/install-subversion-1-9-on-ubuntu/

$ sudo sh -c 'echo "deb http://opensource.wandisco.com/ubuntu `lsb_release -cs` svn19" >> /etc/apt/sources.list.d/subversion19.list'
$ sudo wget -q http://opensource.wandisco.com/wandisco-debian.gpg -O- | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get upgrade subversion



svn: File has inconsistent newlines

Project->Setting->Working copy->EOL-style
Default EOL-style- > As is(no conversion)

[Ubuntu] Setting



//right click open terminal in folder
apt-get install nautilus-open-terminal 
nautilus -q… 

//change the folder name chinese to english 
 LANG=C xdg-user-dirs-gtk-update

//disable overlay scroll bars to normal 
gsettings set com.canonical.desktop.interface scrollbar-mode normal 

//java install
openjdk:
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-7-jdk

oracle:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer

//If have error
sudo dpkg -P oracle-java7-installer
sudo apt-get -f install

//Install Cinnamon 2.4 in Ubuntu "14.04"
sudo add-apt-repository ppa:tsvetko.tsvetkov/cinnamon 
sudo apt-get update 
sudo apt-get install cinnamon

//show trash icon on desktop 
gsettings set org.gnome.nautilus.desktop trash-icon-visible true

//USB permission for adb and fastboot
/etc/udev/rules.d/51-android.rules

//I.MX
sudo apt-get install uuid uuid-dev zlib1g-dev liblz-dev liblzo2-2 liblzo2-dev lzop git-core curl u-boot-tools mtd-utils android-tools-fsutils m4 libxml2-utils bison xsltproc flex gperf gcc g++ build-essential gcc-multilib lzma android-tools-adb qt4-qmake libqt4-dev lib32stdc++6 lib32z1 lib32z1-dev cmake texinfo chrpath libsdl1.2-dev

//ccache
sudo apt-get install -y ccache &&\
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc &&\
source ~/.bashrc && echo $PATH

home/.profile
add :
export USE_CCACHE=1
export CCACHE_DIR=/<path_of_your_choice>/.ccache

ccache -F 0 set maximum number of files in cache to N (use 0 for no limit)
ccache -M 0 set maximum size of cache to SIZE (use 0 for no limit; available suffixes: G, M and K; default suffix: G)
ccache -C -z Empty the cache and reset the stats
ccache -s show statistics summary


//Atom
config.cson
packages

//minicom
sudo apt-get install minicom
sudo adduser USERNAME dialout

//Backup
.bashrc .thunderbird

//Atom
sudo apt-get install cscope ctags
package:
atom-beautify,atom-cscope,atom-ctags,color-picker,editorconfig

config.cson
packages

//WD=-1, Errno=No space left on device (ENOSPC)
cat /proc/sys/fs/inotify/max_user_watches (Which is typically 8192 by default.)

To increase your limit, type this:
sudo sysctl fs.inotify.max_user_watches=16384

To permanently set this limit, type this:
echo 16384 | sudo tee -a /proc/sys/fs/inotify/max_user_watches

//software
classicmenu,Shutter,Smartsvn,Smartgit,BeyondCompare,VirtualBox,Atom

//ubuntu16.04
新酷音 : sudo apt-get install fcitx-chewing
sudo apt-get install ibus-zhuyin #注音輸入法

//Upgrade to LibreOffice
sudo add-apt-repository ppa:libreoffice/ppa
sudo apt-get update

//revert the changes
sudo apt-get install ppa-purge
sudo ppa-purge ppa:libreoffice/ppa

//Thunderbird
lightning
lookout

//51-Android.rules
/etc/udev/rules.d

[Ubuntu] Minicom & Oracle VM Permission denied

Cannot open /dev/ttyUSB0: Permission denied

Solution:
$ sudo adduser youracct dialout

Verification:
$ groups
youracct dialout


Oracle VM USB can't work or not find:
Solution:
$ sudo adduser youracct vboxusers

Verification:
$ groups
youracct adm dialout cdrom sudo dip plugdev lpadmin sambashare "vboxusers"

[Ubuntu] Ubuntu 16.04 LTS - Install Android Tools

1. Install Android tools
# sudo apt-get install android-tools-adb android-tools-fastboot

2. Update to latest ADB and fastboot

# adb version
   Android Debug Bridge version 1.0.32
# wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip
# sudo unzip -d /usr/local/sbin platform-tools-latest-linux.zip
# sudo wget -O /usr/local/sbin/adb https://raw.githubusercontent.com/NicolasBernaerts/ubuntu-  scripts/master/android/adb
# sudo wget -O /usr/local/sbin/fastboot https://raw.githubusercontent.com/NicolasBernaerts/ubuntu-scripts/master/android/fastboot
# sudo chmod +x /usr/local/sbin/platform-tools/adb /usr/local/sbin/adb
# sudo chmod +x /usr/local/sbin/platform-tools/fastboot /usr/local/sbin/fastboot
# adb version
Android Debug Bridge version 1.0.39
Revision 3db08f2c6889-android
Installed as /usr/local/sbin/platform-tools/adb


refer : http://bernaerts.dyndns.org/linux/74-ubuntu/354-ubuntu-xenial-android-adb-fastboot-qtadb