<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to General FAQ</title><link>https://sourceforge.net/p/linuxonandroid/wiki/General%2520FAQ/</link><description>Recent changes to General FAQ</description><atom:link href="https://sourceforge.net/p/linuxonandroid/wiki/General%20FAQ/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 22 Dec 2016 10:25:32 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/linuxonandroid/wiki/General%20FAQ/feed" rel="self" type="application/rss+xml"/><item><title>Discussion for General FAQ page</title><link>https://sourceforge.net/p/linuxonandroid/wiki/General%2520FAQ/?limit=25#e7e3</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This device i had&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">manmeet </dc:creator><pubDate>Thu, 22 Dec 2016 10:25:32 -0000</pubDate><guid>https://sourceforge.net7dd7a989682aa2e8158d7017e8a5fdac57f2b0ad</guid></item><item><title>Discussion for General FAQ page</title><link>https://sourceforge.net/p/linuxonandroid/wiki/General%2520FAQ/?limit=25#8525</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Any idea can't boot into kalilinux rooted device with busybox&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">manmeet </dc:creator><pubDate>Thu, 22 Dec 2016 10:23:40 -0000</pubDate><guid>https://sourceforge.net97d63704b25853e21b13e41418e30e0b43527fc5</guid></item><item><title>Discussion for General FAQ page</title><link>https://sourceforge.net/p/linuxonandroid/wiki/General%2520FAQ/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Still error after change from ext4 to ext3 need more help why?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">devinstudio</dc:creator><pubDate>Mon, 16 May 2016 10:29:59 -0000</pubDate><guid>https://sourceforge.net7626464c45049ce22858dae5092e17ae090c17c5</guid></item><item><title>Discussion for General FAQ page</title><link>https://sourceforge.net/p/linuxonandroid/wiki/General%2520FAQ/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I am using a Galaxy Tab 3 (GT-P5220). I am trying to boot into Ubuntu-13.04. I have managed to get all my errors fixed except for:&lt;/p&gt;
&lt;h1 id="chroot-cant-execute-rootinitsh-no-such-file-or-directory"&gt;chroot: can't execute 'root/init.sh': No such file or directory&lt;/h1&gt;
&lt;p&gt;I don't know where to find init.sh and it's not on the &lt;a class="" href="http://sourceforge.net/p/linuxonandroid/codegit/ci/2723887cd1321d82a4d2c173f196a7794565f520/tree/Bootscripts"&gt;bootscripts&lt;/a&gt; page. &lt;/p&gt;
&lt;p&gt;I am new at this, so any insight will be appreciated. Thanks in advance.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Lesiba Mahapa</dc:creator><pubDate>Wed, 24 Sep 2014 14:20:04 -0000</pubDate><guid>https://sourceforge.net6d3f1f2b06000b792fdc01f88a1f5f25b5cae2ff</guid></item><item><title>General FAQ modified by Brent Baccala</title><link>https://sourceforge.net/p/linuxonandroid/wiki/General%2520FAQ/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -9,7 +9,7 @@
 For any questions related to the app (Complete Linux Installer), the VNC app and other app related issues.

 # [Advanced FAQ]
-For more advanced questions, including how to increase the image sizes, how to open PDF files, how users and groups work, and how to easily encrypt data.
+For more advanced questions, including how to increase the image sizes, how to open PDF files, how to escape from the chroot environment, how users and groups work, and how to easily encrypt data.

 # [Boot Script FAQ] 
 For any questions related to the boot scripts including any errors you get during booting.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brent Baccala</dc:creator><pubDate>Fri, 10 May 2013 15:31:14 -0000</pubDate><guid>https://sourceforge.net4cbc77ba180bc2310b42ed4235265b6b79097e2e</guid></item><item><title>General FAQ modified by Brent Baccala</title><link>https://sourceforge.net/p/linuxonandroid/wiki/General%2520FAQ/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -9,7 +9,7 @@
 For any questions related to the app (Complete Linux Installer), the VNC app and other app related issues.

 # [Advanced FAQ]
-For more advanced questions, including how to increase the image sizes.
+For more advanced questions, including how to increase the image sizes, how to open PDF files, how users and groups work, and how to easily encrypt data.

 # [Boot Script FAQ] 
 For any questions related to the boot scripts including any errors you get during booting.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brent Baccala</dc:creator><pubDate>Wed, 08 May 2013 07:02:09 -0000</pubDate><guid>https://sourceforge.netc4d90f5abc158ae396cdba6315d9d9b55cb1f19f</guid></item><item><title>General FAQ modified by Zachary Powell</title><link>https://sourceforge.net/p/linuxonandroid/wiki/General%2520FAQ/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Zachary Powell</dc:creator><pubDate>Sun, 21 Apr 2013 19:44:44 -0000</pubDate><guid>https://sourceforge.netcefc3ecd44331246922602d1e09cea7453470384</guid></item><item><title>General FAQ modified by Zachary Powell</title><link>https://sourceforge.net/p/linuxonandroid/wiki/General%2520FAQ/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -2,126 +2,17 @@

 [TOC]

-# 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.
+# [Basic FAQ]
+This is for general questions about the project, please read this before sending a support email!

-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.
+# [App FAQ]
+For any questions related to the app (Complete Linux Installer), the VNC app and other app related issues.

-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. 
+# [Advanced FAQ]
+For more advanced questions, including how to increase the image sizes.

-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).
+# [Boot Script FAQ] 
+For any questions related to the boot scripts including any errors you get during booting.

-For more information see here: http://wiki.winehq.org/ARM
-
-## 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" - http://en.wikipedia.org/wiki/Chroot
-
-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.
-
-# App FAQ
-## 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: https://play.google.com/store/apps/details?id=jackpal.androidterm 
-
-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 "ubuntu.sh[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.)
+# [Linux Image FAQ]
+For any questions to do with the linux images themselves (errors you get within linux etc)
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Zachary Powell</dc:creator><pubDate>Sun, 21 Apr 2013 19:43:47 -0000</pubDate><guid>https://sourceforge.netaf1d5850b29a099940af835cd6ca0b37337405b8</guid></item><item><title>Discussion for General FAQ page</title><link>https://sourceforge.net/p/linuxonandroid/wiki/General%2520FAQ/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;On my system (mediapad 10 FHD  mount -t ext2 /dev/block/loop255 /data/local/mnt fails with …&lt;br /&gt;
mount: mounting /dev/block/loop255 on /data/local/mnt failed: No such device&lt;/p&gt;
&lt;p&gt;calling cat /proc/filesystems, we see ext2 is not supported …  only suopport ext4, how can I do?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">guan kevin</dc:creator><pubDate>Tue, 16 Apr 2013 10:28:59 -0000</pubDate><guid>https://sourceforge.net5bf5937be3cfef1723fb146c1559d8938124d7a9</guid></item><item><title>WikiPage General FAQ modified by Zachary Powell</title><link>https://sourceforge.net/p/linuxonandroid/wiki/General%2520FAQ/</link><description>Below is a list of Questions we regularly get asked, please read these before submitting a support ticket.

[TOC]

# 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: http://wiki.winehq.org/ARM

## 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" - http://en.wikipedia.org/wiki/Chroot

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.

# App FAQ
## 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: https://play.google.com/store/apps/details?id=jackpal.androidterm 

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 "ubuntu.sh[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.)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Zachary Powell</dc:creator><pubDate>Thu, 18 Oct 2012 07:27:06 -0000</pubDate><guid>https://sourceforge.net74f8dbee3dd90ecc3c43248db35cd007baac1bb8</guid></item></channel></rss>