Q How to run crosscompiled linux binarys in Terminal - Android Q&A, Help & Troubleshooting

My question:
How can i run a cross compiled Binary in Terminal?
My SGS 2 is rooted and i make ithe binary executable in terminal under root with chmod.
but when i try i become:
# app
app: not found

How about ./app just a thought?
Swyped from HTC Desire S using XDA Premium

Same Problem.
Sent from my GT-I9100 using XDA App

As long as its in $PATH and not in sdcard (no exec permissions) it should work.
What you trying to compile if you dont mind me asking?
Sent from my HTC Desire using XDA App

tried john the ripper
without how to.
but used same way as. http://www.openwall.com/lists/john-users/2011/07/17/1
have used his binary to but same problem.

Worked fine for me, i just followed instructions in the file INSTALL.
remount system rw
Copy john to /system/xbin
chmod 0755 /system/xbin/john
cd to user directory included in the download.
john...and it worked.
You doing anything different to the above? It *should* be working for you.
Sent from my HTC Desire using XDA App

Tried 2 Times. Exactly Same Result.
try again later.
Sent from my GT-I9100 using XDA App

Related

Root ?

I was rooting my phone using adb and it all whent ok until one of the commands it told me to chek all the charters and they were all different any help thanks
Sent from my ADR6400L using XDA App
data/local/busybox md5sum /dev/block/mmcblk0p18 If the output does not match "6991368ee2deaf182048a3ed9d3c0fcb," try again; if it still doesn’t work, seek help from chat.andirc.net in
Sent from my ADR6400L using XDA App
Delete the file from your computer, download it again, and repeat the steps starting with the last adb push before your md5 sum.didn't match.
Sent from my ADR6400L using Tapatalk

Few questions

Has there been anything on rooting directly from the phone?
And has anyone made an update.zip with unlockd boot?
Sent from my MB855 using XDA Premium App
Yes, you can root directly from your phone by using terminal emulator but you have to put photon-torpedo.tar to /data/tmp first. I rooted my photon on the phone itself.
GraphicDemon said:
Has there been anything on rooting directly from the phone?
And has anyone made an update.zip with unlockd boot?
Sent from my MB855 using XDA Premium App
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1216143
A little bit of reading goes a long, long way. This thread will tell you the current state of the art.
urcboss07 said:
Yes, you can root directly from your phone by using terminal emulator but you have to put photon-torpedo.tar to /data/tmp first. I rooted my photon on the phone itself.
Click to expand...
Click to collapse
Ok can you please tell me how you got terminal to process your commands. I get permission denied every time I use terminal to try and do anything with /data. I obviously need root to complete the commands using terminal to write to anything besides the sd. I would appreciate any help. Thanks in advance.
Sent from my MB855 using XDA Premium App
Ok I tried using it from phone but how u push it to data without using comp
Sent from my MB855 using XDA Premium App
Did you install superuser from market? You also need to install Superuser and push photon-torpedo.tar to /data/tmp
then type the following in terminal emulator:
cd /data/tmp
/bin/tar xf /data/tmp/photon-torpedo.tar
/data/tmp/photon-torpedo.sh
/data/tmp/install-su.sh
Just say "THANKS" to Edgan for great work and job well done.
urcboss07 said:
Did you install superuser from market? You also need to install Superuser and push photon-torpedo.tar to /data/tmp
then type the following in terminal emulator:
cd /data/tmp
/bin/tar xf /data/tmp/photon-torpedo.tar
/data/tmp/photon-torpedo.sh
/data/tmp/install-su.sh
Just say "THANKS" to Edgan for great work and job well done.
Click to expand...
Click to collapse
Not sure if you were responding to me or the other guy but my MacBook and my Linux laptop both recognize my phone but they both say its offline when I try and use a adb. Some people say they have done this root without the computer and just using the terminal on the phone but I get permission denied messages since it needs root. I have super user installed but that does me no good without root. I want to know how they got past the permission denied using the terminal on the phone?
Sent from my MB855 using XDA Premium App
smoothone said:
Not sure if you were responding to me or the other guy but my MacBook and my Linux laptop both recognize my phone but they both say its offline when I try and use a adb. Some people say they have done this root without the computer and just using the terminal on the phone but I get permission denied messages since it needs root. I have super user installed but that does me no good without root. I want to know how they got past the permission denied using the terminal on the phone?
Sent from my MB855 using XDA Premium App
Click to expand...
Click to collapse
Exactly I'm having same problem. I m not understanding how I can push it to that part of the phone without root.
Sent from my MB855 using XDA Premium App
GraphicDemon said:
Exactly I'm having same problem. I m not understanding how I can push it to that part of the phone without root.
Sent from my MB855 using XDA Premium App
Click to expand...
Click to collapse
Make sure you have USB debugging checked. Menu > settings > applications > development. This was my problem when I first tried to adb the file to the /data/tmp folder on the phone.
Also, I was getting an error at "Run /data/tmp/photon-torpedo.sh," but I just ignored it and kept going. It worked. You can use root checker from the market to verify that you have root.
my2cents said:
Make sure you have USB debugging checked. Menu > settings > applications > development. This was my problem when I first tried to adb the file to the /data/tmp folder on the phone.
Also, I was getting an error at "Run /data/tmp/photon-torpedo.sh," but I just ignored it and kept going. It worked. You can use root checker from the market to verify that you have root.
Click to expand...
Click to collapse
Thanks for the advice but the both of us are not using adb. I always have debugging enabled. We are both trying to do this from or phones with terminal. An update zip would be amazing :~)
Sent from my MB855 using XDA Premium App
smoothone said:
Thanks for the advice but the both of us are not using adb. I always have debugging enabled. We are both trying to do this from or phones with terminal. An update zip would be amazing :~)
Sent from my MB855 using XDA Premium App
Click to expand...
Click to collapse
Ok. I thought one of you was trying to use a Mac or something to push the file then use terminal. And an update.zip would be awesome!
my2cents said:
Ok. I thought one of you was trying to use a Mac or something to push the file then use terminal. And an update.zip would be awesome!
Click to expand...
Click to collapse
I was trying to use adb with my Mac and my Linux laptop but both give me "device offline" when I use adb. I'm going to try a different USB cable as I have seen this happen before and a different cable works but I find it hard to believe that i'm the only one that used stock cable and does not work
Sent from my MB855 using XDA Premium App
What happened to that person said they did everything from phone?
Sent from my MB855 using XDA Premium App
GraphicDemon said:
What happened to that person said they did everything from phone?
Sent from my MB855 using XDA Premium App
Click to expand...
Click to collapse
Lol, I guess they all vanished! Funny thing is that I am not new to Linux and those are busybox commands which
1: busybox does not come installed on the factory ROM and
2: even if you install it from the market it still needs root access.
Sent from my MB855 using XDA Premium App
So what are we developing in this thread again?
Sent from my MB855 using XDA App
Custodian said:
So what are we developing in this thread again?
Sent from my MB855 using XDA App
Click to expand...
Click to collapse
If you cannot help then just save your useless comment! Your bringing back bad memories from the EVO forum. That forum was full of bashers and flamers.
smoothone said:
Lol, I guess they all vanished! Funny thing is that I am not new to Linux and those are busybox commands which
1: busybox does not come installed on the factory ROM and
2: even if you install it from the market it still needs root access.
Sent from my MB855 using XDA Premium App
Click to expand...
Click to collapse
Yeah tell me about it, wish they would just make a damn step sheet it's getting ridiculous.
Sent from my MB855 using XDA Premium App
http://forum.xda-developers.com/showthread.php?p=16904179
Sent from my MB855 using Tapatalk

Terminal Commands

Is there a list of commands somewhere for the terminal emulator? Please and thanks.
Sent from my DROID RAZR using xda premium
No.
But to see some of the available:
Code:
busybox #prints available busybox commands
ls /bin #prints all files in /bin
ls /usr/bin #prints all files in /usr/bin
ls /sbin
ls /usr/sbin
OK, how would I change the su perms for an application?
Sent from my DROID RAZR using xda premium
Find chmod manual
Sent from my XT910 using XDA App
XxSinisteRxX said:
OK, how would I change the su perms for an application?
Click to expand...
Click to collapse
sorry but I don't understand.
Is it:
You use su to become root.
You may use chmod to change permissions on a file
You use the superuser app to change witch apps that automatically approves or denies superuser access.
pajn said:
sorry but I don't understand.
Is it:
You use su to become root.
You may use chmod to change permissions on a file
You use the superuser app to change witch apps that automatically approves or denies superuser access.
Click to expand...
Click to collapse
I got this issue straightened out, thanks tho pain. I appreciate the effort.
Sent from my DROID RAZR using xda premium

System file read only

Hi CDA folks, I am trying to revive white Pandigital using ADB commands to push files on the system's folder of the device then flashing them.
The computer sees the device, adb has root access, yet when trying to push files is gives me an error indication that the system/data/midc is a read only.
tried adb remount over and over with no lick. Is there any other way to get to write on the system folder?
did you try
adb shell
su ?
Sent from my GT-S5670 using xda premium
soham jambhekar said:
did you try
adb shell
su ?
Sent from my GT-S5670 using xda premium
Click to expand...
Click to collapse
No I did not, and what if I don't have super user or busy box? How can I can them on the device in a black screen state?

Can I Re-Root using Terminal Emulator?

Hi im using the lgp-769 v10g T-Mobile and i was rooted on this phone but i lost root and now in system xbin i have a file named su.old, i explored this using file browser, i found that i can access this file using terminal emulator which changes the $ sign to #. I accessed it via /system/xbin/su.old... anyways I'm wondering if there is anyway i can use this and terminal emulator to regain root? I also have busybox and kbox2 working in terminal without root if that even matters... can someone kindly point me in the right direction, it would be most appreciated. Thank you all.
Sent from my LG-P769 using XDA Premium 4 mobile app
DarksiderzSK4G said:
Hi im using the lgp-769 v10g T-Mobile and i was rooted on this phone but i lost root and now in system xbin i have a file named su.old, i explored this using file browser, i found that i can access this file using terminal emulator which changes the $ sign to #. I accessed it via /system/xbin/su.old... anyways I'm wondering if there is anyway i can use this and terminal emulator to regain root? I also have busybox and kbox2 working in terminal without root if that even matters... can someone kindly point me in the right direction, it would be most appreciated. Thank you all.
Sent from my LG-P769 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
When your have root (#) try this
Code:
cp /system/xbin/su.old /system/bin/su
chmod 644 /system/bin/su
or try
Code:
mv su.old su
Here is screenshot of the results of your suggestions. What should i do now?
Sent from my LG-P769 using XDA Premium 4 mobile app
Well it says cross device link using mv and it says can't create su and. something about can't stat system/bin/su cant chmod644
Sent from my LG-P769 using XDA Premium 4 mobile app
I ended up getting it to re-root using a few commands in terminal emulator if anyone is still stuck after OTA look into using terminal emulator
Sent from my LG-P769 using XDA Premium 4 mobile app
Hi can I root moto g4 with terminal emulator (first time doing it)

Categories

Resources