this post was submitted on 22 May 2025
28 points (100.0% liked)

Linux

54860 readers
379 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

Conceptually I can understand that Termux cant take a photo or video from a camera device because it doesnt have access to the camera drivers that Android has....

...except that the Termux API does allow you to take a photo. So why is video off limits?

you are viewing a single comment's thread
view the rest of the comments
[–] Zak@lemmy.world 5 points 2 weeks ago* (last edited 2 weeks ago) (1 children)
# ls -l /dev/video0
crw-rw---- 1 system camera 81,   0 1974-07-26 10:09 /dev/video0

Android doesn't handle users and groups like standard Linux, but the user account assigned to Termux is not a member of the camera group.

[–] tetris11@lemmy.ml 7 points 2 weeks ago (1 children)

Is it just a permissions issue? On a rooted phone, could I not simply add termux user to the camera group

[–] Zak@lemmy.world 3 points 2 weeks ago

That seems likely to work.