yashsingh1/xdaforums huggingface dataset:
[Android Software Development] case-sensitive:
linux on nook color

First, thanks for creating and maintaining this wonderful app!

I have a nook color, running

CM7-08312011 **off the sdcard** (i.e. not emmc), which is android 2.3.5

kernel: 2.6.32.9

CPU: armv7

I installed ubuntu 12.04 small image and it worked, including VNC, exactly *once*: If I disconnect VNC, type "exit" on the terminal (which does exit gracefully), and then relauch ubuntu, I got an error message. The issue is probably caused by me running the rom off the sdcard. I suspect that other people might/will be in a similar situation (e.g. the nexus 7, which has limited internal storage); I'd be most appreciative if you could look into this.

Here is a more detailed description of the error messages:

--------------------------------------------------

* After I unpack the files and run the installer, the step "validating image checksum" takes two plus minutes. Eventaully it says "OK", followed by the error message

rm: can't remove './/sdcard/ubuntu/ubuntu.img.md5': No such file or directory

* the next lines displayed are

Checking loop device... MISSING

Creating loop device... OK

No user defined mount point

net.ipv4.op_forward=1

Using config file /root/cfg/ubuntu.img.config

Config file loaded

Starting first boo setup...

(a bunch of statements about various groups already exist -- since I've run this many times)

creating password

* next I got an error message:

chown: cannot access `/external-sd/': No such file or directory

followed by

group `sdcard-rw' already exists (since I've run the installer many times)

* I then get the message

New 'X' desktop is localhost:0

and other messages about android vnc etc.

* I then start VNC and everything works great! After I'm done, I click "disconnect", and then return to the terminal

* I type 'exit' and got the messages

Killing Xtightvnc process ID ****

* Stopping OopenBSD Secure Shell server sshd [OK]

Shutting down ubuntu ARM

* then I got the error message

umount: can't umount /data/local/mnt/external_sd: Invalid argument

* losetup: /dev/block/loop255: No such device or address

----------------

Now, if I relaunch ubuntu, at the checksum step I got the error message

error: Checksum failed! The image is corrupted!

and then the launcher stops.

----------------

If I then re-unzip the ubuntu zip files and start from scratch, then everthing works for that one session (with the same error messages), and then I can't relaunch...

-----------------------------------------------------

My guess is that this is caused by having the user content AND the system files both being on the same sdcard part (albeit on different partitions). Indeed, if I go to the terminal emulator and type for example

ls /sdcard

I do access the *user content* of the sdcard; similarly, root explorer also identifies the sdcard as being mounted as /sdcard.

Except for this amusing and slightly inconveniently problem, the whole installer works *really* work! I'd be most appreciative for any suggestions/advice on how to fix this.

THANKS!
[Android Software Development] devwithzachary:
Just delete the ubuntu.img.md5 file as this is meant to deleted after first boot, also update the scripts as i have done a update to fix it (the app itself will be updated soon with the fix)
[Android Software Development] case-sensitive:
Thanks! Stupid question: Could you explain how I would update the scripts? I downloaded the ubuntu zip from sourceforge last night; I just checked the OP but I don't see any mention about updating...

On a related note: How would I change e.g. the rescreen resolution? The first time I launched ubuntu I was given the option of entering the resolution. The script no longer prompt for that input, and I'd like to try a different resolution.

THANKS!
[Android Software Development] devwithzachary:
Either get the new update for the app I just uploaded to the market or go into the launcher manu and press the menu button on your device and select script updater and update it.

To change the screen size either buy a donation key to unlock the Linux editor in the launcher menu which let's you set screen size etc within the app. Or in the folder you put your image file you will find a config file that you can manually edit the saved screen size using a text editor
[Android Software Development] Devtaji:
Which distro should I use?

I want to study linux and havin it on android would be great.

One question though. Which distro should I use?
[Android Software Development] :
just a reminding:

I totally found there is a problem caused everyone have different bootscript problem!!

Since i used "terminal IDE" app, and install another shell on my S3, I booted the same script, and found the difference between using "terminal emulator".....

most of these problem are caused by different busybox version?

if i use the "terminal emulator" , the bootscript shows some "command not found:in line**".......the other "terminal IDE" ,(you have to install "system" first )uses another shell, and it cause different problem in the boot script, but it reads the command that cant work in the "terminal emulator".....

I guess because everyone installs busybox in many ways, also there is not only one busybox app in the market, so this means maybe we should recommand a version, a way to install busybox........or maybe need a tool of binary checks before launch

also another problem,I think there are some devices named "wlan0" (samsung's) but not "eth0"
[Android Software Development] devwithzachary:
depends on your device really

We solve the issues with busybox by building and including our own busybox within the app, in the new app there was a bug that stopped it being used but this has been fixed in the 1.1.1 update
[Android Software Development] :
^^ the backtrack v8 works great again:good:.....but the built in terminal(in backtrack) has a big problem.....it doesnt works....

after I took a look of the files in sourceforge.net

I found there is a translation blablaba.......strings.xml.....

you guys really prepares to make a muti language app? but I only see english in the APK package.......

by the way, If needed, actually I can translate it into Traditional Chinese, Simplified Chinese......though i am a busy person.....
[Android Software Development] devwithzachary:
The main app (Complete Linux Installer (NEW)) has Danish, German, Bulgarian, French, Spanish, Swedish and your more than welcome to, thats why the files are there so anyone can translate and send it to me.

If you have the time by all means translate but dont feel you have to just if you have the spare time
[Android Software Development] :
suddenly i found there are some monitor mode mods for ICS........and seems like it works on some chipsets

seems someone had mad custom drivers.........

and goes with the kernal for BT5

http://www.icsforums.com/forum/showthread/6395?page=16

I was shocked someone sumbitted the same driver as mine "bcmsdh_sdmmc"....

hasnt read the long conversation yet........

have anyone tried this before?
[Android Software Development] Facuricaud:
Hi there! For all the atrix users having problems with the grey screen when opening the vnc viewer, the problem is that the first launch of the vnc server does not work, so you can start another one and problem solved.

Go to the terminal where the image is running and enter de comand "vncserver -geometry 960x540"

Then on the vncviewer app you should change the port to 5901 as you created a new vnc desktop.

That solved my issue.

I'm currently on Noattach1.3.1 rom running the small ubuntu 10 image, i didn't try the 12.04 yet, but i guess it should work as well.
[Android Software Development] omegacorp:
pulseaudio

Hi and thank you for this very good project !

I have spend many hours to make working pulseaudio and other stuff like freeNX on the ubuntu full image to do a full laptop replacement with audio support.

But all my test where fruitless.

For pulseaudio I think I have to find a way to install a virtual soundcard and to better understand how pulseaudio work.

For FreeNX unfortunately the developpers didn't compile the freeNX-server and other freeNX stuffs, I din't find a way to compile them by-myself.

I'm not a linux guru so perhaps someone can help me, and I think could help a lot of people ...

I will continue to search and to post here if I will found a way ...

Itshak
[Android Software Development] zulu99:
if you want you can download from http://xdaforums.com/showthread.php?t=1292627

droidmote server for ubuntu arm edition and control your ubuntu image with your phone.

in this mode you can transform your android device in a real pc.

droidmote server now simulate mouse, keyboard, gamepad , multitouch touchpad and gamepad2touch.

look this:

https://www.youtube.com/watch?v=Eda-ozF4R94

and this:

https://www.youtube.com/watch?v=J9clUDFQqDo
[Android Software Development] devwithzachary:
OK so your suggesting this as a replacement for a vnc connection yes? What is the befits of this over normal vnc
[Android Software Development] zulu99:
nono you see with vnc and control with another android phone. in this mode you can have also gamepad and native multitouch.

(a real example: run your ubuntu image on your tablet that you see with vnc and control it with the phone, in this mode you can attach also the tablet to the tv via hdmi or external big monitor)

instead if you use an arm device that can boot ubuntu from sdcard like the mk802 or others, you can directly control this device with your android phone.
[Android Software Development] insestito:
What is mi ADRESS for VNC????
[Android Software Development] Spitfire:
Noob alert. The install guide seemed so simple, I downloaded the apps and the image, extracted it to my external SD card, and hit launch. I get the message "Warning! The image set in this profile does not exist!" I opened the Android VNC and terminal emulator apps but truthfully I have no clue what to do there lol. Any help?

I'm using ubuntu 12 full on an Asus TF300

***Nevermind, I needed to put the image on my internal sd card.***

This is pretty cool, though the picture doesn't come in perfectly clear and it's a little weird to use. You can tell it's through a terminal and not native GUI.
[Android Software Development] kostass123:
I'm trying to boot Backtrack on my Xperia mini (ST15i).

I have installed the latest krsh kernel

http://xdaforums.com/showthread.php?t=1709032

and realICS custom rom

http://xdaforums.com/showthread.php?t=1709032

on my phone, which is of course rooted.

I followed the instructions and installed vnc viewer, terminal emulator, complete linux installer 1.1.1, and copied the contents of the backtrack-v8.zip to /sdcard/backtrack/

Then, I open the complete linux installer app, chose to launch backtrack and I get the error messege you see an the 1st screenshot!

Then, I open terminal emulator and give the following commands and I get the 2nd screenshot!

-su

-cd sdcard/backtrack

-sh backtrack.img

I haven't installed busybox on my device and while performing all these operations usb debugging was on. I don't know if it is of any importance or not... I'm just saying!

Did I do something wrong? Any ideas?

EDIT: I also tried this method but it didn't work either!

http://xdaforums.com/showthread.php?t=1079898
[Android Software Development] Facuricaud:
I can't use any image except the small ubuntu 10.10 image, i get a white screen when i open the vnc app and starting a new vnc server does not solve the issue.

I'm noattach with the stock kernel

from my MB860 using Tapatalk
[Android Software Development] TheMilkMang:
I'm on a rooted stock galaxy nexus android 4.04 and followed the instructions in the app. I keep getting the following error in the image.

It seemed to go one time for some reason, but just sat there for over 10 minutes before I finally just closed it.

Thanks.

edit: uploading it scaled it down. i.imgur. com /d2omJ.png
[Android Software Development] devwithzachary:
If connecting to it from the device itself then its just localhost

try changing vnc rendering to full 24bit (At the bottom of the settings page before you connect)

You need to use the launcher menu or widget to boot it now as the boot script is now built into the app (although you can still download it from the source forge site and manually run). SO to run backtrack open the launcher menu, from the drop down list select backtrack, if its says it cant be found then press the menu button and edit the path to the backtrack image to where it is on your device.

Then press the launch button (if you have bough a donation key you can also press the config button and set up screen size etc, if you havnt the terminal will ask for these)

could you send me a screenshoot of the terminal when your trying to boot another image other than the one that is working

are you using the 1.1.1 app and have you updated the script to v7.3 as there was a bug that meant the script did not use the apps busybox and so relied on the devices which causes the cut error alot
[Android Software Development] kostass123:
Thanks for your reply! I finally did it! I ran backtrack through the command line.

Then, I tried to run backtrack's wireless cracking tools! I typed airmon-ng and it said command not found! Is it not installed? Then I typed sudo apt-get install aircrack-ng to get it but I got an error message!

So, what's the use of installing backtrack if all the features that make it so special don't work?
[Android Software Development] devwithzachary:
Cracking tools do not work due to driver limitations of the android wifi drivers (they do not support monitor mode) so they have never been included in the arm repository's other tools within backtrack do however work.
[Android Software Development] TheMilkMang:
I'm using the app from the app store and it's up to date. The scripts are also up to date. Any thing else to try?
[Android Software Development] anonymusneo:
sgs i9000 on ICS

unable to copy 2 gb ubuntu file to /ubuntu

after a while it stops and restarts system , the folder ubuntu vanishes tooo
[Android Software Development] insestito:
I put that configuration in androidvnc? for ubuntu small with GUI

http://img.tapatalk.com/b29c7f9e-7315-eab2.jpg
[Android Software Development] devwithzachary:
Ok in which case, the error 'shouldnt' be there but to fix it open the script and delete the section (or comment it out) near the top that checks for root

ok are you trying to copy it just on the device or via a computer? your best bet is to just use a computer to extract the file and then copy it to your device

are you wanting to connect to the GUI on your device or from another device?
[Android Software Development] blackhead2048:
Hi,

i'm on the TF300TG. Getting this Error in Terminal:

Got The Donate Version. Tablet is defintly rooted and backtrack.img is located in /sdcard/backtrack/

Thanks in advance.

/edit: I also get n advise, that Terminal Emulator was root rights granted.
[Android Software Development] insestito:
Zacthespack, from the same device

Thanks

Enviado desde mi LG-P920 usando Tapatalk
[Android Software Development] devwithzachary:
See the post above you, you will need to delete the lines within the boot script found at data/data/com.zpwebsites.linuxonandroid/files that check for root i think in the next update i will just remove this as it will just error out if you dont have root and more people just get this error with cut not working

IP: localhost

Port: 5900

Password: ubuntu

this settings are found in the last page of the install guides for each distro
[Android Software Development] blackhead2048:
ok i did remove the root check. Backtrack is loading and accessable via terminal and vnc. But what about the other errors?
[Android Software Development] devwithzachary:
the attachment is to small to beable to read sorry
[Android Software Development] blackhead2048:
Sry

28 export imgfile=$(dirname $0)/ubuntu.img # Default image file, another can be set by using an argument

113 $bbox mount -o bind $(dirname $imgfile) $mnt/root/cfg

192 $bbox chroot $mnt /root/init.sh $(basename $imgfile)

Thanks

Gesendet von meinem ASUS Transformer Pad TF300TG mit Tapatalk 2
[Android Software Development] devwithzachary:
Thanks, not sure why these errors are coming up, but if you can boot fine etc then shouldnt really matter
[Android Software Development] iofthestorm:
Hi,

Really like how you've set up a nice launcher and easy to setup images for everything! I used to do this from the terminal but it's nice to be able to start the Ubuntu image without having to remember the commands and such. I was just wondering, is anyone else unable to ssh out to another machine? I get host key verification errors, and when I run ssh in verbose mode it says something about being unable to access /dev/tty, and apparently all the ttys are owned by root (I'm running ssh as ubuntu). It does work as root though (obviously since root owns all the ttys). Actually come to think of it there's really not a strong reason not to run as root in a chroot environment but I guess it just feels strange. Any ideas? I primarily want this for command line stuff anyway so maybe it's not a big deal.
[Android Software Development] TheMilkMang:
Awesome, it works now. Thanks so much :D

One last thing, is sound not supported?
[Android Software Development] devwithzachary:
right now no as vnc cant carry sound and i have yet to find a good way of passing sound from linux to android
[Android Software Development] wd5gnr:
There is a highly alpha pulseaudio setup for Android that I haven't tried, but that would be ideal if it worked.

http://arunraghavan.net/2012/04/pulseaudio-on-android-part-2/
[Android Software Development] anonymusneo:
i extracted and copied it in /sdcard/ubuntu

but as per tutorial we need to copy it on /root/ubuntu

SGS default internal mem is only 2gb , its not letting me copy the image (1.97 gb)

the fone restarts after being un responsive for 10 minutes
[Android Software Development] DarkhShadow:
No it just needs to be in /sdcard/Ubuntu

Anyway, you can change location of image in app

Sent from my ice cream powered Nexus S
[Android Software Development] anonymusneo:
im on icy glich - ICS i9000

i did all the steps now it is now getting connected though VNC giving error

"VNC connection Failed! Authentication Failed"
[Android Software Development] devwithzachary:
thank you will certainly look into this!

Can you please post a screen shoot of the output from yoru terminal, and what settings you are using in vnc
[Android Software Development] anonymusneo:
i figured it out , i got in but .

It is really slow and dont have a keyboard to input , the send text doesnt work that good too
[Android Software Development] devwithzachary:
If you long press on the screen three buttons will come up at the button of the screen the middle will bring up the android keyboard so you can key directly into ubuntu
[Android Software Development] devwithzachary:
Complete Linux Installer (NEW) Updated to v1.1.3

However the big change this version brings is three new buttons in the install guide menu, which will be the next three distros to get support, its been a long time since any new distros where given support so its time that changed!

You will have to download the new update and check to see what the three new distros will be (See it as a mini surprise), but the important info is like when I started work on ubuntu 12.04 until the new distros are 'stable' they will be only unlocked with donation key. Once I am happy enough general bugs have been smashed, and we have decided on what to include in which distro they will become 'stable' and be added to the free app.

So if you want early access to the new distros as they come out make sure you have a donation key bought and ready.

The first new distro beta will likely be released within a week with the others follow shortly after so keep an eye out for the update!

This version is also the first of the new app to make its way onto the sourceforge site, so you no longer have to use the market at all if you do not wish!

The update can be download from sourceforge here: https://sourceforge.net/projects/linuxonandroid/files/App/

Change Log:

*Added 3 new buttons ready for future distros (have a look to see what the next distros will be ;) )

*Removed the links to the donation at the end of the guides

*Added small image 'ad' for the donation keys at the button of the install guides (will not show if you have a donation key installed)
[Android Software Development] homeplayer:
No eth0

:confused:

can't geting it to work, no network connection :confused:

ta/local/bin:$PATH <
app_188@android:/ $ cd /mnt/extSdCard/Ubuntu
app_188@android:/mnt/extSdCard/Ubuntu $ su
cript.sh /mnt/extSdCard/Ubuntu/ubuntu.img <
Checking loop device... MISSING
Creating loop device... OK
No user defined mount points
net.ipv4.ip_forward = 1
Using config file /root/cfg/ubuntu.img.config
Config file loaded
vncserver: geometry 1200*1080 is invalid

If you see the message 'New 'X' Desktop is localhost:0' then you are ready to VNC into your ubuntu OS..

If connection from a different machine on the same network as the android device use the address below:
eth0: error fetching interface information: Device not found

If using androidVNC, change the 'Color Format' setting to 24-bit colour, and once you've VNC'd in, change the 'input mode' to touchpad (in settings)
* Starting OpenBSD Secure Shell server sshd[ OK ]

To shut down the Linux environment, just enter 'exit' at this terminal - and WAIT for all shutdown routines to finish!

root@localhost:/#

GT-I9300 android 4.04

Kernel 3.0.36 Siyah

Omega v9.0 rom

I did google read this whole post what is it i am doing wrong
[Android Software Development] devwithzachary:
You have used * for the screen size instead of x which has prevented vnc from starting, you will need to edit your config file from 1200*1080 to 1200x1080
[Android Software Development] homeplayer:
Omg,

ill try at ones. report asap;

Report, some script errors found,

when asking for a y/n pls check answer for y/n

still no luck x is better then *,

but still no network on eth0

---------- Post added at 06:49 PM ---------- Previous post was at 06:19 PM ----------

:D

i did a connection whit vnc from the laptop,

there it was up and running,

then i noticed that i did not provide a user name, just a password 'ubuntu'

then i went back to the phone deleted the username, and done

all working

---------- Post added at 07:12 PM ---------- Previous post was at 06:49 PM ----------

Now i need a smaller and faster ROM,

test and tweak, and find the best distro to run as a desktop on my phone.

and for sure a donation key will be bought. keep up the good work.

this first run was a slow experience i sure hope we/I will find a faster one

Thanks

---------- Post added at 07:13 PM ---------- Previous post was at 07:12 PM ----------

Now i need a smaller and faster ROM,

test and tweak, and find the best distro to run as a desktop on my phone.

and for sure a donation key will be bought. keep up the good work.

this first run was a slow experience i sure hope we/I will find a faster one

Thanks
[Android Software Development] Facuricaud:
Here's the screenshot when i use the small 12.04 image
[Android Software Development] stealthdave:
I have a small feature request. I have an Archos 80 G9 which is a fantastic tablet, but Archos in its wisdom decided to use non-standard locations for internal memory and the sd card. I can't do a sym-link because the sd card is FAT formatted. Would it be possible to add a feature to specify the folder where the image is located?
[Android Software Development] ArmorD:
I installed Backtrack on my S2 but none of the programs really worked... I could go to Firefox and browse web but none of those "testing" software(surely meant for testing only... :D ), and all of them opened a terminal window with an error. I tried installing those via apt-get but no luck...

Sent from my Volvo