#Need help setting up Ubuntu or Zorin on Termux.

283 messages · Page 1 of 1 (latest)

soft fractal
#

Starting from scratch because I was apparently using a third party method

vale stagBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

soft fractal
muted veldt
#

i was wondering first, what do you need to have ubuntu or zorin for

#

like what kind of apps in it do you want

soft fractal
#

Also just miscellaneous apps including a few I'm probably not allowed to talk about here

muted veldt
#

what desktop environment will you want in it?

muted veldt
soft fractal
muted veldt
#

yes it's like these

muted veldt
#

so i know you want one because you mentioned web browser, web browser in termux i recommend is firefox

soft fractal
muted veldt
#

and to run firefox i recommend you need a linux gui

soft fractal
#

If I'm using Ubuntu just GNOME

muted veldt
#

even inside proot-distro i don't think GNOME works

#

i have made a GNOME for termux that works but it's for advanced users,

#

if you really want it then let me know

#

it's harder to install

#

than the other options

soft fractal
muted veldt
#

if you want it to be like windows I recommend KDE plasma, that can work

soft fractal
#

Alright perfect, I'll go with that

muted veldt
#

ok next, you should know that KDE plasma works in termux without having to install ubuntu or zorin os inside termux

#

so if it will work then do you still need ubuntu or zorin for something else or if you don't know just say you don't know

muted veldt
#

ok i recommend just try the way without having ubuntu or zorin first

#

and then if something you try after that doesn't work then if it's something allowed, ask me about it but it if it's not allowed then don't talk about it

#

to get kde plasma in termux this way,

#

first install this app

#

then

#

do you have Google Play Termux or F-Droid Termux currently installed? (which one?)

soft fractal
#

Alright thanks

soft fractal
muted veldt
#

yes the F-Droid version is the correct one

soft fractal
muted veldt
#

ok, now i will tell you commands to use one by one and you can copy and paste them

#

yes | pkg up -y

#

^ that is the first command

#

and let me know when it finishes

soft fractal
muted veldt
#

the whole thing like this yeah

#

yes | pkg up -y

#

this | is a symbol you should copy and paste

#

it's not a I it's a |

#

lol they look almost the same

soft fractal
#

Oh it wants me to set a repo one sec

muted veldt
#

yes you can using

#

termux-change-repo

#

it's just optional to do that

soft fractal
muted veldt
#

termux-x11 -xstartup startplasma-x11

#

and then go to the termux:x11 app and look at it

soft fractal
muted veldt
#

yes

muted veldt
soft fractal
muted veldt
#

the extra keys are like, covering up your screen

soft fractal
#

Done

#

Alr, is there a way to integrate an onscreen keyboard?

#

Also would this support camera and audio?

muted veldt
muted veldt
#

audio both speakers and microphone but speakers will work by default and microphone will not work by default

#

if you need to use microphone tell me and i'll tell you what to do

soft fractal
#

How do I set up the keyboard in Termux?

muted veldt
#

though it's a bit complicated

muted veldt
#

to try it

#

if the problem is that you don't want to use the same keyboard in both termux:x11 and in other apps,

#

let me know

#

there's a different kind of keyboard for that

soft fractal
#

Also a keyboard doesn't open when I "click" on a text box

muted veldt
#

use this command

muted veldt
#

before you switch to the other kind of keyboard,

#

did you try using your "back swipe" or "back button" movement while looking at kde plasma

#

after clicking inside a text box?

muted veldt
# soft fractal I'll try that

that is basically how you are supposed to type text in termux:x11 but if it's not convenient i can still tell you how to try the other kind of keyboard

soft fractal
#

Sorry to bombard with questions but is there a way to prevent this weird cutoff?

#

It's especially noticeable in the taskbar

muted veldt
#

car seat headrest is great i've listened to that

#

but yes

#

you have a phone with curved corner screen, i do too, most phones are like this,

#

the most convenient way to just easily avoid that problem is to just change the aspect ratio resolution of the termux:x11

#

here

muted veldt
soft fractal
muted veldt
#

basically if your phone is 1080p set it to 1920x1080

#

but if your phone is 1440p set it to 2560x1440

#

etc.

#

do you have your phone screen resolution memorized and the common 16:9 aspect ratio resolutions memorized and so on?

#

if not then maybe you need help with this calculation but i could help if you need probably

soft fractal
#

Huh now 11 says it isn't connected, do I have to repeat all the previous steps or just launch it somehow?

muted veldt
#

did you make sure to toggle this setting on the device developer options?

muted veldt
soft fractal
muted veldt
#

This can work on some Android phones but not all. In general if the phone has at least Android 11 then it usually has it and if it has Android 10 or older it usually can't do any of this without plugging into USB, but that is not a hard rule and I have seen many varying devices with different capabilities.
Then I uninstalled Facebook as a demons...

▶ Play video
muted veldt
#

that video is the first step for a method of getting camera

#

but warning in advance this method of getting camera is not going to let you use it directly as a webcam in like firefox or something,

soft fractal
#

Alright thanks, I'll probably do that tomorrow- wouldn't it be easier with a desktop with ADB?

soft fractal
muted veldt
#

what it can do is it can show the camera in a window so then you could screen share with whatever screen share methods are possible in termux:x11 and then that can work in theory

muted veldt
#

either using the tool itself to take the pictures,

#

or just taking screenshots and cropping them to the window that shows the camera

soft fractal
#

Alright

#

Just one (probably) more question, is it possible to get this to run the startup by itself when I open the app?

#

Or even boot up the device

muted veldt
soft fractal
#

Alright, how would I set that up?

muted veldt
#

though technically the earliest you can make it automatically open is right after you type your PIN and unlock the screen after turning on the phone

#

it can't auto open before that

muted veldt
#

then you can follow one of my guides for the basic test of it

soft fractal
#

Thanks for all the help and support! It's late so I'll try the camera and Termux:boot stuff tmrw

muted veldt
#
                mkdir -p "$HOME/.termux/boot"
                echo '#!/data/data/com.termux/files/usr/bin/sh' > "$HOME/.termux/boot/start"
                echo 'termux-x11 -xstartup startplasma-x11' >> "$HOME/.termux/boot/start"
                chmod +x "$HOME/.termux/boot/start"
#

i think that probably will be able to do it but if not then let me know

soft fractal
#

like falkon in kde in termux

muted veldt
#

do you have firefox

muted veldt
soft fractal
soft fractal
#

wait is there a particular reason I should use firefox in termux or can i just use brave or GX?

muted veldt
muted veldt
soft fractal
#

alr thanks

muted veldt
soft fractal
muted veldt
muted veldt
#

try to get firefox and also try to get brave and opera and you will see what i mean

muted veldt
# muted veldt

also if you don't like having those black lines around firefox let me know and i could tell ways that can work around that

soft fractal
muted veldt
#

let's go to #1392715498776563724 @soft fractal

soft fractal
soft fractal
#

yes | pkg up -y

pkg install x11-repo

pkg install termux-x11-nightly plasma kde-applications

termux-x11 -xstartup startplasma-x11

soft fractal
muted veldt
soft fractal
#

at least not in a way I could figure out

muted veldt
soft fractal
muted veldt
#

oh sorry you won't be able to easily run deb files in general because most of them are for x86 cpus

#

even if you got ubuntu to work it would be an ARM version

soft fractal
muted veldt
#

could you use this command

#

cat ~/.termux/boot/start

soft fractal
muted veldt
#

yes

soft fractal
#

do I have to mkdir again?

muted veldt
muted veldt
soft fractal
muted veldt
#

Yes

#

if you go to a session where you are running ubuntu it's different from when you aren't and the files are different

soft fractal
#

now it says
#!/data/data/com.termux/files/usr/bin/sh
am start -n com.termux.x11/.MainActivity
termux-x11 -xstartup startplasma-x11

soft fractal
muted veldt
muted veldt
# soft fractal

oh it means that termux-x11 is already running in that session so you can't type additional commands there

#

what do you see in the termux:x11 app?

soft fractal
#

i had already launched it if it matters

muted veldt
#

wait so what was wrong

#

it's just that you want to run ubuntu .deb files in the GUI?

#

you can but there are a few steps required, when you find a .deb files you want to use you could show me and i could explain what steps to do

soft fractal
soft fractal
muted veldt
#

and is the termux:boot app still installed?

soft fractal
soft fractal
#

also x11 didnt open by itself already iirc, it just started itself after opening after about 30 seconds

muted veldt
soft fractal
#

the app itself doesnt open unless i open it

#

but when the app is opened then it starts

#

like the x11 app wont automatically open itself when I unlock my phone

#

but it did do the termux-x11 -xstartup startplasma-x11 thing by itsefl

muted veldt
#

yeah i remember now

#

yeah i'm not sure why that happens to you

#

for my device it opens automatically with the same configuration

#

so i guess you just have to start it manually

#

you could try the method of termux:widget it makes a shortcut on your home screen you can touch to open it

#

#general message

soft fractal
#

I'm more concerned about automating the termux-x11 -xstartup startplasma-x11

#

like how I had it previously set up

muted veldt
muted veldt
soft fractal
#

Setting up on another device, what's happening here?

#

Device is ayn thor on android 13

main loom
# soft fractal
E: Sub-process /data/data/.../bin/pkg returned an error code (1)

What happened here? Please show us the entire output.

soft fractal
soft fractal
#

tyty

#

ill run the last 2 commands i did on a separate session and send the transcript

main loom
#

Thanks

soft fractal
#

npnp you're the one helping lol

#

uh its way too long for discord, i might try and save it as a .txt or something

main loom
#

It should automatically convert it as a file

soft fractal
#

im on android so the option doesnt pop up

#

i just manually made it into one, ill upload it

main loom
#

Have you tried to run pkg upgrade like said by pkg.

soft fractal
soft fractal
#
"The XKEYBOARD keymap compiler (xkbcomp) reports:"
"> "Warning:          Multiple symbols for level 1/group 1 on key <FK23>
"> "                  Using F23, ignoring XF86TouchpadOff
"> "Warning:          Symbol map for key <FK23> redefined
"> "                  Using last definition for conflicting fields
"> "Warning:          Symbol map for key <FK24> redefined
"> "                  Using last definition for conflicting fields
"> "Warning:          Could not resolve keysym XF86AudioBassBoost
"Errors from xkbcomp are not fatal to the X server"
CANNOT LINK EXECUTABLE "startplasma-x11": library "libPlasma.so.6" not found: needed by /data/data/com.termux/files/usr/lib/libkworkspace6.so.6.6.0 in namespace (default)
21131 exited, status=1
~ $```
muted veldt
#

could you show the result from this command?

#

ohh hold on i can kind of reproduce something similar

#

we need to recompile kde plasma for libplasma version 6.6.1 that came in the auto update

#

@sand heart unfortunately some things have broken by themselves after libplasma 6.6.1 came,

soft fractal
muted veldt
#

@sand heart if you are here then would you want to do it first or if you're not here that's fine and i will do it in about 6 hours from now?

soft fractal
#

how could I fix the issue

muted veldt
#

sorry that message was for @sand heart

muted veldt
soft fractal
#

nah allg lol i failed the reading comprehension check lol

muted veldt
#

whenever we fix it, pkg upgrade will fix it

soft fractal
muted veldt
sand heart
muted veldt
#

@soft fractal ok now you can use pkg upgrade and get an update and that update will fix kde plasma

soft fractal
#

would it be possible for it to capture input from the joysticks of my device?

#

it seemed to work by default with external keyboards and mice and other peripherals but not my joysticks, idk why

soft fractal
muted veldt
#

@waxen citrus will you be able to make a PR to termux-x11 that adds the joystick support?