SERVFORU

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

How to backup your android phone using Ubuntu

Android backup 



  • If not enabled, enable developer mode by tapping Settings > About phone > Build number (7 times)
  • If not enabled, enable USB debugging in Settings > Developer options > USB debugging
  • Execute on your computer
    adb backup -apk -shared -all
This should hopefully create backup.ab with all of your apps, OS, and data. Later, after reflashing with Android (or rooting / unlocking) you will be able to use
adb restore backup.ab
to restore all of your data.
 

How to Install UBUNTU in Android Phone

Installing Ubuntu on a phone

Ubuntu 13.10 Saucy Salamander released with a new smartphone experiance . just try  it out if you have a an androind smartphone 





Instructions for flashing a phone or tablet device with Ubuntu.
After you install Ubuntu for phones, you will have the following functionality:
  1. Shell and core applications
  2. Connection to the GSM network on Galaxy Nexus and Nexus 4
  3. Phone calls and SMS on Galaxy Nexus and Nexus 4
  4. Networking via Wifi
  5. Functional camera, front and back
  6. Device accessible through the Android Developer Bridge tool (adb)



    Now it suppports only for  galaxy nexus and nexus 4 , anyway for the other phones too may be the same , we are checking with each phones ,and as no other applications are not yet available in the store

    Flashing the device

    1. Desktop setup

    The following steps are required on your desktop system in order to flash and communicate with the device.

    Setup the Ubuntu for phones tools PPA

    The PPA has the tools and dependencies to support 12.04 LTS, 12.10, 13.04 and 13.10. Add the Ubuntu for phones PPA by adding the following custom source list entry to your/etc/apt/sources.list file.
    On your computer, press Ctrl+Alt+T to start a terminal.
    sudo add-apt-repository ppa:phablet-team/tools
    
    
    Then do the following:
    sudo apt-get update 
    sudo apt-get install phablet-tools android-tools-adb android-tools-fastboot
    

    3.Device unlock

    If the device is already unlocked, skip to Step 4. These steps will wipe all personal data from the device.
    • With the device powered off, power on the device by holding the power button + volume up + volume down.
    • The device will boot into the bootloader.
    • Plug the device into the computer via the USB cable.
    • On your computer, in a terminal, run sudo fastboot oem unlock, on the device screen, accept the terms of unlocking.
    • Boot the device by pressing the power button (pointed by an arrow with Start on the screen).

    Device factory reset

    If you get stuck in a bootloop rebooting the device after unlocking the bootloader, here is what you do:
    • During the bootloop hold the power button + volume up + volume down button simultaneously to get yourself back into fastboot mode or download mode as you were previously.
    • In fastboot mode or downlaod mode, use the volume keys to scroll to Recovery and the power button to select it.
    • In Recovery (Android robot on his back with a red triangle), tap the volume up button and the power button simultaneously which will bring you into stock recovery. Don't hold the buttons, just tap them simultaneously.
    • Also make sure you're holding the correct volume button. Up will be the volume key on the right.
    • Once you're in Recovery, perform a factory reset/data wipe and then reboot your device, you should now be back to the Welcome Screen.

    4.Initial device setup

    Follow these initial steps on your device:
    1. If not booted, boot the device into Android
    2. Enable USB debugging on the device
      • On Ice Cream Sandwich (version 4.0) go to Settings and turn on USB Debugging (Settings > System > Developer options > USB debugging).
      • On Jelly Bean (versions 4.1 and 4.2) you need to enterSettings > About [Phone|Tablet] and tap the Build number 7 times to see the Developer Options.
      • On 4.2.2, (Settings > About) tap on build number 7 times to activate the developer options menu item).
      • On either Android version you must then enable USB debugging via Settings > Developer options > USB debugging. You will also need to accept a host key on the device.
        • On the workstation: adb kill-server; adb start-server
    3. Plug the device into the computer via the USB cable.
      • Depending on the installed Android version, a popup will show up on the device with the host key that needs to be accepted for the device to communicate with the workstation.
      • Note, 'adb devices' should not show the device as 'offline'. If it does, unplug the device, run adb under sudo on the workstation (egsudo adb kill-server; sudo adb start-server), then plug the device back in.
    4. Save the version of the current image on the device, if on Android, to use as a reference to revert back to. The version can be found by going to Settings > About Phone > Build Number.

    5.Downloading and deploying image to device

    1. To install Ubuntu for phones on your device, you will need to run the command:
      phablet-flash ubuntu-system --no-backup
      Please note, this will wipe the contents of the device so ensure you have made a backup.
      This will deploy the latest build onto your device, after which your device will boot into the Ubuntu Unity shell. This step can take a very long time.

 

some simple TRICKS in UBUNTU OS




#1 Add a . before the file name to hide your files (for example .song.mp3)


Unlike Windows where you need to go to a file's properties in order to hide it, Ubuntu has a simple and easy method for hiding a file. Simply add . as the first letter to a filename and your file automatically becomes hidden. For example, if you want to hide "mypicture.jpg", simply rename it to ".mypicture.jpg" to hide it.

To see these files, simply open the location folder and press Ctrl+H. (Isn't that faster!!)

#2 Run a lost program and discover hidden software

If you can't find an installed application, then press Alt+F2. And from the buttons shown at the foot of your screen you can explore all categories of applications on your system.

#3 Change folder and file icons

If you want to use a different image for your file or folder instead of the standard icons, just right click an item and go to the Properties. The current icon is visible at the top left corner, click that icon and browse to the image that you want to use. Once changed, you can also reset the image by clicking Revert at the bottom.

#4 Create fancy desktop effects

You first need to Install Compiz Config Settings apt:compizconfig-settings-manager Manager. 

Now go to System > Preferences > CompizConfig Settings Manager.

You'll find a whole range of options to change your appearance settings.

To enable these effects, you will require a decent graphics card. If things seem to be slow afterwards, you can disable this in System > Preferences > Appearance, and use None or Normal Visual Effects. 
 

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 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 

 

WiFi Not Working In Ubuntu ? Troubleshoot yourself

After deleting the Windows and installing ubuntu ,may be some drivers get disabled , to activate this back in ubuntu or in Linux mint we can use the following steps

1. open the Terminal
2. check the status of the hardware devices by using the command rfkill list
              $sudo rfkill list

3. you can see whether it blocked by hardware or software  if it is blocked by hardware or software you can unblock it by using the the command rfkill unblock
               $sudo rfkill unblock 0: phy:0



You can block or unblock all wireless devices by hard block or by soft block

 

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 

 
 
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