So I'm taking a free computer science/programming class (edx.org offered by MIT and Harvard, check it out, even give you the textbook for free) and I'm trying to install the programming package they recommend by Enthough, I downloaded the .sh file and tried to install it (bash xxx.sh) using WebTop2SD with WebTopScripts with the packages fixed, then tried Ubuntop with no luck, I keep getting "Cannot create symlink to "xxxx" Operation not permitted" for everything when trying to install it on either.
I remember before using Webtop2sd I had the webtopmod and all that crap (tried it first, kept messing up and I figured they all did the same thing since they're all by Sogarth) even had a username instead of adas and installed some linux chemistry programs, I still have all that too but webtop2sd wouldn't install the ubuntu.sh (I made a backup cause I really want to get that webtop back up, had programs I can't get anymore).
Would something like Gentop work or is it just a limitation from android?
thanks
EDIt: moved it to /osh/home/adas and then did sudo bash on it, getting "cannot execute binary file" now, someone saud chmod u+x xxx.sh, but still getting same error
Try just sudo -i. If you end up in a root shell, that's good. If not, your sudo might have issues.
Related
Hi there, i was trying to run Debian on my pro, but i cant install it! i try two methods, the Linux installer Beta 1.7 (say kernel dosnt have ext and loop support) and the SU terminal emulator way (cant chmod to 4755 any file, even using the su command - from here: http://www.talkandroid.com/android-forums/android-development/1091-install-debian-android.html )...
My pro is ROOTED with latest z4root, i even do a factory repair with pc companion...
Any advice???
Regards!
I tried this as well... no loop is no loop ( required for chroot type runs )
works on a Samsung i5700 I have at work tho...
thnx for the reply, so i can add loop and the ext thing? or we need a custom kernel? , what rom have the samsung?, in other hand i dont know why i cant chmod the files, even using root explorer! regards...
needs a new kernel yes.
i5700 is running samdroid cooked ( forget which version, but added multitouch )
damn :/
now why i cant chmod the files using su terminal emulator or root explorer? maybe is because my sdcard is formated in fat32, regards!
fat32 knows nothing about *nix style permissions, in a way though... all files on a fat32 are set 0777, but not really... heh
For what it's worth, I've just had Debian running in a chroot on my X10 Mini Pro, using the instructions at talkandroid.com, as mentioned by the original poster. Sorry, but as a new poster, I'm not allowed to link directly to those directions. This is with stock ROM, upgraded to Android 2.1, rooted with SuperOneClick.
A few modifications are necessary to make it work. I'm going to try to describe what I've done, but I am working backwards, so it's entirely possible that I'll leave something out and you could suffer disastrous consequences. So please be sure you back up all crucial data before proceeding, and be prepared to accept the possibility that your phone could be destroyed in the process.
First of all, the instructions tell you to run scripts from your SD card, which isn't going to work unless the card has a partition with a Linux-compatible file system. I suggest following the directions as far as step 4. Then replace the "bootdeb" file in the "debian" directory with the modified version attached to this post. Rename it "bootdeb". Then you will have to run the following commands manually, preferably using adb shell, but it can be done in a terminal on the phone. Either way, using the ash shell helps by providing command completion and history.
As root (su):
Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
mkdir /data/local/mnt
cd /sdcard/debian
cp bootdeb /data/local/bin #note: you may need to mkdir /data/local/bin first
cd /data/local/bin/
chmod 4777 bootdeb
You should now be able to run the bootdeb script to start up Debian.
The installation file says, "Be sure to run /scripts/onetime.sh as root from the shell after your FIRST 'boot'." This will prompt you to set a root password.
At this point, the Debian installation is command line only and root only. The image file needs to be resized before much can be added.
The other files in the Debian directory may be useful, but they all need to be modified before they can be used.
This is only a beginning. I don't know that I'm likely to get very far with it, so anyone else who's inclined to jump in and make this work better is welcome to do so!
edit: correcting grammatical error
Just in case anyone else shares my obsession -- I mean interest in getting Debian to run on an X10 Mini Pro, I thought I should report my progress. Or lack thereof.
Actually, as I said in the previous post, command line Debian works, and that's a lot of power to have available. But it would be nice to get X working, despite the lack of video drivers.
There's a lot of information out there about setting up X with a VNC server on an Android phone, then running a VNC client to access the graphic environment. The source of most accounts seems to be a thread at the androidfanatic forums, with the title "Gnome, KDE, IceWM or LXDE Desktop on your Android!"
(Sorry, I'm still too new at this to be allowed to post links, so this is the only way I can indicate where to find the information.)
I've tried lots of variations on those directions, trying to adapt them to the X10 Mini Pro. And I've had a little success. I can get to the Icewm or LXDE desktop and run the terminal program, but I can't start any programs that use X. Invariably, I get this error:
Error: Can't open display: :1.0
I've run out of ideas, so I'm taking a break from the project. If anyone else is interested enough to try, good luck to you!
For what it's worth, the most recent and comprehensive account of running Debian with X on Android phones appears to be at lanrat.com, in the "android" directory, filename "debian".
@RobbH
Very interesting! I'm waiting a new 8gb card so that I try it! Should you come up with any new progress please report here
Hey all,
I would just like to say I am new to this whole thing, and HAVE searched the forums, and found this link to be most helpful:
http://forum.xda-developers.com/showpost.php?p=12029729&postcount=12
I am merely trying to install the new swype beta, I am currently trying to uninstall my current version of swype, now I have done the majority of the steps the only thing I am having trouble doing is giving the phone read/write access
as when I try: mkdir /mnt/sdcard/swype_backup I get an error because it's a read-only file system.
I am using ADB; the first line of the post I linked to says to enable R/W access if you're using Root Explorer... but I am not, so how can I accomplish this through adb?
Am I missing something glaringly obvious?
Thanks for your time and patience
Edit: I believe adb is working to the extent it should... after I type in adb shell I do infact get a '#' before each line.
It's all fixed, re-did gladroot and now everything worked perfectly, not sure exactly why it wasn't before
thanks anyways!
I've got all the files loaded on my phone, ext2 partition created, adb installed etc. When I go to type in
Code:
sh /sdcard/ubuntu/ubuntu.sh
I get an error [!: not found. Any ideas?
I have tried deleting & adding the folder back, redownloaded the files, still get this error message. I've even went to the ubuntu folder while in adb shell and verified the files could be seen ("ls" command) in the shell, which they could.
Any help would be great!
Ideas?
Anybody have an idea?
I give up... can not figure it out & I can't get any help from anyone. Looks like I'll stick with carrying my laptop around for Ubuntu..
Sent from my Xoom using XDA Premium App
I don't really know what you're trying to do offhand, but if the file is on your sdcard and not in a unix file system (ext) then it wont execute. If it is, then make sure you have execute permissions (chmod 755).
type ls -l /sdcard/ubuntu/ubuntu.sh
to verify
Sorry you're not getting much help. Have you tried sending a private message to the guy who pioneered that whole process?
tbh, not many people have use for ubuntu on droid. It's cool, sure, but I don't dev, and I have far more functionality on gingerbread than ubuntu.
Hi,
I tried to upgrade the busybox with different manner (busybox, busybox installer, manual installation from xda), but no one works properly.
Each time i broke the original Archos busibox, so i lose the adb shell.
Can someone explain to me the good way to upgrade the busybox?
Thanks.
SirOch
Hi,
Nobody to explain a clean upgrade of the busybox?
cheers
SirOch said:
Hi,
Nobody to explain a clean upgrade of the busybox?
cheers
Click to expand...
Click to collapse
Google? also XDA has a great search feature have you tried that? :silly: Any particular reason why you want/need to upgrade busybox?
Hi,
As i said, i tried the different busybox installers and the installation was ok, but i each time, i lost the shell from adb.
That's just my problem.
So i just want to understand why the upgrade of the busybox broke the original archos busybox?
Moreover some application need to have other busybox installed.
Regards.
David
SirOch said:
Hi,
As i said, i tried the different busybox installers and the installation was ok, but i each time, i lost the shell from adb.
That's just my problem.
So i just want to understand why the upgrade of the busybox broke the original archos busybox?
Moreover some application need to have other busybox installed.
Regards.
David
Click to expand...
Click to collapse
Ahhh right, the quest for knowledge Your problem is as much to do with adb ( /sbin/adbd to be precise ) as it is to do with busybox, firstly you've probably wiped out the symlinks in /bin, especially /bin/sh which is the location that adbd on archos looks to run the when you do adb shell from your desktop. This is not the default location which just about every other android OEM adheares ,that is /system/bin/sh.
If you are going to upgrade the archos busybox be aware that a large number of symlinks back to /bin/busybox exist not only in /bin but also in /usr/bin /usr/sbin
Archos for reasons I still haven't fathomed, really went to town on restructuring and customized Android on the platform level.
A little tip if you've got more question, to save you bumping threads , which really does upset some folks round here... you'll probably get more more if you add more details, such as error messages etc. Saying " i lost the shell from adb." doesn't really help anyone who might be able to offer assistance. There about 10 different ways adb can fail to connect, Did the device disappear from the list or report as offline. or even come up with the message "- exec '/bin/sh' failed: No such file or directory (2) -".??
Hopefully that's helped.
Hi SirOrch,
i don't know why you loose your adb shell, but concerning busybox... the things on Archos tablets are like this:
Basically on a non rooted device we got a squashfs image mounted read only.
This image contains the stock busybox compiled by Archos (sharing system's uclibc) with limited functionality,
but containing enough tools to handle the daily job.
The path to this busybox is "hard-coded" as well. It's location is /bin which is the second entry in the path environment.
You might check that by typing printenv in your console.
The first entry should be /data/local/bin on your device.
So if you like to replace stock busybox with an advanced one, you should make sure that it will be installed to /data/local/bin.
Often there's no need to use all this apk Android Market stuff to get a proper busybox installation.
Sometimes it's little better to really understand what's happening under the hood.
Most busybox app's are statically linked, because with a static binary you don't have to take care of the device's libc or uclibc.
So you might easily extract on of the apk's or get one from xda-developers.
There are many floating around in the end.
If got one push it to /data/local/bin with adb.
You might need softlinks in this directory as well. This could be done by hand as well.
Anyway if you are a lazy person, who doesn't care about what's happening, go to the market install busybox.
Then check at /data/local/bin if it is there.
If it got installed elsewhere, some commands will still use stock busybox.
Extended commands might then use the installed one.
So check it out...
EDIT:
... aaaargh again simultaneous posting.
scholbert
Hi gentlemen,
Thanks for your help and sorry to forget to give you the error message i had:
the message was : - exec '/bin/sh' failed: No such file or directory (2) -
After investigation i found my mistake:
- In manual mode, i forget to change the ownership of busybox to root in /bin.
- when i tried to use any application from the market, the busybox was well updated in /system/xbin but the application also delete the busybox in /bin and don't change the symlinks in /bin. That's explain why adb shell won't work.
Regards.
SirOch
hi, I downloaded botbrew, supersu granted it super access. It says something like "extract archive: cannot create symlink from ./system/bin/botbrew to /data/botbrew/bin/borbrew read-only file system.."
To reinstall I tried choose uninstall in the play store, and on phone, then install but it just starts back up without reinstalling. So didn't really uninstall. And also I can't see any terminal with it. I went into android terminal but it can't see any command like apt-get I see about adding a repository and searching for packages.. what repository to add to use ssh and nmap and get apt-get? (i'd like to do apt-get install dropbear)
I don't recall if that was when trying botbrew root or botbrew basil.
I have gone to the android terminal and run 'botbrew' , I see the $PATH variable change to include botbrew/bin so I know i'm in. but I don't have apt-get (which I want)
I had installed botbrew root beforehand, then realised it didn't have apt-get, so I went for botbrew basil experimental.
Botbrew basil experimental is showing nothing in the 'installed' tab, At one point one tab said something like dpkg or something was pending, but something was locked and it couldn't continue with that. So I closed some other programs and turned my phone off and on, and went back into Botbrew but now I see nothing pending.
I just got this message
E: Couldn't create temporary file to work with /var/lib/apt/lists/repo.botbrew.com_basil_main_Release - mkstemp (13: Permission denied)
E: The package lists or status file could not be parsed or opened
E: No packages found
I suppose perhaps that message might be from apt-get.. operating within the botbrew gui..
It's not surprising that it can't write to /var , as there is no /var directory on my phone. I tried cd /var, also as root.. from a terminal but nope, that directory doesn't exist.
I considered posting to http://forum.xda-developers.com/showpost.php?p=26261600&postcount=119 as that looks like it might be a dedicated thread. I don't know if i'm too newby to post in that section, but anyhow I can't in that section as one needs 10 posts to.
TIA