Related
I AM NOT RESPONSIBLE FOR ANY PROBLEMS YOU CAUSE!
So you are stumbling around XDA and you really want some kind of app or something, but you think you cant because you have a Mac, well I am here to tell you wrong.
The biggest and most used mistake for mac users when trying to use ADB is this:
HTML:
Inas-iMac:~ Hans$ /AndroidSDk/tools
-bash: /AndroidSDk/tools: is a directory
Inas-iMac:~ Hans$
Well this is how you do it!
Watch this!
http://www.youtube.com/watch?v=GLAMG4xU_lE
To make your phone go into debug mode go to settings/applications/development and check debug
DO NOT MOUNT PHONE! Just let it be
I did not go to deep into the process because this is made for complete beginners!
Why not follow the official SDK install instructions and add the path to bash_profile..
developer.android.com/sdk/installing.html#Installing
In my opinion that's not too hard for a newbie.. (i managed to do that) And after doing that you don't need to change directories with cd command, you can just type adb whatevercommand from your home dir which is the default location when you open the terminal.
Drag and drop is a little a fail.... one can add "alias" (linux can do it, probably mac too)
Little How-to:
Code:
$ nano ./bashrc
add and adapt the following line to bashrc:
Code:
alias adb="/home/carbonyle/android-sdk-linux_86/tools/adb"
now you just have to type "adb" from a terminal emulator to run it, eg:
Code:
$ adb shell
# reboot recovery
or
Code:
adb install ./Download/myFavortiteApp.apk
and so on...
ps: we don't need to "adb remount" at worst we can just "adb kill-server" then "adb start-server" if the device is not accessible
SOLVED! Followed the Guide in Post #5, than kept getting an error saying libncurse.so.5 cannot be found. I than opened the Package Manager and downloaded everything in the sun-java6-sdk and anything related to it. Than searched for anything of libncurse and installed those. than got a libc++ (or similar) missing than went back to Package Manager and download anything with libc++ in it. Afterwards, ran fine.
One quirk, as I'm sure this will be general knowledge to any Linux user but I am still a newbie at it. In root # i had to do ./adb to run the command, running just # abd gave me errors, exiting root back to $ alowed me to just use $ adb and not have to do ./adb
I know it's pretty shoddy, I think i downloaded 250MB of stuff I'm not sure I need. lol. I searched for the libncurse.so.5 file and had a lot of em, i think the package that actually did the trick was a ncurse32bit package, as I am on a 64 bit system. So take that into consideration
downloaded the android sdk, extracted it, however, when i use terminal and goto the tools folder and use adb
i get...
[email protected] /usr/bin/android-sdk/tools $ adb
No command 'adb' found, did you mean:
Command 'cdb' from package 'tinycdb' (main)
Command 'gdb' from package 'gdb' (main)
Command 'aub' from package 'aub' (universe)
Command 'dab' from package 'bsdgames' (universe)
Command 'zdb' from package 'zfs-fuse' (universe)
Command 'mdb' from package 'mono-debugger' (universe)
Command 'tdb' from package 'tads2-dev' (multiverse)
Command 'pdb' from package 'python' (main)
Command 'jdb' from package 'openjdk-6-jdk' (main)
Command 'ab' from package 'apache2-utils' (main)
adb: command not found
Click to expand...
Click to collapse
I read something about adding it to path, and i went into my .profile and added in the :/usr/bin/android-sdk/tools after the $PATH yaddayadda but it still didn't work.
Any help is appreciated. This is really the only thing keeping me from wiping the 120gb partition for Win7 and using Linux only(which only has a 21gb partition)
Nrre said:
downloaded the android sdk, extracted it, however, when i use terminal and goto the tools folder and use adb
i get...
I read something about adding it to path, and i went into my .profile and added in the :/usr/bin/android-sdk/tools after the $PATH yaddayadda but it still didn't work.
Any help is appreciated. This is really the only thing keeping me from wiping the 120gb partition for Win7 and using Linux only(which only has a 21gb partition)
Click to expand...
Click to collapse
Since the android sdk doesn't actually install on your computer but placed there by you, you must make sure everything is in place for it to work properly. I am relatively new to linux myself, but this is what i've done to get it working properly:
create /etc/init.d/adbd
you will need to do this as root.
Code:
gksu gedit /etc/init.d/adbd
paste this into the file
Code:
#!/bin/sh
#
# For ADB deamon (Android Device Bridge)
#
case "$1" in
start)
/usr/bin/android-sdk/tools/adb start-server
;;
stop)
/usr/bin/android-sdk/tools/adb kill-server
;;
*)
echo "Usage: $0 start|stop" >&2
exit 3
;;
esac
now run this:
Code:
sudo ln -s /etc/init.d/adbd /etc/rc2.d/S10adbd
What you just did there was make sure adb daemon started as root whenever you booted (if you don't start it as root you will get errors later on down the road)
I'm not sure about mint, but on ubuntu its easier to just add the tools folder to your /etc/environment file.
Code:
gksu gedit /etc/environment
the file should look something like this:
Code:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/bin/android-sdk/tools"
go ahead and reboot just to make sure everything sticks. You should be good from then on.
You could add the path to your profile, but then if you have to run something as sudo, or if you have another user trying to do something similar, it could be a headache. If you don't have a /etc/environment, or if the above still doesn't work, go ahead and see if you have a ~/.bashrc.
edit that:
Code:
gksu gedit ~/.bashrc
add this to the bottom:
Code:
export PATH=${PATH}:/usr/bin/android-sdk/tools
let me know if this works, and if there are any more experienced linux users out there who notice any mistakes of mine, or have better advice please chip in. I just know I went through a huge amount of frustration to get adb to work properly, through much trial and error. this is the culmination of what i went through that was easiest for me. BTW i stole that code for the daemon to startup as root from somewhere else.
EDIT: I just realized my daemon is still not starting on boot? although, with the above script i can start it via:
Code:
sudo service adbd start
someone smarter than me, chip in and tell me what i'm doing wrong?
OP, you can always start the daemon yourself as root by typing
Code:
sudo /usr/bin/android-sdk/tools/adb start-server
EDIT: woops. I fixed the code above, as well as fixed my problem. on creating a link to rc2.d i typed "s10adbd" originally and it should be "S10adbd".
OP, this is a great example why paying attention to capital/lower case letters are super important when learning linux.
i changed my link and everything works on my system.
think i'm still doing it wrong. i didn't have a .bashrc file but i did have a bash.bashrc file.
i know linux mint is based off ubuntu.
here is my command line after doing everything above
richard-laptop richard # /usr/bin/android-sdk/tools/adb start-server
/usr/bin/android-sdk/tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
richard-laptop richard # sudo service adbd start
adbd: unrecognized service
richard-laptop richard # adb shell
adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
Click to expand...
Click to collapse
think i'll take the laptop into work and mess with it tonight.
If you don't setup a your bash file, you can issue adb commands by using standard terminal commands from the /tools directory:
user:~$ ./adb start-server
Click to expand...
Click to collapse
To setup your .bash file, right from Google:
# On Linux, edit your ~/.bash_profile or ~/.bashrc file. Look for a line that sets the PATH environment variable and add the full path to the tools/ directory to it. If you don't see a line setting the path, you can add one:
export PATH=${PATH}:<your_sdk_dir>/tools
Click to expand...
Click to collapse
From terminal, you can run
user:~$ gedit ~/.bashrc
Click to expand...
Click to collapse
Nrre said:
think i'll take the laptop into work and mess with it tonight.
Click to expand...
Click to collapse
Please follow these instructions (source = wiki.cyanogenmod.com):
Ubuntu: Android SDK, ADB, Fastboot.
There are various great tutorials online to help you set these options up for Windows, but the process of setting this up in Ubuntu Linux is rather fragmented across various different forums, and can be rather confusing! This is a tutorial I have put together after having real trouble setting it up myself, after trawling through numerous forums, and getting help from many very helpful folks on various forums including this one!
Tutorial: This will show you how to complete the basic set up of the Android sdk, and then how to enable the 'adb' and 'fastboot' connections so as to allow you to issue commands from the terminal directly to your phone.
Disclaimer: As always, you follow this tutorial at your own risk, nobody is forcing you to! I take absolutely no responsibility for damage to your computer / mobile phone etc. This is the process I have followed, and it is working fine!
Basic Android sdk installation and set-up:
You will need to download the following files before you start:
android_sdk_r05-linux_86.tgz [1]
Fastboot [2]
1. Extract the 'android_sdk_r05-linux_86.tgz' file to your 'Home' folder and rename it to 'sdk' to make things easier later on.
2. Move the fastboot file in to the 'Tools' folder inside the 'sdk' folder.
3. Now right click on both the 'fastboot' and 'adb' files (inside the tools folder) and choose 'Properties' and then the 'Permissions' tab, and ensure they both have the 'allow executing file as program' box is ticked...Now reboot the computer, sorted!
Set up ubuntu to recognize your phone, and the adb/fastboot commands in the terminal
1.Open your 'Home' folder. Press 'Ctrl' & 'H' at the same time to view hidden files, and then open the '.bashrc' file and add the following text to the top of the file:
#AndroidDev PATH
export PATH=$PATH:/home/username/sdk/tools
2.Obviously you will need to replace 'username' with your own...Save the file and exit.
3.Now log-in as root.
3. Navigate to the following directory in the root filesystem: /etc/udev/rules.d/
4. Create the following empty file:
(ubuntu 10.04)
99-android.rules
(ubuntu 9.10)
70-android.rules
(ubuntu 7.10/8.04)
51-android.rules
5. You then need to edit the file with the following text (depending on your version of ubuntu):
ubuntu 7.10/8.04/9.10:
SUBSYSTEM==”usb”, ATTRS{idVendor}==”0bb4”, MODE=”0666”
SUBSYSTEM==”usb”, ATTRS{idVendor}==”18d1”, MODE=”0666”
SUBSYSTEM==”usb”, ATTRS{idVendor}==”22b8”, MODE=”0666”
ubuntu 6.06:
SUBSYSTEM==”usb_device”, SYSFS{idvendor}==”0bb4”, MODE=”0666”
SUBSYSTEM==”usb_device”, SYSFS{idvendor}==”18d1”, MODE=”0666”
SUBSYSTEM==”usb_device”, SYSFS{idvendor}==”22b8”, MODE=”0666”
6. Save this file, and then open the terminal and enter the following command:
chmod a+rx /etc/udev/rules.d/70-android.rules
Change the '70' to '51' depending on your version of ubuntu.
For a list of the vendor ID's go here: VendorID's [3]
7. Now reboot the computer.
8. Open Terminal, and issue the following commands:
su
cd /home/username/sdk/tools/
./adb kill-server
./adb start-server
You will now be able to open a terminal and carry out 'adb' and 'fastboot' commands directly.
Credit and thanks to:
koalaboy, Apostasy, Cloverdale, wddglr, JgeZau.
EDIT: I have followed this tutorial to the letter myself today on my laptop to prove it works, for both yours the reader, and my own peace of mind as the writer! Enjoy, it works flawlessly!
Click to expand...
Click to collapse
I have followed these directions more than once and each time they work flawlessly. This should work with Linux Mint, since Mint's based off Ubuntu.
For Part 4, use Ubuntu 10.04 when creating the empty file and for Part 5, use this SUBSYSTEM: SUBSYSTEM==”usb”, ATTRS{idVendor}==”0bb4”, MODE=”0666” and paste that into your 99-android.rules file.
followed to a T.
not sure how to log in as root, so i just 'run as administrator' i can't find anything on root for this.
i still get the following after i do that entire guide
richard-laptop richard # cd /home/richard/sdk/tools
richard-laptop tools # ./adb kill-server
./adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
richard-laptop tools # ./adb start-server
./adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
Click to expand...
Click to collapse
Nrre said:
followed to a T.
not sure how to log in as root, so i just 'run as administrator' i can't find anything on root for this.
i still get the following after i do that entire guide
Click to expand...
Click to collapse
To login in as root, you enter:
Code:
sudo su
As for the "error while loading shared libraries: libncurses.so.5" -- I've never seen that error before. Might be Linux Mint problem? I currently run Ubuntu 10.04 32 Bit.
when i do SU it asks my password and the $ becomes a #
i assume that is root? i dont have to do SUDO i just did SU
yeah if i do SUDU SU i get a 'SUDO command not found'
gonna post this over on the linux mint forums see if they can help me to.
Nrre said:
when i do SU it asks my password and the $ becomes a #
i assume that is root? i dont have to do SUDO i just did SU
yeah if i do SUDU SU i get a 'SUDO command not found'
gonna post this over on the linux mint forums see if they can help me to.
Click to expand...
Click to collapse
Wait... wait.. are you trying to do following instructions on your phone or on your computer?
If you run su on your phone, sure you'll get root (# sign). But the command, sudo su was meant for your computer. The instructions I listed are for your computer with Linux Mint installed.
yeah i'm doing it on my computer =P
if i do SUDU SU it gives me that error, but SU gives me #
so...i was hoping it'd all be teh same since Mint is based off ubuntu and half my updates are ubuntu files.
[email protected] ~ $ sudu
No command 'sudu' found, did you mean:
Command 'sudo' from package 'sudo' (main)
Command 'sudo' from package 'sudo-ldap' (universe)
Command 'tudu' from package 'tudu' (universe)
sudu: command not found
[email protected] ~ $ SUDU su
SUDU: command not found
[email protected] ~ $ SUDU SU
SUDU: command not found
Click to expand...
Click to collapse
so, not sure what else to do.
sudo
not sudu
elegantai said:
sudo
not sudu
Click to expand...
Click to collapse
balls, well i still get the same result after i go through and make all the changes and use SUDO SU instead of just SU, i get the same prompt with #
this is still my end result.
richard-laptop richard # cd /home/richard/sdk/tools/
richard-laptop tools # ./adb kill-server
./adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
richard-laptop tools # ./adb start-server
./adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
Click to expand...
Click to collapse
makes me feel like i'm missing a file somewhere. i did download the newest android sdk and not the older version that is in the guide. but i still installed the packages for android 2.1 and 2.2
suppose i'll delete it all and start over.
EDIT: Went through, put in proper vendor IDs and noticed i put Richard in the Path and not richard, still, says it's missing the same "libncurses.so.5" so...not sure what to do. =/
I don't know that error either, but looking at this thread:
http://bbs.archlinux.org/viewtopic.php?id=66878
sounds like it could be a java issue? Didn't think to ask, have you installed the java sdk? which version of java are you running?
now that i think about it...i don't believe i downloaded a new java...
the worse news is my win7 got corrupted somehow =P so now i only have Linux so time to dig in and try this out.
I'd download the stuff now but I'm tethering through my phone so i'm lucky to get 600kbps download speeds in this reception area.
I could step 10 feet outside and hit 1200kbps though. So i formatted the HD and reinstalled Linux Mint. Once i get home I'll look into the JDK as that makes sense now that I think about it to.
EDIT: Should I install Eclipse also? Installing Android SDK and Java6 JDK right now. I really just want to use ADB for now to send commands to phone etc.
No need for eclipse.. That's just for actual development
ADB Error: /home/richard/sdk/tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
'adb start-server' failed.
Click to expand...
Click to collapse
this shows up int he Android SDK/AVD manager as i install all the packages...
EDIT: opened up software manager, and downloaded every sun-java package, than installed everything that showed up when i typed libncurses ... once it's done will reboot and try again =P
2nd EDIT: i decided to search for libncurses.so.5 and i have 3 of em, one in usr/lib, /lib64 and something else.
so..not sure where else to put it, went into synaptics thing or something and downloaded ncurses32bit as i noticed none of my lib32 folders had it...giving it a go.
btw... my .bashrc is .profile, i copied .profile and renamed it to .bashrc and my prompt stopped showing up in terminal...linux is so weird.
3rd EDIT: Just isn't meant to be. got to ./adb kill-server and instead of missing the libncurse.so.5 i am now missing..
richard-laptop tools # ./adb kill-server
./adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
Click to expand...
Click to collapse
off i go to hunt this package down
it's working...finally
however...
richard-laptop tools # adb devices
No command 'adb' found, did you mean:
Command 'cdb' from package 'tinycdb' (main)
Command 'gdb' from package 'gdb' (main)
Command 'aub' from package 'aub' (universe)
Command 'dab' from package 'bsdgames' (universe)
Command 'zdb' from package 'zfs-fuse' (universe)
Command 'mdb' from package 'mono-debugger' (universe)
Command 'tdb' from package 'tads2-dev' (multiverse)
Command 'pdb' from package 'python' (main)
Command 'jdb' from package 'openjdk-6-jdk' (main)
Command 'ab' from package 'apache2-utils' (main)
adb: command not found
richard-laptop tools # ./adb devices
List of devices attached
HT*********** device
Click to expand...
Click to collapse
i have ot do ./adb and not just adb
EDIT: exit su, and in $, lets me just do adb.
THANK YOU EVERYONE <3 Wish I could +rep or Thanks your post here.!!
changed title to reflect it. was a good 'thrown under the bus' into linux. now to read up more on it. w/out losing half my CCNA knowledge i've gathered...ha
Enjoy Linux. You'll enjoy it once you get used to it.
Sent from my PC36100 using XDA App
Nrre said:
it's working...finally
however...
i have ot do ./adb and not just adb
EDIT: exit su, and in $, lets me just do adb.
THANK YOU EVERYONE <3 Wish I could +rep or Thanks your post here.!!
changed title to reflect it. was a good 'thrown under the bus' into linux. now to read up more on it. w/out losing half my CCNA knowledge i've gathered...ha
Click to expand...
Click to collapse
Since this has been solved, I would advise posting the resolution on the first page -- so new users are aware of what exactly you had to do to fix it.
this is interesting to have ubuntu in ours MT4G imagine how many apps can we run in ubuntu usin ours MT4G.
Sources:
http://www.ehow.com/how_12170472_install-ubuntu-android.html
http://androlinux.com/android-ubuntu-development/how-to-install-ubuntu-on-android/
http://forum.xda-developers.com/showthread.php?t=723493
1- We need to install vnc in our devices, go to the Market and search for androidvnc or whatever vnc app you like and install it
2- download the new version and extract it in the sd of your MT4G in a folder named ''ubuntu''
3- open a terminal emulator and type:
su
cd /sdcard/ubuntu
sh ubuntu.sh
bootubuntu
If you get the "root_localhost:/#" sign, congratulations
4- open vnc for android and connect with [email protected]:localhost:5901
5- if you want to change the pass type:
bootubuntu
vncpasswd
Alternative:
if that method doesn't work try this one:
1- Assuming you know how to work with adb just reboot your MT4G to recovery and load up ADB Shell connecting you phone to a computer.
2- once we are in adb shell, type:
mount system
mount sdcard
cd /sdcard/ubuntu
rm /system/bin/fsrw
rm /system/bin/bootubuntu
rm /system/bin/unionfs
rm /system/bin/mountonly
cp -f fsrw /system/bin
cp -f bootubuntu /system/bin
cp -f unionfs /system/bin
cp -f mountonly /system/bin
cd /sdcard/ubuntu
chmod 4777 *
cd /system/bin/
chmod 4777 *
cd /
umount sdcard
umount system
exit
Now select "reboot system now" from recovery menu
3- you need load up again ADB Shell Type "su" to enter superuser mode. Is very important not to forget this type:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
mkdir /data/local/mnt
4- Once that completes, type "bootubuntu", If you get the "root_localhost:/#" sign, congratulations! You've just installed Ubuntu on your Android phone.
NEW VERSION
here is a 10.10 version with vnc an many app includes:
http://www.megaupload.com/?d=L9S70C8V
http://www.megaupload.com/?d=MS1KUUGW
http://www.megaupload.com/?d=YCMNO224
http://www.megaupload.com/?d=H6XZX9JB
MIRRORS:
http://www.multiupload.com/1SOEE6B5U4
http://www.multiupload.com/TNSJ2QGECI
http://www.multiupload.com/VJDBUJD7MC
http://www.multiupload.com/2M5ZR00RKN
EDIT:
For those who are having problem replace the ubuntu.sh file with the attached one.
Applications
Firefox, Thunderbird, openoffice.org suite, GIMP Image Editor, Emacs Text Editor (geared towards programming), C and C++ build-essential, Java JDK, Python, TeXlive and TeXmaker LaTeX editor, Transmission BitTorrent Client, eVince PDF Viewer, File Manager, Terminal, Image Viewer, Leafpad Text Editor, Synaptic Package Manager and Ubuntu Software Center with all repositories enabled (Ubuntu Software Center is pretty and well organized - but bloated and slow), SSH server, Gnash (GNU flash player/plugin for Firefox - as there is no official generla flash pluging for armel CPUs)..
Interesting! May try this sometime
EDIT:
GUYS, I CONFIRM THIS WORKS ON OTHER ANDROID DEVICES!!!
it worked on my LG optimus, i'll try for MT4G later
screenshots coming up
saranhai said:
EDIT:
GUYS, I CONFIRM THIS WORKS ON OTHER ANDROID DEVICES!!!
it worked on my LG optimus, i'll try for MT4G later
screenshots coming up
Click to expand...
Click to collapse
Screenshots!
Sent from my HTC Glacier Sense 3.5 using xda premium
saranhai said:
Screenshots!
Sent from my HTC Glacier Sense 3.5 using xda premium
Click to expand...
Click to collapse
holy mother that's awesome. dammit my computer dead ! would this method work with terminal emulator
RCMIX 3D DarkSide Glacier HD !
by terminal emulator
Tez MyTouch said:
holy mother that's awesome. dammit my computer dead ! would this method work with terminal emulator
RCMIX 3D DarkSide Glacier HD !
Click to expand...
Click to collapse
yes you can just download this script http://zedomax.com/android/bootubuntu and overwrite it in the ubuntu folder then go to a terminal emulator and type:
su
cd /sdcard
sh ubuntu.sh
bootubuntu
and you may get this “[email protected],”
juancollado2003 said:
yes you can just download this script http://zedomax.com/android/bootubuntu and overwrite it in the ubuntu folder then go to a terminal emulator and type:
su
cd /sdcard
sh ubuntu.sh
bootubuntu
and you may get this “[email protected],”
Click to expand...
Click to collapse
thanks but if I do this what will I lose ?
RCMIX 3D DarkSide Glacier HD !
juancollado2003 said:
yes you can just download this script http://zedomax.com/android/bootubuntu and overwrite it in the ubuntu folder then go to a terminal emulator and type:
su
cd /sdcard
sh ubuntu.sh
bootubuntu
and you may get this “[email protected],”
Click to expand...
Click to collapse
yes, but after that, you still need to change the sources.list in a file manager.
but yes, all this can be done through terminal
I didn't use this method but i can confirm that Ubuntu works on our device. Its great especially since my NetBook broke and I couldn't find an irc client that allowed for dcc send
Sent from my HTC Glacier using Tapatalk
So do we still have android is? Or how does it work? Looks interesting
Sent from my HTC Glacier
exemp30 said:
So do we still have android is? Or how does it work? Looks interesting
Sent from my HTC Glacier
Click to expand...
Click to collapse
yes, this ubuntu is in a form called "chroot"
it's basically like a virtual machine, ubuntu runs on top of android.
it won't touch android in any way, but just make a back up to be safe
Oh alright cool ima try this
Sent from my HTC Glacier
blklexluthor said:
I didn't use this method but i can confirm that Ubuntu works on our device. Its great especially since my NetBook broke and I couldn't find an irc client that allowed for dcc send
Sent from my HTC Glacier using Tapatalk
Click to expand...
Click to collapse
is that with lxde?
saranhai said:
is that with lxde?
Click to expand...
Click to collapse
Yes.
Sent from my HTC Glacier using Tapatalk
heyy what the...not working with my MT4G???
gives me errors?
exemp30 said:
So do we still have android is? Or how does it work? Looks interesting
Sent from my HTC Glacier
Click to expand...
Click to collapse
It runs over to of Android, like a skin. Btw trigun rules.
If I helped, give thanks, if you please.
Sent from my fist to your nuts, enjoy!
saranhai said:
heyy what the...not working with my MT4G???
gives me errors?
Click to expand...
Click to collapse
probably bad download it u can try using terminal emulator
RCMIX 3D DarkSide Glacier HD !
Tez MyTouch said:
probably bad download it u can try using terminal emulator
RCMIX 3D DarkSide Glacier HD !
Click to expand...
Click to collapse
same errors with terminal...
trying the download again
some files are missing
saranhai said:
heyy what the...not working with my MT4G???
gives me errors?
Click to expand...
Click to collapse
it's saying miss some folders and files that means you miss some step so do all step once again and try reboot, remember to mount system to create the folders
kernels
remember you need a kernel with supporting 'noatime' mounts (which makes for faster reading/writing to the .img file)
Ok, I've had alot of questions about how to compile CM10 from source and see alot of people doing it all different ways.
This tutorial will allow you to sync, compile, and build CM10 from source for the Captivate Glide i927.
This method is easy and User friendly and tested on Ubuntu 10.04, 12.04, and Linux Mint 13. Now I use a 100% Linux system(no windows), but unless you want to reformat your PC to ext4 and reformat it to run Linux, I advise using VirtualBox.
You can download VirtualBox here: https://www.virtualbox.org/wiki/Downloads
You can download Ubuntu here: http://www.ubuntu.com/download/desktop
(Download 12.04 not 12.10)
Getting started
After you setup your virtual machine open up a terminal and run as root.
To do this type in terminal:
Code:
sudo bash
Now it will ask you for your password(the one you used to set up ubuntu) You wont see it doing anything as you type it, but its taking it. Then after you enter your password hit enter. Now your a root user.
Now we need to open our home folder as root also. Why? Because in linux you cannot make changes, move files, delete or edit files in your home folder unless you are root. Trust me, I've been a linux user for years.
To Open your home folder as root type in terminal:
Code:
nautilus
Ok, now open a second terminal to do our real work in...
Install Java
Ok, this will permanently install java into your machine. After you open a second terminal, run it as root also as stated above.
Then type:
Code:
wget https://github.com/flexiondotorg/oab-java6/raw/0.2.6/oab-java.sh -O oab-java.sh
Hit enter and watch the magic.
Next:
Code:
chmod +x oab-java.sh
sudo ./oab-java.sh
sudo apt-get install sun-java6-jdk
This may take a while. When finished we are now ready to install our required packages to build android.
Type in terminal:
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos \
python-markdown libxml2-utils pngcrush schedtool xsltproc zlib1g-dev:i386
This will work for 10.04 alone, no other packages needed.
But, If your running 12.04(which you should) add this after the above packages install
Code:
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
This will also take a while, so just be patient!
Installing The repository
Now we need to install the repo command script that will initialize the repo.
Type in terminal:
Code:
mkdir -p ~/bin
mkdir CM10
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
Add repo to your path
Code:
vi ~/.bashrc
This will open the bashrc file. Scroll all the way to the bottom and enter this:
Code:
export PATH=$PATH:~/bin
Initialize the repo and sync repo
Code:
cd CM10
repo init -u git://github.com/CyanogenMod/android.git -b jellybean
repo sync
This will take a long time depending on your internet speed.
When finifshed we now need to clone the device trees.
go into your CM10 directory and cd into device. then in terminal type:
Code:
git clone git://github.com/The-Covenant/android_device_samsung_i927.git samsung/i927
Ok, you see this at the end of our clone command? (samsung/i927)
This will automatically make the proper folders exactly where they need to go. No need for moving or renaming.
Next clone the kernel source. Cd back into your CM10 directory and type in terminal:
Code:
git clone git://github.com/The-Covenant/android_kernel_samsung_i927.git kernel/samsung/i927
This clone may take a while, the kernel source is pretty large.
Now we need to clone the proprietary files for the device.Type in terminal:
Code:
git clone git://github.com/The-Covenant/proprietary_vendor_samsung.git vendor/samsung
Now lets Build!
Cd back into your CM10 source, if your not already, and type:
Code:
vendor/cm/get-prebuilts
this will download the prebuilt Term.apk and library
then the build command:
Code:
. build/envsetup.sh && brunch i927
This should build from start to finish and make a flashable zip in out/target/product/i927
This tutorial is for CM10, not CM10.1.
CM10.1 is a different beast and I havent pushed the CM10.1 device tree up yet, but as soon as I do, I will update this tutorial for building 4.2.1.
Enjoy!
Andoid SDK
The android SDK is not necessary to build android, but having adb is.
You can download it here and follow intstall instructions.
Code:
[URL]http://developer.android.com/sdk/index.html[/URL]
To use ccache to build
Using ccache will drastically cut down your build times by building up the ccache, info and using it to build. Now, your first build after setting up ccache will be normal time, 3 to 6 hours depending on your processor, all builds after should be over half that, mine takes bout 45 min to an hour.
Now, after you sync everything in, cd back into your home directory and type in terminal:
Code:
sudo apt-get install ccache
Then and the top of your home directory click view, then show hidden files. Now in your home directory scroll down and find the .bashrc file and open it up with gedit. At the very bottom enter this code to use ccache:
Code:
export USE_CCACHE=1
Now to set our ccache limit in our cm10 source.
Cd into your cm10 directory and type this in terminal:
Code:
prebuilts/misc/linux-x86/ccache/ccache -M 20G
That's it, your set up to use ccache! Enjoy!
downloading Ubuntu 12.04 64 bit edition now (30 more minutes to go). I'll try this out today. Thanks for the detailed guide.
..L.I.K.E...A...B.O.S.S..
Good Job D! This should answer everyone's questions!
Sent from my SAMSUNG-SGH-I317 using Tapatalk 2
Thanks! Nice to know that I'm on the right path!
By the by, there's an even easier way to install Java (Ubuntu only):
Code:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get install oracle-java6-installer
The scripts in the PPA do all the work for you, you just say "yes" to adding the PPA and "yes" to the EULA and it does everything else automatically.
-E- So wait, we DON'T have to run extract-files.sh? Where do the proprietaries come from then? I sure know this phone has a lot of them; between secril and the SoC practically everything has a blob in the pipeline!
roothorick said:
Thanks! Nice to know that I'm on the right path!
By the by, there's an even easier way to install Java (Ubuntu only):
Code:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get install oracle-java6-installer
The scripts in the PPA do all the work for you, you just say "yes" to adding the PPA and "yes" to the EULA and it does everything else automatically.
-E- So wait, we DON'T have to run extract-files.sh? Where do the proprietaries come from then? I sure know this phone has a lot of them; between secril and the SoC practically everything has a blob in the pipeline!
Click to expand...
Click to collapse
But it only installs java.. this one builds it into the os. Then installs it... Easy is not necessarily better. My java commands here litteraly build java from source, that way its part of everything the os does, its no longer a system tool application.
Sent from my SGH-I927 using xda premium
roothorick said:
Thanks! Nice to know that I'm on the right path!
By the by, there's an even easier way to install Java (Ubuntu only):
Code:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get install oracle-java6-installer
The scripts in the PPA do all the work for you, you just say "yes" to adding the PPA and "yes" to the EULA and it does everything else automatically.
-E- So wait, we DON'T have to run extract-files.sh? Where do the proprietaries come from then? I sure know this phone has a lot of them; between secril and the SoC practically everything has a blob in the pipeline!
Click to expand...
Click to collapse
Read??? What part of clone the proprietary files are you not understanding??? This is a foolproof tutorial... No, you don't have to do extract-files.sh, I've already done that for you. Just have to clone it in.
Sent from my SGH-I927 using xda premium
Everyone.. just follow this tutorial to the t and you'll have your own cm 10 build. I have been doing this a long time on Linux, and this way I use every time I set up a new system and its been flawless.. Im not saying that if you know another way to install java not to do it, im just saying ive tried them all and this way is the most stable and solid...enjoy.
Sent from my SGH-I927 using xda premium
Thanks, Dman! I have been wanting to do this for so long!
Sent form my SGH-i927 running dman's cm10.1
scottbot95 said:
Thanks, Dman! I have been wanting to do this for so long!
Sent form my SGH-i927 running dman's cm10.1
Click to expand...
Click to collapse
Nice.. if y'all get any errors on any of the commands let me know and ill walk you thru fixing them. Although, you shouldn't. But you never know..
Sent from my SGH-I927 using xda premium
After getting everything setup and synced from the tutorial, refer to second post for setting up ccache
Sent from my SGH-I927 using xda premium
Will you still be posting updates on your cm10 rom? Or will we have to compile the rom from the tool?
Sent from my SGH-I927 using xda app-developers app
Laugher19 said:
Will you still be posting updates on your cm10 rom? Or will we have to compile the rom from the tool?
Sent from my SGH-I927 using xda app-developers app
Click to expand...
Click to collapse
I will be updating. This is for those who want to help with development. As I dev for 5 devices and my time is limited..
Sent from my SGH-I927 using xda premium
So running "nautilus" will give you an error like the one in attached printscreen. So from what i found out that you either install samba or just let it be as it doesn't matter. But i installed samba as in may come handy for sharing and transferring file . Moving on now..
Had to Run
Code:
apt-get -f install
cause of the error encountered in the given screenshot and it resolved the issue.
ninthsense said:
So running "nautilus" will give you an error like the one in attached printscreen. So from what i found out that you either install samba or just let it be as it doesn't matter. But i installed samba as in may come handy for sharing and transferring file . Moving on now..
Click to expand...
Click to collapse
You have to install nautilus. Will give no errors
Sent from my SGH-I927 using xda premium
ninthsense said:
Had to Run
Code:
apt-get -f install
cause of the error encountered in the given screenshot and it resolved the issue.
Click to expand...
Click to collapse
Then your not running as root if you use apt-get install.. this is not recommended..
Sent from my SGH-I927 using xda premium
Try running gksu nautilus
Sent from my SGH-T889 using Tapatalk 2
dman3285 said:
Then your not running as root if you use apt-get install.. this is not recommended..
Sent from my SGH-I927 using xda premium
Click to expand...
Click to collapse
I'm running root , as visible in the screenshot. Anyway synching repo now and have to wait.
Nautilus or gksu nautilus will gain root access to your home folder
Sent from my SGH-I927 using xda premium
If you are using Windows 8.1 or Windows 8, you will know that the HTC drivers are not compatible and you cannot get fastboot access using Windows.
So what is the next best option? Dual boot to LINUX (UBUNTU).
This guide is a step by step noob friendly guide to set up the adb and fastboot tools on UBUNTU without the hassels of downloading SDK or JDK
Step 1: Open teminal on UBUNTU
Step 2: type the following as it is one at a time
Code:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastboot
Step 3: Update the adb packages by typing the following in the terminal
Code:
sudo apt-get install android-tools-fsutils
Step 4: Now download the Linux Fastboot files from downloads below. Extract on Desktop
Step 5: Run termial and type the following one by one
Code:
sudo adb devices
This will start the adb server
Code:
cd Desktop
This moves you to your desktop
Code:
cd Fastboot/ Linux
This will get you inside the fastboot folder extracted on the desktop
Code:
sudo fastboot devices
This will show the list of all the fastboot devices connected to the PC
(Remember to keep your phone in the fastboot mode by holding the "power + volume down" keys and then selcting fastboot from the bootloader menu)
Thats it!!
Congratulation you have now access to fastboot on your linux UBUNTU PC!
Hit that THANKS button if it helped!
Soutik said:
Code:
[/ sudo adb devices]
[/QUOTE]
Thanks for the info! One caveat, you forgot to terminate your code blocks with /CODE :D
like this:
[CODE][/ sudo adb devices]
Click to expand...
Click to collapse
selivanow said:
Thanks for the info! One caveat, you forgot to terminate your code blocks with /CODE
like this:
Code:
[/ sudo adb devices]
Click to expand...
Click to collapse
Thanks a lot!!! I was wondering why it wasnt like the other posts.
This is my first post!! Thanks for correcting me!
I thought the android tools where available in the standard repositories?
I am running mint and have never added the new repo.
Yes they are.. But setting them up requires u to install SDK and then extract the libs from there... This one just gets going for noobs who face trouble on win 8 and really really have to use Linux to access boot loader and fastboot.. Hence a guide
Sent from my Nexus 5 using xda app-developers app