![]() |
#1 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() Posts: 405
Karma: 692
Join Date: Sep 2006
Device: Samsung Galaxy Note 3 | Kindle Paperwhite | iPad Mini
|
Rooting NookColor - how to apply environmental profile
I'm rooting the nookcolor and I'm stuck on a step. I'm a newbie and have little experience in using terminal. I was able to access the bash profile and append " export PATH=${PATH}:<your_sdk_dir>/platform-tools" at the end and then I saved it which seems to have worked because now when I type in "sudo nano ~/.bash_profile", I get this
PATH="/Library/Frameworks/Python.framework/Versions/2.6/bin:${PATH}" export PATH export PATH=${PATH}:/Users/xxxxx/Downloads/android-sdk-mac_86/platform-tools But the next instruction is to Apply the environment variable. I don't know how to do this. Any help?
source ~/.bash_profile |
![]() |
![]() |
![]() |
#2 |
Zealot
![]() ![]() Posts: 121
Karma: 132
Join Date: Dec 2010
Device: nook color
|
i think they mean just type it in your terminal session exactly as is. Does it not work?
you can also try typing: . ~/.bash_profile there's a space between the first dot and the ~ |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() Posts: 405
Karma: 692
Join Date: Sep 2006
Device: Samsung Galaxy Note 3 | Kindle Paperwhite | iPad Mini
|
Well, I've made a horrible mistake. I added the environmental variable to the end of the bash profile file and now terminal won't accept any commands. I can't pull up the command line prompt.
Now I'm googling like mad to find the bash profile on my leopard install so I can delete it and try again. Any suggestions? |
![]() |
![]() |
![]() |
#4 |
Shepherd
![]() ![]() ![]() ![]() ![]() ![]() Posts: 313
Karma: 663
Join Date: Dec 2010
Device: Nook Color, LG Optimus V
|
I actually never made the operating system environment add, I don't really see why it's needed. Maybe a more knowledgable bloke can pipe in and let us know ...
|
![]() |
![]() |
![]() |
#5 |
Séduisant
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,706
Karma: 2107018
Join Date: Jan 2010
Location: Texas, USA
Device: Boox Note Air2+; Kobo Libra2; Kindle Scribe, Oasis3; iPad Mini6
|
So sorry that you experienced this. It's very unfortunate.
I used Terminal, but didn't do the environment stuff. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Zealot
![]() ![]() Posts: 121
Karma: 132
Join Date: Dec 2010
Device: nook color
|
Quote:
You didn't add "source ~/.bash_profile" to the PATH variable, did you? This is just to be typed in the terminal as a command. are you logged in as root or some other user? if as another user, you can log in as root and edit the user's .bash_profile ( you may have to change some permissions to get access). |
|
![]() |
![]() |
![]() |
#7 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() Posts: 405
Karma: 692
Join Date: Sep 2006
Device: Samsung Galaxy Note 3 | Kindle Paperwhite | iPad Mini
|
You didn't add "source ~/.bash_profile" to the PATH variable, did you? This is just to be typed in the terminal as a command.
Yes, yes I did. I can login as root. How do I edit the user bash profile from there? |
![]() |
![]() |
![]() |
#8 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() Posts: 405
Karma: 692
Join Date: Sep 2006
Device: Samsung Galaxy Note 3 | Kindle Paperwhite | iPad Mini
|
Problem solved. Using CMD Find in Finder and then viewing the invisible items, I found the .bash_profile and deleted the source ~/.bash_profile using BBEdit and my command prompt is now back. It only took 3 hours!
|
![]() |
![]() |
![]() |
#9 |
Zealot
![]() ![]() Posts: 121
Karma: 132
Join Date: Dec 2010
Device: nook color
|
cd to where the .bash_profile is located.
If you can't do that because of permissions, you'll need to change it using chmod. For example: if the user's path is /home/zeroh you would type: ls -lad /home/zeroh this will give you the current permissions for the directory. Note it down on paper. Then you can change the perm by typing: chmod 777 /home/zeroh Next, type: cd /home/zeroh THen change the perm for the bash_profile: chmod 777 .bash_profile then you can edit it and save it. log in as the user and check if it fixed the issue. after that you can change the permissions back again. * NEVERMIND ALL I WROTE ![]() |
![]() |
![]() |
![]() |
#10 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() Posts: 405
Karma: 692
Join Date: Sep 2006
Device: Samsung Galaxy Note 3 | Kindle Paperwhite | iPad Mini
|
Thank you for your assistance though. It could help someone as stupid as me.
|
![]() |
![]() |
![]() |
#11 |
Séduisant
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,706
Karma: 2107018
Join Date: Jan 2010
Location: Texas, USA
Device: Boox Note Air2+; Kobo Libra2; Kindle Scribe, Oasis3; iPad Mini6
|
You're not stupid, just inexperienced in that particular thing.
|
![]() |
![]() |
![]() |
#12 |
Zealot
![]() ![]() Posts: 121
Karma: 132
Join Date: Dec 2010
Device: nook color
|
everybody's gotta start somewhere.. i remember when i first started using unix, i "rm *" in the wrong directory and deleted a bunch of important application files.. good thing they had backups!
|
![]() |
![]() |
![]() |
#13 |
Séduisant
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,706
Karma: 2107018
Join Date: Jan 2010
Location: Texas, USA
Device: Boox Note Air2+; Kobo Libra2; Kindle Scribe, Oasis3; iPad Mini6
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Considering Rooting...What will I lose? | traponk | Nook Developer's Corner | 17 | 12-23-2010 09:12 AM |
Classic Rooting help | Care | Nook Developer's Corner | 5 | 08-02-2010 10:06 PM |
Classic Soft rooting and files | Care | Nook Developer's Corner | 2 | 07-29-2010 01:25 AM |
The growing environmental case for e-books. | SoCal Bob | Sony Reader | 3 | 11-08-2006 11:41 AM |