26
votes
Accepted
Why there are `/lib` and `/lib64` but only `/bin`?
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 ...
24
votes
Accepted
Does Linux require Python?
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 ...
23
votes
Linux - couldn't mount RDWR because of unsupported optional features (400)
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.
https://ext4.wiki.kernel....
23
votes
Why there are `/lib` and `/lib64` but only `/bin`?
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 ...
20
votes
Does Linux require Python?
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 ...
11
votes
Accepted
How to create a virtual ISO file from /dev/sr0
Turns out the solution was easy using 'mount --bind'.
The 'fake' ISO can be shared and VLC opens it like a DVD, with full menu support.
touch dvd.iso
sudo mount --bind /dev/sr0 dvd.iso
10
votes
Android vs Linux scripts
Android runs MirBSD Korn shell mksh by default which is mostly a superset of sh. That has some limitations compared to bash scripts, for example one can't use arrays.
Furthermore core utils are ...
9
votes
Accepted
Force shell to ignore shebang
See the Termux FAQ: the best way to fix this is to install termux-exec by running
pkg install termux-exec
and restarting your Termux session. Your scripts will then work without needing any changes.
8
votes
Convert android phone into linux server(bare metal performance)?
I want to convert some old android phones(2017+) into SSH only servers, is it possible?
Sure, Android is an operating system based on the Linux kernel, and you can run any user land on that. In fact, ...
7
votes
Accepted
Thousands of Linux distros that have an UI offer a Terminal going on a shell. But on Android it seems that such Terminal cannot exist. Why?
Nothing prevents terminal emulators on Android. The most famous one is probably Termux but it’s not the only one.
Google Play Store policies make it complicated to publish functional terminal ...
6
votes
Accepted
How to get the Samsung Galaxy S5 to work with MTP on Debian 9?
Install the jmtpfs package
apt install jmtpfs
Edit your /etc/fuse.conf as follows
# Allow non-root users to specify the allow_other or allow_root mount options.
user_allow_other
Create an udev rule....
6
votes
Set up for Android Studio gets stuck
I had the same problem, and after a few minutes it continued with other files, and doing the same repeating status with other files. I suspect because these are very large files that it's only (poorly)...
6
votes
Accepted
Script to start Android LineageOS with Waydroid in an X11 session
The variable to send Waydroid in place (i.e. inside Weston) is WAYLAND_DISPLAY
not XDG_SESSION_TYPE.
Also, the XWayland server should be activated.
So, make sure that the Waydroid container is on:
...
6
votes
Accepted
What reasonable value of swappiness should I config to get better performance?
The maximum value of swappiness is 100 on kernel version before 5.8, and this value was increased to 200 on kernel 5.8.
If you carefully read the answers in your linked (and there are tons of other ...
5
votes
Does Linux require Python?
It isn't necesarry in terms that the system won't function if it isn't there but some distros have tools that are written in Python.
Anaconda, which is the installer for RHEL, CentOS, Fedora, Oracle ...
5
votes
How to solve error of missing destination file operand after '/sdcard/ngrok/ngrok ' in termux
You said that you want to copy file from sdcard to $HOME, but your cp command doesn't have destination. Format of copy command is cp source destination. So right command is
cp sdcard/ngrok/ngrok $...
5
votes
How to get GPS data from Android phone to Debian?
Requirements:
In PC, install adb package with sudo apt install adb. Or download it directly from this link.
In Android, enable Developer options and USB debugging.
Connect Android with USB cable, run ...
5
votes
Android vs Linux scripts
There isn't a single shell for Android or Linux and some defaults have changed over the years, so you might have different default shells in different devices and Linux/Unix and Android distribution (...
5
votes
Fastboot recognizes device but unable to flash (stuck with no output) on Ubuntu based systems
I had the same issue on a fresh install of Pop!_OS 22.04, whether I was using fastboot from Google (their platform tools package) or the one available in apt (apt install android-tools-fastboot). Then ...
5
votes
Accepted
No network in Waydroid: network is unreachable
As a workaround one can disable NFT usage (otherwise network will be unusable). Which is by some reason is enabled by default (whereas there is a commit with disabling it).
In case of Arch-linux one ...
5
votes
No network in Waydroid: network is unreachable
The waydroid-net.sh script has changed again so that more patches are needed to
Disable nftables
Disable iptables-legacy and ip6tables-legacy
It can be done using a command like this:
sudo sed -i~ -...
5
votes
How do I change the user agent of K-9 Mail's IMAP client on Android?
I should note, I am able to use the OAuth2 authentication in Thunderbird on Linux. Since, IMAP is the actual protocol being used in both cases, I'm guessing that the only difference is the "User ...
4
votes
Set up for Android Studio gets stuck
Just wait it out, it will eventually finish. The status display seems to be completely broken.
4
votes
Accepted
How to access an Android 7.0 phone via MTP from terminal?
In Debian 9, there's a FUSE-based filesystem jmtpfs, packaged with the same name. It seems to work quite well with Android 8 at least. Perhaps it is available as a package for Mint too?
As it's a ...
4
votes
Recover data from broken Samsung phone
Looks like Android devices are not mountable like a mass storage device anymore, they have moved to the media transfer protocol (mtp) [Insert obligatory XKCD Commentary].
Take heart, there's a ...
4
votes
Accepted
Serial port ignoring custom divisor
If you have a closer look at the broadcom datasheet specs of some iOT chipsets, you will see there white in black, that the serial communication services implementation in ARM iOT are partial ...
4
votes
Obtain information on encrypted android card image
Android uses a 128-bit key to encrypt its adoptable SD cards. It's pseudorandom, not derived from the user's password. Brute-forcing a pseudorandom 128-bit key is hopeless.
If you somehow had access ...
4
votes
Accepted
Output of `ip route show` seems incomplete: no default route, but internet is reachable anyway
The standard ip route program doesn't know the options -all or -details, so you probably have an Android specific version here.
There might be routing entries in tables other than the default.
...
4
votes
Accepted
Moving .android on Linux
I'm not sure what's up with the environment variables, but there's another approach you can take on Linux which should work here.
First, double check that you've moved the actual data, and have ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
android × 617linux × 144
ubuntu × 39
debian × 38
usb × 33
arch-linux × 31
networking × 27
kernel × 27
linux-mint × 23
linux-kernel × 23
mount × 23
shell × 22
adb × 21
ssh × 20
wifi × 19
mtp × 19
arm × 18
compiling × 17
bash × 16
kali-linux × 16
fedora × 15
permissions × 14
filesystems × 13
bluetooth × 13
chroot × 13