Auto Lucid Script v2.2 {Updated - 6/1/2009} - G1 Android Development

Auto Lucid Script v2.2​
I know, you're probably sitting there at your screen saying, "tehseano, what on EARTH is Auto Lucid Script?". Well I'll tell you what it is. Auto Lucid Script is a batch file I've written (with the permission of LucidRem) to make your ROM changing and setup of Apps2SD even EASIER!!! I know, I know, now you're saying, "Well tehseano, lucid's script already makes it pretty easy on us", and that's a true story. However, I've simplified it even MORE! Here is a screenshot of the script in action:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Now, the operations can be done with just the single press of a key through **ADB (Android Debug Bridge).
Features
*Download and update to the latest Lucid script and prepare the sdcard for the Apps2SD mod
*Remove all prior /system/sd mods
*Move yours apps, data, dalvik cache, and media to the sdcard.
*Symlink your apps, data, dalvik cache, and media to the sdcard
*Move your apps, data, dalvik cache, and media back to the internal memory
*Manual update of the Lucid script
*Show the status of all Lucid mods
*Reboot your phone
Soon to come:
*Automatically Partition your SDcard
*Backup, restore, and set volume mod (1,2 and 3)
*Download Hard SPL Bootloader
*and more!
Requirements To Use Script
1. ROOT
2. ext2 partition on your sdcard (This will hopefully change by v2.5, and the script will partition your sd card for you, however this method is not 100% stable and does involve risks!!)
For safe partitioning use: GParted - It's a free LIVE cd of Linux's GParted - If you don't know how to use this, shell out the money for Paragon Partition Manager
3. Working ADB interface and drivers**
4. One of the below ROM's
Required ROM(s)
*JF v1.50 ADP1.5
*HTC Hero (all builds) - Do NOT use remove prior mods option on final build!!!
*Google Ion (all builds)
**I welcome those to test others and report back**
Download
*****Please read the description and requirements *****
*****in this script BEFORE executing commands*****
auto_lucid_2.2.zip (546kb) [Rapidshare] [4shared]
Disclaimer
I am not responsible for any damage done to your device. By downloading this
you agree to using the application at your own discretion and are in no way
being forced or told to use it. I have not added or modified any of Lucid's
scripts, this is simply an easier way of executing them, nothing more.
**This thread is not to be used for technical support and setup
of ADB. If you have ANY questions regarding ADB and how to use it,
please refer to [THIS] thread, I'm sure someone there can help you.

WOW, that looks very easy. Is this universal? I have the Ion-build now and dont use app2sd at this moment.

does this work with the newest hero?

arene said:
WOW, that looks very easy. Is this universal? I have the Ion-build now and dont use app2sd at this moment.
Click to expand...
Click to collapse
I know it worked on r1, I THINK I did it successfully on r2, but I would like someone else to confirm this for me, I have bad memory.
m00b3rt said:
does this work with the newest hero?
Click to expand...
Click to collapse
Yes.

Hi, do i need to partition my card pior to using your script? . I tried using and then it said unable to connect to remote server thus i cannot continue with the script, may i know how to solve this?

can someone upload it somewhere else please?

I used lucid scrpit on ionr2. Worked perfect for me.

hazeline said:
Hi, do i need to partition my card pior to using your script? . I tried using and then it said unable to connect to remote server thus i cannot continue with the script, may i know how to solve this?
Click to expand...
Click to collapse
I second this! Do we need to create the Ext2 parition before using this or will the script do this for us?
Also, I have 16gb Class 4 card. Can this be used for Apps to SD or does it have to be a Class 6 card?

hazeline said:
Hi, do i need to partition my card pior to using your script? . I tried using and then it said unable to connect to remote server thus i cannot continue with the script, may i know how to solve this?
Click to expand...
Click to collapse
yes do we need 2 partition our sd card?

Wow! This is great, tehseano, thanks! However, it doesn't seem to be working right in my case. This is what I get when I do the Symlink option:
Code:
==========================
= Linking apps to sdcard =
==========================
Nothing was done. /system/sd/app is FOLDER.
Please rm -r /system/sd/app first.
Nothing was done. /system/sd/app-private is FOLDER.
Please rm -r /system/sd/app-private first.
==========================
= Linking data to sdcard =
==========================
Nothing was done. /system/sd/data is FOLDER.
Please rm -r /system/sd/data first.
==================================
= Linking dalvik cache to sdcard =
==================================
Nothing was done. /data/dalvik-cache is SYMLINK.
===========================
= Linking media to sdcard =
===========================
mounting ...... /system
Nothing was done. /system/media is SYMLINK.
====================================================
= Finished linking app/data/dalvik/media to sdcard =
= ==================================================
Press any key to continue . . .
And this is my Lucid status:
Code:
===========================
= Displaying Lucid Status =
===========================
/data/app is not linked
/data/app-private is not linked
/data/data is not linked
/data/dalvik-cache -> /system/sd/dalvik-cache
/system/media -> /system/sd/media
-------------------------
du: /system/sd/app/droidsans.android.DroidSansTweakToolsAll.apk: Stale NFS file
handle
5.7M /system/sd/app
1.0K /system/sd/app-private
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124729464_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124494920_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124736808_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124950544_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124363368_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124731464_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124970184_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1125059840_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124686912_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1125019208_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1125004248_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124936528_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124545584_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124731704_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124817576_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.google.android.server.checkin/databases/checkin.db-journ
al: Stale NFS file handle
16.1M /system/sd/data
33.8M /system/sd/dalvik-cache
3.9M /system/sd/media
-------------------------
du: /system/sd/app/droidsans.android.DroidSansTweakToolsAll.apk: Stale NFS file
handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124729464_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124494920_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124736808_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124950544_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124363368_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124731464_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124970184_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1125059840_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124686912_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1125019208_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1125004248_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124936528_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124545584_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124731704_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.kolbysoft.steel/app_thumbnails/1124817576_pic.save: Stal
e NFS file handle
du: /system/sd/data/com.google.android.server.checkin/databases/checkin.db-journ
al: Stale NFS file handle
160.6M /system/sd
Any advise?
EDIT: I am using Haykuro's just released Hero ROM.

Okay, so I saw you said it works with the new Hero rom. I already had a bunch of apps in my /system/sd/app and app-private folder prior to installing Hero that was using the Unionfs or whatever link method. If I run this script, will it link my old apps again allowing me to use them? Or is there something else I need to do go get my apps back first?

uhhh...
how do u install and use this thing? i have a mac

Ok, to answer everyone's questions:
1. This will NOT partition your sd card. I will had a link to a topic that can help you create the partition.
2. @ razor, I'm an idiot. I forgot to change a few lines of code, this is being fixed and uploaded as we speak.
3. I have no idea how to use this on a mac, this is a DOS batch file.
Everyone give me 30 minutes or so, I'll get multiple hosts up as well and the new version.

tehseano said:
2. @ razor, I'm an idiot. I forgot to change a few lines of code, this is being fixed and uploaded as we speak.
Click to expand...
Click to collapse
Here, I am quoting you for posterity, just in case you decide to edit your post and remove that. hahaha Just kidding, man. I will try v2.2 once I get home. Thanks so much for this script. It should help all the noobs.

Ok, good news.
Version 2.2 available now!
Those who had symlink issues, they should be no more!
In ver 2.5 I would like to introduce the ability to partition your sd card, but this is not set in stone. Just my goal.

thanks alot tehseano...this works great.

repl1ca said:
thanks alot tehseano...this works great.
Click to expand...
Click to collapse
You're welcome, glad to hear it.

im having major issues, after i used your script and after it rebooted it went past the bootloader image and when the HTC is "supposed" to come on it doesnt and just stays a bright black screen
Im on Hero Rom
any suggestions?

this looks great!!
I hope you can make it even more automated for dumbasses like me
I've been trying to do apps2sd to try the new hero rom
unfortunately although I've made the ext2 partition,
I seem to have made a directory in the phone's system called system/sd/
ie its on the phone not the ext2 ....
anyway I'm a noob at this,
I'll have another go when my brain is working
Thanks for your good work

.PaNiNi. said:
im having major issues, after i used your script and after it rebooted it went past the bootloader image and when the HTC is "supposed" to come on it doesnt and just stays a bright black screen
Im on Hero Rom
any suggestions?
Click to expand...
Click to collapse
im having the same problem. is any1 getting it to work with hero?

Related

[APP] Type Fresh - change your fonts!

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This app is for systems with root access only. It offers 3 main functions:
Apply selected TTF fonts to the system
Backup system fonts to /sdcard/Fonts
Restore backed up fonts from /sdcard/Fonts
Place any TTF files you have in /sdcard/Fonts for easiest access.
In order for Android to reload its system fonts, the system must be rebooted after applying. Also, most ROM updates will overwrite your fonts with the default ones while installing. To easily restore, simply find a set of fonts that work well for you and then select Backup fonts so that you can restore them later. Be aware that this simply overwrites any existing backup you have, so you may want to save the original fonts elsewhere if you think you may need them.
It can be downloaded from the Market, or directly from the Downloads section of the github repository
Screenshots:
Graphic and icon by minusbaby
Scan to install:
Also, I'd like for my app to reboot the system on its own, but programming for root seems to be a bit tricky at times. If anyone wants to lend a hand, all the code is up up at http://github.com/openback/Type-Fresh
really interesting.. thanks
ill give it a shot and report back shortly
fyi im running a rooted Eris with the Evil Eris Rom V1.1
SoCalSpecialist said:
ill give it a shot and report back shortly
fyi im running a rooted Eris with the Evil Eris Rom V1.1
Click to expand...
Click to collapse
i keep getting an error msg that says could not remount /system
please advise
SoCalSpecialist said:
i keep getting an error msg that says could not remount /system
please advise
Click to expand...
Click to collapse
The app logs errors, so could you post the relevant portion of your log?
openback said:
The app logs errors, so could you post the relevant portion of your log?
Click to expand...
Click to collapse
id love too buuuut, i have no idea how to.
SoCalSpecialist said:
id love too buuuut, i have no idea how to.
Click to expand...
Click to collapse
Hehe. If you have adb installed, then run "adb logcat" and it will show you the log. Then you can run the app and see what it throws in there.
Hey OP, if you need help getting root, check out my app I made a while back. It gets root then runs raw shell commands. Should be what you need.. direct link. I posted the whole Eclipse workbench so you can see the code. There's more than enough comments to see what to do.
I got the error could not remount too.
I think this is the relevant section of the logcat
Code:
I/Type Fresh( 1619): Remounting /system rw
D/su ( 1628): 10107:10107 net.pixelpod.typefresh executing 0:0 /system/bin/
sh
E/Type Fresh( 1619): Error remounting: "Usage: mount [-r] [-w] [-o options] [-t
type] device directory"
E/Type Fresh( 1619): Could not remount, returning
I/NotificationService( 1033): enqueueToast pkg=net.pixelpod.typefresh callback=a
[email protected] duration=0
D/dalvikvm( 1107): GC freed 2286 objects / 120776 bytes in 118ms
Also, off-topic, what theme are you using for the notification bar in the screenshots? It's nice.
Would be a nice app,but I get the same errors!
I also get this with my Hero running Fresh 2.0d
Code:
I/Type Fresh( 1864): Remounting /system rw
D/su ( 1876): 10067:10067 net.pixelpod.typefresh executing 0:0 /system/bin/sh
E/Type Fresh( 1864): Error remounting: "Usage: mount [-r] [-w] [-o options] [-t type] device directory"
E/Type Fresh( 1864): Could not remount, returning
I/NotificationService( 79): enqueueToast pkg=net.pixelpod.typefresh callback=android.app.ITransientNotification$Stub$P
[email protected] duration=0
I also get a FC if I try to backup the fonts a second time.
Very good idea to have this kind of application.
I try with my rhodium android with SQUASH file system but failed.
It seems to allow to apply the replace font one font at a time when try to apply the second one, the program crashed. But even I apply one font and then exit and reapply the second font, so and so, there is still no change in the system fonts.
May be it cannot work with file system SQUASH ???
says it can't be installed on this device during installation :| Samsung Galaxy, GalaxHero Rom (root, android 1.5)
Yeah, not working
So, I tried getting this from the download area directly on my phone, and I downloaded the .apk and loaded it via mounted SD Card.
Neither worked. During Packake Installer, it just says it can't be installed.
I've got root access (I frequently use WiFi Tether. When I use Terminal Emulator and type "su" I get the "#" response). I did this through the ADB method on unlockr.com
Does it only work on certain versions of Android? I'm running 1.5 on my Sprint HTC Hero.
Any help would be appreciated. Thanks.
found this via android spin. trying it out now...
Is this for font name to font-file mapping?
I get a FC on apply and restore.
Sorry for the late reply, I've been a bit busy the past couple of days!
shizzy1427 said:
I got the error could not remount too.
I think this is the relevant section of the logcat
Code:
I/Type Fresh( 1619): Remounting /system rw
D/su ( 1628): 10107:10107 net.pixelpod.typefresh executing 0:0 /system/bin/
sh
E/Type Fresh( 1619): Error remounting: "Usage: mount [-r] [-w] [-o options] [-t
Also, off-topic, what theme are you using for the notification bar in the screenshots? It's nice.
Click to expand...
Click to collapse
Thanks! I believe I may have been a little too unspecific in my remount command. I should have an update rolling out tonight that should rectify that problem! And the theme is just a Black Bar Mod
suree_n said:
May be it cannot work with file system SQUASH ???
Click to expand...
Click to collapse
I need to look into SQUASH, as this is actually the first I've heard of it. Hopefully I can get it working for you tonight as well.
elupton said:
Does it only work on certain versions of Android? I'm running 1.5 on my Sprint HTC Hero.
Any help would be appreciated. Thanks.
Click to expand...
Click to collapse
As of right now, yes, sorry. I'll see if I can change that. I was under the impression that all rooted users would all be at 1.6 by now. I guess not!
britoso said:
found this via android spin. trying it out now...
Is this for font name to font-file mapping?
I get a FC on apply and restore.
Click to expand...
Click to collapse
All it does is overwrite the system fonts with whatever you're selecting. FC on either function? Could you show me what logcat says?
Double-post
Awesome app! Worked great on my G1 running Super D. Anyone have a favorite font??
OK tried todays version 0.9.2,
heres the error when I click "Apply"
Code:
E/Type Fresh( 1921): java.io.FileNotFoundException: /etc/fstab
D/su ( 2045): 10052:10052 net.pixelpod.typefresh executing 0:0 /system/bin/sh
The error popup said
Error Remounting: Could not remount /system
Click to expand...
Click to collapse
Similar error on restore:
Code:
E/Type Fresh( 2062): java.io.FileNotFoundException: /etc/fstab
D/su ( 2144): 10052:10052 net.pixelpod.typefresh executing 0:0 /system/bin/sh
I did give it SU permission when I chose the new font. I'm on CM 5.0.6.1

[SCRIPT][6/19/2011] Inspirefy 1.1 for CM7 nightly - Delete stuff & Replace stuff

Hello, I wrote this shell script to make the CM7 nightly the way I like. It was a pain to do it manually every time I would flash a new nightly.
NOOB WARNING:
THIS SCRIPT IS FOR CM7 NIGHTLY ONLY. IT MAY WORK FOR OTHER CM7 BASED ROM BUT USE IT AT YOUR OWN RISK. IT DELETE SOME FILES ON THE /SYSTEM/APP AND MODIFY YOUR BUILD.PROP FILE. I'M NOT RESPONSIBLE IF YOU DESTROY YOUR PHONE NOR IF YOUR PET DIES AND THINGS LIKE THAT.​​
This script do this:
1) delete some APKs from /system/app that I don't need
/system/app/Camera.apk - replaced by Miui camera
/system/app/Calculator.apk - I use RealCalc
/system/app/FileManager.apk - I use Root Explorer
/system/app/Music.apk - I use the new Music App
/system/app/BooksPhone.apk - I don't use this
/system/app/Protips.apk - Useless
Click to expand...
Click to collapse
2) replace the boot animation with a sharper and bigger version (file size is bigger too)
The original boot animation size is too small for our screen. Some people could car less for this as you don't reboot your phone that often.
Original boot image:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
New boot image:
Click to expand...
Click to collapse
3) replace the default camera for a Miui camera
We all know the AOSP camera sucks...
Click to expand...
Click to collapse
4) backup and edit build.prop to display "Inspire 4G" as device name
Some people asked how it affect the market and so far so good for me.
I have no idea if automatic backup/restore from Google is working or not. I use Titanium Backup to restore my apps before I login with my Google account.
Click to expand...
Click to collapse
Things you will need:
1) Scripting Layer for Android (SL4A)
Free app. We will use this to run the script.
Click to expand...
Click to collapse
2) Script and other files - RAR version inspirefy_files_v1.1.rar or ZIP version: inspirefy_files_v1.1.zip
All the files needed for the magic to happen...
VERSION 1.1 UPDATE: If you already have the version 1.0 on your phone you can download the attached zip file from this post to update the script to version 1.1 - Just extract the zip file to /sdcard/inspirefy/ and replace the old 'inspirefy.sh' script.
Click to expand...
Click to collapse
How to install & use it:
1) Extract the inspirefy_files.rar (or inspirefy_files.zip) to the root of your sdcard (/sdcard).
You will have 2 new folders (or just 1 new folder is SL4A was already installed): /sdcard/inspirefy and /sdcard/sl4a
2) Install the sl4a on your phone and run it.
2a) Select "run-inspirefy.sh" from the main screen. If it's your first time running the script you must confirm the super user request.
3) After the script is done (about 2s) you can close SL4A and reboot your phone.
Done
You can edit the file /sdcard/inspirefy/inspirefy.sh with your preferred text editor to make any changes you would like, maybe you want to keep the Tips widget
Have fun!
Thanks to dog77k for the feedback and suggestions and everybody who is using this script.
Good stuff LGSilva. Will let you know how things go after I find a free method to extract the rar (don't use root explorer) or when I get to my desk...
Very cool and glad to see this. Nice job
Sent from my Desire HD using XDA Premium App
Just added a ZIP version for the necessary files in case you want to do this on your phone.
forgive me, but I've never ran a script on android before. I loaded up the folders on the root of my sdcard, installed SL4A and ran it. Superuser didn't ask for permissions. Also, I can't figure out how to run what I need to. Help?
poetofsound said:
forgive me, but I've never ran a script on android before. I loaded up the folders on the root of my sdcard, installed SL4A and ran it. Superuser didn't ask for permissions. Also, I can't figure out how to run what I need to. Help?
Click to expand...
Click to collapse
When you ran the script did you get the terminal window output with something like this?
Code:
Inspirefy 1.0 by LGSilva
Remounting system partition rw...
Deleting apk files and boot animation...
Copying new boot animation and camera...
Setting permitions and ownership...
Backuping build.prop and changing device name...
Remounting system partition as ro...
DONE
.
The text is tiny but you can read it. Is there any error message on the terminal window?
Check the superuser app, sometimes it will have the SL4A marked to deny root...
Edit: Just testing on build 103... looks like SL4A is not happy with this build, time to investigate.
LGSilva said:
Edit: Just testing on build 103... looks like SL4A is not happy with this build, time to investigate.
Click to expand...
Click to collapse
They (nightly forum) are saying that the SU app is jacked on 103...
Nightly build #103 have a problem with Superuser not working right therefor my script won't work either.
To fix this download the Superuser from Rom Manager > Extras, reboot in recovery and install it.
dog77k said:
They (nightly forum) are saying that the SU app is jacked on 103...
Click to expand...
Click to collapse
Yep, you beat me to that, I blame the internet
Two suggestions/hints for the inspirefy.sh code:
"chown root.root /sys..." gave me an unknown user/group error, but "chown 0.0 /sys..." worked for me.
I was getting an error when trying to remount /system as ro that it was still busy so I added a 2 sec pause before trying to remount:
Code:
echo -e "Remounting system partition as ro...\n"
sleep 2
mount -o ro,remount -t ext4 /dev/block/mmcblk0p25 /system
echo -e "DONE.\n"
Otherwise the code worked well for me. Great work LGSilva.
I was having problems with SU thats why lol I'll fix it and try this again and update when I'm done
dog77k said:
Two suggestions/hints for the inspirefy.sh code:
"chown root.root /sys..." gave me an unknown user/group error, but "chown 0.0 /sys..." worked for me.
I was getting an error when trying to remount /system as ro that it was still busy so I added a 2 sec pause before trying to remount:
Code:
echo -e "Remounting system partition as ro...\n"
sleep 2
mount -o ro,remount -t ext4 /dev/block/mmcblk0p25 /system
echo -e "DONE.\n"
Otherwise the code worked well for me. Great work LGSilva.
Click to expand...
Click to collapse
Thank you dog77k for the suggestions.
I've updated the script with them and also added a 2sec pause after mounting it as RW just in case...
Files with version 1.1 updated on the first post, no need to reinstall SL4A.
tested and seemed to run just fine on build 104. thanks for the awesome script! very cool
Thank you!
+1 to both of you, thanks for the great scripting solution.

[APP]Ubuntu Install Guide - Nexus One Testers wanted

Hello guys,
Thank you all for the amount of support you have given this project! I have now decided to stop updating this thread. If people still have bugs or want to keep following this project please go to the Main project thread HERE.
I will stop updating this thread because I feel we now know what roms/kernels do and don't work so there is no need for me to keep updating this thread (And the other 5 threads I run for certain devices), but of cause if you do still have problems reply to the main thread or PM me!
Once again thank you all!!
I have released the first version of my app, which guides you through the installation of Ubuntu within android via chroot. It includes a ubuntu 10.10 image I have been working on which includes lots of program to allow users to develop program/scripts etc within Ubuntu on there phone/tablet.
However I have only been able to test the app on my HTC Desire S and Gen 8 Archos tablet and as such I need you guys to test this on your phone/tablet and post back how it works on your device!
Please post your device/kernel/rom along with what did and didn't work, so I can draw up what I need to change in the next release of the app/ubuntu build.
Website
http://zpwebsites.com/android-app/ubuntu-install-guide/devices/
Video
http://youtu.be/3WNeY9b5DIg
App Download
Free App
Paid App
Boot Script
ubuntu.sh(V5)
Full Images
These images are 1.5GB to download, once extracted 3.5GB, and include alot of programs like openoffice, thunderbird, firefox and over programs for 'developing'
Ubuntu 10.10 V4 - 800x480
Ubuntu 10.10 V4 - 854x480
Ubuntu 10.10 V4 - 960x540
Ubuntu 10.10 V4 - 1024x600
Ubuntu 10.10 V4 - 1280x800
Lightweight Images
These images are just under 500MB to download, once extracted 2.5GB, and include only programs needed (LXDE desktop, firefox, + other basic programs)
Ubuntu 10.10 V4 - 800x480
Ubuntu 10.10 V4 - 854x480
Ubuntu 10.10 V4 - 960x540
Ubuntu 10.10 V4 - 1024x600
Ubuntu 10.10 V4 - 1280x800
I also want to build up a small group of testers who I can email with new images and scripts, these will include all future distros that I do. If you are interested in joining this test group please PM me or send a email to [email protected]
The only requirement is that your willing to test and send feedback along with screen shoots etc where required, it would also be good if your willing to try different roms and kernels for your device!
Sig Banner
Show your love of ubuntu on android with my sig banner:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
image url is "http://dl.dropbox.com/u/11206993/ubuntuuser.png"
Other Guides
Like this guide? want to try something different? then check out my other guides for different distro's
Backtrack - This is a distro that is based around security testing, it also includes the Gnome desktop environment and a range of other programs.
Updates
06/01/12
*PAID app file downloads now use new fast FTP server and support direct downloading (click the button to download a image and it starts to download right away)
*New boot script which has fixed problems with it not booting on alot of devices, and fixed problem which some people getting a grey screen when loading UI
*Boot script now downloaded in zip file to fix problems with downloading script
*Both apps fixed to support low resolutions
*Both apps cleaned up
28/12/11
*PAID app now supports 960x540 'qHD' resolution
*ALL Ubuntu lightweight images cleaned up even more saved another 300MB of space
*ALL Ubuntu images updated with all new updates
*ALL Ubuntu images now in .zip format to fix problems with some peoples devices failing to extract the .rar files
*Boot script updated, once booted now terminal acts like a command line interface for Ubuntu, and some boot problems now fixed
*Image and boot script now downloadable separately to allow easier updating
19/12/11
New 'lighter' ubuntu image options for all resolutions already supported
15/12/11
New ubuntu images with all updates up to 15/11/11
FREE app ubuntu image resized to fit 800x480 resolution
PAID app ubuntu images now includes 4 images for 800x480, 854x480, 1024x600 and 1280x800 resolutions
See how deep the rabbit-hole goes...
http://linuxonandroid.blogspot.com/
Would you mind having a look at the procedure in the video and let me know what is the advantage of yours against that one? (Asking because this image is much smaller and have all basic apps included too.) Thanks anyway!
Bexton said:
Would you mind having a look at the procedure in the video and let me know what is the advantage of yours against that one? (Asking because this image is much smaller and have all basic apps included too.) Thanks anyway!
Click to expand...
Click to collapse
Main advantages over this include:
*A Much large range of apps included in the large image including java/python/emac and other apps for developing
*vncserver will start automaticly with GUI (no need to install this and set this up etc)
*My Images are updated to the newest updates for 10.10
I would recommend trying it out for yourself, but simply my guide makes the process much much easier
Will give it a shot tomorrow and report some feedback.
Hey zacthespack,
installed the minified Ubuntu 10.10 V4 - 800x480 version today and had no issues with the install process (for device/kernel/rom see my sig). It's running for half an hour now, so a detailed feedback will follow. But one thing what i recognized immediately is the navigation using the trackball what is a bit tricky - and sometimes "not possible". The problem is the amount of pixel the cursor moves per trackball movement. If i open any window and want to navigate to the [x] to close it again, depending on the position, i cannot reach it with the cursor which will move either left, or right or on top or below the [x]. Thus i have to adjust the overall zoom level to a size that i can reach it (with the trackball; pointing with the finger is no problem of course). So, is there any way to adjust the trackball navigation?
Another (minor) thing: You may want to point out in your App's install description that you don't need 3.5Gigs free space in general, but only for the full version.
Bexton said:
Hey zacthespack,
installed the minified Ubuntu 10.10 V4 - 800x480 version today and had no issues with the install process (for device/kernel/rom see my sig). It's running for half an hour now, so a detailed feedback will follow. But one thing what i recognized immediately is the navigation using the trackball what is a bit tricky - and sometimes "not possible". The problem is the amount of pixel the cursor moves per trackball movement. If i open any window and want to navigate to the [x] to close it again, depending on the position, i cannot reach it with the cursor which will move either left, or right or on top or below the [x]. Thus i have to adjust the overall zoom level to a size that i can reach it (with the trackball; pointing with the finger is no problem of course). So, is there any way to adjust the trackball navigation?
Another (minor) thing: You may want to point out in your App's install description that you don't need 3.5Gigs free space in general, but only for the full version.
Click to expand...
Click to collapse
Glad it is working well for you!
I am not sure about adjusting the trackball movement as I do not have a device that has a trackball, you could however use a different input method, if you press menu while in vnc and slect input method you could change it to use the touch screen as a track pad etc.
Ah yes thank you very much, shall adjust the description
The Backtrack 5 app has now been released! it is £1.25 from the market (there is not free version and it is a little more because there was alot more work needed to get it working well!)
The forum thread is HERE
$ export PATH=/data/local/bin:$PATH
$ su
# cd sdcard
# cd ubuntu
# sh ubuntu.sh
mkdir: can't create directory '/data/local/mnt': File exists
Loop device exists
losetup: /dev/block/loop7
mount: mounting /dev/block/loop7 on /data/local/mnt failed: Device or resource busy
mount: mounting devpts on /data/local/mnt/dev/pts failed: No such file or directory
mount: mounting proc on /data/local/mnt/proc failed: No such file or directory
mount: mounting sysfs on /data/local/mnt/sys failed: No such file or directory
mount: mounting /sdcard on /data/local/mnt/sdcard failed: No such file or directory
mount: mounting /sdcard/external_sd on /data/local/mnt/external_sd failed: No such file or directory
net.ipv4.ip_forward = 1
ubuntu.sh: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent
ubuntu.sh: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent
ubuntu.sh: cannot create /data/local/mnt/etc/hosts: directory nonexistent
Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:
eth0: ip 192.168.2.77 mask 255.255.255.0 flags [up broadcast running multicast]
chroot: can't execute '/root/init.sh': No such file or directory
Shutting down Ubuntu ARM
umount: can't umount /data/local/mnt/dev/pts: No such file or directory
umount: can't umount /data/local/mnt/proc: No such file or directory
umount: can't umount /data/local/mnt/sys: No such file or directory
umount: can't umount /data/local/mnt: Invalid argument
losetup: /dev/loop7: Device or resource busy
#
peserey said:
$ export PATH=/data/local/bin:$PATH
$ su
# cd sdcard
# cd ubuntu
# sh ubuntu.sh
mkdir: can't create directory '/data/local/mnt': File exists
Loop device exists
losetup: /dev/block/loop7
mount: mounting /dev/block/loop7 on /data/local/mnt failed: Device or resource busy
mount: mounting devpts on /data/local/mnt/dev/pts failed: No such file or directory
mount: mounting proc on /data/local/mnt/proc failed: No such file or directory
mount: mounting sysfs on /data/local/mnt/sys failed: No such file or directory
mount: mounting /sdcard on /data/local/mnt/sdcard failed: No such file or directory
mount: mounting /sdcard/external_sd on /data/local/mnt/external_sd failed: No such file or directory
net.ipv4.ip_forward = 1
ubuntu.sh: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent
ubuntu.sh: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent
ubuntu.sh: cannot create /data/local/mnt/etc/hosts: directory nonexistent
Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:
eth0: ip 192.168.2.77 mask 255.255.255.0 flags [up broadcast running multicast]
chroot: can't execute '/root/init.sh': No such file or directory
Shutting down Ubuntu ARM
umount: can't umount /data/local/mnt/dev/pts: No such file or directory
umount: can't umount /data/local/mnt/proc: No such file or directory
umount: can't umount /data/local/mnt/sys: No such file or directory
umount: can't umount /data/local/mnt: Invalid argument
losetup: /dev/loop7: Device or resource busy
#
Click to expand...
Click to collapse
Yes this is the same problem alot are having, hopefully this is fixed in next release
Here is a new version of the boot script including alot of changes ad improvements alot thanks to Lubensius, the script is now alot 'smarter' and should work on a better range of devices. Can you please all test this new script so I can stamp out any other bugs before including it in the next release of the app. If you could say if the old version worked or not and then if the new one does or does not work.
Thank you
New Script
Hello everyone,
I have set up a new server that will be used for the paid apps that should give much faster downloads than the multiupload I use at the moment, it will also allow for direct downloading (i.e. when you press the button in the app the download starts you don’t have to go onto a website to download)
I would like you al if possible to try downloading the test file (the 800x480 sm Ubuntu image) and report back to me with what kind of download speeds you were getting, against what your normal download rate is.
http://zpwebsitefiles.com/apps/ubuntu/ubuntuV4-sm-800.zip
Thank you very much
Evo 4G
well i have this running on my OG ..so far so good
benny3 said:
well i have this running on my OG ..so far so good
Click to expand...
Click to collapse
did you use the v4.2 script or just v4
Just the 4
benny3 said:
Just the 4
Click to expand...
Click to collapse
could you possible test the 4.2 for me as well
I am on a viewsonic G Tablet,Got all working using the 4.2 script,but when it loads I get screen that is blank with a x as a pointing device which I can move around but nothing on screen.?
bambamishere said:
I am on a viewsonic G Tablet,Got all working using the 4.2 script,but when it loads I get screen that is blank with a x as a pointing device which I can move around but nothing on screen.?
Click to expand...
Click to collapse
have you tried the v4 script? some people on the v4.2 cant get the GUI to load, however the v4.2 does get ubuntu booting on alot more devices, just got the fix the UI problem
Yes using the 4.2 script.
bambamishere said:
Yes using the 4.2 script.
Click to expand...
Click to collapse
ok give the V4 script a try
zacthespack said:
ok give the V4 script a try
Click to expand...
Click to collapse
Thats what I am using.

[APP] Ubuntu Install Guide - Transformer Testers wanted - 12.04 in testing

I have working on a project in the form of an app, which guides you through the installation of Ubuntu within android via chroot. It includes a ubuntu 10.10 image I have been working on which includes lots of program to allow users to develop program/scripts etc within Ubuntu on there phone/tablet.
However I have I have yet to get much testing on this device and would like more feedback from users!
Please post your device/kernel/rom along with what did and didn't work, so I can draw up what I need to change in the next release of the app/ubuntu build.
Website
http://linuxonandroid.blogspot.com/
Video
http://www.youtube.com/watch?v=UCqzs8yQTM8
App Download
Free App
Paid App
Boot Script
ubuntu.sh(V5)
Full Image
This image is 1.5GB to download, once extracted 3.5GB, and include alot of programs like openoffice, thunderbird, firefox and over programs for 'developing' - Also allows you to switch between the LXDE and Gnome desktops, and you can define screen size on boot!
ubuntuV5-image.zip
Lightweight Image - This is yet to be included in an app, will be included in the next release (aka 2.0 ), so get it now before anyone else!
This image is just under 500MB to download, once extracted 2.5GB, and include only programs needed (LXDE desktop, web browser, + other basic programs) also allows you to define screen size on boot
ubuntuV5-sm-image.zip
12.04 images
I have now started work on building new 12.04 images these come in core (just the bear-bones ubuntu) and full (ubuntu with GUI and other programs) and will be updated as 12.04 moves through its milestones (and when I make new updates to the mods I make from the main stream arm port).
These are for testing ONLY until 12.04 reaches stable release.
You can view the images here:
http://sourceforge.net/projects/linuxonandroid/files/Ubuntu/12.04/
I also want to build up a small group of testers who I can email with new images and scripts, these will include all future distros that I do. If you are interested in joining this test group please PM me or send a email to [email protected]
The only requirement is that your willing to test and send feedback along with screen shoots etc where required, it would also be good if your willing to try different roms and kernels for your device!
Sig Banner
Show your love of ubuntu on android with my sig banner:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
image url is "http://dl.dropbox.com/u/11206993/ubuntuuser.png"
Other Guides
Like this guide? want to try something different? then check out my other guides for different distro's
Backtrack - This is a distro that is based around security testing, it also includes the Gnome desktop environment and a range of other programs.
Updates
18/02/12
*New 12.04 images started building, for now not included in the app but once a bit more stable will be included
29/01/12
*New V5 small image, featuring fixed Java, even more lightweight (now around 1.2GB free) and user can set screen size on boot
*PAID New Build guide which shows you how to build your own Ubuntu images
*Brand new UI To make the whole thing more useable
*PAID new 'one click boot' feature to allow quick booting from either the widget or inside the app
*PAID new widget to activate the one click boot
*PAID app install guide changed in light of 'one click boot'
*Fixed keyboard mapping of random letters in Gnome
18/01/12
*Large ubuntu image now allows user to set screen size on boot!
*Large Ubuntu image now lets you select between LXDE and Gnome desktops
*Large Ubuntu image has been recompiled to fix the likes of Java (note some of the above changes will be included in the small image in the future)
*FAQ section updated with more answers to questions I have been getting
*Install guide updated in light of the new large image
06/01/12
*PAID app file downloads now use new fast FTP server and support direct downloading (click the button to download a image and it starts to download right away)
*New boot script which has fixed problems with it not booting on alot of devices, and fixed problem which some people getting a grey screen when loading UI
*Boot script now downloaded in zip file to fix problems with downloading script
*Both apps fixed to support low resolutions
*Both apps cleaned up
28/12/11
*PAID app now supports 960x540 'qHD' resolution
*ALL Ubuntu lightweight images cleaned up even more saved another 300MB of space
*ALL Ubuntu images updated with all new updates
*ALL Ubuntu images now in .zip format to fix problems with some peoples devices failing to extract the .rar files
*Boot script updated, once booted now terminal acts like a command line interface for Ubuntu, and some boot problems now fixed
*Image and boot script now downloadable separately to allow easier updating
19/12/11
New 'lighter' ubuntu image options for all resolutions already supported
15/12/11
New ubuntu images with all updates up to 15/11/11
FREE app ubuntu image resized to fit 800x480 resolution
PAID app ubuntu images now includes 4 images for 800x480, 854x480, 1024x600 and 1280x800 resolutions
downloading the image now i would love to help out. Nice work
edit: found one problem. In your guide it says to run
// cd/sdcard/ubuntu //
but it is actually
// cd sdcard/ubuntu //
maybe just a little mistype sort of thing
mrevankyle said:
downloading the image now i would love to help out. Nice work
edit: found one problem. In your guide it says to run
// cd/sdcard/ubuntu //
but it is actually
// cd sdcard/ubuntu //
maybe just a little mistype sort of thing
Click to expand...
Click to collapse
Ah yeah, last update I was playing round with the text formatting, a little mistake! I shall change it in the next update, thank you
Here's what I got when I tried to install ubuntu after downloading the files and extracting to sdcard/ubuntu:
/ $ su
~ # cd sdcard/ubuntu
/mnt/sdcard/ubuntu # sh ubuntu.sh
mkdir failed for /data/local/mnt, File exists
Loop device exists
mount: Invalid argument
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: mounting /sdcard on /data/local/mnt/sdcard failed: No such file or directory
mount: mounting /sdcard/external_sd on /data/local/mnt/external_sd failed: No such file or directory
net.ipv4.ip_forward = 1
ubuntu.sh: line 31: can't create /data/local/mnt/etc/resolv.conf: nonexistent directory
ubuntu.sh: line 32: can't create /data/local/mnt/etc/resolv.conf: nonexistent directory
ubuntu.sh: line 33: can't create /data/local/mnt/etc/hosts: nonexistent directory
Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:
eth0: No such device
chroot: can't execute '/root/init.sh': No such file or directory
Shutting down Ubuntu ARM
failed.
failed.
failed.
failed.
failed.
failed.
/mnt/sdcard/ubuntu #
I'm on Revolver 3.11 with Clemsyn's 22a kernel. Using the paid version of the app.
mrevankyle said:
downloading the image now i would love to help out. Nice work
edit: found one problem. In your guide it says to run
// cd/sdcard/ubuntu //
but it is actually
// cd sdcard/ubuntu //
maybe just a little mistype sort of thing
Click to expand...
Click to collapse
Did you get this working? I am very interested!
Sent from my DROIDX using XDA App
philburkhardt said:
Here's what I got when I tried to install ubuntu after downloading the files and extracting to sdcard/ubuntu:
/ $ su
~ # cd sdcard/ubuntu
/mnt/sdcard/ubuntu # sh ubuntu.sh
mkdir failed for /data/local/mnt, File exists
Loop device exists
mount: Invalid argument
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: mounting /sdcard on /data/local/mnt/sdcard failed: No such file or directory
mount: mounting /sdcard/external_sd on /data/local/mnt/external_sd failed: No such file or directory
net.ipv4.ip_forward = 1
ubuntu.sh: line 31: can't create /data/local/mnt/etc/resolv.conf: nonexistent directory
ubuntu.sh: line 32: can't create /data/local/mnt/etc/resolv.conf: nonexistent directory
ubuntu.sh: line 33: can't create /data/local/mnt/etc/hosts: nonexistent directory
Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:
eth0: No such device
chroot: can't execute '/root/init.sh': No such file or directory
Shutting down Ubuntu ARM
failed.
failed.
failed.
failed.
failed.
failed.
/mnt/sdcard/ubuntu #
I'm on Revolver 3.11 with Clemsyn's 22a kernel. Using the paid version of the app.
Click to expand...
Click to collapse
Thank you, this is the last error I have to fix, it effects a range of devices on some roms/kernels still trying different fixes. Best thing to do is try a different rom/kernel
Does it allow to install on external sd?
Sopa strike
Tomorrow as im sure you all know XDA will be having a 12 hour black out and all of tomorrow my sites will be blacked out and I will not be doing any work on my linux projects in protest, if the SOPA and PIPA bills are past then it will be the end of freedom of speech and the internet as we know it.
This would put a hell of a lot of pressure on developers to keep within the 'laws', its very likely this site would face alot of pressure to shut down most of this forum if not the lot.
Thank you all, and I hope you also support the movement! for more information check this site
http://fightforthefuture.org/pipa
tanguita said:
Does it allow to install on external sd?
Click to expand...
Click to collapse
kind of, the problem is different roms mount it at differnet mount points so its not easy to write a script that 'knows' where the external sd is mounted. Write now the boot script only works if the ubuntu folder is in the mount point sdcard/ubuntu
However you could edit the script (change where it says /sdcard/ubuntu) to the mount point for your external sdcard
philburkhardt said:
Here's what I got when I tried to install ubuntu after downloading the files and extracting to sdcard/ubuntu:
/ $ su
~ # cd sdcard/ubuntu
/mnt/sdcard/ubuntu # sh ubuntu.sh
mkdir failed for /data/local/mnt, File exists
Loop device exists
mount: Invalid argument
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: mounting /sdcard on /data/local/mnt/sdcard failed: No such file or directory
mount: mounting /sdcard/external_sd on /data/local/mnt/external_sd failed: No such file or directory
net.ipv4.ip_forward = 1
ubuntu.sh: line 31: can't create /data/local/mnt/etc/resolv.conf: nonexistent directory
ubuntu.sh: line 32: can't create /data/local/mnt/etc/resolv.conf: nonexistent directory
ubuntu.sh: line 33: can't create /data/local/mnt/etc/hosts: nonexistent directory
Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:
eth0: No such device
chroot: can't execute '/root/init.sh': No such file or directory
Shutting down Ubuntu ARM
failed.
failed.
failed.
failed.
failed.
failed.
/mnt/sdcard/ubuntu #
I'm on Revolver 3.11 with Clemsyn's 22a kernel. Using the paid version of the app.
Click to expand...
Click to collapse
Same for me on Revolver with the stock Asus kernel. I cant change the kernel because it is the only one that has proper HDMI support for my TV.
bkmo said:
Same for me on Revolver with the stock Asus kernel. I cant change the kernel because it is the only one that has proper HDPI support for my TV.
Click to expand...
Click to collapse
I would say try a few other roms then to (but by all means keep the same kernel) that way we can see if its the kernel or rom in this case that stops it from working
zacthespack said:
I would say try a few other roms then to (but by all means keep the same kernel) that way we can see if its the kernel or rom in this case that stops it from working
Click to expand...
Click to collapse
I'm going to pass on this then. If it does not work on my rom, or not from the microsd card then it is not for me. I am sure I can tweak it, but it is not a priority for me right now. Thanks for the reply and for doing this app as I am sure it is very helpful to many.
Sent from my Transformer TF101 using xda premium
bkmo said:
I'm going to pass on this then. If it does not work on my rom, or not from the microsd card then it is not for me. I am sure I can tweak it, but it is not a priority for me right now. Thanks for the reply and for doing this app as I am sure it is very helpful to many.
Sent from my Transformer TF101 using xda premium
Click to expand...
Click to collapse
out of interest what is the mount point for the sdcard on the transformer? it is a feature I want to add as i make the boot script 'smarter'
micro sd is
cd Removable/MicroSD
SdCard on dock is
cd Removable/SD
Usb ports are
cd Removable/USBdisk1 ans USBdisk2
mrevankyle said:
micro sd is
cd Removable/MicroSD
SdCard on dock is
cd Removable/SD
Usb ports are
cd Removable/USBdisk1 ans USBdisk2
Click to expand...
Click to collapse
Thank you, what about the internal storage?
I will be looking at ways to make the script not be location dependent as well after tomorrow/today here so no more posting for me!
zacthespack said:
Thank you, what about the internal storage?
I will be looking at ways to make the script not be location dependent as well after tomorrow/today here so no more posting for me!
Click to expand...
Click to collapse
Internal is /sdcard for compatibility.
Sent from my Transformer TF101 using xda premium
can you change the it to 1280x750 to fit our screen size
and the small version works on revolver but the big version does not
Ubuntu 800x480 works good on my nexus s rom ics 4.0.3 kangy v.6 kernel glados 2.8 with Light version. But when I enter sh ubuntu.sh in terminal emulator I see this: /data/local/mnt/external_sd failed
No such file or directory
Net.ipv4.IP_forward =1
Ubuntu id configured... eth0: no such device.
After that ubuntu start well and I can enter in with vnc.
Why have this? Thx for help.
Inviato dal mio Nexus S usando Tapatalk
RealBearTears said:
Ubuntu 800x480 works good on my nexus s rom ics 4.0.3 kangy v.6 kernel glados 2.8 with Light version. But when I enter sh ubuntu.sh in terminal emulator I see this: /data/local/mnt/external_sd failed
No such file or directory
Net.ipv4.IP_forward =1
Ubuntu id configured... eth0: no such device.
After that ubuntu start well and I can enter in with vnc.
Why have this? Thx for help.
Inviato dal mio Nexus S usando Tapatalk
Click to expand...
Click to collapse
Why would you post this here? You already posted it in the Nexus S forum:
http://forum.xda-developers.com/showpost.php?p=21543875&postcount=39
...this is the Asus Transformer forum. If we start talking about the Nexus S in here it's just going to make the thread confusing.
The new update for the paid version has now been pushed to the marketplace!
I have also started a source forge project for this project, which can be found here https://sourceforge.net/projects/linuxonandroid/ I am still setting it up but I will host the files for the free app here and the source code for the boot script init.sh. We can also then make use of the sites wiki and bug tracker to make it easier for me to handle the bugs that are found.
My next job will be to update the small image, and then I will be doing some more work on the boot script, my aim will be to make it so it doesn't matter where the script and image are it will still boot.
I also want to script to be able to work out what mount points a device has so it can mount both internal and external storage, but for this I need you help!
I need everyone to post the mount points for different storages for example on my archos 101 the internal storage is mounted at /sdcard and the external is /sdcard/externalsd.
Once I have a large list I can make the script look for all of these and mount what a device has.
Thank you all

BlueStacks Beta 4/3 ROOTED & Play Store Guide

SEE POST 3 FOR ROOT GUIDE
Below you will find the neccesary steps needed to get Google Play to run on BlueStacks Beta
1. Install Root Explore (can be downloaded for free using bluestacks and typing in the app name)
2. Download the Vending.apk and Google Framework from this post.
http://www.androidfilehost.com/main/Misc/Bluestack/
3. Copy them to /data/bst
4. Give them these Permissions
(rwxr-xr-x) or through adb:
Code:
adb shell chmod 755 /data/bst/vending.apk
adb shell chmod 755 /data/bst/googleservicesframework.apk
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
5. Reboot Bluestacks
6. Download ADW Launcher if you haven't (this is not a requirement but it helps as if you already have Google Play in your PC you just find it through /data/windowsdata)
7. Find Google Play and sign in with your email and password.
Step by Step Guide on how to get into root.fs and mount the system.img
Click Here
The programs that are listed in the tutorial can also be found on my site here:
http://www.androidfilehost.com/main/Misc/Bluestack/
Along with those programs you will find all the tools,apks, installers you will need to get the market on Bluestacks Beta along with the tools to modify its files.
Lost, Confused, Cant get the Market to run with the instructions above?
Alternative Way-UPDATED 4/2/2012 :
I have uploaded a modified root.fs to my site for you to download
I added the the market per the instructions in the tutorial on the blog.
Steps:
Download the root.fs and overwrite the current root.fs on your computer.
Location:
C:\ProgramData\BlueStacks\Android
Make sure to stop all instances of BlueStacks before overwriting the file. Also Please Please make a backup of your original root.fs before overwriting the file with the modified one.
Once you have copied over the new root.fs start Bluestacks and wait for it to load up.
Congrats you have the newest Market running on BlueStacks.
You might need to install ADW Launcher inorder to see the Play Store/Market. It doesnt show up in the bluestacks launcher
Files can be downloaded from here:
http://www.androidfilehost.com/main/Misc/Bluestack/
------------------------------------------------------------------------
Was going to post my own guide but someone beat me to it.
Here a guide on some of the Registry Tweaks
http://droidhackings.blogspot.com/2012/03/some-useful-registry-tweaks-to-optimize.html
---Rooting BlueStacks Beta---
DOWNLOAD LIST (assuming you already have BlueStacks installed):
Code:
1. initrd-betahack.img ***INCLUDED***
2. ramdisk.img ***INCLUDED***
3. system.img-----------------NOT INCLUDED!!!
4. su.x86 ***INCLUDED***
5. BlueRegistryMOD ***INCLUDED***
--------------------------------------------------------------------------------------------------
Download from Here:
http://www.androidfilehost.com/main/Misc/Bluestack/Rooting BlueStacks Beta/
Code:
These are the custom files needed for root and r/w
-initrd-betahack.img
-ramdisk.img
-system.img
-su.x86
FILE: initrd-betahack.img
-From Beta (modified)
-Place it in \%programdata%\BlueStacks\Android\
FILE: ramdisk.img
-From Mod-V3.zip alpha
-Place it in \%programdata%\BlueStacks\Android\
FILE: system.img
-Extracted from xRepinsSporsx Root.fs (for Google Play)
Or
-Extracted from latest BlueStacks Root.fs
-Place it in \%programdata%\BlueStacks\Android\
FILE: su.x86
-From Androidx86 build (extracted from rooted alpha)
-This is the x86 superuser binary that auto-grants superuser-rights
***This file will be pushed to android using adb later on***
-------------------------------------------------------------------------------------------------
Code:
These files are the stock Beta files and remain in place
-kernel.elf
-Data.fs
-Prebundled.fs
-SDCard.fs
FILE: kernel.elf, Data.fs, Prebundled.fs, SDCard.fs
-From Beta
-Placed in \%programdata%\BlueStacks\Android\
---------------------------------------------------------------------------------------
Changes that need to be made to the registry are contained in BlueRegistryMOD.reg
FILE: BlueRegistryMOD.reg
***WARNING***
YOU MUST ENTER YOUR SPECIFIC USER ID BEFORE RUNNING BlueRegistryMOD.reg !!!
Where the registry key says ENTER-YOUR-GUID-HERE you need to enter the number (with dashes) found here:
FIND YOUR SPECIFIC GUID HERE!!!
[HKEY_CURRENT_USER\Software\BlueStacks]
“USER_GUID”=”SOME-NUMBERS-HERE”
Example of a GUID:
“USER_GUID”=”8dfcb602-4b7d-11e1-9dc9-f3dea6cb4293”
Example of a modified “BootParameters” with correct GUID and changes made to mount /system:
[HKEY_LOCAL_MACHINE\SOFTWARE\BlueStacks\Guests\Android]
"BootParameters"="root=/dev/sda1 SRC=/android DATA=/dev/sdc1 SDCARD=/dev/sdd1 GUID=8dfcb602-4b7d-11e1-9dc9-f3dea6cb4293 armApps=true GlMode=1 OEM=BlueStacks "
***ENTER-YOUR-GUID-HERE must be changed in 2(two) places in BlueRegistryMOD.reg***
-------------------------------------------------------------------------------------------
THIS IS THE PROCESS:
***Make sure to exit BlueStacks before proceeding***
1. Paying attention to the guidelines above, place the following files in their correct location – this includes initrd-betahack.img, ramdisk.img, and system.img.
2. After finding your GUID and making the appropriate changes to BlueRegistryMOD.reg in 2(two) places, run the registry file.
3. Start/restart BlueStacks – go to the Start menu>type Start Bluestacks
4. Start adb on your computer
a. Connect to bluestacks - #adb connect 127.0.0.1:5555
b. Ensure you have root access - #adb root
i. You should get message: “adbd is already running as root”
c. Mount system as read/write - #adb remount
d. Remove ‘dummy’ superuser - #adb shell rm /system/xbin/su
e. Push x86 superuser to BlueStacks - #adb push su.x86 /system/xbin/su
i. su.x86 must be in the same Windows directory you are running in the console
f. Correct the permissions for superuser - #adb shell chmod 6711 /system/xbin/su
g. Remount system read only - #adb shell mount -o ro,remount t-ext4 /dev/sdb1 /system
h. Exit adb by closing the console window
5. Restart BlueStacks – go to the Start menu>type Start BlueStacks
6. At this point you should have root and read/write access.
a. Verify root using a tool like Root Check. I suggest Root Check Pro because it will point you to what the problem is if you do NOT have root.
b. Verify read/write access using a tool like Root Explorer.
7. Enjoy.
***This is a sure-fire way to get root and read/write access. However, I find that there are still issues with GAPPS (gmail, calendar specifically)
Download from here:
http://www.androidfilehost.com/main/Misc/Bluestack/Rooting BlueStacks Beta/
Extended system.img
http://www.androidfilehost.com/main/Misc/Bluestack/Extended system.img/
Thank you!
works perfect! Great!
Can not mount r/w system, any idea, is it possible ???
I used the alternative method - with the "root.fs"
that was perfect!
I would like to get the bluestacks-alpha-fullscreen again - without the suggested apps bar etc.
Any idea?
Thanks again,
Sascha
Stapelmeister said:
I used the alternative method - with the "root.fs"
that was perfect!
I would like to get the bluestacks-alpha-fullscreen again - without the suggested apps bar etc.
Any idea?
Thanks again,
Sascha
Click to expand...
Click to collapse
We cant get the whole bar to go away yet. im still experimenting with that. I can make it black but not 100% gone.
milniko said:
Can not mount r/w system, any idea, is it possible ???
Click to expand...
Click to collapse
It is not possible yet. Still working on it
imisa2 said:
Get Maximum out of your BlueStacks Beta, Some useful Registry Hacks, tips and tricks Here:
droidhackings.blogspot.com
Click to expand...
Click to collapse
Well frick lol Was just posting my tutorial/guide on how to do those things. you beat me to it.
MOD-Please combine last 3 Posts.
Sorry
@Repin
I went through the Mod-V3.exe that chevy uploaded for the alpha build that enables r/w access to sytem.
The main changes I saw involved system.img, init-hack.img, ramdisk.img, and registry hacks.
-The registry hacks are fairly self-explanatory, except that now there is a need for a /sde1 to allow for the PrebundledApps.fs
-We already have a good system.img with Superuser to use in place of Root.fs in the /Bluestacks/Android/ folder.
-I tore into the alpha initrd.img and compared it to the alpha initrd-hack.img. The only difference inside both initrd.img and initrd-hack.img was a bash script named init. After a comparison of the scripts I found the point where the initrd-hack init script sets up the /system for r/w access. I then compared the alpha init script and init-hack script with the beta init. The only difference between the alpha init script and the beta init script is that the beta script has two extra 'insmod' entries for HD that the alphs does not. So, I made the same changes to the beta init script that are in the alpha init-hack script to enable /system with r/w. ****I'm not sure how to repackage initrd.img with my modified init script so that we can replace the original***
-The only thing I am unsure of is ramdisk.img. My question to chevy is "Did you make any modifications to ramdisk.img contained in the Mod-V3.zip that was uploaded for the alpha build?"
Sent from my BlueStacks using XDA
(Edited for spelling)
What is wrong ???
Unpack original initrd.img:
mv initrd.img initrd.gz
gunzip initrd.gz
mkdir tmp
cd tmp
cpio -id < ../initrd
Archiving without any change:
find . -depth -print | cpio -o >../initrd
cd ../
gzip initrd.gz
mv initrd.gz initrd.img
The new cpio file initrd.img does not work, even no change ???
@milniko
Exactly. I need a way to repackage initrd.img with the new init script but I don't know how.
Sent from my Droid using XDA
Can you send me the new init script. ill try and repackage it
i have ubuntu in vmware and it very simple:
rename to gz
extract the file inside
copy and past this file in vmware ubuntu from windows
when i have this file on ubuntu i extract this file in a folder
edit the file of my interest in this folder
and for repack i use this when i'm inside the folder:
find . | cpio -o -H newc | gzip > ../initrd.gz
in the final i rename initrd.gz in initrd.img
p.s.
the same thisnks for the ramdisk.img
Blue Stack Help
Hello all, How are you
Thanks for help to root, but i've question
Once I Install Blue Stack, I Get automatically downloading some applications like pulse, Talk... etc . I can not cancel those applications.
Please how to cancel all this applications to download and install automatically.
How can I Manage Start up Items, and What Thnkgs that I Can Remove after Rooting Blue Stack. Thank you
Thanks
imisa2 said:
Try this:
Click to expand...
Click to collapse
Would you mind quoting the post you are responding to next time? It helps keep the thread organized. Additionally, please stop "spamming" the link to your website and simply link to the post in which you originally shared it.
My apologies if I sound like a **** for bringing it up. I assure you it isn't my intention.
We all appreciate your having put together a site with tutorials on it! Very helpful for those looking to play with BlueStacks.
Modified init for initrd.img
This is the edited init file found in initrd.img in Bluestacks Beta. Rename the stock beta initrd.img to initrd.bak. The init file is easily read in Notepad++.
The changes that were made reflect the same changes made in the alpha init that allows for r/w access. Specifically, the changes made are in the part where Androidx86 detection takes place. The script mounts /dev/sdb1 to /mnt and then moves /mnt to /android/system.
This init assumes that the following changes have been made to the Bluestacks Beta filesystem:
-The moddified init file has been repacked into initrd-hack.img. Place it in the \%programdata%\BlueStacks\Android\ folder.
-try the ramdisk.img from Mod-V3.zip alpha as /sda1. Place it in the \%programdata%\BlueStacks\Android\ folder.
-xRepinsSporx system.img file with superuser is to be used as /sdb1. Place it in the \%programdata%\BlueStacks\Android\ folder.
-the beta Data.fs is to be used as /sdc1
-the beta SDCard.fs is to be used at /sdd1
---------------------------------------------------------------------------------------
Changes that need to be made to the registry are:
[HKEY_LOCAL_MACHINE\SOFTWARE\BlueStacks\Guests\Android]
"BootParameters"="root=/dev/sda1 SRC=/android DATA=/dev/sdc1 SDCARD=/dev/sdd1 GUID= OEM=BlueStacks"
"Initrd"="C:\\ProgramData\\BlueStacks\\Android\\initrd-hack.img"
[HKEY_LOCAL_MACHINE\SOFTWARE\BlueStacks\Guests\Android\BlockDevice\0]
"Name"="sda1"
"Path"="C:\\ProgramData\\BlueStacks\\Android\\ramdisk.img"
[HKEY_LOCAL_MACHINE\SOFTWARE\BlueStacks\Guests\Android\BlockDevice\1]
"Name"="sdb1"
"Path"="C:\\ProgramData\\BlueStacks\\android\\system.img"
[HKEY_LOCAL_MACHINE\SOFTWARE\BlueStacks\Guests\Android\BlockDevice\2]
"Name"="sdc1"
"Path"="C:\\ProgramData\\BlueStacks\\Android\\Data.fs"
[HKEY_LOCAL_MACHINE\SOFTWARE\BlueStacks\Guests\Android\BlockDevice\3]
"Name"="sdd1"
"Path"="C:\\ProgramData\\BlueStacks\\Android\\SDCard.fs"
*** Also, “DisableRobustness” in [HKEY_LOCAL_MACHINE\SOFTWARE\BlueStacks\Guests\Android] may need to be changed from “0” to “1” ***
zulu99;24242353
and for repack i use this when i'm inside the folder:
find . | cpio -o -H newc | gzip > ../initrd.gz
in the final i rename initrd.gz in initrd.img
[/QUOTE said:
Still does'n work for me, please share initrd.img if it works for you
Thank you
Click to expand...
Click to collapse
i can repack, but the method of tenet24 not work.
the file is this:
http://www.2shared.com/file/wm2Wcqsa/initrd-hack.html
p.s.
i used the system.img inside the original Root.fs->system.sfs and the ramdisk.img of modv3
if i put this 3 files in other folder and correct the regedit to this other folder, the bluestacks hangs on a black screen, after this with hd-adb.exe i can connect to the virtual android and i can remount in rw the /system folder, but the gui of bluestacks not work. i think the ramdisk.img is not good, we can repack also this.
@zulu99
Can you post any debug or logs from when the GUI wont load? Check the Bluestacks folder for their log, and try to use adb to get the last ten lines or so of debug.
Thanks.
Sent from my Droid using XDA

Categories

Resources