Skip to main content

Posts

Showing posts from October, 2016

Solve ECJ Installation Error

Liferay Builds with the ECJ Compiler and Ubuntu provides ecj compiler separately. 1. sudo apt-get install ecj 2. If you using ant of Ubuntu (sudo apt-get install ant) 3. You need to link ecj.jar to its directory     ( If ecj.jar already in /usr/share/ant/lib/ecj.jar then first remove this )      sudo ln -s /usr/share/java/ecj.jar /usr/share/ant/lib/ecj.jar

Set ANT_OPTS on Ubuntu

1. See the error :  Please set the environment variable ANT_OPTS to the recommended value of "-Xmx1024m -XX:MaxPermSize=512m". 2. It recommend you a value "-Xmx1024m -XX:MaxPermSize=512m" 3. Open terminal and execute     sudo nano .bashrc [open .bashrc file in edit mode] 4. Add this two lines at the end of the file     ANT_OPTS="-Xmx1024m -XX:MaxPermSize=512m"     export ANT_OPTS   5. Now save the file. 6. source .bashrc Note: Don't do that using "fish" or other terminal. Always use Ubuntu default terminal.

Install Java Development Kit 1.7 & 1.8

1. Check Before Installing update-java-alternatives -l [return all java version installed on your computer] 2. Install: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer sudo apt-get install oracle-java8-installer 3. Check Version update-java-alternatives -l [return all java version installed on your computer] java -showversion [return java verison using currently] java -version [return java version only] 4. Alter Version sudo update-alternatives --config java

Install DukeScript plugin to Netbeans

Before Installing DukeScript plugin to netbeans check the selected java version for netbeans. This plugin will only work with java version 1.8 or later. 1. Check Netbeans netbeans_jdkhome by. * netbeans-ide-installation-directory/etc/netbeans.conf 2. If "netbeans_jdkhome" is not set then link to jdk home * netbeans_jdkhome="/path/to/jdk/" (e.g. netbeans_jdkhome="/usr/lib/jvm/java-8-oracle/" ) 3. Install dukeScript on Netbeans * Tools > Plugins > Available Plugins * Type "Dukescript" on searchBox * Select "DukeScript Project Wizard" * Click "Install" and follow the instructions.

Install FISH via PPA

* sudo apt-add-repository ppa:fish-shell/release-2 * sudo apt-get update * sudo apt-get install fish Make Fish your default shell: * chsh -s /usr/bin/fish If you want to make fish the default shell of another user: * sudo chsh -s /usr/bin/fish user-name

Clone from git

Any client with SSH access to the machine can then clone the repository * git clone username@hostname:/path/to/repository [ e.g. git clone git@git.cloudoffice.io:coorg.git ] Clone a branch, * git clone -b branch_name username@hostname:/path/to/repository [ e.g. git clone -b 123p git@git.cloudoffice.io:coorg.git ]

Connect to a Remote Server via SSH

SSH is a network protocol used for performing remote operation securely, including command-line logins, command executions and data communications. The ssh command in Unix operating systems implements the SSH protocol between an SSH client running on the local machine and an SSH server running on the remote machine. * if username same on both 'local' and 'remote' host           ssh remote_host * if username same on both 'local' and 'remote' host           ssh remote_username@remote_host Example: remote_host : 10.10.10.10 remote_username : admin remote_password : password 1. ssh remote_username@remote_host [e.g. ssh admin@10.10.10.10 ] Note : If this is first time you will see a message like this, ECDSA key fingerprint is SHA256:E03Sku6m5XZNEqxJokopaP9SHKVopVw4vwAkJQZ4a+E. Are you sure you want to continue connecting (yes/no)? 2. yes Note : You will see another message Warning: Permanently added 'remote_host' (ECDSA) to t

Extremely weak WiFi signal on Ubuntu : RTL8723BE

This things are happens with some particular computer where the wifi driver is realtek rtl8723be & this occurs when we install from any linux based distributions on that particular machine. Realtek rtl8723be wireless network adapter has problems in managing the antenna on Linux. In ubuntu default kernal uses the wrong antenna for wifi. This will lead the weak wifi signal problem. Follow this procedure will help to get rid of this problem, this things works on my machine. Hope it will works on your machine also. * sudo apt-get install build-essential git * git clone https://github.com/lwfinger/rtlwifi_new.git * cd rtlwifi_new * sudo make * sudo make install * sudo modprobe -rv rtl8723be * sudo modprobe -v rtl8723be ant_sel=2 * echo "options rtl8723be ant_sel=2" | sudo tee /etc/modprobe.d/50-rtl8723be.conf * reboot Note : * This problem occurs again if you updated the kernel, then you need to install driver again. * Don't change any wifi settings in w