( 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 ...
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 ...
First, why there are separate /lib and /lib64:
The Filesystem Hierarchy Standard
mentions that separate /lib and /lib64 exist because:
10.1. There may be one or more variants of the /lib directory on systems which support more than one binary format requiring
separate libraries. (...) This is commonly used for 64-bit or 32-bit
support on systems ...
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 ...
The reason is that the lib/lib64 directories can contain files which happen to have the same name because those are libraries shared with diverse programs. Putting them in separate directories solves the conflict. There's (usually...) no good reason for distributing same-named executables on the same system which are 32/64-bit, but since there can be a ...
Python is not mandatory for Linux, and there are plenty of small "embedded" Linux systems that don't have it.
However, many distributions require it. So RHEL may have a dependency on Python because some of their management tools and scripts have been written in it. On those systems python is a requirement.
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 ...
boot.img is a small(ish) file that contain two main parts.
* kernel(important for android)
* ramdisk( a core set of instruction & binaries)
It contains the following steps:
Download the tool using wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/android-serialport-api/...
Python isn’t necessary, and it’s easy to prove: a basic Debian installation can get on the network etc. but doesn’t have Python.
Python is an interpreter like any other. It can be required in some distributions, if their core tools (package managers etc.) are written in Python; other interpreters are required without anyone making a fuss about it (Perl for ...
UPDATE: There are several, better alternatives to Airdroid now. However, it seems most Linux distros are now working with MTP fairly well. I know in my experience, Mint (Ubuntu based) works out of the box, as does Manjaro (Arch based). If it doesn't work out of the box or natively, then be sure to search your package manager for an MTP solution.
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.
[z@localhost ~]# rpm -ql bash |head
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
Linux Mint 17.1 Cinnamon 64-bit or a recent Ubuntu/Debian distribution.
sudo apt-get update
sudo apt-get install mtp-tools
Unplug the USB cable and reconnect your Android device.
The Android device should now be recognised as expected.
If you are still having problems, please try the following.
Check if you have other MTP software installed, run the ...
Android and Linux are two different operating systems. You can't just take an executable from one and run it on the other.
The first hurdle is the kernel. Android and Linux are based on the same kernel, but they have a few different features. In particular, Android provides binders, which only exist in the mainstream kernel (the one found in Linux ...
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 ...
You could try using the free (gratis) ES File Explorer file manager on your Android phone.
Among a lot of functionality, it has an FTP server. So, if you can network your phone and your computer, you can easily transfer files both ways from your computer. I do it all the time from Ubuntu and Fedora machines (via Thunar).
The FTP server mode in this app is ...
The ext4 feature (400) is the new metadata_csum feature. If this feature is enabled and old tools are used to mount the filesystem they will only be able to mount read-only.
To create a ext4 filesystem without this feature:
sudo mke2fs /dev/sdb1 -O ^metadata_csum
Or turn it off on an already ...
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 32 bit binaries.
This also removes the misleading 'not a dynamic executable' message of ldd when calling ldd on a 32 bit dynamic ...
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.
First, you must be clear that Google's Android code and Linux kernel code are separate. Android itself is licensed under Apache License 2.0, which is permissive, and in Wikipedia's words:
The Apache License is permissive in that it does not require a derivative work of the software, or modifications to the original, to be distributed using the same ...
Huge vim user myself, I faced the same question when moving in to Android Development a few years back.
Originally I used Eclipse while Android Studio was still in development. Once Android Studio hit full release, the switch from Eclipse to Android Studio was another pain, but now Android Studio feels "good" to use.
All I can say is download Android ...
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).
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
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 ...
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 ...
Android's source code is released by Google under open source licenses, although most Android devices ultimately ship with a combination of open source and proprietary software, including proprietary software developed and licensed by Google.
Open source part (http://source.android.com/) is licensed under Apache Software License, Version 2.0 ("Apache 2.0"),...