yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Kevin.Silbstedt:
Well I don't know much of this stuff either, I got the current results mostly by googling and try and error.

But wasn't one advantages of xserver, that it is faster? I didn't have any 5 minute lags with VNC?

BTW. It seems that I get even more errors:

u0_a130@android:/ $
u0_a130@android:/ $ cd /sdcard/ubuntu
u0_a130@android:/sdcard/ubuntu $ su
ndroid/files/bootscript.sh /sdcard/ubuntu/ubuntu.img <
Validating image checksum... OK
Checking loop device... MISSING
Creating loop device... OK
mount: mounting /storage on /data/local/mnt/external_sd failed: Invalid argument
No user defined mount points
net.ipv4.ip_forward = 1
Config file not found, using defaults!(/root/cfg/ubuntu.img.config)
Starting first boot setup.......
groupadd: group 'android_bt' already exists
groupadd: group 'android_bt-net' already exists
groupadd: group 'android_inet' already exists
groupadd: group 'android_net-raw' already exists
mkdir: cannot create directory `/var/run/dbus': File exists

Now give your user account (named ubuntu) a password

Please enter the new password below

Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
chown: cannot access `/external-sd/': No such file or directory
groupadd: group 'sdcard-rw' already exists
Start VNC server? (y/n)
n
Start SSH server? (y/n)
n
Save settings as defaults? (y/n) (You can always change it later in the app)
y
Config saved to /root/cfg/ubuntu.img.config

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

root@localhost:~# export DISPLAY=:0.0
root@localhost:~# xhost +
access control disabled, clients can connect from any host
root@localhost:~# startlxde
Xlib: extension "RANDR" missing on display ":0.0".
xscreensaver: 15:06:59: Can't open display: :0.0
xscreensaver: 15:06:59: initial effective uid/gid was root/root (0/0)
xscreensaver: 15:06:59: running as nobody/nogroup (65534/65534)

xscreensaver: 15:06:59: This is probably because you're logging in as root. You
shouldn't log in as root: you should log in as a normal user,
and then `su' as needed. If you insist on logging in as
root, you will have to turn off X's security features before
xscreensaver will work.

Please read the manual and FAQ for more information:

http://www.jwz.org/xscreensaver/faq.html
http://www.jwz.org/xscreensaver/man.html

Xlib: extension "RANDR" missing on display ":0.0".
Obt-Message: XKB extension is not present on the server or too old
Obt-Message: Xinerama extension is not present on the server
Obt-Message: XRandR extension is not present on the server
Obt-Message: X Sync extension is not present on the server or is an incompatible version
Xlib: extension "RANDR" missing on display ":0.0".
Openbox-Message: Could not acquire window manager selection on screen 0

(polkit-gnome-authentication-agent-1:11480): polkit-gnome-1-WARNING **: Error getting authority: Error initializing authority: Could not connect: Connection refused
There is already an instance of LXPanel. Now to exit

And this is how it looks in the end:

Nothing works with this. Anyone got an idea, what I might be missing?
[Android Software Development] mscion:
X server app

Well, you made more progress than me! I suggest you contact the developer of theXserver app and make him aware of your progress. Perhaps he might be interested enough to get more involved.

Here is a site the developer maintains that discusses progress using the Xserver app. Might also find some useful information there...

http://my20percent.wordpress.com/2012/02/27/android-x-server/

Also I tried contacting splashtop. Perhaps if more folks pester them they might compile a version for arm. Audio works pretty well when I do a

remote login to my home pc. Think it would be great for linux on android.
[Android Software Development] BleedingIris:
5 minute lag in the sense,that for about 5 minutes,nothing responds..

Just asking did you wait for some time after it stops responding.. may be for about 10 to 15 minutes..(seems stupid,I know...but may be it'll be work)

cm9 htc a310e k2.6
[Android Software Development] mebrad36711:
thanks for your help, works awsome.
[Android Software Development] mscion:
@kevin.silbstedt Your error message is complaining about you being root. Before you do the export DISPLAY=:0.0 , xhost + and startlxde what happens is you first do "su ubuntu" then the three commands?

EDIT: OK. I tried it myself and I can only get as far as making xeyes, xclock and xlogo.
[Android Software Development] devwithzachary:
If you are talking about the newly demoed Ubuntu mobile OS and not normall Ubuntu then no you can not do this, there has been no release for Ubuntu mobile, this is for running full OS's on your device
[Android Software Development] mirror77:
Hi,

if I try to launch via VNC I only see a grey display with the little cross in the middle. But there is no Desktop.

I just have uninstalled, VNCviewer, Terminal App, Complete Linux Installer and installed it all new, without success. What could be the Problem here?

Thanks for reply.
[Android Software Development] downhiller:
Hi, do you have waited for a while? At the first launch it takes several minutes.
[Android Software Development] mirror77:
Yes, I waited for more than 10 minutes. Nothing but grey.
[Android Software Development] NOMIOMI:
is there any way to put the OS img on MMC i have 32GB MMC i want to put the ubuntu img file on mmc and use it

is it possible
[Android Software Development] mirror77:
when you are on the "Launch" site of the app, you can edit every entry and change the path. On my device, for example, I can choose /mnt/emmc/ubuntu/ubuntu.img or /mnt/sdcard/ubuntu/ubutnu.img
[Android Software Development] mirror77:
What shoud I configure in there. I have set username, password, adress to localhost:5900 and enabled ssh-tunnel with the data localhost port 5900 also.

When I launch I see the message: "Remote Desktop was closed"
[Android Software Development] mscion:
X server app

@kevin.silbstedt Well, certainly appreciate your efforts. Many errors certainly pop up when trying "startlxde" or for gnome version "gnome-session". Without starting up the desktop, are you able to get any audio? From the My 20 percent thread it seems like some folks can get a bell or beep to work and others music audio but is choppy. I had tried beep (I downloaded using synaptic) but it does not make a sound via xserver. Will try to get mplayer later to see what happens...
[Android Software Development] Echelonblue:
When copying the data from the existing- to the bigger image

Add the -p switch to the copy command. so al the atributes are copies with the files.

Command would be:

sudo cp -r -p ubuntuold/* ubuntunew

It solves the strange errors when expanding an img
[Android Software Development] bkisc:
Ubuntu 12.10

Thanks for the update on 12.10, can you please upload your beta 12.10 images for us folks to test out, looked everywhere on the net but can't find a way to use armhf ubuntu 12.10 images available on canonical website to run on my nexus4, how do I install it from there ?
[Android Software Development] TraNe15:
I'm using Galaxy Note 10.1 and tried ubuntu version. Here are errors.

https://docs.google.com/file/d/0B16gUNc-1yMGeVVhTV8xMjFSd0U/edit

https://docs.google.com/file/d/0B16gUNc-1yMGblpXYnNrTkQtc3M/edit

Second one is error that occurs when i try to connect with VNC.

Looking for some help. Thank you.

EDIT:

Tablet

Samsung Galaxy Note 10.1

ROM: Rooted Stock 4.1.2

Kernel: Stock kernel - Cwm Recovery
[Android Software Development] mscion:
It may be that your config file does not have the right parameter.

start up ubuntu and check the file /root/cfg/ubuntu.img.config when in terminal.

It should have the line

run_vnc=yes

yours probably has

run_vnc=no
[Android Software Development] viskon:
Same thing here. Just a grey screen with a cursor.
[Android Software Development] TraNe15:
how can i set these paramaters again? When it asks for do you want these setting to be default, i typed y. Now it never asks for these again.
[Android Software Development] downhiller:
You find a file named Ubuntu.img.config which you can edit with a text editor.
[Android Software Development] tororosso125:
Worked a treat on my S3 bit laggy though. Not really fussed with the desktop however as have ubuntu running on my pc. But now I have a proper linux shell rather than Google's mashed up effort to fiddle with. Especially handy as have just taken on linux support role at work and I mainly deal with AIX and Solaris. Good for learning the differences

^ This man pretends to be an AIX sys admin...
[Android Software Development] TraNe15:
I couldn't find it, can you expalin it more detailed please?

Thank you
[Android Software Development] mirror77:
The file should be in the same folder your ubuntu image (ubuntu.img) lays.
[Android Software Development] TraNe15:
Nope, it's not dude..

https://docs.google.com/file/d/0B16gUNc-1yMGT0ZuMEdTZFNwRnc/edit
[Android Software Development] DarkhShadow:
The file will be in the location inside the image, you need to Mount it then edit it via command prompt or going to where its mounted

Sent from my Jelly Nexus 4
[Android Software Development] mirror77:
Then I have no idea, sorry. Maybe someone else has.

But did the ubuntu.img start yet? Because when I first run it, the ubuntu.img.md5 file will be deleted and an ubuntu.img.config file will be created.
[Android Software Development] mscion:
Hmmm. If you start ubuntu such that you are now in terminal emulator, what do get if you type the following and press return?

more /root/cfg/ubuntu.img.config
[Android Software Development] TraNe15:
No such file or directory.. Tried with "more" and without "more"
[Android Software Development] kajiggaa:
The large Ubuntu file v4 is corrupt when I unzip
[Android Software Development] downhiller:
Jump into the folder, where the ubuntu.img file is placed.

Create a file named ubuntu.img.config

Open it wirh a text-editor an fill in the followed text: (set resolution as your favorite one)

resolution=1280x800

run_ssh=yes

run_vnc=yes

Save it and start again.

Best regards
[Android Software Development] bkisc:
Possible VNC solution

I've found a solution for Ubuntu 12.04 vnc problems, it may not work on your device so please back up the ubuntu.img before attempting the procedure below.

this basically resets your vnc server and gets rid of password and grey screen problems.

logged in as root, I'm hoping you've completed your initial configuration like screen resolution selection etc. otherwise follow the steps described in other posts and edit the required configuration files.

kill the vnc process,

#ps aux | grep vnc

note down your pid for the line mentioning Xtightvnc

#kill [pid number]

wait 2 second

#ps aux | grep vnc

just to make sure, you should only a single line for the command you just typed

you should be root so far, now type

#su ubuntu

goto your home directory,

#cd

#rm .Xauthority

#cd .vnc

#rm *

#cd ..

#rmdir .vnc

this removes all vnc configuration files, time to start fresh

#tightvncserver

continue by typing your access password, reconnect from VNC client, should give you screen

if it mentions New 'X' desktop is localhost:1 then remeber to use port 5901 in vnc client otherwise use 5900

also to reset vnc configuration for root user, you might want to change root password first type

# sudo passwd root

punch in a new password, type #su and follow steps above

Hope this helps ..

Enjoy!
[Android Software Development] mirror77:
no change in my case :(
[Android Software Development] alphawave7:
Still having no luck adding my external harddrive to Ubuntu...my Subsonic server sees the directory, but no 'children' (my music files). The drive is FAT32, could this be the issue? Various attempts to mount in the bootscript.sh file have been unsuccessful or errors. Anyone have an external drive hanging off their phone in Ubuntu, and can access it? :)

edit: WOOT! Finally resolved this after reboots and unplugs, the mounts provided in the Launch menu are working! :D
[Android Software Development] devwithzachary:
Evening guys.

I have now got back from my weekend at FOSDEM, if there is still anyone that needs help etc feel free to reply or PM me :)
[Android Software Development] mirror77:
Like I described above, I only get a grey screen over vcn. Don't know what to do.
[Android Software Development] l3lu3lvl:
Running Backtrack on my MX2 stock rom and it runs pretty well. Thanks!

I've got a few Android phones lying around which got me wondering. would there be a way to install just linux on an unused device? It'd be really useful to just carry around a lightweight, ultra portable computer. I understand that it might be device specific depending on hardware. Just a shot in the dark
[Android Software Development] viskon:
I have tried putting Ubuntu on the following devices:

Viewsonic Gtab running android 2.2 -> I get a grey screen

Aforementioned Viewsonic Gtab running Android 2.3 -> I get a grey screen

Aforementioned Viewsonic Gtab running Android 4.1 -> Able to get into the GUI (LDE)

HP Touchpad running Android 4.0 -> Able to get into the GUI (LDE)

Galaxy Nexus running Android 4.2.1 -> Able to get into the GUI (LDE)

Not sure if this means that the Linux installer works only on Android 4.0+ ?
[Android Software Development] l3lu3lvl:
It works on GB for sure. The GUI takes a minute to load for me. Have you tried giving it a minute to load?
[Android Software Development] viskon:
Sure did. More than 10 minutes actually. Did not get past the grey screen.

Running CM7.2.
[Android Software Development] Dr_Death:
hi, i was trying to run wifi usb dongle "zdy1211rw" on backtrack and ubuntu installed on my galaxy S3 4.1.2 kernel 3.0.31-78978

i connect the dongle to OTG cable, then run "mount -o bind /dev/bus/usb /data/local/mnt/dev/bus/usb" from android terminal

from the backtrack or ubuntu terminal i can see the USB dongle by running lsusb, but ifconfig doesnt show it.

i think the problem from the module, lsmnd not showing the module, backtrack have the zdy1211.ko module file but under different kernel path /lib/modules/2.6...

uname -r show kernel 3.0.31 which is not available on /lib/modules/ so modprobe cant load the module

I try to download the kernel header from apt-get but it's not available

any advice please, thanks :good:
[Android Software Development] joesnose:
Hello,

Just thought i should mention that there is a arm version of tinycorelinux available for the raspberry pi, would this be easy to port over.

Tinycore comes in at just over 10mb and can be run with as little as 64mb of ram, seems it would be a nice candidate for a chroot environment.
[Android Software Development] l3lu3lvl:
And set colors to 24? Not trying to"dumb you down", just verifying. Do you see the mouse making an 'x'? For me on GB, I usually let it sit at the term for a min and then vnc in. Times like this push me to learn nix and wish I knew more.
[Android Software Development] devwithzachary:
Yes this would require a native install which would be different form device to device

It should work on all devices 1.6 and up (although the app will only work on 2.2+) could you both check the vnc logs in /home/ubuntu/.vnc see if everything is starting ok

The issue is that the chroot still uses the android kernel so you will have to build your own kernel most likely with this module built in

Once we have stabilised the current images we will look to new versions of linux
[Android Software Development] mirror77:
Here is a screenshot of the vnc-log Hope this will help. There seems to be some errors.
[Android Software Development] sullytrny:
razr maxx xt912.. Every rom gb ics jb all work for Ubuntu
[Android Software Development] bundee1:
Got this working on Gtab 2 7.0 p3113 running CM10.1

followed instructions to a T. Only problem was downloading and extracting. I kept running out of room because the compressed file download plus the uncompressed img come to 4.3 gb

Uncompressed on pc, deleted original download from tablet, copied uncompressed backtrack folder to root of internal sd. You can switch back and forth from the installer app to the vnc/busybox windows if you get stuck along the way.

Can we somehow add aircrack with the most common trouble free external usb antenna now that JB/CM 10.1 support usb on the go? I got an alpha AWUSO36H just to play with this on my tablet.

Thanks again for this awesome app. Donation sent!
[Android Software Development] maddy_in65:
Noob Question

I am not able to access android files from ubuntu. I saved one bin installer file on android and trying to install in ubuntu but i cant find it using terminal.
[Android Software Development] k3v0:
Nice update! Everything appears to be working including my donation key purchased through the google play store. Had to restart the device for the key to be recognized, after the upgrade
[Android Software Development] downhiller:
Hi, after updated to Version 2.1 the first start works fine. Then close and reopen the App again, it looks like crashed. There is no Tux and the first point"Installationsanleitung" is cut at the top. Restarting the device fix the problem for one start.

Galaxy Note 2

4.1.2

Perseus Kernel

Android Revolution HD 9.2
[Android Software Development] k3v0:
The attached screen occurs when I rotate my phone.

Edit: Killing the app and relaunching app fixes layout until I then rotate. Links still work and the launch screen is normal.
[Android Software Development] devwithzachary:
Yes it would seem if the menu has to be redrawn either because the app has been closed but moved to the background or because you rotate the device then the menu losses its positioning.

Does this happen on other pages in the app and when it does happen does the menu still work?

Shall have a look at this bug
[Android Software Development] downhiller:
Yes, all still works on my device
[Android Software Development] mscion:
Why does android OS not kill ubuntu app?

HI. I just have a general question. One of the gripes I (and many others) have with android is that it can kill processes that are put in background whether you like it or not. For example I might be editing a file using polaris, put it back ground, only to come back an hour or so later to find that the changes are lost and I have to restart the app. On the other hand, several times I have put ubuntu in background overnight only to find that when I return to it, it is still running and if fact the ubuntu screen saver is running! Further, the VNC app Jump had actually been killed by android OS, but restarting it brought me to where I had left off in ubuntu. So why is it that the android OS does not kill ubuntu when I run it? Is it because I am using terminal emulator? Note, Terminal emulator is another app that is not killed by android OS because it uses what is called an android "service". Anyways, please feel free to chime in with your thoughts!
[Android Software Development] plugsmustard:
I am having a problem all of a sudden. Complete linux installer (widgets to boot the imgs) keep telling me that another img is already mounted and asks if I would like to chroot into it. For all the distros (backtrack5, ubuntu (arch linux installer does the same thing)) when I click yes it initializes the init.sh in /data/local/mnt/root. I tried removing it, (keeping the originals) but it did not work. I cant even change the paths.

How do I unmount that img? Umount <path> wont work. And I have tried uninstalling the app and reinstalling. I have tried removing the widgets from home screen to redo the path, but it always says another img is mounted would you like to chroot into it.

Please help. I dont know what the hell is going on.

P.s. I also tried renaming the imgs and such. Moving them from internal and external sdcards with no avail
[Android Software Development] devwithzachary:
Yes its because the terminal runs as a service that linux cant be killed. If you closed the terminal without exiting linux will hang about but will be at the mercy of android.

Rebooting you device should clear this up
[Android Software Development] plugsmustard:
u0_a160@android:/ $

u0_a160@android:/ $ cd /storage/sdcard0/linuxback1

u0_a160@android:/storage/sdcard0/linuxback1 $ su

torage/sdcard0/linuxback1/backtrack.img <

sh: /data/data/com.zpwebsites.linuxonandroid/files/bootscript.sh: No such file or directory

127|root@android:/storage/sdcard0/linuxback1 #

I got this now
[Android Software Development] plugsmustard:
Got it. It was a problem with busybox.

Why the hell did the devs take away multiple widgets. I got backtrack5 and ubuntu lxde. And now I cant boot them separately.

Also. My backtrack img isnt connecting in vnc. Says the credentials are incorrect.

Any thoughts?

And lastly....does any one know how to remove the linux arch installer files?
[Android Software Development] devwithzachary:
We took away multiple widgets because we are changing how the widgets work and in the next update there will be new widgets.

You can however still use the launcher within the app to launcher different installs.
[Android Software Development] mambraxneol:
Hy sorry for this noob question

But i would like to install it on a tf300, how can i lake it?

thanks.
[Android Software Development] plugsmustard:
https://play.google.com/store/apps/details?id=com.zpwebsites.linuxonandroid
[Android Software Development] ashik992:
Help Please

The pic is the place where I get stuck.

Please tell me what should I do??

I'm using smoothrom 4.4 on a Nexus7.

Thank you
[Android Software Development] plugsmustard:
Try busy box? Do you have root?
[Android Software Development] k3v0:
Check permissions on that file. Need read access across the board.
[Android Software Development] Gestalt73:
Got Unity-2D working on 12.04

Hey Zach,

As far as I can tell, I have unity-2d working, both as an install onto your 12.04 image as well as from a custom build using rootstock. What kind of problems are you finding? I did a straight apt-get install gnome-desktop gnome unity-2d.

apt-get install(ing) unity-2d isn't really enough, I had to add gnome as well. I'm in the process of installing gnome-desktop so the magic-sauce was at least gnome+unity-2d.

Unfortunately rootstock blows up when I try to include gnome or unity-2d, so they need to be installed natively after you boot to the image.

It seems to be faster(relatively) using your image than when I started fresh. It's not really fast enough to be usable in my current build. but it sure is pretty.

My current install is directly to an ext4 partition. I'm going to run some hdparm tests to see if there is an appreciable difference between ext2(file), ext(partition), and ext4(partition).

I've also added a swap partition and activated it. not sure if it makes a difference overall though.

rootstock supports both oneiric (11.10) and precise (12.04) builds.
[Android Software Development] devwithzachary:
Interesting, I must say I havnt done a clean build im some time so its very possible the problems have been fixed that I was having, The problems mainly where that no icons etc would show and the whole unity would pretty much just be blank, but I am going to get a free build now and see if I can get it working, and if I can will push a new build asap!
[Android Software Development] nscxp2005:
Gestalt73,

Do you how I can get an on screen keyboard in 12.04 with gnome and unity 2D?

I need the on screen keyboard for use on a Tablet.

All the best,

NSCXP2005