Sunday, July 28, 2013

Access to files on Android Phone from Ubuntu laptop through SSH on Nautilus.

As described in the previous post I have installed Debian which is working side by side with the OS on the Android Phone. Since the Phone has only 186 MB RAM and most of it being used by the processes running on the Phone OS there is hardly anything left for the Debian LXDE. Unless I can manage to kill the unnecessary processes there is not much use of the Debian LXDE installation.

Off course I have found other uses of the Debian installation. I could start the SSH server through the Debian on the phone and could login from my Laptop and browse the files on Nautilus as follows:
Open Nautilus
Go/Location
ssh://Debian_user_on_phone@ipaddress
I could also copy files from the Phone to the laptop and vice versa.

You can see Folders like /bin /boot /etc /home etc which do not exist on the Android OS but have been mounted by the debian installation and when I exit Debian I have to unmount them through a single command. In fact there is nothing inside the /boot folder because the Debian is not controlling the Boot. The folders on Android OS root are as follows:
cache config data dev lib persist proc root sbin sdcard sqlite_stmt_journals sys system
and the files
default.prop EUROPA.rle init init.glodfish.rc init.qcom.rc init.qcom.sh init.rc



Thursday, July 25, 2013

Installed Debian on Samsung Galaxy 5 (GT-I5503)

People generally look for installing other ROMs on their phones after getting root access but being Linux user I was looking for installing Linux Distribution without disturbing the original ROM. After googling I got this thread on xdadevelopers site. The idea of installing Debian using the original ROM appealed to me. Accordingly I downloaded the Debian Kit application by Sven-Ola Tuecke from Android Market. You can read about this application here.

Following are the Prerequisites which are easily met by even old Android phones (mine was bought in 2010):
  • Root access to your Android device is required. No root, no Debian.
  • Kernel supports mounting loop disks or you have at least an external SD card with a spare partition.
  • Kernel supports the ext2, ext3, or ext4 file systems.
  • CPU architecture is ARM (little endian) or i386 (ia-32 bit).
  • 128 Mb of RAM or more, otherwise the launcher app may be killed during installation.
  • 512 Mb of free space on SD card (either internal or external).
  • Internet connection to download 100-500 Mb of software packages.
  • Terminal app installed, alternatively ADB access.
  • If you are a noob: command line input and text file editing is a must.
To make it easy the Debian Kit applications checks the above requirements and reports the suitability of the phone.

There are procedures to run Linux in chroot environment on Android Phones but the Debian Kit method works as follows:
The kit does not use the chroot command to make up a separate Debian environment (refer to schroot(1) for a similar technique). Instead, Debian subdirectories and files (such as /lib or /etc/resolv.conf) are added to the Android RAM-disk based file system with symlinks or bind-mounts. With this, e.g. you have access to newly mounted devices such as USB drives and the SD card. Also, can use Debian commands to compile packages that in turn can use a working chroot. This works, because a typical Android device has a file system (e.g. Libraries below /system/lib) that does not overlap the Debian file system (e.g. Libraries below /lib and /usr/lib). However, some files may overlap - which triggers a warning displayed if you start the deb script. For example, the Android /etc/hosts file is replaced by the Debian version while Debian is mounted. Which in turn may influence the inner working of your Android software stack. This is especially true with custom ROMs, because these typically add some Linux stuff that the ROM developer may miss. All changes are reverted if you issue the deb u command or simply by restarting your device.

After rooting my phone as described in previous post I have installed Andromized version of Debian on my phone and presently downloading andromized-lxde.

Following is the screenshot of my phone:
and on right side is the screen-shot running Bash shell on Debian and downloading required files for andromized-lxde desktop.

The internet speed is slow on the mobile using GPRS 2G and I will upload the image of andromized-lxde desktop later on when it gets installed on the phone.

Update on 26th July 2013
I am posting the screen shots of LXDE Desktop and the Leafpad running on it. When I tried Iceweasel the mobile crashed but it used to crash otherwise also before installing Debian.


Sunday, July 21, 2013

After two days struggle successfully rooted my Samsung Galaxy 5 Android Phone.

After trying z4root and Superoneclick and getting frustrated I could successfully root my Samsung Galaxy 5 Phone running Android 2.1 using Universal Androot.

Now watch my blog! I am going to run Debian on this mobile phone.

I could get a blog post specifically for my mobile and do it.

Friday, July 05, 2013

How to resume an unresponsive Ubuntu Desktop.

I am using Ubuntu 12.04 LTS with 3.5.0 Kernel. Sometimes the Desktop becomes unresponsive to mouse clicks and key presses.

Earlier I use to press Ctrl+alt+F1 login to terminal and reboot.

Then I read somewhere that I can kill all processes and re-login. The suggested command was:

kill -9 -1

Today I had the opportunity to use this command and it worked. The manual describes this command as follows:
EXAMPLES
       kill -9 -1
              Kill all processes you can kill.

I could re-login to the Desktop without reboot.

Air India direct flight to San Fransisco has flown through China today.

 My sister in law left for San Fransisco by AI 173 flight which flows over North Pole. I tracked that flight on flightstats.com till it land...