Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Sunday, January 19, 2014

Install android for linux

Steps to install Android Development Tool for Linux.



  1. Download SDK ADT bundle for linux.
  2. Unpack the ZIP file (named adt-bundle-.zip) and save it to an appropriate location, such as a "Documents" directory in your home directory.
  3. Open the adt-bundle-/eclipse/ directory and launch eclipse.
That's it! The IDE is already loaded with the Android Developer Tools plugin and the SDK is ready to go. 

Caution: Do not move any of the files or directories from the adt-bundle- directory. If you move the eclipse or sdk directory, ADT will not be able to locate the SDK and you'll need to manually update the ADT preferences.
To proceed with the installation
A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations:
Install JDK 7 INSTALL ORACLE JAVA 7 IN UBUNTU VIA PPA REPOSITORY

Preparing your system
First you need to remove openjdk for this run the following command from your terminal

sudo apt-get purge openjdk*

If you installed java 7 from any other PPA and you are having problem with java then you have to do following steps before installing the PPA menctioned here


sudo rm /var/lib/dpkg/info/oracle-java7-installer*
sudo apt-get purge oracle-java7-installer*
sudo rm /etc/apt/sources.list.d/*java*
sudo apt-get update

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer


Monday, September 17, 2012

Install VLC after installing Ubuntu 12.04

http://howtoubuntu.org/things-to-do-after-installing-ubuntu-12-04-precise-pangolin/

Install VLC after installing Ubuntu 12.04

Sunday, September 16, 2012

install java in upbuntu

http://www.ubuntugeek.com/how-to-install-oracle-java-7-in-ubuntu-12-04.html

Preparing your system
First you need to remove openjdk for this run the following command from your terminal
sudo apt-get purge openjdk*
If you installed java 7 from any other PPA and you are having problem with java then you have to do following steps before installing the PPA menctioned here
sudo rm /var/lib/dpkg/info/oracle-java7-installer*
sudo apt-get purge oracle-java7-installer*
sudo rm /etc/apt/sources.list.d/*java*
sudo apt-get update
Install oracle java 7 in ubuntu 12.04
Open the terminal and run the following commands
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
You can check the java version by searching java in dashboard

install android sdk in ubuntu 12.04LTS-64

http://askubuntu.com/questions/131207/android-sdk-cant-be-installed-on-ubuntu-12-04-64



It is highly recommended that you install ia32-libs so that the SDK is compatible with your 64-bit machine.
sudo apt-get update
sudo apt-get install ia32-libs
Or, if you're running Ubuntu 12.04, you may have to install ia32-libs-multarch instead:
sudo apt-get update
sudo apt-get install ia32-libs-multiarch
I've been maintaining this thread on XDA-Developers for a while now, I took bits & pieces from other forums, and put this method together. Googles method never worked for me, and made me hate Ubuntu. But, eventually it grew on me and I've gotten more advanced with Linux distros. Hope my thread can help someone. Enjoy the possibilities!!!!!
http://forum.xda-developers.com/showthread.php?p=9393280#post9393280

install eclipse

http://askubuntu.com/questions/26632/how-to-install-eclipse

  1. Extract the eclipse.XX.YY.tar.gz using
    $ tar -zxvf eclipse.XX.YY.tar.gz
    
  2. Become root.
    $ sudo su
    
  3. Copy the extracted folder to /opt
    # cp -r eclipse.XX.YY /opt
    
  4. Create a desktop file and place it into /usr/share/applications
     # gedit /usr/share/applications/eclipse.desktop
    
    and copy the following to the eclipse.desktop file.
    [Desktop Entry]
    Name=Eclipse 
    Type=Application
    Exec=/opt/eclipse/eclipse
    Terminal=false
    Icon=/opt/eclipse/icon.xpm
    Comment=Integrated Development Environment
    NoDisplay=false
    Categories=Development;IDE
    Name[en]=eclipse.desktop
    
  5. Create a symlink in /usr/local/bin using
     # cd /usr/local/bin
     # ln -s /opt/eclipse/eclipse
    
That's it.

Friday, June 01, 2012

Grub2 display problem

  1. Changing Menu Resolutions

    If the user wishes to change the resolution of the GRUB 2 screen for image enhancement or general font size changes:
  2. Set the desired resolution in /etc/default/grub
    • Change the value of GRUB_GFXMODE= (Example: GRUB_GFXMODE=800x600)
    • If unsure of what resolutions are available to GRUB 2 they can be displayed by typing vbeinfo in the GRUB 2 command line. The command line is accessed by typing "c" when the main GRUB 2 menu screen is displayed.
  3. Select an image of the same proportions.
    • GRUB 1.99 - Place the image in the grub folder or add a GRUB_BACKGROUND entry in /etc/default/grub
    • GRUB 1.98 - Change the value of WALLPAPER in /etc/grub.d/05_debian_theme
    • GRUB 1.99 - Place the image in the grub folder or add a GRUB_BACKGROUND= entry in /etc/default/grub
    • If an image of the correct size is not used, the menu will not be positioned correctly.
    • Use the image editor of your choice to create/resize an image to the correct size.
    • The user may be able to view the image size via Properties in a file browser (check the Properties Image tab in Nautilus).
  4. Run update-grub to update GRUB 2

Creating User Splash Images

GRUB 2's splash image management makes it easy to use a wide variety of splash images.

Resolution Settings

The images in the grub2-splashimages package are primarily 640x480 images.
GRUB 2 looks for a resolution setting in /etc/default/grub. If uncommented, the resolution is determined by this line:
  • GRUB_GFXMODE=640x480
  • If no setting is found in /etc/default/grub, GRUB 2 attempts to use the highest resolution possible. GRUB 2 may not be able to handle the same resolutions as the computer can once the operating system is booted.

Image Creation and Setup

info.png In Ubuntu, refer to the Display in DASH or via the System, Preferences, Display menu for available monitor resolutions, or run vbeinfo in the GRUB 2 terminal to display the resolutions available it.
  1. Determine the resolution you will use for the GRUB 2 splash image.
  2. Create or resize any image to to the appropriate size.
    • GRUB 2 currently supports PNG, TGA, and 8-bit JPG/JPEG images.
    • The images should be RGB, non-indexed.
      • If using GIMP, naming the file with the applicable extension will save the file in the given format. Set the correct properties via the "Image > Mode" menu.
  3. Make the applicable changes in the GRUB 2 configuration files:
    • /etc/default/grub: Uncomment the GRUB_GFXMODE=640x480 line and change the value if the resolution will be other than 640x480.
    • Add the GRUB 2 background image information to the configuration files(s) as discussed previously.
  4. Run sudo update-grub to incorporate the changes into GRUB 2.