Tag Info

Hot answers tagged

11

( sleep 300 ; echo "80" > /sys/class/leds/blue/brightness ) & That way your script continues, or you restore control immediately, while a new background task of the script starts, with two commands: sleep, and echo. The common error is trying to give either sleep or echo or both the & which will not work as intended. Launching a series of ...


9

sudo is a a normal application with the suid bit. This means in order to use sudo it has to be installed on the system. Not all Linux systems have sudo installed per default like for example Debian. Most Android systems are targeted for end users who don't need to know the internals of Android (i.e. each Android applications runs under it's own user), so ...


8

You can use ap-hotspot from the webupd8 repository to create an infrastracture AP instead of adhoc. I am using this on Ubuntu Precise (12.04), but it is available for Saucy, Raring and Quantal as well. $ sudo su - # add-apt-repository ppa:nilarimogard/webupd8 # aptitude update # aptitude install ap-hotspot # ap-hotspot configure # ap-hotspot start


7

I don't know of a way of adding things to /proc outside of writing a module (or plain kernel code). Might be some utilities out there though. If you can build and insert a module, then it's pretty simple: you can just create another symlink (/proc/mounts is a symlink already). Source (mnt_link.c): #include <linux/module.h> #include ...


6

The phone has to be rooted to have the root user install sudo (or any other app). Otherwise it would be installed as the "standard" user and not have root access. As for the second question, once sudo is installed on the rooted phone, in my experience, the apps that need it simply request it and you get a popup prompt.


6

With regard to eclipse not being able to find adb, etc, this because without the 32-bit shared libraries needed to run them on the system, they are not executable. With regard to 32-bit libraries, the situation is fairly simple: you just need to install the appropriate 32-bit libs. On the 64-bit fedora 17 install I have here, the primary 64-bit libraries ...


6

The easiest way to do it would be to change the binary: sed s-/proc/mtd-/tmp/mntx- < romdump > romdump.new ln -s /proc/mounts /tmp/mntx ./romdump.new The trick here, since you're editing a binary, is to make sure the original string /proc/mtd is the same length as the new string /tmp/mntx, so that you don't change the size or location of anything in ...


5

Actually google did more writing an app platform / virtual machine system to run on top of linux than they did modifying linux. They basically just used it as a base to build off of, they hardly had to touch it. As for your question, just start doing things. Get yourself some linux distros, install them on your computers or in VM's, learn your way around ...


5

Terminals only understand characters, not keys. So al function keys are encoded as sequences of characters, using control characters. Apart from a few common ones that have an associated control character (Tab is Ctrl+I, Enter is Ctrl+M, Esc is Ctrl+[), function keys send escape sequences, beginning with Ctrl+[ [ or Ctrl+[ O. You can use the tput command to ...


4

You can use a wiki like ZimZim - a Desktop Wiki and save it's files to a Dropbox folder. For the Droid you can use this app, WikiMind note, to work with the Zim Wiki. I'm sure there are other apps that can work with Zim's files since they're just text. EDIT #1 Other options for Android if the $3 price for WikiMind is too steep. WikiMind Lite ZimDroid ...


4

Yum maintains a cache of the RPMs it downloads here: /var/cache/yum/<you architecture>/<OS version>/ For example my box is Fedora 14, x86_64 architecture so I have the following: $ ls /var/cache/yum/x86_64/14/ adobe-linux-i386 lamolabs rpmfusion-nonfree adobe-linux-x86_64 lamolabs-noarch ...


4

Newer versions of Android mount storage as an MTP device instead of mass storage. The benefit to this is simultaneous access on the Android device and the PC. Unfortunately, while Windows supports it natively just fine, linux solutions are fairly buggy as of right now. Currently, the most reliable (and it still is a little flaky to get going, but once ...


4

If you want something to run in 5 minutes, but the rest of your program to continue (or finish), you need to background the sleep as well: #!/bin/bash runWithDelay () { sleep $1; shift; "${@}"; } runWithDelay 3 echo world & echo hello This will print hello and then 3 seconds later (after the main program has exited), print world. ...


3

You have to install the 32 bit glibc: # yum install glibc.i686 This removes the misleading 'no such file or directory' message when trying to execute a 32 bit binary. With that the 64 bit Fedora system is capable of executing 64 bit binaries. This also removes the misleading 'not a dynamic executable' message of ldd when calling ldd on a 32 bit dynamic ...


3

The /proc filesystem exists in memory so to speak. See http://www.kernel.org/doc/Documentation/filesystems/proc.txt for more info. Links probably won't work. You might be able to use LD_PRELOAD to intercept the open() function. See http://stackoverflow.com/questions/426230/what-is-the-ld-preload-trick You might also be able to edit the binary to change ...


3

Here is a new X server that has been written in java: http://my20percent.wordpress.com/2012/02/27/android-x-server/ It is open source: http://code.google.com/p/android-xserver/ And available on the market (search for 'x server'). This is currently optimised in terms of keymappings for a phone so will need a bit of customisation if you want to use it on ...


3

Assuming an m3u exported from banshee and you have your Android mounted you can do something like: rsync -avu --files-from=yourlist.m3u <MUSIC_DIR> /media/ANDROID/<ANDROID_MUSIC_DIR> For example: rsync -avu --files-from=yourlist.m3u "/home/user/Music" "/media/ANDROID/MUSIC" You can also add --delete rsync -avu --delete ...


3

The difficulty is that it's a completely different operating system. Android is not a Linux distribution. The only thing that's common between Android and GNU/X11/Apache/Linux/TeX/Perl/Python/FreeCiv (usually known as “Linux” or “Linux distributions”) is the Linux kernel. Linux is based on POSIX-based APIs, the X Window System for the graphical interface, ...


3

Certain programs and services run from /system on Android run as root - some rooting techniques involve injecting a command to remount /system into these 'programs'. Without the /system being mounted rw, there is no way for an added program to run as root. As far as /data, each app is given its own user id, and the /data/data folders where data for the app ...


3

I will address the second question since is more on topic with the site. Android apps run a process virtual machine known as Dalvik. This is very similar to java's JVM. The whole idea behind this is "write once, run anywhere". The Java code is not compiled to native machine code, it is compiled to bytecode that can be executed by the VM. With a language such ...


3

"Linux", strictly speaking, is an operating system kernel used by both Android and the unix-like operating system referred to colloquially as linux, and sometimes more formally as GNU/Linux which we know via distributions such as ubuntu and debian. Linux, the operating system kernel, is written in C and must be compiled to native machine code. I think ...


3

boot.img is a small(ish) file that contain two main parts. * kernel(important for android) * ramdisk( a core set of instruction & binaries) Unpack boot.img: It contains the following steps: Download the tool using wget http://android-serialport-api.googlecode.com/files/android_bootimg_tools.tar.gz Extract the file using tar xvzf ...


3

The rpm files themselves are downloaded and then installed. Once these files are installed, they are tracked by the rpm database. To see where the files for a particular rpm were installed, you can run rpm -ql. E.g. [z@localhost ~]# rpm -ql bash |head /bin/bash /bin/sh /etc/skel/.bash_logout /etc/skel/.bash_profile /etc/skel/.bashrc /usr/bin/bashbug-64 ...


3

You need the gcc toolchain for both. The toolchain is part of the android source tree. Before you build the entire android source, you use the "lunch" tool, which sets the environment variables such that a prebuilt toolchain can be used. http://source.android.com/source/building-running.html#choose-a-target The page about compiling the android kernel has ...


3

When you see the handlers like gphoto2:// and smb:// these are special interfaces that the GNOME desktop or whatever file browser you're using is making available to access these devices. In the case of gphoto2, the desktop is using the application gphoto2` lsof The only way I can think to gain access to a mount such as this would be to mount it as you did ...


3

Presuming you are on a 32-bit machine, or 64-bit Arch has 32-bit support libraries, it should work. You also need some form of java installed, as the front end to the emulator is java based, and probably 2 GB+ RAM. I'm not sure if Google distributes the emulator separately from the SDK (software development kit) -- presumably it needs a good part of that ...


3

On Android, like on many Linux-based systems, the kernel first mounts an initramfs on /. The initramfs is stored in RAM; it is loaded from a CPIO archive which is stored together with the kernel itself (or in some other place where the bootloader can find it). Most desktop Linux systems have a small initramfs which contains just enough programs and ...


2

The mp3info program only writes ID3 v1 tags. Android has started looking at just the v2 tags. You should use the id3v2 program to write tags from the command line that will get recognized in most modern systems. For a GUI music tagger I recommend EasyTAG. Also, grip will rip audio cd's to mp3 and write tags using cddb data that work on Android all in one ...


2

$ sudo yum install libmtp $ yum info libmtp Loaded plugins: auto-update-debuginfo, langpacks, list-data, refresh-packagekit Installed Packages Name : libmtp Arch : x86_64 Version : 1.1.6 Release : 2.fc20 Size : 480 k Repo : installed Summary : A software library for MTP media players URL : ...


2

I direct your attention at the actual error message in your output: Android NDK: Host 'awk' tool is outdated. Please define HOST_AWK to point to Gawk or Nawk ! /var/tmp/android-ndk-r7/build/core/init.mk:258: *** Android NDK: Aborting. . Stop. Install an up-to-date version of either gawk or nawk via your package manager and try again.



Only top voted, non community-wiki answers of a minimum length are eligible