-
-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, how to run inside a proot-distro #138
Comments
Thanks it works, but I think it would be good to integrate into TERMUX, of course you can just edit .profile or whatever, but, would be good to pheraps include a termux-x11-proot-setup, which just edits .profile and aliases proot-distro login ... --shared-tmp Regards |
@xx1182, The shell script looks like: #!/data/data/com.termux/files/usr/bin/bash
# Enable PulseAudio over Network
pulseaudio --start --load="module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1" --exit-idle-time=-1
# Prepare termux-x11 session
export XDG_RUNTIME_DIR=${TMPDIR}
termux-x11 :0 >/dev/null &
# Wait a bit until termux-x11 gets started.
sleep 3
# Login in PRoot Environment. Do some initialization for PulseAudio, /tmp directory
# and run xfce as user galaxy.
# See also: https://github.com/termux/proot-distro
# Argument -- acts as terminator of proot-distro login options processing.
# All arguments behind it would not be treated as options of PRoot Distro.
proot-distro login debian --shared-tmp -- /bin/bash -c 'export PULSE_SERVER=127.0.0.1 && export XDG_RUNTIME_DIR=${TMPDIR} && su - galaxy -c "env DISPLAY=:0 startxfce4"'
exit 0 Save it as
As you can see in line 18 of the script, it starts the xfce session as user
and create a new user
the script will ask you for a new password type one, all the other question you can skip. Now you can start the script with I think with Termux:API add-on or at least with Tasker add-on you can even make a starter on your home screen, which will start the script for you, so you even won't see Termux at all. But don't ask me how, never played with this add-ons. |
ACCIDENTALLY deleted previously comment: @xx1182,
Then log in in your PRoot environment with:
and run:
There is a HowTo for Ubuntu but you can do the same steps also for Debian: PS.: if you want sound support, then run also in Termux:
and in your PRoot environment:
just before starting the xfce4 session. |
Can I close this issue? |
I think yes.
so his initially question is answered and this issue can be closed. |
Well, to be fair: Second, as suggested, when termux-x11 :1 , just automatically export display, just for convenience, regards. |
|
@v8karlo Issues are not the right place to advertise your project. |
Close this issue as not planned |
Can someone filter this |
|
He already delete that so everything ok, can we close this? |
I think so. I was waiting for positive response from xx1182 but he reported signal 9 (SIGKILL). I am planning to rewrite a significant part of code to get rid of this and then close 4 or 5 issues as cometed at once. |
If anyone is interested, some guy just made a Termux plus visuals working on a single app, yeah it's a hack and whatever: It's called VHEditor... It's not my project, I'm not advertising it, I just think that for the average person(how to hack Instagram account? Any of you know how to unlock iPhone trough termux) is a better alternative. Of course I was joking, you do it in your free time, I'm not entitled to anything, if it doesn't work I should make it myself and fuck me. I'm saying this, because maybe you can look in it's source code, as it's a simple VScode editor, and it doesn't sig-9, but I think it's because of termux because it's "an utility app" and android has specific blocks and dicks for specific: "file manager/video player etc". Regards, again this is just news, suggestion, as I'm not entitled to anything, but just want to contribute. Thanks again! Bye. |
I usually run termux-x11 then proot-distro login Debian, export the display and xdce4-session and it says, cannot connect to display .
The text was updated successfully, but these errors were encountered: