General FAQ

From LinuxonAndroid Wiki
Jump to: navigation, search

Below is a list of Questions we regularly get asked, please read these before submitting a support ticket.


Basic FAQ

Can I Install Wine?

While there is an on going ARM port for Wine it is important to remember that Wine is not a CPU emulator.

What does this mean? Well it means that while you can indeed install wine it will only be able to run .exe files that have been compiled for the ARM processor, which is next to none.

The problem is that 'normal' computers use the x86 or x86-64 architectures for their processors, which is very different to the ARM processor architecture most android devices use so it's not possible to run .exe files from these architectures on our phone.

However it does seem the goal of ARM wine is that in the future after Windows 8 has been released, to allow running of programs that have mean made for the ARM processor (As Windows 8 will run on ARM).

For more information see here:

What is Chroot?

"A chroot on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children" -

This method of running linux distros with android has been around for some time. I have worked on my scripts to make the process more user friendly and give you far more options from the word go.

The scripts start by mounting the ubuntu image file within the android file system and then mounts the sdcard and if ou have it internal memory within the ubuntu file system.

Chroot is then used to change the root directory to that of the mounted ubuntu and a bash shell is then opened to allow you to control Ubuntu this is kind of like 'booting' the OS.

The likes of VNC and SSHD are then set up when ubuntu is 'booted' to allow you to connect to the GUI if you require it.

Wait this uses VNC why shouldn't I just VNC to a computer?

VNC is used to access the GUI as a native way of viewing the GUI has not yet been implemented. But the Linux distro itself is running within the phone and can be controlled via the terminal app, so if you're a seasoned Linux user you may never even want to use the GUI.


What are the VNC settings?

As writen in the last page of the install guide (after the page about porting) the info you need to connect is:

IP: localhost port:5900

For Ubuntu Password: ubuntu

For Backtrack Password: backtrac

For Debian Password: debian

The password you set it your password for your user account not the password for vnc.

android.content.ActivityNotFoundException Error when using the boot widget or launcher menu item

This is a error that I have been getting reports about on the market error reporter. It has a very simple fix which is in fact in the app market description, but I shall repeat it here.

In order for the widget/button to not force close you MUST have this terminal app installed on your device:

If the terminal is included in your ROM this will not work (As it is installed in the system apps and not normal apps) so you will need to delete this and reinstall it from the market.

You must also make sure you have the newest version of the terminal installed as older versions of the terminal will not work.

Advanced FAQ

How do I give Linux more space?

As with all advanced articles you must have a good understanding of linux and android in order to get this working as most devices work differently etc. If you have problems I will try to help but can not offer much help with this matter (As it can be device dependent) also this can result in your sdcard getting wiped so preced with caution! Note that the download page indicates the default image sizes as "extracted size".

There are a few ways of going about this, I will look at two here the first being the safest but limited and the second harder but has really only the limit of how big your storage is! For both of these methods you must have a computer running Ubuntu or any other linux distro.

Method 1 For this method we shall simply make a bigger image file and copy the content from the old file to the new one, however its important to note if your storage is formatted for FAT32 you will only be able to increase the image to 4GB, if your storage is formatted to ext2/3/4 this can be much larger, but be warned Android starts to not like mounting large image files if you go to high!

Start by copying your image file you want to 'make larger' to your computer, place it on the Desktop to make things easier.

Now open a terminal, cd to the desktop and create the new blank image of the size you want using the following commands

cd ~/Desktop 
dd if=/dev/zero of=ubuntunew.img bs=1M count=0 seek=4096 

This creates a new image file called 'ubuntunew.img' change the seek value to the size you want (e.g 4096 = 4GB)

Next we must format the new image to the ext2 file system using the below command

mke2fs -F ubuntunew.img

next create two folders on your desktop call one ubuntunew and one ubuntuold, we will use these as a place to mount the two images.

You now need to mount the old and new images in there respective folders, do this using the follow commands:

sudo mount -o loop ubuntu.img ubuntuold
sudo mount -o loop ubuntunew.img ubuntunew

Now we shall copy all the files from the old image into the new image:

sudo cp -r ubuntuold/* ubuntunew

(Using cp -rp will preserve ownerships, so if you have created your own account, it will still be owned by you.) Once this is complete simply unmount the images and your ubuntunew.img is ready to be used!

sudo umount ubuntuold 
sudo umount ubuntunew

Method 2

The second option involves creating a partition on your sdcard and 'installing' ubuntu to the partition. This will wipe your sdcard and requires a good knowledge of both linux and android. I will write up this method shortly along with a edited boot script to allow booting from it.

Boot Script Issues

Error "[23]: cut: not found"

This is a error that some devices/roms have had.

You will need to edit the boot script, open the boot script (found at data/data/com.zpwebsites.linuxonandroid/files) using a text editor (on windows use notepad++) and find the section which says it is checking for su rights. Delete this section or comment it out from the script, save it and re run. You may get more errors in which case its likely your rom is not compatible with the project, or for many it simply fixes the problem and boots fine.

Error "[1] Segment Fault ${bbox} chroot $..."

This error pops up in Arm v6 Devices when you try to install Backtrack 9 and Ubuntu 12.04. It is caused from the current precompiled builds (Ubuntu 12.04 and Backtrack 9) being made for Arm v7 Architecture. Until another is made with arm v6 support you're going to have to use the Debian build or a custom build.

Ubuntu Issues

Ubuntu 10.10 Issues

Typing 'D' minimizes all windows

This is a known issue in the 10.10 images, the default keyboard short cut to minimize windows is the windows key + D however as android does no have a windows key it defaults to just the d key.

This can easily be fixed by opening the keyboard short cuts settings menu and changing the short cut from just D to any key combo that you would not normally use.

Ubuntu 12.04 Issues

Unity does not render correctly

This is a known issue for all devices with a nvidia tegra processor, it is something I am looking into but have yet to get a reason for it not rending correctly (the icons are missing from the launcher etc) for now it is advised for owners of such devices to use the small image which uses the LXDE interface.

Backtrack Issues

Debian Issues

Debian large v4 - Can't become root in terminal (debian is not in the sudoers file. This incident will be reported.)

Personal tools