[General Topics] S0AndS0:
4. Aditinal notes Part 1

Contents

​

4. Additional notes

The following sub sections are dedicated to the more common tasks: interacting with android linux as a whole, helpful links, linux command line commands, and helpful tips for the apps that you’ll be using to set up and interact with your linux android system that would have broken the flow of reading the main install steps.

4:0 Sites that have been exceptionally helpful

This section has the following organization patterns:

new links = descending order, older links near the top newer links towards the bottom

small font with link embedded = older links that likely are up to date between all versions of this guide

medium font with link embedded = links that I’ve formatted but have yet to update to other mirrors of this guide

medium font with link not embedded = links that I’ve most recently added and likely have not been updated anywhere else

https://github.com/openstack-dev/

http://blog.urfix.com/25-ssh-commands-tricks/

http://www.linuxquestions.org/questions/debian-26/how-to-configure-apt-get-to-install-suggested-packages-169746/

http://www.linuxfromscratch.org/blfs/view/svn/index.html

https://help.ubuntu.com/community/AptGet/Howto

http://forums.debian.net/viewtopic.php?f=30&t=47258

http://www.howtogeek.com/108511/how-to-work-with-the-network-from-the-linux-terminal-11-commands-you-need-to-know/

http://www.verot.net/socks.htm

http://cssoss.files.wordpress.com/2012/05/openstackbookv3-0_csscorp2.pdf

http://docs.openstack.org/trunk/openstack-compute/admin/content/installing-openstack-compute-on-debian.html

https://wiki.openstack.org/wiki/Packaging/Debian

http://wiki.opscode.com/display/chef/Deploying+OpenStack+with+Chef

http://anonscm.debian.org/gitweb/?p=openstack/glance.git;a=summary

http://www.debianuserforums.org/viewtopic.php?f=9&t=1513

http://www.wikihow.com/Run-a-.Jar-Java-File

http://linux.die.net/man/1/mr

http://wiki.debian.org/BridgeNetworkConnections

http://www.oracle.com/technetwork/java/embedded/downloads/javase/index.html

http://ss64.com/bash/

http://www.bleepingcomputer.com/forums/t/145051/making-your-own-linux-bash-commands/

http://answers.oreilly.com/topic/1442-how-to-configure-windows-7-remote-desktop/

http://www.raspberrypi.org/phpBB3/viewtopic.php?f=81&t=27634

https://jdk8.java.net/fxarmpreview/

http://www.savagehomeautomation.com/pi-jdk

https://jdk8.java.net/fxarmpreview/javafx-arm-developer-preview.html

http://linuxconfig.org/bash-scripting-tutorial

http://developer.android.com/reference/android/content/Intent.html#ACTION_SHUTDOWN

http://en.wikibooks.org/wiki/QEMU/Images#Converting_image_formats

http://www.penguintutor.com/tutorials/viewdoc.php?doc=bluetooth-network-tutorial

4:1 apps for android that make things easier

Note: these apps are not necessary to follow the guide as of yet, so don’t go paying without considering all the good it’ll do you.

GitHub

https://play.google.com/store/apps/details?id=com.github.mobile

ROM Toolbox Pro

https://play.google.com/store/apps/details?id=com.jrummy.liberty.toolboxpro

XDA Developers

https://play.google.com/store/apps/details?id=com.quoord.tapatalkxda.activity

devcheats

https://play.google.com/store/apps/details?id=miquelco.devcheats

Shark for Root

(native)

https://play.google.com/store/apps/details?id=lv.n3o.sharknative

BusyBox Installer

https://play.google.com/store/apps/details?id=com.jrummy.busybox.installer

Remount

https://play.google.com/store/apps/details?id=com.stericson.remount

TUN.ko Installer

https://play.google.com/store/apps/details?id=com.aed.tun.installer

Google Drive

https://play.google.com/store/apps/details?id=com.google.android.apps.docs

4:2 linux software and or packages that I've tested

jMonkeyEngine

http://jmonkeyengine.org/

Very powerful programing and development toolkit for programing, if you run into issues after installation go to help update in the jmonkey window and that should resolve it, the developer states it on the download page but i and many others have filled google search bars with error searchs when mostly that one step will save you a lot of heartache, after of course resolving the other dependencies... I’ll be updating this in a bit with full directions on how to install .sh packages from the downloads folder in android to a full programing environment.

Wireshark (linux & android? yep)

http://www.wireshark.org/

updates eventually. so far I’ve been able to use wireshark from the android market to capture my home network info’s, saved it and then using wireshark on the linux side of things to view and interact with the pcap files as I at this moment don’t know how to resolve all the dependencies for running wireshark on the linux side solely.

4:3 commands for apt-get and others I've found useful

4:3:0 Android command line commands

Here will be commands that can be run from the Android command line, independent of the Linux system, some in fact many will also work on the Linux system. At this point the "____" will be the break between subsections for sectio 4:3:0:* as organization will have to happen after there's enough content to organize.

____

Download from web to a specific directory and attempt to reconnect if connection is interrupted.

The -cO = 'c' to reconnect if interrupted, 'O' to 'output' to a specific file path.

The '/sdcard/Download*' = path you want to save the file to; adjust it based on where your device saves downloads to by default or change it to a custom path.

The 'http://' = the web address you wish to download from. Some may not support it but most should.

Example : Syntax

# wget -cO /sdcard/Download/[Name-of-file-you-are-downloading].[file-extention-of-the-file] "http://domain.com/path/to/file/to/download.zip"

Example : Usable

# wget -cO /sdcard/Dolphin_Browser_Mini/download/photobomb-cat1fxb.jpg " http://www.justsaypictures.com/images/photobomb-cat-1fxb.jpg "

____

4:3:1 Apt-get commands:

Search for package or package description (still working on condensing and organizing this part)

#apt-cache search "web server"| grep something

Install commands

#apt-get -i {package-name}

Removal commands

#apt-get remove <package_name>

Removes an installed package, leaving configuration files intact.

# apt-get purge <package_name>

This command completely removes a package and the associated configuration files. Configuration files residing in ~ are not usually affected by this command.

If you want to remove package1 and install package2 in one step:

# apt-get remove<package1> <package2>+

Remove unnecessary or abandoned data that isn't necessary to keep

# apt-get autoremove

This command removes packages that were installed by other packages and are no longer needed.

#apt-get autoremove <package_name>

This command removes an installed package and dependencies.

While there is no built in way to remove all of your configuration information from your removed packages you can remove all configuration data from every removed package with the following command.

# dpkg -l | grep '^rc' | awk '{print $2}' | xargs dpkg --purge

auto-apt commands

# auto-apt run<command_string>

When invoked, the auto-apt command automatically installs packages upon missing file access. If a program tries to access a file known to belong in an uninstalled package, auto-apt will install that package using apt-get. This feature requires apt and sudo to work.

Auto-apt keeps databases which need to be kept up-to-date in order for it to be effective. This is achieved by calling the commands auto-apt update, auto-apt updatedb and auto-apt update-local.

Usage example

You're compiling a program and, all of a sudden, there's an error because it needs a file you don't have. The program auto-apt asks you to install packages if they're needed, stopping the relevant process and continuing once the package is installed.

# auto-apt run./configure

It will then ask to install the needed packages and call apt-get automatically. If you're running X, a graphical interface will replace the default text interface.

dpkg command to get package information such as description of package, version etc. The syntax is: dpkg --info {.deb-package-name}

Pull up the man page for adding repos to apt-get

# man add-apt-repository

Note: at this point this command doesn't work, will look into it at some point soon.

At some point if you don’t know better you’re going to try and make apt-get install more automatically than it really needs to; you may succeed. Before you waste your time like I did and then go searching round for ways to undo safely the same way take a look at this quoted and condenced from hear (

http://www.linuxquestions.org/questions/debian-26/how-to-configure-apt-get-to-install-suggested-packages-169746/

)

::::::

I think that automatically adding all suggested packages would put a lot of cruft on your system. However, if you want it, you can get that behavior by adding a line to /etc/apt/apt.conf: Code: APT::Install-Recommends "true"; APT::Install-Suggests "true";

The second line will automate suggests and the first would automate installation of recommends. You can use either or both, though again, lots of cruft. If you don't yet have an /etc/apt/apt.conf file,you can create it and add just the one line.

If you have apt.conf setup like this, you can avoid installing recommends via: Code: apt-get --no-install-recommends install package

This will prevent apt from considering recommended packages as dependency for installing,even if apt.conf is configured to do so via "APT::Install-Recommends".

you can also specify the option on the command line, like this: sudo apt-get install <package> -o APT::Install-Suggests=true but apt-get install will follow the "suggests" for all installed packages, not just the one you are adding now.

::::::

____Split