This is the first time for me using adb. I had no prior experience with using nor connecting adb to my SGS. I understood i could list the devices using “adb devices”, but i didn’t figure out more than that until i actually set down to play with it.
Basically, adb is a terminal client to your SGS. to make adb work, you must enable “USB debugging” under Settings->Applications->Development on your Android device. If your device pops up a dialog when you connect it to the computer, asking you to allow mounting the device, select “Don’t mount” (if you allow mounting, adb can’t work at the same time). Thats it. You are now ready to open a shell on your SGS using “adb shell”.
So now we’re in the SGS shell from our linux console. ‘ls’ works just fine, busybox, the works. but… its missing something. Midnight Commander! So lets install mc on the SGS. One note though – mc will work only on your adb shell, since it doesnt work with touch-screen.
Follow this commands (or copy&paste in your terminal) to install mc. Once it is installed execute it using /data/xbin/mc (you can add /data/xbin to your PATH for more comfort)
wget http://freeasabeer.byethost33.com/android/feed/common/mc_4.6.2-1_arm.ipk wget http://freeasabeer.byethost33.com/android/feed/common/terminfo_5.6-1_arm.ipk mkdir /tmp/mc mkdir /tmp/terminfo tar zxvf mc_4.6.2-1_arm.ipk -C /tmp/mc/ tar zxvf terminfo_5.6-1_arm.ipk -C /tmp/terminfo/ mv /tmp/mc/data.tar.gz /tmp/mc/mc.tar.gz mv /tmp/terminfo/data.tar.gz /tmp/terminfo/terminfo.tar.gz adb push /tmp/mc/mc.tar.gz /sdcard adb push /tmp/terminfo/terminfo.tar.gz /sdcard adb shell su - busybox mount -o remount,rw /system busybox tar -xzvf /sdcard/mc.tar.gz -C / busybox tar -xzvf /sdcard/terminfo.tar.gz -C / rm /sdcard/mc.tar.gz rm /sdcard/terminfo.tar.gz busybox chmod -R 0755 /system/etc/terminfo busybox chmod -R 0644 /system/etc/terminfo/?/* busybox mount -o remount,ro /system exit exit