LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Mobile (https://www.linuxquestions.org/questions/linux-mobile-81/)
-   -   android console commands etc. (https://www.linuxquestions.org/questions/linux-mobile-81/android-console-commands-etc-939274/)

S. Chapelin 04-11-2012 08:23 AM

android console commands etc.
 
I have a samsung galaxy s2 with android and of course as a linux user I just have to have a look under the hood.
For that I fired up a terminal emulator app.
When I type in it, there are some commands I can't construct.
For example:
ls -hal
the -hal extension is not recognised.
ls /something
Can't find the / on my keyboard. (Am I blind or somptn?)
ls |less
Can't find the | on my keyboard (Am I looking in the right place?)
I just feel more comfortable in a console for some tasks.
Any ideas?

zuzoa 04-11-2012 10:22 AM

You can connect to a wireless network, setup a SSH server on the phone, and connect to it locally from your computer to run commands.

S. Chapelin 04-11-2012 11:02 AM

Do you know of a good Howto for this?

zuzoa 04-11-2012 12:33 PM

I don't think you should need a guide. Just setup the android on your wireless network (if you have one), and it will receive a local IP address. Assuming you have rooted your android (which I assume you have, if you have a working terminal emulator with busybox) there are apps in the market you can download to run a SSH server, like this. You can setup a username/password in the app's settings, and then use your android's internal IP address to connect through your computer (which also must be on the same network). Ex: "ssh androiduser@192.168.1.X"

S. Chapelin 04-11-2012 02:36 PM

Wow! I didn't know you could root an android. (or is that an expression not to be used in mixed company)
Sounds interrrestink.
I am certainly going to research the subject. Starting here:
http://www.tomsguide.com/us/Root-You...view-1688.html
Thanks.

S. Chapelin 04-11-2012 02:48 PM

Quote:

Before rooting, you should understand the two main risks. For starters, rooting can void your phone’s factory and/or service provider warranty in many cases. However, most rooting applications and methods can be easily reverted. Additionally, if the rooting process doesn’t complete correctly it could damage the software. This would require a factory recover, causing all data on the phone (contacts, apps, media) to be lost, or it may even render your device useless, to the point where it can’t be saved unless examined by a technician. However, if you follow the instructions for the rooting method you use carefully, you shouldn’t have a problem. Of course, before attempting any sort of root or jailbreak, make sure your phone’s data is backed up.
Sounds risky.
How do you feel about that.
Have many people out there rooted their Android?

Dman58 04-11-2012 03:17 PM

Yes! Definitely! Tons of people root their Android phones and there is a whole section for that. Take a look at Android forum on the top right of your web browser right underneath Linux Forums.

Good Luck

zuzoa 04-11-2012 04:07 PM

Basically to "root" your phone means that you get access to the root/Administrator account on your phone. It's the only way to directly access the / directory, and it comes with the same risks as using "sudo" or "su" to access root in linux. That you can mess up your system using it. Personally rooting my android was the first thing I did with it :P

justboo2u 04-21-2012 08:23 PM

Quote:

Originally Posted by S. Chapelin (Post 4650142)
I have a samsung galaxy s2 with android and of course as a linux user I just have to have a look under the hood.
For that I fired up a terminal emulator app.
When I type in it, there are some commands I can't construct.
For example:
ls -hal
the -hal extension is not recognised.
ls /something
Can't find the / on my keyboard. (Am I blind or somptn?)
ls |less
Can't find the | on my keyboard (Am I looking in the right place?)
I just feel more comfortable in a console for some tasks.
Any ideas?

Your best bet is to use a USB keyboard for Terminal sessions... far easier than
peck-peck-peck/shift/peck-peck/enter
shift/peck-peck-peck-peck-peck/(DAMMIT)/del-del-del/peck-peck/enter

:D

justboo2u 04-21-2012 08:26 PM

Quote:

Originally Posted by S. Chapelin (Post 4650432)
Sounds risky.
How do you feel about that.
Have many people out there rooted their Android?

When you talk about tablets, its almost impossible to have someone talk Android w/o root.
Usually the FIRST thing that happens...
That, or an unnecessary and usually-fatal 'upgrade'. :rolleyes:
:)


All times are GMT -5. The time now is 03:57 PM.