Posts

Showing posts from March, 2016

How to install Anaconda (conda) in Ubuntu/Linux

Image
Anaconda is a packaging tool and installer. The main difference between Anaconda and pip is that anaconda works for python and also non-python packages where as pip is only for python packages. 1.Download anaconda Download either for Python 2.7 (32bit/64bit) or Python 3.5  (32bit/64bit) Just download any one of these. For Python 2.7 64 bit wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda2-2.5.0-Linux-x86_64.sh 32 bit wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda2-2.5.0-Linux-x86.sh For Python 3.5 64 bit wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda3-2.5.0-Linux-x86_64.sh 32 bit wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda3-2.5.0-Linux-x86.sh 2. Install anaconda bash Anaconda*.sh 3. Verify if conda was installed conda --version

How to Install Antlr4 in Ubuntu/Linux

Image
Antlr is a parser generator written in Java. Execute these commands to download atlr .jar file in /usr/local/lib directory cd /usr/local/lib curl -O http://www.antlr.org/download/antlr-4.5-complete.jar add antlr4 to your class path. export CLASSPATH=".:/usr/local/lib/antlr-4.5-complete.jar:$CLASSPATH" create alias alias antlr4='java -Xmx500M -cp "/usr/local/lib/antlr-4.5-complete.jar:$CLASSPATH" org.antlr.v4.Tool' alias grun='java org.antlr.v4.runtime.misc.TestRig' Test installation java org.antlr.v4.Tool ANTLR Parser Generator Version 4.5 -o ___ specify output directory where all output is generated -lib ___ specify location of grammars, tokens files -atn generate rule augmented transition network diagrams ........... ........... The above 3 commands (one export and two alias commands) needs to be run every time you start a new terminal. To solve this problem put the three commands in your .bashrc  file li...

How to login as root / superuser in ubuntu linux ?

ROOT Open up your terminal ( ctrl+alt+t ) and enter this command. sudo su enter your password and now you are root user! Notice the $ prompt has changed to # . aman@vostro:~$ sudo su [sudo] password for aman: root@vostro:/home/aman# Now, you don't need to use sudo anymore. for eg. now simply use apt-get update instead of sudo apt-get update . You must be very cautious being a root user. To come back to your normal $ prompt hit ctrl+d .