Wednesday, March 19, 2014

Day 0.1 - Fresh Linux Install

  1. Fresh new install of Ubuntu 13.10.
  2. Enabled root login
    1. sudo passwd root
    2. sudo gedit /etc/lightdm/lightdm.conf.d/50-unity-greeter.conf
    3. Add line:greeter-show-manual-login=true
http://ubuntuhandbook.org/index.php/2013/11/login-as-root-ubuntu-13-10-saucy-salamander/


  1. Login as root



  1. Ubuntu Software updates



  1. Install OpenJDK7 Java using Ubuntu Software Center



  1. Update environment variables


  1. http://askubuntu.com/questions/308422/android-sdk-and-path
  2. gedit .bash_aliases
  3. gedit /etc/environment




  1. PATH

export ANDROID_HOME=/opt/android/sdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools


  1. JAVA_HOME


Issue: There was an issue with gedit whenever I opened it: “** (gedit:9280): WARNING **: Could not load Gedit repository: Typelib file for namespace 'GtkSource', version '3.0' not found”

Solution: http://askubuntu.com/questions/369915/warnings-while-launching-gedit-from-the-ubuntu-terminal

Updating gir1.2-gtksource-3.0 solved the problem for me; the errors no longer appear.
sudo apt-get install gir1.2-gtksource-3.0

Issue: gedit Gtk-WARNING GtkScrolledWindow is mapped but visible child GtkScrollbar is not mapped”

Solution: http://askubuntu.com/questions/435528/gedit-warning-gtkscrolledwindow-is-mapped-but-visible-child-gtkscrollbar-is-not

It was a bug in overlay-scrollbar which has been fixed here at launchpad. It has been fixed.

So just run
sudo apt-get update
sudo apt-get install overlay-scrollbar


  1. Download Android ADK
  2. Install Eclipse 4.3.2 Standard
installed it to /opt/ and followed this URL to setup it up so you can run it from the Dash.


Create a desktop file and place it into /usr/share/applications

# sudo gedit /usr/share/applications/eclipse.desktop
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
Exec=env UBUNTU_MENUPROXY=0 /opt/eclipse/eclipse

Exec=env UBUNTU_MENUPROXY=0 /opt/eclipse/eclipse 
4. Drag and Drop eclipse icon from /usr/share/applications/eclipse.desktop to your Dash Bar.
Very important for Ubuntu 13.10: you have to add the line below to the end of eclipe.desctop fil

Exec=env UBUNTU_MENUPROXY=0 /opt/eclipse/eclipse
Create a desktop file and place it into /usr/share/applications
# sudo gedit /usr/share/applications/eclipse.desktop
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
4. Drag and Drop eclipse icon from /usr/share/applications/eclipse.desktop to your Dash Bar.
Very important for Ubuntu 13.10: you have to add the line below to the end of eclipe.desctop file.
- See more at: http://www.blogs.digitalworlds.net/softwarenotes/?p=54#sthash.sqFwqJQo.dpuf
Create a desktop file and place it into /usr/share/applications
# sudo gedit /usr/share/applications/eclipse.desktop
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
4. Drag and Drop eclipse icon from /usr/share/applications/eclipse.desktop to your Dash Bar.
Very important for Ubuntu 13.10: you have to add the line below to the end of eclipe.desctop file.
- See more at: http://www.blogs.digitalworlds.net/softwarenotes/?p=54#sthash.sqFwqJQo.dpuf






    How do I mount shared folders (win7 host) in Ubuntu (guest) using VMware(tools v6) - Ask Ubuntu

    How do I mount shared folders (win7 host) in Ubuntu (guest) using VMware(tools v6) - Ask Ubuntu

    I have set up on Windows 7 host with Ubuntu 11.04 Desktop with VMware Tools installed on.

    Virtual Machine settings

    • Folder sharing = Always Enabled
    • Make sure you have at least one Folder shared between the host and guest

    On the Ubuntu Guest

    • check /mnt/hgfs that you can access your shared folder.
      If you don't see your shared folders (automounted) inside /mnt/hgfs , run VMware configuration tools:
      sudo vmware-config-tools.pl
    • update your fstab using the details below:
      gksu gedit /etc/fstab
      (I am using ubuntu desktop so use other text editor to enter the next line at the end of the file)
      .host:/{shared-folder} /{path-to-mount-on} vmhgfs defaults,ttl=5,uid=1000,gid=1000 0 0
    • Restart your vm (You may need to restart few times or get error message saying unable to mount just skip the error and restart)

    Linux Persistent USB on Windows

    Persistent USB on Windows

    Converting between Ubuntu Linux desktop distros.

    Converting between Ubuntu Linux desktop distros.

    Kubuntu: apt-get install kubuntu-desktop (KDE)
    Xubuntu: apt-get install xubuntu-desktop (XFCE)
    Lubuntu: apt-get install lubuntu-desktop (LXDE)
    Ubuntu GNOME: apt-get install ubuntu-gnome-desktop (Gnome)

    Tuesday, March 18, 2014

    How to add application to dash

    http://askubuntu.com/questions/67753/how-do-i-add-an-application-to-the-dash

    Sunday, March 16, 2014

    Running Your App | Android Developers

    Running Your App | Android Developers: "Run on the Emulator
    Whether you're using Eclipse or the command line, to run your app on the emulator you need to first create an Android Virtual Device (AVD). An AVD is a device configuration for the Android emulator that allows you to model different devices."



    'via Blog this'

    Day X

    1. I tried to Run the MyFirstApp Run As->Android Application
    2. I changed AndroidManifest.xml android:minSdkVersion="8" to android:minSdkVersion="19"
    3. sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1
    4. No Launcher activity



    1. mysecondapp worked like a charm.
    2. I NEED TO:
      1. install more SDK Manager stuff and measure the space it takes.  Right now:




    Best way to add Activity to an Android project in Eclipse? - Stack Overflow

    Best way to add Activity to an Android project in Eclipse? - Stack Overflow: "An easy method suggested by Google Android Developer Community."



    'via Blog this'

    Setting up an Android Development environment

    linux - Android adb not found - Stack Overflow

    linux - Android adb not found - Stack Overflow: "And for Ubuntu 13.10:

    sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1"

    Modifying .bash_aliases JAVA_HOME and PATH


    1. Here is a snippet from my .bash_aliases file

    export PATH=$PATH:/home/kasimcee/Development/adt-bundle-linux-x86_64-20131030/sdk/tools/
    export PATH=$PATH:/home/kasimcee/Development/adt-bundle-linux-x86_64-20131030/sdk/platform-tools/
    export PATH=$PATH:/usr/lib/jvm/java-7-openjdk-amd64/jre/bin
    export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64



    References
    1. How to set java environment path in ubuntu
    2. How to set JAVA_HOME and PATH for OpenJDK

    Support Library Setup | Android Developers

    Support Library Setup | Android Developers: "Adding libraries with resources

    To add a Support Library with resources (such as v7 appcompat for action bar) to your application project:

    Using Eclipse"



    'via Blog this'

    Creating an Android Project | Android Developers

    Creating an Android Project | Android Developers:



    'via Blog this'

    App Resources | Android Developers

    App Resources | Android Developers:



    'via Blog this'

    Testing | Android Developers

    Testing | Android Developers:



    'via Blog this'

    App Manifest | Android Developers

    App Manifest | Android Developers:

    Managing Projects | Android Developers

    Managing Projects | Android Developers:

    Managing AVDs with AVD Manager | Android Developers

    Managing AVDs with AVD Manager | Android Developers:

    Managing Virtual Devices | Android Developers

    Managing Virtual Devices | Android Developers:

    Why does Eclipse's "Check for updates" not work - Ask Ubuntu

    Why does Eclipse's "Check for updates" not work - Ask Ubuntu: "I often the permissions on /opt to 1777 to allow anyone to create packages there. Alternatively I use chgrp users /opt and set the permissions to 1775. This allows members of the uses group to add new packages to /opt."



    I set the permissions on /home/kasimcee/Development/adt-bundle-linux-x86_64-20131030/sdk and /home/kasimcee/Development/adt-bundle-linux-x86_64-20131030/eclipse to 1777 by typing:



    chmod 1777 /home/kasimcee/Development/adt-bundle-linux-x86_64-20131030/sdk [enter]

    chmod 1777 /home/kasimcee/Development/adt-bundle-linux-x86_64-20131030/eclipse [enter]



    Then, I ran Eclipse and it gave me an adb error.  I closed it and restarted Eclipse again and it worked!

    Saturday, March 15, 2014

    oracle java 7 vs openjdk 7 - Google Search

    oracle java 7 vs openjdk 7 - Google Search:

    Tips For Linux - How to find files in Linux using 'find'

    Tips For Linux - How to find files in Linux using 'find':

    fosshelp: How to Install and Configure Android SDK in Ubuntu 13.10

    How to Install and Configure Android SDK in Ubuntu 13.10



    bash - Adding a path to the .bashrc file? - Stack Overflow

    bash - Adding a path to the .bashrc file? - Stack Overflow:

    Installion: How to install bash-doc in Ubuntu 13.10 (Saucy)

    Installion: How to install bash-doc in Ubuntu 13.10 (Saucy):

    12.04 - Oracle Java 7 Removing Error! - Ask Ubuntu

    12.04 - Oracle Java 7 Removing Error! - Ask Ubuntu:

    Android Development on Eclipse

    1. First tried Android Studio on Win 7
    2. DUMB FACT #1: The Android Developer Network has Samples available for Android Studio ONLY, however then you go to their Training and its based on using Eclipse instead?
    3. So, I decided to go with Eclipse instead of Android Studio since its more versatile for programming outside of Android as well.
    4. I wanted to install on a Linux platform so I can also learn Linux in spare time and knockout 2 birds with one stone, since its the platform of choice for hacking, security assessments, etc. 
    5. Outcome: Ubuntu 13.10 Desktop with Eclipse IDE with ADT.
    Installation
    1. Install Ubuntu 13.10 Desktop on a virtual machine
      1. I want to install it on a USB stick because then I can maximize the hardware support rather than using partial hardware via a virtual machine running via Windows.
    2. Then, I went to About This Computer and checked for updates and I installed all the updates.
    About This Computer displays updates
    1. Then, I went to this link to XXXX to setup IDE environment.  They LIED and said all you need to do is install the bundle and you're ready to go.  They forgot to add JDK to their setup so if you don't have JDK installed, you have to install that first.
    2. The next thing I learned is that if you have 1 JDK installed, then you may experience problems trying to install another JDK over it.  I installed OpenJDK 7 and then tried to install Oracle JDK 7 and kept experiencing errors.  In the end, I went with OpenJDK 7 because it was already installed, however I will come back to this article XXXX to determine what is the difference between them from performance, security, etc.
    3. I installed OpenJDK 7
    4. Ran the Android SDK Manager and choose all of 4.4 and some other stuff, I will come back to this later.
    5. Added a ~.bash_aliases to store my custom PATH additions.
    6. Ran AVD
    7. Ran Eclipse and ran Install Updates and it errors about lacking privileges.
    8. Looked up this article
    9. changing permissions on the directories with Eclipse and Android SDK

    1. Ran Eclipse and it gave me an adb error
    2. Restarted Eclipse and it came up fine!


    Take A ScreenShot In Ubuntu 13.10 - RockingWithLinux

    Take A ScreenShot In Ubuntu 13.10 - RockingWithLinux:



    'via Blog this'
    Enhanced by Zemanta

    Error installing Flash for Chrome using RPM

    I am trying to install Flash.  Tried using

    rpm -i flash-plugin-11.2.202.346-release.x86_64.rpm

    and I get the following error:

    error: Failed dependencies:
    glibc >= 2.4 is needed by flash-plugin-11.2.202.346-release.x86_64
    /bin/sh is needed by flash-plugin-11.2.202.346-release.x86_64




    LRRHOA dispute charges and balance

    I just got this in the mail.

    When I checked my bank account to verify I did make payments between 11/25/14 and now