termux-desktop icon indicating copy to clipboard operation
termux-desktop copied to clipboard

Not enough memory

Open iocmet opened this issue 3 years ago • 8 comments

I just don't have enough memory to install it on my phone 8 GB of internal memory on my tablet 16

Can I somehow put it on a SD card or something like that?

iocmet avatar Nov 18 '21 21:11 iocmet

No u can't... Idk if the code has a feature like that or somethin... But for sure. Termux can't write on external storages if u are not rooted...

Aridlvory avatar Nov 19 '21 13:11 Aridlvory

No u can't... Idk if the code has a feature like that or somethin... But for sure. Termux can't write on external storages if u are not rooted...

I have root :/

iocmet avatar Nov 22 '21 20:11 iocmet

Hey?

iocmet avatar Nov 27 '21 22:11 iocmet

No u can't... Idk if the code has a feature like that or somethin... But for sure. Termux can't write on external storages if u are not rooted...

I have root :/

Unfortunately, Termux does not support installing software to your SD card, since the file system is different from the internal storage, and simply put will not allow the same set of features required to run Termux (FAT doesn't support symlinks). If you are able to format a partition of your SD as ext4 and be able to mount it, you may be able to accomplish this, but personally I've never tried it (even through quite some years with rooted phones running Termux).

You can see this information in the official Termux docs:

Shared storage as well as external storage is not suitable for installing software. Do not even try to move Termux directories like $HOME or $PREFIX onto this kind of storage. Such option is only available for advanced users who have rooted device and are familiar with customization of partitions and file system on their external storage. Use of adoptable storage will not make your external SD card compatible with Termux, it is effectively same as shared storage (EXT4/F2FS with FAT32/exFAT compatible overlay).

zalgonoise avatar Dec 01 '21 09:12 zalgonoise

I already tried to transfer $home, etc. to the SD card, but nothing worked

iocmet avatar Dec 01 '21 12:12 iocmet

Reformat external SDcard . Set your settings to install apps on SD card that might work .install termux on external SD card.

Anonymous2716 avatar Dec 11 '21 15:12 Anonymous2716

Termux does not work when non-(external-)storage files or folders are moved or installed in external storage such as the SD card.

See Termux's Wiki for context.

That being the case, there is no solution other than:

  • Making up enough space in the internal storage (1,5~2GB)
  • Installing in a different device.

Note that, if these are older devices (due to their total internal storage amount), you may face performance issues when running a desktop environment + VNC server (+ VNC client maybe) on the same device.

I understand you're trying to juice them, but even if this doesn't work you can still take advantage of the device using a CLI. I still use my Galaxy J5 (without termux-desktop).

Lastly, you can always fork / submit a PR if you find a solution for a more lightweight GUI / desktop installation. You can use PR #104 as reference for a Dockerfile so you don't need to clear data on your phone's app all the time.

Edit: note that the same solution / context was provided already just 2 comments before.

zalgonoise avatar Jan 03 '22 12:01 zalgonoise

ok

iocmet avatar Jan 03 '22 14:01 iocmet