SERVFORU

Latest Post
Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

HOTSPOT Wi-Fi share with Android Devices from Linux Mint 17 Laptops



This is a quick tip to make your laptop as wi-fi hotspot . some people using ap-hotspot which doesnt work for me , so i found this new method which works pretty fine for me


Follow the steps

1.Open Terminal
2. run the command $ sudo synaptic

3 in synaptic search for plasma-nm




4. right click on the plasma-nm and mark for installation 

5. Afrer installation finished use Alt + f2


kde-nm-connection-editor

6. select wifi(shared) From the connection manager window

configure with custom names and wPA2 passkeys 




 

How to install GlomoSim in Linux Mint & Ubuntu & RedHat

In GloMoSim we are building a scalable simulation environment for wireless and wired network systems. It is being designed using the parallel discrete-event simulation capability provided by Parsec. GloMoSim currently supports protocols for a purely wireless network. In the future, we anticipate adding functionality to simulate a wired as well as a hybrid network with both wired and wireless capabilities.

GLomoSIm User Manual is here : http://pcl.cs.ucla.edu/projects/glomosim/GloMoSimManual.html



To install GloMoSim in Ubuntu or Linux Mint

Follow the steps



1) Install Parsec by typing
    sudo apt-get install parsec47
 

3) Change into the glomosim-2.03/glomosim/main
    cd glomosim-2.03/glomosim/main

4) Build by typing:
    ./make

To the set the environment variables edit the .bashrc in your home directory and type for example:
    export PCC_DIRECTORY="/home/mydir"

and save the .bashrc file. Logout and login again then type the following at the command line to make sure the environment variable is set:
    echo $PCC_DIRECTORY
you should see /home/mydir


TO INSTALL ON REDHAT OR OTHER DISTROS

  • Uncompress glomosim-2.03.tar.gz file
$tar -xzvf glomosim-2.03.tar.gz

  • Set Environment variable
$ gedit ~/.bashrc

Then add following lines

PCC_DIRECTORY=GloMoSim_ROOT/glomosim-2.03/parsec/redhat-7.2
export PCC_DIRECTORY


  • Copy both files pcc and parsecc from glomosim-2.03/parsec/redhat-7.2/bin/ dir and copy into usr/bin dir
$ sudo cp glomosim-2.03/parsec/redhat-7.2/bin/pcc glomosim-2.03/parsec/redhat-7.2/bin/parsecc usr/bin


  • Goto glomosim-2.03/glomosim/main dir and run make.
$ cd glomosim-2.03/glomosim/main
$ make
 

Implementation of Leach Protocol NS2

This is  only the steps  to install and run the LEACH protocol on version 2.27 of ns2 .The LEACH implementation was written as a stand-alone application. Thus, in the past a version compiled for LEACH may or may not work for other protocols. In addition, the original version of LEACH was compiled for version 2.5b which is an outdated version of ns2.

Setup Procedure

1. Obtain the ns-allinone-2.27.tar.gz package. This can be found at:
http://www.internetworkflow.com/downloads/ns2leach/ns-allinone-2.27.tar.gz
 
2. Unpackage the archive
 
gunzip ns-allinone-2.27.tar.gz 
tar xvf ns-allinone-2.27.tar

3. Change directory to ns-allinone-2.27
 
cd ns-allinone-2.27

4. run the install script
./install

5. Add the appropriate environment variables as specified at the end of installation.

7. Place the mit.tar.gz package into the ns-allinone-2.27/ns-2.27 directory.
 

8. Change directory to ns-allinone-2.27/ns-2.27
 
9. Unpackage the archive which will overwrite all appropriate files and set up symbolic links.
gunzip mit.tar.gz
tar xvf mit.tar
 
10. A sample make file can be found at http://www.internetworkflow.com/downloads/ns2leach/Makefile. Edit the Makefile as follows:

Add DMIT_uAMPS to the DEFINE list
Add I./mit/rca I./mit/uAMPS to the INCLUDE list
Add the following just prior to the line gaf/gaf.o \
mit/rca/energy.o mit/rca/rcagent.o \
mit/rca/rca-ll.o mit/rca/resource.o \
mac/mac-sensor-timers.o mac/mac-sensor.o mit/uAMPS/bsagent.o \

 
11. Clean up previous build
make clean
 
12. Rebuild ns2 this can take a while so I recommend redirecting output, running in background and going to lunch.
 
nohup make 2>error.log >make.log &
 
13. Test default wireless demo and LEACH
 
./test
 
14. Validate the full installation this takes a while too so take a break
 
nohup ./validate-full 2>validate.error >validate.log &

 

How to install NS3 in Linux Mint & Ubuntu


ns-3 is a discrete-event network simulator for Internet systems, targeted primarily for research and educational use. ns-3 is free software, licensed under the GNU GPLv2 license, and is publicly available for research, development, and use. 
Take a look to how to install NS3 in ubuntu or Linux Mint 


To install NS in Linux 
 Requirements
  •   ubuntu 10.10 or higher
  •  an internet conenction
if you have both  follow the simple steps 

   1. open the Terminal
   2.First update the Ubuntu repos:
$sudo apt-get update

After this install the following packages 

$ sudo apt-get install gcc g++ python



$ sudo apt-get install gcc g++ python python-dev
$ sudo apt-get install mercurial

$ sudo apt-get install bzr


$ sudo apt-get install gdb valgrind

$ sudo apt-get install gsl-bin libgsl0-dev libgsl0ldbl


$ sudo apt-get install flex bison

$ sudo apt-get install gcc

$ sudo apt-get install g++

$ sudo apt-get install tcpdump
$ sudo apt-get install sqlite sqlite3 libsqlite3-dev


$ sudo apt-get install libxml2 libxml2-dev
$ sudo apt-get install libgtk2.0-0 libgtk2.0-dev
$ sudo apt-get install vtun lxc

$ sudo apt-get install uncrustify

$ sudo apt-get install doxygen graphviz imagemagick
$ sudo apt-get install texlive texlive-pdf texlive-latex-extra texlive generic-extra texlive-generic-recommended

$ sudo apt-get install python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev

Then make a directory 

$ mkdir ns                                                 //(you can use of different name for ns)
$ cd ns                                                     // (with this command you can enter to your directory)
$ wget https://www.nsnam.org/release/ns-allinone-3.15.tar.bz2   //(if this command doesn’t work you can download and copy it into directory)
$ tar xjf ns-allinone-3.15.tar.bz2                     //(with this command you can extract directory)
$ cd ns-allinone-3.15-RC1
$ ./build.py
$ cd ns-3.15-RC1
$ ./waf configure

$ ./waf

Simulate your networks and enjoy...........
 

Install MPLAB in Linux Mint & Ubuntu


MPLAB® X IDE is a software program that runs on a PC (Windows®, Mac OS®, Linux®) to develop applications for Microchip microcontrollers and digital signal controllers. It is called an Integrated Development Environment (IDE), because it provides a single integrated “environment” to develop code for embedded microcontrollers.
MPLAB® X Integrated Development Environment brings many changes to the PIC® microcontroller development tool chain. Unlike previous versions of MPLAB® which were developed completely in-house, MPLAB® X is based on the open source NetBeans IDE from Oracle. Taking this path has allowed us to add many frequently requested features very quickly and easily while also providing us with a much more extensible architecture to bring you even more new features in the future.

Download MPLAB from microchips website link is here : http://www.microchip.com/pagehandler/en-us/family/mplabx/#downloads


Before installing MPLAB , should install java if java is not installed
to install java check : INSTALL   JAVA

then follow the steps

1. open Linux Terminal
2. change the permisions of the files that downloaded by executing the commands

chmod 755 mplabc18.bin

chmod 755 mplabx-ide-beta60-linux-32-bit-installer.bin

chmod 755 picc-18-pro-linux.run

chmod 755 picc-pro-linux.run


3. enter the following command

sudo ./MPLABX-V1_30-linux-installer.run
An installer will launch. Follow the prompts through. Nothing special here.

HI-TECH for PIC16

sudo ./picc-18-pro-linux.run

 

Install XAMPP in Linux Mint

To install XAMPP in Linux Mint just download XAMPP and follow the steps below

 Download Xampp From here http://sourceforge.net/projects/xampp/files/LAMPP/0.9.4/

Go to Terminal and login as admin by the command
               $su 
Extract the downloaded archive file to /opt:


$tar xvfz xampp-linux-1.8.0.tar.gz -C /opt


To start XAMPP simply call this command:
/opt/lampp/lampp start

 

Install Netbeans To your Ubuntu Or Linux Mint

Try following steps to install Netbeans

in the simpleset way is getting by some package manager ,for this
1.Open your linux Terminal
2.
Run the command $sudo apt-get install netbeans
3.
after installing just run netbeans by $netbeans in the terminal

Now there is a hard way to install netbeans and that is here

download netbeans.sh from the netbeans download page : http://netbeans.org/downloads/

then

open linux terminal

1.Open Terminal
2. enter to the folder where netbeans downloaded  $cd Downloads3. Change the mode
            $s
udo chmod +x netbeans.shmay be the filename will be
4. install netbeans
  $sudo ./netbeans.sh 

 

5 Things Do After installing Linux Mint

1. Software Update 
    select the update manager from
       Menu  >> Administration >> Update Manager

you can also do it with terminal  sudo apt-get update && sudo apt-get upgrade  

2.
Change the search engines of Firefox
To change the search engine in the search box of Firefox to Google, you just need to open Firefox then go to the following address:
 http://www.linuxmint.com/searchengine_google.php  


After that, click on the drop down list in the search box and select "Add Google"


To change the search engine of the address bar from DuckDuckGo to Google, you open Firefox , type about:config on the address bar. You will see a warning, just click on the "I'll be careful" button to go to the config page. In this config page, scroll down until you find the line that begins with "keyword.URL":


Right click on this line and select the Modify option. The box to edit the search engine will appear, in this box, you just need to replace the DuckDuckGo url with Google:
 http://www.google.com/search?q=  

Click ok .  Now both the address bar and the search box use Google as the default search engine.
3. Install new Themes and Icons 
 The best place to look for nice themes and icons in my opinion is Gnome-look . And get the themes and icons . Also remember to read the installation instruction of each theme and icon set.
 a conky setup
 
Install Conky in Ubuntu/Linux Mint open terminal (Press Ctrl+Alt+T) and copy the following commands in the Terminal:                 
 sudo apt-get install conky conky-all
If gadget doesn't adjust in your screen, you can change size in line 40, 41. Enter Following command to open file in text editor and change size:
                               sudo gedit ~/.conkyrc
5.Install Compiz Config Settings Manager
Compiz is an awesome tool, you can do a lot of cool things with it so I recommend everybody to install Compiz. You can tweak a lot of things with CCSM and of course, it is always fun to show the cubic desktops to your friends :D
To install Compiz, you can search for it in the Software Manager or run the following command:
 sudo apt-get install compizconfig-settings-manager  

6.Install Wine
I myself at times need to run some Windows applications so Wine is always a must-have tool for me. To install Wine, you can search for it in the Software Manager or use this command:
 sudo apt-get install wine  




 

How to run a jar file in Linux Mint & Ubuntu


Try the following simple steps

For executing a .jar file you need Java 6.0 or higher ,if you have java installed start from  step 3

1. open the Terminal 
2. run the command to install openjdk

 $sudo apt-get install openjdk-7-jdk

3.  to execute  the .jar
 $java -jar sample.jar 

 

How to Install NS2 and NAM in linux mint & Ubuntu


 Take a look into the installation of a very famous tool that is widely used in Network related researches. Network Simulator or NS as it is popularly called is formally defined as a "discrete event simulator". For a post graduate in Computer Engineering or a PhD scholar it is, in simple terms, a valuable tool that greatly aids in simulating their concepts in wired and wireless networks.

 To install NS in Linux 
 Requirements
  •   ubuntu 10.10 or higher
  •  an internet conenction 
if you have both  follow the simple steps 

   1. open the Terminal
   2.First update the Ubuntu repos:
                       
                  $sudo apt-get update


   3.  to install ns2           $ sudo apt-get install ns2


  4.  to install nam          $ sudo apt-get install nam

After this whenever you need to run a tcl script just type the following from the location where you have the tcl script:
$ ns somefile.tcl
 

Interesting facts about Linux


1.Linux has caught on in many sectors and probably one of the least known is the film industry. 95% of the servers used by Hollywood studios for animation films have installed a GNU / Linux. In fact, the Oscar-winning visual effects of the Titanic by James Cameron came from machines with Linux and, according to James Cameron, Avatar was the first film shot entirely in 3D applications using free software on Linux machines.

2. 90% of the world's most powerful supercomputers using an operating system GNU / Linux, in fact, the top ten of supercomputers use Linux..IBM chose Linux for what is expected to be the world's most powerful supercomputer, Sequoia, due in 2011.Linux powers 446 of the world's top 500 supercomputers.

3.Linux is present in highly critical applications such as Japan's bullet trains, traffic control, San Francisco, the New York Stock Exchange, CERN, many air traffic control systems or control of nuclear reactors of submarines and ships many nuclear war.

4.There are over 300 distributions GNU / Linux activities ranging from the well known Ubuntu or Debian distributions through governmental or educational level.

5.Countries such as Russia, Brazil and Venezuela have put their focus on Linux as a basis for interoperable management , cost efficient and technologically independent.
6. Linux has a strong following in smartphones and other devices in the consumer electronics world.Palm's WebOS, Google's Android and Nokia's Maemo smartphone operating systems are built on top of the Linux kernel.

7. Torvalds created Linux based on the GNU General Public License (GPL).Under the GPL, any person or group distributing the Linux kernel must make the source code available to the recipient of the package. Said Torvalds: "Making Linux GPL'd was definitely the best thing I ever did."

8.The Debian distribution was one of the first truly community-oriented Linux coding projects. Debian v. 4.0's source code containes 283 million lines of code. Debian's code base remains the foundation for other distros such as Ubuntu, Knoppix and Xandros

9$7.37 billion: projected cost to produce that amount of code in a commercial environment.
10.Red Hat was one of the first commercial Linux distributions to truly cater to the enterprise.

11.Ubuntu was the first Linux distro to be offered by a major OEM (Dell) to desktop users.

12. The Xandros distribution helped make the netbook craze possible when it was chosen by ASUS for the first iterations of the EeePC.

13.In 2002, The Register claimed Microsoft spent $421 million just to fight Linux.

14.The Indian state of Kerala made it mandatory for all of its high schools to run Linux on their computers.The federal government of Brazil favors Linux operating systems over all others in its PCs.

 
 
Support : Ebin EPhrem | Ebin Ephrem | #Gabbarism
Copyright © 2011. Services | Embedded Support | Reviews | Virtual Technologys - All Rights Reserved
Template Created by ebinephrem.com Published by Ebin Ephrem
Proudly powered by Blogger