| |
| ▲ | jchw a day ago | parent | next [-] | | That's not even true. You can use typical Linux software inside of a chroot, like with Termux. | | |
| ▲ | conradev a day ago | parent | next [-] | | Yep, and in the reverse, you don't need a separate kernel to run Android software on Linux: https://waydro.id | | | |
| ▲ | longfingers a day ago | parent | prev [-] | | Whether your virtual container is lightweight, heavyweight or from the cloud doesn't really change anything from a regular user's perspective. You aren't installing software in the main environment you are looking at, running a desktop on, etc. | | |
| ▲ | jchw a day ago | parent [-] | | Recall the post above mine: > > I would still count it as the Linux kernel. > This may be technically true, except it has no single meaningful implication, like no Linux software works there. Termux is notable is because you in fact don't need a virtual machine at all, or even a proper container. Even the "chroot" aspect is basically just to create a facade to make software work with less effort; it's not literally needed. And you can indeed run typical graphical Linux software as long as you have a compatible display server; Termux offers an X server as an add-on. This doesn't mean that Android is the same as desktop Linux, but that's not the point here. The point is that Android runs the Linux kernel, and not just in name only. You actually can make use of the Linux aspect of Android, which many of us do. It's possible that Google will lock down Android further in the future and make the host Linux environment less usable for stock Linux apps, but today you can run quite a lot of typical CLI and even desktop Linux software directly in Android with minimal fuss. Even if it's a little cumbersome, it's quite useful in a pinch. I'd argue whether you can readily install software to the Linux host environment is also neither here nor there. For an immutable abroot setup like SteamOS, you can't really install directly to the host environment, but in my mind that does not make it any less "desktop Linux" or Linux kernel based. |
|
| |
| ▲ | MatthewPhillips a day ago | parent | prev | next [-] | | I think this really undervalues what Linux provides. The Android software is Linux software. | | |
| ▲ | fsflover a day ago | parent [-] | | It's completely incompatible, so in practice it's a different OS. Doesn't mean it's not valuable. | | |
| ▲ | jraph a day ago | parent | next [-] | | You are talking about the OS while the person you are discussing with is speaking about the kernel. The Linux kernel has its own merits outside standard Linux userspace. I agree, saying that the fact standard Linux distros and Android share the same kernel has no single meaningful implication really undervalues the Linux kernel. I also agree that it's important to keep in mind the two OSes are mostly incompatible. The two OSes sharing the kernel have practical implications, including (theoretically) seeing improvements coming from Android dev in the kernel that can benefit standard linux distros, and things like Termux or Waydroid. | | |
| ▲ | ravenstine a day ago | parent | next [-] | | Compiling the mainline Linux kernel myself really taught me that the kernel does way more than people give it credit for. Sure, it can be debated as to whether two distributions of Linux can really be considered the same OS, but acting like the kernel is a relatively minor detail comes off to me as ignorant. | |
| ▲ | philistine a day ago | parent | prev | next [-] | | You’re keeping a discussion on technical reasoning for why Android and Desktop Linux are separated in a list like that, but the reason is not technical. It’s wholly for convenience. We want to know the performance of Desktop Linux separate from Android. Whether or not they are a different OS or not is irrelevant. | | |
| ▲ | jraph 14 hours ago | parent [-] | | > We want to know the performance of Desktop Linux separate from Android ... Because they are a different OS. > You’re keeping a discussion on technical reasoning for why Android and Desktop Linux are separated in a list like that Mind you, my motivation to have them separated aren't that technical. Actually, I'd be more interested in the philosophical / social aspects of the question. That doesn't mean the technical aspects aren't interesting and this subthread is technical, and I've been snipped by the technical inaccuracies present there. In a way, the philosophical discussion also has less risk of being clouded by technical inaccuracies too, and more chance of succeeding in the technicalities are sorted out, especially in presence of people who know the technical details. You are free to spark a nontechnical discussion in which you motivate why, technical details aside, we should be interested in having the two separated. Please do! Actually, I did this a bit there: https://news.ycombinator.com/item?id=44580682#44583693 |
| |
| ▲ | fsflover a day ago | parent | prev [-] | | So when somebody says "Linux reaches X market share", are they talking about the kernel? Why does it even matter how much the kernel is used? Would you count WSL? | | |
| ▲ | jraph a day ago | parent [-] | | I'm not sure why you are asking me all this, this is beside my points. > So I reject the link here. > when somebody says "Linux reaches X market share", are they talking about the kernel? Likely not. > Why does it even matter how much the kernel is used? Why not? Depends what's your concern. > Would you count WSL? Depends what you want to evaluate. | | |
| ▲ | fsflover a day ago | parent [-] | | > Depends what you want to evaluate. This is exactly my question. You said the discussion's about the kernel. Why do you want to evaluate its usage? Which conclusions are you going to draw? Because when talking about the OS, you can conclude that Windows and MacOS start falling behind the free software. | | |
| ▲ | jraph a day ago | parent [-] | | > Why do you want to evaluate its usage? I never implied this. This subthread is about countering your affirmation that Android being based on the linux kernel has no single meaningful implication. It's not anymore about evaluating usage and counting stuff. This all started with a commenter writing "Android systems don't even run the linux kernel in any real sense", which is wrong, or at least highly misleading and confusing (I do agree with this commenter about the fact that we are talking about forks that don't upstream their shit, which does have severe implications). You could say that Android systems usually don't run mainline Linux kernel. > you can conclude that Windows and MacOS start falling behind the free software. I wish :-) And I wouldn't generally include Android in the free software family, few people run Replicant or some Android flavor without the Google services, let alone without proprietary blobs. (I would count blob-free Android) |
|
|
|
| |
| ▲ | vkazanov a day ago | parent | prev | next [-] | | In practice Linux is a family of different OSes. Sometimes POSIX-centric, sometimes not. What do you even count as "an OS"? Linux + gnu userland + Gnome? Or is it KDE? Embedded Linux? Does ChromeOS count? LG's WebOS? | | |
| ▲ | oblio a day ago | parent [-] | | Desktop Linux has a clear scope, and we all know. We can act like we don't, but we do. Can I install LibreOffice on Android? Gnome, KDE, Xfce? Which percentage of packages in the Debian repos can I use on Android? | | |
| ▲ | vkazanov a day ago | parent [-] | | Linux is a kernel, that's it. There is an organisation maintaining it, and also the trademark. There is also a major family of OSes building on the kernel + gnu userspace, which you probably call "desktop linux". In my house there are dozens of devices running linux the kernel: routers, a tv set, washing machines, NAS, printers, etc. Some have the full gnu posix-like stack, others are very barebones. Then, there's is a bunch of android devices running the kernel as well. What's wrong with all of these? At what point should i draw a line? | | |
| ▲ | palata a day ago | parent [-] | | To me, Desktop Linux is the Linux I run on my work computer: the one that has a screen, a keyboard and a mouse. It is based on Linux (obviously), the GNU userland to some extent, and then it has a graphical environment (usually based on Xorg or Wayland). This is different from embedded Linux or Linux on a server. And this is different from Linux-the-kernel (which runs on Android). | | |
| ▲ | sophacles a day ago | parent | next [-] | | What if I run linux + gnu + gnome over rdp on VM a server in a rack somewhere that has no screen keyboard and mouse on it? Am i using desktop linux or not? What if that same VM also is running nginx and serving up web content? What if I have a pc with a keyboard and monitor sitting literally on my desktop, and it's running linux + gnu but no graphical environment, and I use it for coding (it has music playing when I do this, and i sometime check email or github issues, etc via cli) - yes I've done this, even recently to reduce distractions... some days GUIs are bad for my adhd. Is that a desktop linux? If not, why? What's different about this than doing basically the same thing, but also having a browser open when it's surrounded by a GUI? | | |
| ▲ | palata a day ago | parent [-] | | I feel like you're overthinking it. It's not that one can get a badge saying "powered by Desktop Linux". It's a rough categorisation based on the use case: * Embedded Linux is what you expect to see on a "small" device that usually doesn't have a graphical environment (it may have a small screen showing a temperature). * A Linux server is what you expect to see in racks, serving stuff over the Internet. A homeserver could be that, too. * Linux on mobile is what you would put on your phone. * Desktop Linux is what you would put on your working computer, the one you interact with "physically". Of course, you can run a server on your personal laptop, and you could run a "Desktop" graphical environment on a mobile phone. But that's beside the point. And of course, you can work on a Linux without a graphical environment. |
| |
| ▲ | vkazanov a day ago | parent | prev [-] | | Well, you came up with a rather vague definition. Xorg OR wayland. Gtk or qt? Which set of tools do you expect to be available? All of that is just too nebulous. Linux is something that runs the kernel, that's about it. I mean, I've been using linux for all of my life, servers, at home, for work, embedded dev, corporate environment, as a manager and as a dev, etc. What I see is that linux as already everywhere. Desktop space is the only OS market where non-linux OSes are in the majority, and maybe this is why people are so excited about these pointless numbers. | | |
| ▲ | jraph a day ago | parent | next [-] | | Desktop Linux is difficult to define exactly, but the idea has merits. Something that's not proprietary, and that's not incredibly closed / locked / controlled by a monopolist like Android or Chrome OS. > maybe this is why people are so excited about these pointless numbers. I'd be excited by numbers showing an increase free software use, including the OS, first and foremost. For what I personally care, I'd be happy to drop the Linux kernel requirement and extend the scope to Desktop BSDs and other open source desktop OS as well. People being trapped in closed OSes that happen to be based on a Linux kernel is of limited comfort anyway, actually. | |
| ▲ | a day ago | parent | prev [-] | | [deleted] |
|
|
|
|
| |
| ▲ | hagbard_c a day ago | parent | prev [-] | | Try Termux and you'll be surprised how much 'Linux' software runs fine on Android, this includes things made to run under X11 etc. | | |
| ▲ | thesuperbigfrog a day ago | parent | next [-] | | Termux turns my Android phone into a programmable pocket computer. https://termux.dev/en/ Please give it a try and if you find it useful, donate. | |
| ▲ | fsflover a day ago | parent | prev [-] | | https://github.com/termux-play-store/ | | |
| ▲ | jraph a day ago | parent [-] | | What's your point? This mess is caused by Google policies, not technical considerations. You can still install Termux from F-Droid. We can argue about Android being a horrible OS for all sorts of reasons but that's a separate discussion. | | |
| ▲ | jauntywundrkind a day ago | parent | next [-] | | > Almost every Android version imposes new major restrictions when it comes to security requirements, and specifically the Android 10 version update was dramatic for Termux usage, as it disallowed executing downloaded files directly. > The Termux app avoided that by using a targetSdkVersion of Android 9, declaring that it was not compatible with the Android 10 requirements. Android level 9 is from Android 2 Gingerbread (2010!!). https://apilevels.com/ For now it's not a huge barrier to Termux running. We can go run Android 2 stuff today, & maybe Android will forever be backwards compatible. It does mean that Termux can't build a top or use any new Android features. Termux is glued to a truly ancient version of Android, because Android became inhospitable to basic Linux userland use cases. Seems its mostly about being unable to run downloaded code, which feels admittedly like very much "just a technicality", but boy oh boy has that technicality kept Android from expanding outside of its own bespoke userland. | | |
| ▲ | jraph a day ago | parent | next [-] | | > > The Termux app avoided that by using a targetSdkVersion of Android 9, declaring that it was not compatible with the Android 10 requirements. > Android level 9 is from Android 2 Gingerbread (2010!!). https://apilevels.com/ Wait, no, Termux is not stuck at Gingerbread, it's stuck at Android 9 (Pie). Agree with the rest though. Android is a sinking ship, not only the Termux issue, but the increasing number of basic apps and features that are proprietary and not part of AOSP. I hope we'll be able to be caught by Linux Mobile or something like this in time. | | |
| ▲ | jauntywundrkind a day ago | parent [-] | | Apologies! I originally posted Android 9 Pie (2018), but had doubt & switched to the SDK version. My mistake!! The AI age where the AI needs to be able to peak into all the apps will hopefully create a new API / MCP age, new machine-to-machine work. I'm not sure how much of what Google is doing today is proprietary, adding hooks into all their apps and creating some means for Gemini to access that all, and how much is paved road & available for others. Very curious to know more. |
| |
| ▲ | zozbot234 a day ago | parent | prev | next [-] | | Right, Android target levels are so different in how they behave towards applications that they're practically best treated as distinct OS's to begin with. There's really no such thing as a unified Android or iOS, unlike Windows or desktop Linux where even a program from the mid-1990s will run unmodified in the latest version of the OS. | | |
| ▲ | jraph a day ago | parent [-] | | > Android target levels are so different in how they behave towards applications that they're practically best treated as distinct OS's to begin with You can run applications running different target levels side by side though > desktop Linux where even a program from the mid-1990s will run unmodified in the latest version of the OS mhm... I wish but that's not so true for Linux. Your old program will likely be missing some dynamic library or be incompatible with your current libc. Desktop Linux userspace is awfully unstable, compatibility is broken left and right, basically no one cares except the Linux kernel itself. There's a reason people jokingly say that win32, through wine, is the most stable Linux API. If you still have the source code of your program (and the linux ecosystem is full of free software so that's likely), you can always recompile but you'll probably need to edit the code so it's compatible with the current versions of libraries). I've heard macOS is not great at this neither. |
| |
| ▲ | charcircuit a day ago | parent | prev [-] | | >Termux is glued to a truly ancient version of Android, because Android became inhospitable to basic Linux userland use cases. No, this only a problem with Termux's approach of trying to put all apps into a single app. One Linux app should correspond to one Android app. This also makes it so that permissions you grant to the app is not to all of termux, but to a specific app. | | |
| ▲ | jraph a day ago | parent [-] | | > trying to put all apps into a single app That's not exactly what it does, it dynamically downloads the programs using apt-get. I get the security benefits of preventing the execution of data stuff, but building one Android app for each binary is difficult to work with. | | |
| ▲ | charcircuit a day ago | parent [-] | | >it dynamically downloads the programs using apt-get. And then runs them as the Termux app. I didn't mean to imply that it put all of the apps into itself at build time. >Android app for each binary is difficult to work with. You could group multiple binaries that belong to a single conceptual app into a single android app. What do you think would make it difficult to work with? I think most of it could be automated away. | | |
| ▲ | zozbot234 a day ago | parent [-] | | The principled way of doing this (while coping with the new post-Pie restrictions) would be to build a new "updated" .apk on-device with a new /usr/bin/ equivalent, then have the user explicitly "install" it and relaunch Termux. It would work no different than any live-CD install, or for that matter any other kind of "immutable" OS. | | |
| ▲ | jraph a day ago | parent | next [-] | | But then, everything runs under the same Termux user app again, just with extra cumbersome steps. And I'm not sure it's possible to do this safely, you need the APK to be signed, and the only way to do this would be to share the private key. And likely to have a good chunk of the Android SDK bundled with Termux. A version that runs on Android anyway. Not sure it would fly with Google's Play Store policies. to your parent: > And then runs them as the Termux app. I didn't mean to imply that it put all of the apps into itself at build time. ok, got you | | |
| ▲ | zozbot234 a day ago | parent [-] | | Yes but you could just have a custom private key that's generated by a separate "apk builder" app and stored on-device. |
| |
| ▲ | a day ago | parent | prev [-] | | [deleted] |
|
|
|
|
| |
| ▲ | fsflover a day ago | parent | prev [-] | | Touché. |
|
|
|
|
| |
| ▲ | palata a day ago | parent | prev | next [-] | | No software compiled for arm will run on x86. No software depending on Qt will run without Qt, even if you have GTK. Doesn't mean they don't run the same kernel, does it? | | |
| ▲ | fsflover a day ago | parent [-] | | You can recompile software for a different architecture relatively easily. You can't easily rewrite GNU/Linux software to run on Android. | | |
| ▲ | palata a day ago | parent [-] | | And you can't easily rewrite Qt software to use GTK. Still they both run on Linux. | | |
| ▲ | msgodel a day ago | parent [-] | | You probably could if Android weren't intentionally constrained by Google to prevent it. That's what fsflover is trying to point out: Android is more of a television firmware than an OS and counting it like a PC OS makes very little sense because you can't use it like one. EDIT: I think you still don't understand. It doesn't matter what hardware Android runs on it's written to be appliance firmware. Even if you put it on a laptop it just turns the laptop into what is essentially a television. | | |
| ▲ | palata a day ago | parent [-] | | So I was saying that Android runs the Linux kernel, period. But now that you say it, Android is very much a full OS. It's not a Linux Desktop, but it is a full OS. And televisions running Android are called "smart TVs", precisely because they run a full OS instead of a minimal firmware like they used to. Google is working on bringing Android to the Desktop, and Samsung already does it. As in: you plug your smartphone into a docking station and it is suddenly a Desktop computer. |
|
|
|
| |
| ▲ | MYEUHD a day ago | parent | prev | next [-] | | Checkout https://postmarketos.org
Those vendor provided kernel trees let you run a real Linux distribution on your phone. | | |
| ▲ | zozbot234 a day ago | parent [-] | | PostmarketOS doesn't use downstream kernel trees because those are useless for anything that's not AOSP-based (unless you use terrible hacks like libhybris) and are often not upgradable to newer versions. They rely on "close-to-mainline" kernels that are much closer to real Linux. |
| |
| ▲ | udev4096 a day ago | parent | prev | next [-] | | This is the reason I hate the recent surge in linux desktop users. People jumping in without allocating enough time to get familiar with the ecosystem | |
| ▲ | assbuttbuttass a day ago | parent | prev [-] | | You can run Linux software on Android via termux, or the amazing UserLAnd app even lets you install an entire distro userland with several choices (Debian, Arch, etc) | | |
|