[Q] Installing Ubuntu on Thunderbolt question - Thunderbolt Q&A, Help & Troubleshooting

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.

Related

Cant run Debian

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

[Q] Installing Swype

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!

Linux Admin => Android

Hello Android Devs,
I am a linux admin, looking to help out. Is there a good place to do a quick comparison of commands btw linux and android ? Or where various scripts / special android locations of files.
I have been typing into my touchpad's Terminal Emulator and getting pretty irritated with no tab completion. I think I am going to buy a bluetooth keyboard. The other issue I was hoping Devs could help me find is, where is the fsck.vfat ? or e2fsck -o vfat? I have been having heck of time trying to find this and other normal linux commands without locate or tab completion. man e2fsck (no man pages found lol).
My "sdcard" in dmesg says needs to fsck'd, and I would like to help out because I see forum posts here and rootkitz.forums about just deleting the partition lol.
Thanks for advice
SorrowsTyr
Install Hacker's Keyboard from Market, this one has buttons like Ctrl and Tab.
Sweet I will try that thanks!
-Gary
On my Droid3 e2fsck is located in /system/bin. I am also seeing a fsck.msdos, but no fsck.vfat.
I also remember seeing someone was compiling a BASH shell for Android. This would give you the tab completion that Busybox doesn't have.
Sent from my Nexus S using XDA App
yes there is bash in android , just type it, if you want bash with root privies the most reliable way to do that is su -c "bash"
also dont fsck in android that will get you bad results just look at what happened in a1, better way to that is using webos either using tailor in preware which is a nice front end that unmounts and fscks your media partition or install xecutah and using the command line fsck it (remember to unmount first)
ps: path to the media partition is dev/store/media
sorrowstyr said:
Hello Android Devs,
I am a linux admin, looking to help out. Is there a good place to do a quick comparison of commands btw linux and android ? Or where various scripts / special android locations of files.
I have been typing into my touchpad's Terminal Emulator and getting pretty irritated with no tab completion. I think I am going to buy a bluetooth keyboard. The other issue I was hoping Devs could help me find is, where is the fsck.vfat ? or e2fsck -o vfat? I have been having heck of time trying to find this and other normal linux commands without locate or tab completion. man e2fsck (no man pages found lol).
My "sdcard" in dmesg says needs to fsck'd, and I would like to help out because I see forum posts here and rootkitz.forums about just deleting the partition lol.
Thanks for advice
SorrowsTyr
Click to expand...
Click to collapse
You should try this:
http://www.mediafire.com/file/g52q4...1.0-tenderloin-sdcard_check_fix_r4-signed.zip
It installs a fixed fsck_msdos ...
NOTE: This should be included in Alpha3.6, but until then ...

Itomic IMID77T

anyone know anything about these tablets? It is a cheap brand from bestbuy, I was just wondering if anyway could help me to get the android market to run on it.. It is a custom Itomic branded rom, it only has swift market or something like that on it.. Also, the recovery is not a regular recovery. When I go into recovery it just shows Itomic on the screen and says recovery mode at the bottom.. Itomic BestBuy That is the link to bestbuy for specs on it..
TIA
Julian
Are you rooted? If you're not rooted then go here: HERE and pick up the latest SuperOneClick program to get you started. Once you're rooted you need to download the latest Android Market apk here: HERE. Put that file on the root of the sd card in your tablet and then use a file explorer such as Root Explorer to find the file. Once you know where the apk is located you can use an APK installer to install the file. Then viola! You now have the Android market on your new tablet.
Trust me when I say you want to avoid a resistive screen (no multitouch) and 256M RAM (slooooow) as I have a 10" tablet with those specs.
Its not mine, i would not buy one with those specs just for the reason of I am used to my evo, not the best phone, but I like the way it responds and I would want the same or better response from a tablet... This is actually my 10 year old cousins tab, and it did not come with the android market as stated above so I am trying to fix that... I am nervous to root it because it doesnt have a regular recovery so if something goes wrong I would not be able to fix it... So I am looking for a dev that has experience with this or a similar tab... If I knew linux programming Id be a dev but unfortunately I dont know and at this point in time I do not have the time to learn...
That one click root program won't hurt anything. I've rooted many tablets and phones with it and it works like a charm, no problem. Once you're rooted and get the market make sure you get rom manager and see if there are any flashable recoveries for the tablet.
Sent from my SkyRaider Bolt using Tapatalk
I also forgot to mention I cannot get adb drivers to work... I have dev on and it still wont recognize the android drivers.. It is not the micro usb but mini usb, I have tried multiple usbs but it still will not find the correct drivers...
I dug into this and just found the tab came rooted, all I had to do was mount the system as rw through adb and then manually changed su to the gb su.. I installed root explorer and rom manager but unfortunately there isnt a recovery for it... I saw on androidtablets.net that a guy is willing to port cwm to any tab for you but am nervous to try anything because it is my cousins... I think for now I will just install the market and be done..
Yeah that would be the best since it doesn't look like it's too widely supported. But cm would give it a smoother feel and be a little nicer, but do what you choose.
Sent from my SkyRaider Bolt using Tapatalk
alil2cul4u said:
I dug into this and just found the tab came rooted, all I had to do was mount the system as rw through adb and then manually changed su to the gb su.. I installed root explorer and rom manager but unfortunately there isnt a recovery for it... I saw on androidtablets.net that a guy is willing to port cwm to any tab for you but am nervous to try anything because it is my cousins... I think for now I will just install the market and be done..
Click to expand...
Click to collapse
I am new to this whole thing, but I just got an Itomic tablet and I am also trying to get the Android market to work. Im stucj though i cant for the life of me get an ADB to work. Ive tried everything I could think of but cant get it to work. What did you do to make it work?
Plewis831 said:
I am new to this whole thing, but I just got an Itomic tablet and I am also trying to get the Android market to work. Im stucj though i cant for the life of me get an ADB to work. Ive tried everything I could think of but cant get it to work. What did you do to make it work?
Click to expand...
Click to collapse
I did it on my laptop, I have windows 7 64 bit with the android sdk installed.. Sdk install guide I think that adb worked just with the sdk installed, because I didnt do anything special that I know of.. I was having trouble getting adb to work on vista where I just had the adb files not the full sdk.. I also have the sdk in my path (if that makes any difference?) I also have all the htc diag drivers and motorola diag drivers installed... If you cant figure it out, just let me know and Ill dig through everything and see if I cant figure out what drivers helped... Also, I didnt use the plug that came with it.. The one I used was much thicker than the one supplied, the one I used came with a card reader... also the su file i used is the latest one posted over at gooinside.me SU.zip To change it i went into adb and
Very often when you want to write files to a particular partition on ADP1, you will get a "Permission Denied" if the partition is mounted read-only.
To get around this, you need to mount the partition read-write. Typically this is done with /system partition
$ adb shell
$ su
$ mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
(Replace /dev/block/mtdblock3 & /system with appropriate device path and mount point, as obtained from cat /proc/mounts) quoted from: android-tricks.blogspot.com
Click to expand...
Click to collapse
mounted the system as read-write then changed the su found in /system/xbin... forgot to add you must extract the su found in the zip folder...
alil2cul4u said:
I did it on my laptop, I have windows 7 64 bit with the android sdk installed.. I think that adb worked just with the sdk installed, because I didnt do anything special that I know of.. I was having trouble getting adb to work on vista where I just had the adb files not the full sdk.. I also have the sdk in my path (if that makes any difference?) I also have all the htc diag drivers and motorola diag drivers installed... If you cant figure it out, just let me know and Ill dig through everything and see if I cant figure out what drivers helped... Also, I didnt use the plug that came with it.. The one I used was much thicker than the one supplied, the one I used came with a card reader... also the su file i used is the latest one posted over at gooinside.me To change it i went into adb and mounted the system as read-write then changed the su found in /system/xbin... forgot to add you must extract the su found in the zip folder...
Click to expand...
Click to collapse
thanks for your help! I got the ADB to work and was able to mount it as rw. But, like I said I am new to this and am still having some trouble. then you say you changed the su found in the /system/xbin what does that mean? how do I get to /system/xbin? Thanks again for your help
---------- Post added at 02:59 PM ---------- Previous post was at 02:41 PM ----------
alil2cul4u said:
I did it on my laptop, I have windows 7 64 bit with the android sdk installed.. I think that adb worked just with the sdk installed, because I didnt do anything special that I know of.. I was having trouble getting adb to work on vista where I just had the adb files not the full sdk.. I also have the sdk in my path (if that makes any difference?) I also have all the htc diag drivers and motorola diag drivers installed... If you cant figure it out, just let me know and Ill dig through everything and see if I cant figure out what drivers helped... Also, I didnt use the plug that came with it.. The one I used was much thicker than the one supplied, the one I used came with a card reader... also the su file i used is the latest one posted over at gooinside.me To change it i went into adb and mounted the system as read-write then changed the su found in /system/xbin... forgot to add you must extract the su found in the zip folder...
Click to expand...
Click to collapse
I was able to get the adb to work and remount it as rw. But like I said im new to this, and Im confused when you say you manually changed the su to the gb su. How do I access the /system/xbin folder? thanks again for you help.
---------- Post added at 03:16 PM ---------- Previous post was at 02:59 PM ----------
actually I figured it out once I got a root explorer. Im able to find the su file, but not really sure what, if anything Im supposed to change. Once thats taken care of , how to I download the android market? Do i just find an APK online for it? Or is therre another program or something I have to go through. Thanks again, im learning...
Sorry its taken so long to reply, when i say I changed the SU in /system/xbin, I opened windows cmd and ran "adb shell" "cd to /system/xbin" "rm ./su" then "exit" still in the cmd i adb pushed the su file that i extracted from this file su-2.3.1-efgh-bin-signed.zip (thanks to goo-inside.me) with "adb push C:\su /system/xbin" I then pushed superuser.apk to /system/app with "adb push C:\superuser.apk /system/app" then "adb reboot" and when it turns back on you are fully rooted. now download gapps from goo-inside.me then extract the system/app from the zip you need to install GoogleServicesFramework.apk OneTimeInitializer.zip SetupWizard.apk Talk.apk Gmail.apk Vending.apk with "adb push *.apk /system/app"

Can't install .sh file on WebTop/Ubuntop

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.

Categories

Resources