Why can we not chroot out of osh into a standard linux of our choice as the open-osh... script launches the desktop? Have sfalv launch a wrapper script that chroots then launches the actual stuff. Or if that can not work, hack the sfalv code (assuming moto has published the source).
I assume this requires a custom launcher in the real linux to chroot back in order to launch the mobility app.., but that should be easy.
Just seams like this would be somewhat cleaner than the 2 custom OS launch methods I have seen to date. The wbtop2sd hack has a clean launch, but restricts you the osh base system. The Debian hack leaves you with awn on the wrong root (as far as I am concerned).
[Am a complete noobie to the Atrix webtop, will replace the webtop OS somehow tomorrow night and just wondered if there was an obvious reason why this approach would be a waste of time]
It should be noted that this is the current script, however, i am working on a cross platform java program that will do all of this for you
[NARS] is the Nook Automated Rooting System FOR MAC and LINUX
This program has been a WIP for myself for about a month, and I developed it so that people whom wanted to work with the adb development, and “bricking” of devices could quickly restore their devices to root. This program can also be used for a new user to, backup their programs, restore their programs, Root, Unroot, and Full restore.
Initializing ADB:
Download any app, and attempt to install it.
You can use this app if you need.
[*]Click on the Package Installer, and then a prompt will pop up asking if you want change the settings to allow 3rd party apps.
*DO NOT ENABLE 3RD PARTY IF YOU WISH TO ACCESS ADB*
I am working on a way to have it enabled by default.
[*]In the settings page you should see *2* USB Debugging modes.
*NOTE: if you disable automount, Debugging will maintain through unplugs
[*]Press them both and accept the prompt.
[*]PLUG IN YOUR DEVICE.
Note* You should see the Android Development icon on the bottom of the screen.
ADB will now be able to see your device. How ever you will need to restart the server before it sees it.
As it stands right now this scrip has 4 functions, and a video will be made for it tomorrow.
USE THIS SCRIPT AT YOUR OWN RISK!!!!!!!!
Using the script:
Download Start up script (Inside NARS):[/I][/B][/CENTER]
Check to see what operating system is running for which adb to used
[*] Inject the product id into the adb_usb.ini file.
[*] Start the adb server and look for devices.
[*] Verify that chosen devices is actually a Nook
[*] Load Menu
Current abilities:
Rooting with zergRush and installation of the su Binary
Installing busybox
Installing Gapps
Unroot
Factory reset
OTA block
Upcomming abilites:
Semi-automated install and config of keyboards
Installing launchers
Installing HomeCatcher
Custom Unbloating
Backup and custom recovery
Download:
[URL]https://github.com/loglud/NARS/zipball/master
Git-Hub
https://github.com/loglud/NARS
Changelog:
1/9/12:
Added ota blockage
New busybox
Bug cleanup
Nice! Will try later on today on my friend's Nook.
Sent from my X500 using XDA App
Windows
Any suggestion for us windows users which are outside of this curve?
verosity said:
Any suggestion for us windows users which are outside of this curve?
Click to expand...
Click to collapse
Use the windows script in this section, it does literally the same thing.
Ubuntu 11.10 not showing my nt
Are there any tricks to getting an Ubuntu 11.10 system to show the nook tablet in the list of attached devices? On my laptop the list is empty. The laptop does see the nook, both the on-board flash and the SD memory. But NARS.sh doesn't find it.
New Nook Tablet, first time plugged into the Ubuntu laptop.
jbs
SandlinJohn said:
Are there any tricks to getting an Ubuntu 11.10 system to show the nook tablet in the list of attached devices? On my laptop the list is empty. The laptop does see the nook, both the on-board flash and the SD memory. But NARS.sh doesn't find it.
New Nook Tablet, first time plugged into the Ubuntu laptop.
jbs
Click to expand...
Click to collapse
do me a favor and go into the NARS directory and type
Code:
./adblinux devices
and tell me what the output is.
also make sure you have adb debuging setup. To do this read the post in http://forum.xda-developers.com/showpost.php?p=19653967&postcount=3 Enableing adb Connection (eab1) part 4 through 8
I lost track of when I'd had the debug settings enabled. Between all my windows boxes, which all loaded a generic driver before I could use the custom drivers, and getting the linux box set for android development, I lost track of the last setting on the nook - I forgot to "measure twice and cut once" - I didn't go back to make sure debug was still enabled.
The reminder about the debug was the key.
Thanks.
Did not work on a mac running Lion. My nook is never detected. Clear, detailed instructions that are self-contained in the first post would be appreciated.
Not sure if any prep work is needed or if your script really should be this easy.
Thanks
UPDATE: YOU MUST COMPLETE THE FOLLOWING STEPS BEFORE BEGINNING NARS.
Cut and pasted from another t-r-i-c-k's thread at http://forum.xda-developers.com/showthread.php?t=1358051.
You must complete the following step before using NARS:
Code:
On the NOOK
Disconnect from USB
Factory restore & initial setup
Browse to this:
[url]http://goo.gl/vTNpJ[/url]
Click on notifications center, wait for the file to finish downloading.
Press on downloaded go_launcher_ex_v2.66.apk file
Select Complete action using package installer
It should say "install blocked"
Press settings
Tick unknown sources (press ok)
Pick Development
Tick USB debugging (press ok)
Tick the other USB debugging further down
Untick Automount
Back/Back
Connect the Nook to the MAC. On the nook you should see "USB debugging connected" in notifications center
Now follow the instructions in post #1 of this thread.
After you have run that script, reboot your nook tablet (you can turn it off all the way by pressing and holding for a few seconds the power button. Then turn the nook tablet back on).
You need to make sure that you install golauncherex, which I forgot to do. Just find the .apk that you downloaded (go_launcher_ex_v2.66.apk in your notifications center on the nook) and then make sure to install it. This will give you a new homescreen with all of your regular apps.
Loglud said:
...
Upcomming abilites:
Autoinstall and config of keyboards
Installing launchers
Installing HomeCatcher
[*]Unbloating
Click to expand...
Click to collapse
Any chance of custom unbloating? Such as, if you want to keep some of the bloat? Like the games?
Hey all. Hopefully you have all gotten a chance to check this out. I would like if you guys could tell me what launchers, browsers, keyboars, etc. you guys use so i can put them into the code.
just some suggestions thanks.
launchers
go launcher
zeam
adw
hcl
ics launcher
keyboards
hacker keyboard
swift tablet and standard
extra app
amazon app store
es file exploxer
mx player
mx player arm 7 codec
swipe pad
I am not sure what is possible these are things I use and feel are solid for the tablet.
Loglud said:
Hey all. Hopefully you have all gotten a chance to check this out. I would like if you guys could tell me what launchers, browsers, keyboars, etc. you guys use so i can put them into the code.
Click to expand...
Click to collapse
Thumb Keyboard 4!!!
Block OTA?
Does NARS block OTA like Indirect's script under Windows?
great script, fails on option7 install additional apk's
would turning this into a full linux distro with say puppylinux for modding/tweaking and development for NC be useful?
Loglud: I've rehosted these files on XDA.
http://devftp.xda-developers.com/files/AdamOutler/NookTablet/Market-8009011.apk
and
http://devftp.xda-developers.com/files/AdamOutler/NookTablet/NARS.tar.gz
I just put in some changes on my domain so;
APK:http://nook1.adamoutler.com
tar.gz:http://nook2.adamoutler.com
This should make it substantially easier for us who are restoring frequently.. now to try this sucker out.
All of the lines like this:
Code:
read -p "Press any key to exit..."
should be
Code:
read -n1 -p "Press any key to exit..."
So that it takes a single key press instead of "Enter"
Also, here's some more stuff to add http://forum.xda-developers.com/showthread.php?t=1424811
Scripts are already written, you just need to modify them for ADB.
Thanks adam the script has been updated
Nice job devs. This nook is open like a brothel on payday!
Why python? - How to Install Python!
Why python?
Check post #26 by fattire in this thread.
http://forum.xda-developers.com/showthread.php?t=1480586&highlight=python&page=3
I tried to follow several threads on the internet to install Python on Android and made a mess of each or dead ended when I could not complete one of the required steps. This works for me (CM7-internal-Alpha-Final). I backed up with (CWM) before I started, completed this tutorial, and flashed back to before so I could complete it again.
How to install Python!
My info on how I installed and setup python.
All of this is done on the NT. If you wish to download it with your pc and place in download folder on your sdcard that will work also.
sl4a http://code.google.com/p/android-scripting/
chose sl4a_5.apk http://code.google.com/p/android-scripting/downloads/detail?name=sl4a_r5.apk&can=2&q
But I want to install python.
We will install python through sl4a and it will provide a shell to write and run python scripts as well as sl4a if you choose. This makes proper setup easy, easy. It also keeps all your programs and scripts in one place with a one click menu.
Run sl4a after it is installed. Hit menu at the bottom and select add. From here you can add Folder, HTML and JavaScript, Shell, Scan Barcode. For now we will not add anything here.
Menu again and this time View. Interpreters, Triggers, Logcat. We are interested in Interpreters so select it. Now we have Shell listed at the top of the window. We are interested in adding Python so on Menu at the bottom select Add. Now we have a list of 7 items to choose from. Choose Python 2.62. Your browser will open and present you with Save as -PythonForAndroid_r5.apk. Click OK. Click on the above file added to download folder on your sdcard. Install and click done.
Run “Python for Android” in your apps. Don't panic it is slow to show on screen. Click Install when the screen shows the Python for Android menu. It begins downloading files and and installing. Once complete you are again presented with the menu. Click Browse Modules. This will pull your browser and show python-for-android page. Click Download pyserial-2.6-py2.6egg. Click the save as button. Now do the same for Twisted and Zope. (I didn't download PyBluez as bluetooth is not working in CM7 at this time). Choose what you wish. Close browser.
Now back to Python. When menu appears choose Import Modules. The files you just downloaded appear for installation. Choose each one pyserial, Twisted, and zope in my case and they are installed for you in the proper locations. Close Python.
Back to SL4A. When you open sl4a you will now see a list of python scripts. Now we will get our editor. Quick touch one of the scripts – I choose weather. Now we get a picture type menu. We can open in shell, option, edit (the pencil), save, delete, and etc. Click the pencil to edit. Here is where we can add our editor. “Don't click use by default' and you will always have a choice of editors. You can choose later but we want the SL4A editor loaded because it has special features for use in SL4A, so choose SL4A. The editor will be downloaded and installed for you. This editor is not my favorite for some things but is useful to have(check its menu) along with your favorite editor. My favorite is Jota Text Editor. You're Done!
Now enjoy python! Make something pretty or down and dirty but try to make something.
I can't be of help on actual use but believe it or not this is as easy as I could make this install and have a proper environment to work with.
I hope you enjoy it.
Programming Java on NT-Including generating APKs
I don't know anything about java but am trying to learn. Most of what I would like to create will be simple. It would be nice to be able to create APKs so I could pass on to others if I wished necessary.
I have not been very successful setting up a proper environment in windows or linux. There are numerous guides on the internet for each operating system. The problem is the world keeps revolving and by the time I find a guide and try to follow it to conclusion there have been changes that cause an incorrect environment which is unusable.
I remember programming on iPAQs (xscale-arm processor) both in c/c++ and c# on board the iPAQ. After looking around a little I have found several options for windows users (gui) and one for linux users (command line) to program on the NT in java.
I felt I should pass this information along for others. These will be listed windows Style(gui) first and then linux style(command line) last.
Windows Style environment(gui) :
Aide - https://play.google.com/store/apps/details?id=com.aide.ui&feature=search_result
Just install and you have a working environment which will compile android api10 example files with nearly no changes (example change=add res directory which had been left out of example). The only thing that was not apparent is to watch the notification area for any errors which give you the problem and how to correct them. Updates have been often and useful. My first choice for windows type (gui) environment. Check the web for more info and tutorials about this program.
Android Java Editor – https://play.google.com/store/apps/..._result#?t=W251bGwsMSwyLDEsImNvbS5hbmplZGkiXQ..
With this one I had to watch the video and pause it several times to decide how to get setup and use (no audio-just video). It works and creates APKs also but is a bit more involved and the learning curve of the program is higher due to no available directions.
Linux Style environment(command line):
Terminal IDE – https://play.google.com/store/apps/...cuside&feature=nav_result#?t=W251bGwsMSwyLDNd
Easy install, good tutorials, and very easy to learn. Can be used with a tether (wifi or cable) and telnet to use keyboard and screen from your pc. This one has updates since I downloaded and support is great. I couldn't get the software keyboard to work on stock 1.4.0 but works great in CM7. As a result I used hackers keyboard while on 1.4.0. Also creates APKs. Includes vim, Midnight Commander, etc. This is a thirty meg download and is twice that when installed but everything is installed in /data/apps/ folder so it had no impact on a stock 1.4.0 system.
Notes:
None of these require being rooted to setup and use. There are others but I have decided not to list them in this thread for various reasons. I feel I have chosen the easiest to get working and use and provide the end result of an APK if you desire.
I forgot to mention they are all free. I have just begun this project so I can't be any help on use of these programs or java. I'm just passing on information as I think others may find useful. The way I see this project is anything I learn (no matter how little) from this is added to my limited knowledge and certainly can't help.
Almost forgot, I use jota text editor to look at and create source files.https://play.google.com/store/apps/...51bGwsMSwxLDEsImpwLnNibG8ucGFuZG9yYS5qb3RhIl0.
Nvm, you're talking about developing for android on android
lufthanza said:
Nvm, you're talking about developing for android on android
Click to expand...
Click to collapse
Yes that is correct.
NOTE: As of 7/5/2012 I've decided that the Samsung Galaxy S3 is a better fit for me and have returned my HTC Evo 4G LTE. I will not be updating this post. Any expressed intention to do so later on this post is therefore a LIE!
Short version: You can get Ubuntu (and presumably Backtrack and/or Debian) running on top of Android on the HTC Evo 4G LTE (EvoLTE, from now on).
What's working for me now:
Rooted/Unlocked/S-Offed (Dunno if all that is NEEDED, it's just what I'm working with ATM.)
ViperROM eLiTE v1.2.1
Dual Core Mod Ultimate (I flashed the ViperROM-specific mod.)
Market App: Complete Linux Installer (Paid App)
Before I bought the paid app, I tested it with the free Ubuntu Installer app. It didn't work "out of the box" so to speak as the busybox installation included with the free app seemed broken. The free app worked only after I renamed the included busybox and copied the one I have from Busybox Installer in it's place. If you get errors about not being able to create a loopback device when you try the 'sh ubuntu.sh' script, then you're seeing what I saw.
Both the paid Linux Installer app and the free Ubuntu Installer app contain a guide with buttons to download the necessary scripts, Ubuntu/Linux boot images and applications to boot Linux on Android. The other apps are a specific terminal emulator and a VNC client. The installer apps also provide directions on what to do with the files, where to unzip them and such.
Main things you get with the paid vs. free app are:
Support for Debian, Backtrack and Ubuntu in one app.(Note1)
No need to download a script or run it manually.
A "launch" button inside the app instead of manually running a script.
A widget to boot your linux image from the homescreen.
(Note1: There are one-off paid apps that only support one distribution of Linux each, they're cheaper than the "Complete" version).
I don't see any reason why someone couldn't eschew the paid installer apps and just use the free ones along with ScriptManager or similar program to launch their Linux images.
You may be wondering: "But is the hosted" Linux USABLE?"
Yup, it sure is! I'm using VNC on my desktop computer to access the LXDE desktop of my phone's Ubuntu session right now and it's pretty quick. I suspect what minor speed/lag blips I'm seeing are more because of the network and VNC than the performance of my phone.
Hopefully this post passes muster as-is. As I mentioned above, I will be fleshing it out as I tinker with it and have to time until it's more of a how-to. I will also flash other ROMs and see if it's possible on other ROMs. I suspect that it will be, as the Stock ROM apparently supports loopback devices, which is the real hurdle once you've rooted your phone.
Now this is cool stuff, keep us posted on your progress. I know is possible to hook up a mouse/trackpad and keyboard along with mirrored display with android but have not seen anyone other than those on the website for ubuntu make it work. http://www.ubuntu.com/devices/android