~$adb devices
show attached emulators/devices list
~$adb install /myapk/file.apk
install apk file from shell, when multiple devices are attached then need to specify instance
~$adb pull /sdcard/foo.txt
get file from sdcard
~$adb -s emulator-5554 shell
start shell for specific instance, -s define
~$export PATH=${PATH}:~/android-sdk-linux/tools
~$export PATH=${PATH}:~/android-sdk-linux/platform-tools
add the directory path in ubuntu system if you are unable to found adb
Setup HSS
SSH - Secure Shell (SSH) is a network protocol which is used for access remote computer by commands.
benefits of SSH are -
create secure connectivity between two computers
execute commands on remote machine
other support like file transfer, tunneling, x11 etc
how to use SSH ?
there should be install a program (SSH Client and SSH server) on both client server computer, so both machine can understand protocol.
~$sudo apt-get install openssh-server
install SSH Server
~$sudo gedit /etc/ssh/sshd_config
edit server configuration
~$sudo restart ssh
~$sudo /etc/init.d/ssh restart
restart ssh service after update configuration
~$sudo apt-get install openssh-client
install SSH Client
~$ssh hostname
~$ssh username@hostname
connect to remote machine by hostname or IP address. type exit for close session
Setup cURL
cURL is tools to access web pages by command line. cURL also support various protocols like FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, LDAP, POP3, RTSP, SMTP etc.
cURL is not pre installed with operating system because it is third party software.
~$ sudo apt-get install curl
install curl from ubuntu repository
~$ sudo apt-get install libc6 libcurl3 zlib1g
install other packages related to curl
~$ curl http://www.google.com
get the content of url
Comments 1