Learn Linux Command Line Commands

This little trick will display a different Linux command along with what it does every time you open a terminal window.

commandline

— The script is created from a Linux Terminal command line —

# – Open a terminal window, change to your user directory.

$ cd ~

# – Create .bashrc file if not already created and verify it.

$ touch ~/.bashrc

$ ls -a

# – Edit your .bashrc file

$ gedit .bashrc

— add the following lines to the .bashrc file and save it—

echo “Did you know that:”; whatis $(ls /bin | shuf -n 1)

# – Exit terminal and now every time you open terminal it will display a random Linux command just above your first prompt.

commands

HOW TO Install GNS3 1.3.8 on Linux Mint 17.1

Please NOTE: This document has been updated for GNS3 1.3.8 and is no longer applicable to earlier versions of GNS3.

gns3

— GNS3 is installed from a Linux Terminal command line —

# – After opening a terminal, change to your user directory.

$ cd ~

# – Update your sources.list file to include Debian “trusty”

$ sudo pico /etc/apt/sources.list

— add the following lines to the sources.list file —

deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted

deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted

sources.list.png

# – Run apt-get update

$ sudo apt-get update

# – Install GNS3 Python dependencies

$ sudo apt‐get install python3‐setuptools

$ sudo apt‐get install python3‐pyqt4

$ sudo apt‐get install python3‐ws4py

$ sudo apt‐get install python3‐netifaces

# Install Dynmips dependencies

$ sudo apt-get install cmake

$ sudo apt‐get install libelf‐dev

$ sudo apt‐get install uuid‐dev

$ sudo apt‐get install libpcap‐dev

# – Download and unzip GNS3 Linux source files Download

$ unzip GNS3-1.3.8-source.zip

   dynamips-0.2.14.zip  gns3-server-1.3.8.zip  vpcs-0.6.1.zip

         gns3-gui-1.3.8.zip   iouyap-0.95.zip

# – Build and Install Dynamips

$ unzip dynamips-0.2.14.zip

$ cd  dynamips-0.2.14

$ mkdir build

$ cd build

$ cmake ..

$ make

$ sudo make install

$ sudo setcap cap_net_admin,cap_net_raw=ep /usr/local/bin/dynamips

$ cd ../..

# – Install GNS3 Server

$ unzip gns3-server-1.3.8.zip

$ cd gns3-server-1.3.8

$ sudo python3 setup.py install

$ cd ..

# – Install GNS3 GUI

$ unzip gns3-gui-1.3.8.zip

$ cd gns3-gui-1.3.8

$ sudo python3 setup.py install

$ cd ..

# – Install IOU prerequisites

$ sudo apt-get install libssl1.0.0:i386

$ sudo ln -s /lib/i386-linux-gnu/libcrypto.so.1.0.0 /lib/libcrypto.so.4

$ sudo apt-get install bison

$ sudo apt-get install flex

$ sudo apt-get install git

$ git clone http://github.com/ndevilla/iniparser.git

$ cd iniparser

$ make

$ sudo cp libiniparser.* /usr/lib/

$ sudo cp src/iniparser.h /usr/local/include

$ sudo cp src/dictionary.h /usr/local/include

$ cd ..

# – Install GNS3 IOUYAP app

$ unzip iouyap-0.95.zip

$ cd iouyap-0.95

$ sudo make install

$ sudo cp iouyap /usr/local/bin/

$ cd ..

# – Install VPCS

$ unzip vpcs-0.6.1.zip

$ cd vpcs-0.6.1/src

$ ./mk.sh

$ sudo cp vpcs /usr/local/bin/

$ cd ../..

# – Install VirtualBox

$ sudo apt-get install virtualbox

# – Install Wireshark

$ sudo apt-get install wireshark

# – Install QEMU – *method 1*

$ sudo apt-get install qemu

# – Install QEMU – *method 2* (x86 arch. only)

$ sudo apt-get install qemu-system-x86

$ sudo apt-get install qemu-utils

# – Install cpulimit

$ sudo apt-get install cpulimit

That’s it. Add your IOU License file, IOU/IOS images, and you’re ready to create  projects, so launch GNS3 and get started!

# – Launch GNS3

$ gns3

# – If your studying for certs gns3vualt.com is a great place to get lab files.