TL;DR

  • Google has added a tabbed interface to the Terminal app in Android 16 Beta 3.
  • The Terminal app lets you run Linux apps in a virtual machine on your Android device.
  • Adding tabs makes it easier to multitask, as you can issue commands without having to wait for a process to complete.
  • Avid Amoeba
    link
    fedilink
    English
    arrow-up
    16
    ·
    2 days ago

    So I tried this just now, and it works. It looks pretty good at first glance. Proper Debian VM, can listen on ports, can access files under Downloads. It just takes 10-20 seconds to start and a few to stop.

    • biscuit@lemdro.id
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 day ago

      can access files under Downloads

      Wait, you can access local files on your phone’s storage in the VM now? Is that a new addition? On the Android 15 version of this, you don’t have any local access at all.

      • Avid Amoeba
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 day ago

        I’m on the standard Android 15 on 8 Pro. The shared storage is mounted at /mnt/shared

    • juli@lemmy.world
      link
      fedilink
      English
      arrow-up
      11
      ·
      1 day ago

      would you switch over from termux for this? for performance or something else?

      • Avid Amoeba
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 day ago

        For things that don’t work on Termux. The only advantage of Termux is that it starts way faster and it consumes significantly less resources. Other than that, the VM would be superior. So if I had to connect via SSH to a machine, I’d probably use Termux.

      • TheEighthDoctor@lemmy.zip
        link
        fedilink
        English
        arrow-up
        7
        ·
        edit-2
        1 day ago

        It’s a debian VM, much better than messing with the android system. All I want now is bridged mode for the network adapters

        • Avid Amoeba
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 day ago

          It appears to be running behind NAT but it’s already have an easy port forwarding feature where I was able to connect to a server running on the VM by connecting to localhost in Termux.

          • TheEighthDoctor@lemmy.zip
            link
            fedilink
            English
            arrow-up
            3
            ·
            8 hours ago

            Can you forward ports below 1024? I don’t get the notification when it’s these ports that require sudo.

            • Avid Amoeba
              link
              fedilink
              English
              arrow-up
              1
              ·
              edit-2
              3 hours ago

              I didn’t try because I assume I can’t. 😂 Cause that would require root on Android, or special capability.

              E: Yeah it doesn’t seem to work.

                • Avid Amoeba
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  42 minutes ago

                  Right but think about it. Any ports open on the host are opened by processes running on the host. If a process on the host wants to open 443, the host OS would ask for root. Now think about the VM from the point of view of the host. It’s just another running process. If it tries to open 443 - it’s gotta have root or it will fail. It doesn’t matter what permissions the process inside the VM has. In fact the host doesn’t even know about that process. To the host, the VM process wants to open protected port.