yashsingh1/xdaforums huggingface dataset:
[HTC EVO 3D] xionation:
# su

su

# cd sdcard

cd sdcard

# cd ubuntu

cd ubuntu

# sh ubuntu.sh

sh ubuntu.sh

ubuntu.sh: mount: permission denied

ubuntu.sh: modprobe: permission den

ubuntu.sh: clear: permission denied

ubuntu.sh: rm: permission denied

ubuntu.sh: rm: permission denied

ubuntu.sh: rm: permission denied

ubuntu.sh: rm: permission denied

ubuntu.sh: rm: permission denied

ubuntu.sh: mkdir: permission denied

ubuntu.sh: clear: permission denied

ubuntu.sh: rm: permission denied

ubuntu.sh: rm: permission denied

ubuntu.sh: rm: permission denied

ubuntu.sh: rm: permission denied

ubuntu.sh: cp: permission denied

ubuntu.sh: cp: permission denied

ubuntu.sh: cp: permission denied

ubuntu.sh: cp: permission denied

ubuntu.sh: chmod: permission denied

ubuntu.sh: chmod: permission denied

ubuntu.sh: clear: permission denied

Help? :/, yes i have busy box and yes i'm rooted
[HTC EVO 3D] clewis.it:
what rom are you running?

also, try installing ES File Explorer, go to settings, enable root explorer, then set system as read/write.
[HTC EVO 3D] xionation:
Got it running but when i do apt-get update it can't find the files or anything, what repositories should i have? :/
[HTC EVO 3D] clewis.it:
first use:

apt-get update

that will update the repositories. Then use:

apt-get upgrade

that will update your system with the latest programs.
[HTC EVO 3D] mikedavis120:
I made an image for myself in ubuntu I'm gonna make another probably with kde but I hate vnc lol. It only works once how do u make it stay on localhost:1 I'm on like localhost:3... And then the desktop is blank. Any ideas? Plus if I compile an img it will be with the new 12.x build. Just wanna make the kububtu version.
[HTC EVO 3D] unCoRrUpTeD:
There's a file that needs to be deleted that holds the vnc info. Don't remember the location.
[HTC EVO 3D] mikedavis120:
Me either hence the problem :confused:
[HTC EVO 3D] clewis.it:
Delete everything in /tmp

Or, you can just delete the file that vnc tells you already exists.

My Shooter: 5 ROMs, 4Gs, 3Ds, 2 Cores
[HTC EVO 3D] jork_C:
root@localhost:/# apt-get install tightvncserver
apt-get install tightvncserver
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
xbase-clients
Suggested packages:
tightvnc-java
The following NEW packages will be installed:
tightvncserver xbase-clients
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 767kB of archives.
After this operation, 1700kB of additional disk space will be used.
Do you want to continue [Y/n]? y
y
WARNING: The following packages cannot be authenticated!
xbase-clients tightvncserver
Install these packages without verification [y/N]? y
y
Err http://ports.ubuntu.com karmic/main xbase-clients 1:7.4+3ubuntu7
404 Not Found
Err http://ports.ubuntu.com karmic/universe tightvncserver 1.3.9-4
404 Not Found
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/x/xorg/xbase-clie
nts_7.4+3ubuntu7_all.deb 404 Not Found
Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/universe/t/tightvnc/ti
ghtvncserver_1.3.9-4_armel.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

what should i do...?
[HTC EVO 3D] mikedavis120:
I had that problem with the older versions of ubuntu but I built a rootstock version and my apt get works fine now its just missing all the icons and stuff. I get the lxde desktop but just boxes with a red x in them. It's strange.
[HTC EVO 3D] acb123:
I have the same problem :(
[HTC EVO 3D] StrumerJohn:
Ubuntu Broken.

Sorry guys I guess this no longer works...

Ubuntu removed alot of the files needed to run it on a phone off of their website which is why you are getting the errors on the script to try and install it.

Recapped:

Here's what I mean the website the script is going to to get the files no longer exists...

Heres an example to see for yourself: http://ports.ubuntu.com/ubuntu-ports/pool/universe/t/tightvnc/tightvncserver_1.3.9-4_armel.deb

I will try and find a new link to plug in but for now it DOES NOT WORK!

Thank you for your patience on the thread,

StrumerJohn​
[HTC EVO 3D] StrumerJohn:
The reason the keyboard isn't working is because of the screen resolution on our phone. It worked fine / works fine on the EVO 4G ( http://www.youtube.com/watch?v=OGp1cqQCAKw )

I'm doing my best on seeing if it's fixable anytime soon!
[HTC EVO 3D] akiradavis:
Yikes. Don't have one of those laying around the house.
[HTC EVO 3D] danaff37:
What's the problem with the keyboard? I use the vnc app to access my laptop all the time and don't have any issue...
[HTC EVO 3D] akiradavis:
The keyboard is mapped incorrectly so the Android's on-screen keyboard is useless for it. Remember, we VNC'ing into a Ubuntu build running off the phone and not VNC'ing into another PC

I wonder if using another image would fix this...
[HTC EVO 3D] danaff37:
You can change a lot of the mapping in ubuntu, can you not? I know I'm commenting a lot in here for not running it, but I ran it a lot in the past on my hero. I want to now but need a bigger sdcard first (trying to convince my wife to swap me the 16 gig in her epic since she is only using a gig anyways and my 8 gig has 200 megs free)
[HTC EVO 3D] unCoRrUpTeD:
If only they made the sdcard as easy to get to as they did on the hero. I just moved everything from my sdcard to the computer last night so I could test some things out. I might need to go get a 32GB one, because with the size of the roms and backups you can quickly use 8Gb.
[HTC EVO 3D] squiggie:
Aircrack-ng Suite

Hmmm...Just wondering if it is possible to runt he aircrack-ng suite on the Evo 3D.

Is it possible to put the wifi card into monitor mode (via standard drivers or compat wireless)?
[HTC EVO 3D] danaff37:
It might be possible if the drivers are MAC8211 drivers, but otherwise I doubt it. The only phone it's possible on at the moment is the Nokia N900
[HTC EVO 3D] arqbrulo:
"Upgrade" Step 17

Step 17 should be "apt-get update && apt-get upgrade"
[HTC EVO 3D] akiradavis:
Evil as sh!t but +1

War-driving!!
[HTC EVO 3D] snake411:
Can you post some screens of this.?
[HTC EVO 3D] Bentenrai:
definitely checking this out
[HTC EVO 3D] USSENTERNCC1701E:
If anyone has problems with this on another ROM ensure you have busybox installed. Titanium Backup now has a set of busybox tools included, so it's not a gaurentee that you have it. A good check to see if you have busybox is to use a simple command like cp from terminal emulator or adb shell. This is probably your problem if you are seeing errors like these

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Administrator>adb shell
# su
su
# cd /sdcard/Ubuntu
cd /sdcard/Ubuntu
# sh ubuntu.sh
sh ubuntu.sh
modprobe: not found
clear: not found
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
rm failed for -f, No such file or directory
mkdir failed for /data/local/mnt, File exists
clear: not found
rm failed for /system/bin/fsrw, No such file or directory
rm failed for /system/bin/bootubuntu, No such file or directory
rm failed for /system/bin/unionfs, No such file or directory
rm failed for /system/bin/mountonly, No such file or directory
cp: not found
cp: not found
cp: not found
cp: not found
Unable to chmod bootubuntu: Operation not permitted
clear: not found

Ubuntu Chroot Bootloader v0.1
Ubuntu Bootloader is now installed!
This process does NOT damage Android OS!

Original Installer by Charan Singh
Modified for Ubuntu Chroot by Max Lee at AndroLinux.com ,G2Hacks.com and NexusOn
eHacks.net

To enter the Ubuntu Linux console just type 'bootubuntu'
#
[HTC EVO 3D] USSENTERNCC1701E:
All those random things in the bash are my attempt to type whoami I then realized even once I get which keys I would need I'd still need to find enter :confused:

I took the screenshot using Ubuntu, that's why the resolution doesn't match our phones. I then had to figure out where the file is stored, turns out the "native" ubuntu file system is stored on our phones in /data/local/Ubuntu

I'm experimenting now with gScript, it looks like you can just set up a script with

cd /sdcard/Ubuntu
bootubuntu

and it will run just fine, also much easier than having to type in commands with the on screen keyboard.

EDIT: So, I forgot to mention I'm running this all from the phone, no need for adb shell, just using terminal emulator (though it was implied). No go when running the script form gScript, however...

I was able to reduce the necessary typing to

su
sh ubuntu.sh

I used the script produced by gscript (I supposed I could have just written it) saved to SD card (/sdcard/gscript) then copied the file to the root of the phone (which is where terminal emulator starts). Now starting my ubuntu virtual machine is much easier :)

If you want to use mine, just remove the .txt extension (XDA no like .sh) bear in mind my ubuntu.img is saved in /sdcard/Ubuntu that capital U should be significant.
[HTC EVO 3D] uraganone:
I have tried a million ways to do this

Fixed the problem by clearing cache and dalvik-cache
[HTC EVO 3D] ioos:
17. Now type "apt-get update" to update Ubuntu to the latest version.

This only updates the package index. You'll need to run "apt-get upgrade" afterwards to actually install the updates.
[HTC EVO 3D] armystrong:
Will not install on viperROM RC1.2. I believe I am running the right kernel, tried to reboot. Everything but wiping and trying again.
[HTC EVO 3D] jadoe05:
Hey everyone. I can't install. I keep getting this reply
[HTC EVO 3D] danaff37:
make sure you don't have any apps on sd... they take up loop devices

(go to settings, applications, manage applications, click on the sd tab, and make sure there are no checks)
[HTC EVO 3D] jadoe05:
Thanks, I took care of that now I get
[HTC EVO 3D] danaff37:
sounds like it's not using the busybox mount... busy box installed correctly?
[HTC EVO 3D] uraganone:
Works with any ROM

Just flash the kernel that the OP says. You have to wipe all and start over. I was having the same output but i had to clear cache and dalvik-cache and start over. I did not move my apps to internal memory, I actually had all movable apps on my sdcard. I believe i does not matter but just to be on the safe side i would take the word of the people that have had the issue with apps.
[HTC EVO 3D] jadoe05:
Trying this now.

Edit: I wiped cache and dalvik and reinstalled busybox to system/bin
[HTC EVO 3D] danaff37:
Your busy box is definitely not set up right. How did you install? You should probably do it from the app in the market
[HTC EVO 3D] jadoe05:
I have. Busybox installer says it's good. I'm confused lol
[HTC EVO 3D] danaff37:
Here, try this.

http://dl.dropbox.com/u/13905461/bootubuntu

download that, and put it in place of your current bootubuntu

adb remount

adb push bootubuntu /system/bin

then run bootubuntu, and see what happens
[HTC EVO 3D] jadoe05:
Same problem. Could have been cause by what we had to do to get temp root? busybox says i have it installed in two places
[HTC EVO 3D] danaff37:
Ah. Yeah that will do it too. Clean out your data/bin
[HTC EVO 3D] EarlyMon:
Best luck to all getting this going, I'll leave the suggestions to those helping in progress. (I had a good busybox, got the same error reported on the previous page, but a battery pull fixed it for me - in my case, it was just stuck state in silicon I guess - and in my case I did have to move my apps off the sd card. Guess there's no one way on that one, per others' having success otherwise.)

Not trying to interrupt that important help effort at all - but I hope I have something else to contribute in the meanwhile.

I've read in this thread there's some keyboard glitch and a BT keyboard is required?

Either I'm missing the point, got lucky - or my use of Spare Parts Plus (Market) and unchecking Compatibility Mode may have helped. Possible? Or did I miss the issue?

Anyway - for those that want to see pix as proof or even just setup screen shots, I have them over at AF -

http://androidforums.com/evo-3d-all-things-root/387978-linux-3vo.html#post3040572

Not trying to hijack, I just don't want to kang my own post. :D

If you're not an AF member, I'll cheerfully answer questions here about anything on that linked page.

PS - to add to the knowledge base, I'm using netarchy's kernel and the stock 3vo, AlphaRevX rooted.
[HTC EVO 3D] danaff37:
I think it may depend on keyboard you are using.. What keyboard do you use?
[HTC EVO 3D] EarlyMon:
I was using SwiftKey X - and I have Hacker's Keyboard, Swype, Flex T9 - should I try those and report back?
[HTC EVO 3D] EarlyMon:
Sorry about the galactically stoopid question.

For me, using vncserver resolution at 960x540 and Compatibility Mode off, I can confirm that the following keyboards work:

SwiftKey X

Hacker's Keyboard

Swype (included revision on stock phone)

HTC stock 3vo keyboard

Flex T9 had working return and delete keys, that's it.

For me personally, Hacker's Keyboard seems to make the most sense.

Oh yes - I'm running LXDE. Guess that's all I think to say about possible config stuff. Naturally not sure what parts is causing what to work while Flex T9 fails for me.
[HTC EVO 3D] danaff37:
Maybe it's the odds... I'm sure everybody else would have been using one of those. I finally made enough space for this now, so I'll mess with it some instead of going off memory from my hero days...lol
[HTC EVO 3D] EarlyMon:
androidVNC is an older app, I've turned off Compatibility Mode.

When I get a chance, I'll turn it back on and see if it breaks anything.

Or maybe it's because of the stock rom.

Anyway - over in the other thread on AF, I also have a little picture showing the relationship is between Android and Ubuntu on this - if it's the least bit helpful for people to conceptualize things.
[HTC EVO 3D] jadoe05:
Don't have that anymore. I do however have a /sbin a /system/bin and a /system/xbin
[HTC EVO 3D] Jaywan:
I had an xoom and we got ubuntu 11.4 not this very outdated 9... Hope it gets updated... Good job anyway tho.

Sent from my ³Ð £V0
[HTC EVO 3D] donnyevo4g:
PLEASE HELP when i type cd ubuntu it says no such file in directory what am i doing wrong the img file is on my sdcard
[HTC EVO 3D] EarlyMon:
Here are my step by step screen shots for running it once installed. Look them over, please post back here if they answer your question.

If you followed the installation steps, it sounds like you're either not in /sdcard first or you've done (cd ubuntu) once too often. The image file should be in the ubuntu folder on your sd card.

http://androidforums.com/evo-3d-all-things-root/387978-linux-3vo.html#post3040572

Hope this helps!
[HTC EVO 3D] donnyevo4g:
ok i got all the way down to the user=root but it didnt ask me to enter a password do u have any idea what i should do?
[HTC EVO 3D] EarlyMon:
Passwords are optional in unix and in this case, they're not needed.

If your prompt ends in "#" as in "root@localhost:/#" then you're root.

However, the system isn't fully elaborated at this point (and will be when you complete the XLDE install steps and flesh out your dot files) so in step 19, the command "export USER=root" is really just setting a known environment variable and then setting it to export the definition to any following subprocesses.

Step 19 simply declares who you already are, and isn't a separate login, or username change, at all.

PS, I agree with this from the first page:
[HTC EVO 3D] donnyevo4g:
Yes I get that but it wont let me log into vnc it says connection error or something or failed so is there a command I can put after export =root to manually put a password?
[HTC EVO 3D] EarlyMon:
Promise - that's headed in the wrong direction. If you have a connection problem now, you'll have one going in with a login password even harder.

IOW - you're not having a password problem, don't make one in addition to the connection error.

First - did you install XLDE as suggested? Did you use the instructions to do it via the .org link I posted at AF or another way?

Second - did you set your vncserver port and your androidVNC port to 5901?

Third - did you set the vncserver password and are you sure it matches in your androidVNC definition?

The OP here simply shows how to install Ubuntu.

My instructions suggest how to install the XDLE desktop and link that to what you want to do.

And if you don't want to have a desktop, you can skip all of the vnc stuff altogether and just use Terminal Emulator.

~~~~~

I'm not trying to rag on ya or preach or anything, so we're miscommunicating, apologies, I'll hang in and help for as long as you need.
[HTC EVO 3D] donnyevo4g:
Yes no insult taken but I did follow all the steps u listed and I can't set a vnc password cause it wont ask me to set one up I'm stuck my vnc says vnc connection failed 127.0.0.1 :5901 Conection refused
[HTC EVO 3D] EarlyMon:
Ok, so I think you set the server side password like the OP said on vncserver.

In my second picture of the androidVNC setup, password is there.

When you set up New in androidVNC, first entry widget is Nickname (for your setup, call it what you like), next field is password, next is address, next is port, and so forth. (username you skip - this isn't windows)

Ok - maybe that's the problem - don't give a username on androidVNC, if you did that.
[HTC EVO 3D] EarlyMon:
Or are you saying that when you set up vncserver the first time, you didn't get prompted for a password???? :confused:
[HTC EVO 3D] SpyFi:
BT5

You can also download backtrack 5 arm. Very easy CHROOT out there that works with standard kernal. Good job on the write up! +1
[HTC EVO 3D] donnyevo4g:
no when i type export USER=root and then vncserver -geometry 1024x800 it never asks me to create a password so i cant login to vnc
[HTC EVO 3D] EarlyMon:
Please try this:

Reboot phone. Then:

export USER=root
cd /root
mv .vnc .vnc_old
apt-get install tightvncserver
vncserver -geometry 1024x800

See if that will regenerate things, get you a password prompt.
[HTC EVO 3D] donnyevo4g:
ok thank you so much i was able to get a password prompt after i used that code but im still having a connection issue and can not connect to linux terminal
[HTC EVO 3D] EarlyMon:
OK, so after you bootubuntu and see the root@localhost/# prompt in adb (or Terminal Emulator) , please enter this:

ps | grep vnc

Do you see a line with Xtightvnc?

Edit -

At this point, I had gone back and installed LXDE.

http://wiki.lxde.org/en/Android

The instructions call for nano, I used vi, use your favorite plain editor as you normally would for rc files.

And I have confirmed that the default desktop has the keyboard glitch, while LXDE does not.

After you get to the geometry part of their instructions, save the file, reboot, and then go back to my androidVNC picture setup instructions.

If you're using this on your phone mostly, 960x540 is a good resolution. If going between phone and HDTV a bunch, 1280x720 gets it. Any 16x9 ratio will do. For my laptop, I'm ok with 960x540, like the OP said, that isn't a big deal.

I used 960x540 out of instinct, hoping for less scaling when full screen.
[HTC EVO 3D] danaff37:
Yeah just put on lxde myself and keyboard works fine. Tried all kings of things to fix gnome, no go.
[HTC EVO 3D] EarlyMon:
Excellent!

I value results that correlate. :)

LXDE reminds me of my first desktop with KDE from about 2000, so I like it.

I've found I can run one instance of xterm (from Run in menu), and no other X tools (I've been trying for xclock to test). The log files in /root/.vnc are revealing.

LXTerminal sounds like what I'll like, haven't tried to launch that yet.

After that, I'm going for gimp.

Edit -

Confirmed: I can run one tool per vncserver instance (session). lxterminal or gimp, not both.

Tried different desktops within LXDE just to see if that mattered, no soap.

Maybe with limited memory, I don't care, but I would like to know why it acts this way, just because.
[HTC EVO 3D] EarlyMon:
I played around with window managers to fix the one-tool problem, ended up going back to icewm. Must be my phone/androidVNC/memory because I can access multiple tools from my laptop vnc client.

I couldn't think of a quick way to access my /sdcard from within the virtual machine, so I simply installed SwiFTP, free in the Market, for my ftp server and used Firefox on the Ubuntu side as my ftp client. I downloaded a random picture from /sdcard/DCIM/100MEDIA and opened it with GIMP with Firefox still running.

Picture or it didn't happen:
[HTC EVO 3D] donnyevo4g:
I tryes putting that in and nothing happened or changed still no luck Connecting to vnc this is never gonna work for me
[HTC EVO 3D] EarlyMon:
Total bummer, compadre.

Now, this is just me, your mileage or temperament may vary, but when I get one of these deals that I'm new to and it works for others but not me, I just erase and go for the do-over. I often find that the second time through everything just somehow clicks and I never do find out what went wrong. Example, maybe I helped fix the password deal but can't guess what else might be hosed along with whatever went wrong with that step in the first place.

Anyway, I like to try to that sort of thing, for me, it's relaxing, for some I guess less so.

Best luck whichever way you go!
[HTC EVO 3D] EarlyMon:
Note to Mac users - this is dead easy to do on a Mac.

Finder -> Applications -> Utilities (folder) -> Terminal

When you cd to where your adb is located, cd is lowercase as are most all unix commands.

If you're unsure where to go, get to adb in your Finder, right-click, get info, the pop-up will show you the path. Note in unix that the folders (subdirectories) are separated by / and not by \ like in Windows.

Once you're there, the only trick you need to know is to tell unix that adb is located where you are, so you change the adb shell command like this:

./adb shell

That's about it, all other instructions once you're inside the phone shell are the same.

OBTW - after the unzip of the initial file from the OP, just drag and drop the whole ubuntu folder to your NO NAME drive (normal sd card formatting doesn't get a name at the factory, so by now you know that your sd card mounts like that anyways I'd suppose - just put it here in case).
[HTC EVO 3D] danaff37:
try changing the port number to

590x, x being 1 or 2 or 3, seems to go with whatever desktop number vnc starts at
[HTC EVO 3D] danaff37:
Oh, and I was able to run xterm, gimp, office, and lx term all at once, but my xstartup is different from what you linked... I just commented out the /etc/X11/xsession line, and added startlxde & to the end of it. (I think it's because I left in the x-window-manager line though)