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
32 bit
For Python 3.5
64 bit
32 bit

2. Install anaconda


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

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

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: 

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.