How to install Anaconda (conda) in Ubuntu/Linux

Leave a Comment
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

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 Anaconda2-2.5.0-Linux-x86_64.sh

3. Verify if conda was installed

conda --version
Read More

How to Install Antlr4 in Ubuntu/Linux

Leave a Comment
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
...........
...........
Read More

How to login as root / superuser in ubuntu linux ?

Leave a Comment
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.


Read More

How to make a gui Calculator in Python using Tkinter

Leave a Comment
I have written a basic & simple GUI calculator in python using Tkinter module. Since Tkinter is cross-platform so it works on both windows and Linux. If you are a beginner, and want to learn some basic GUI with python, this will be helpful for you.



you can download the program HERE
  
or, you can clone it from my github repository

Read More

Monitor Network traffic & Live up/down speed in linux terminal with vnstat

Leave a Comment
vnstat is a command line based network traffic monitor. It keeps track of network traffic for different network interfaces. It always runs in the background to do so. It can also show current/live Internet  download/upload speed.

Install vnstat

Open up your terminal (ctrl+alt+t) and enter
(for Ubuntu/Debian/Linux Mint)
sudo apt-get install vnstat

Read More
Previous PostOlder Posts Home
Powered by Blogger.