Skip to content
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

Connect to localhost #15

Closed
blindpenguin opened this issue May 14, 2014 · 4 comments
Closed

Connect to localhost #15

blindpenguin opened this issue May 14, 2014 · 4 comments

Comments

@blindpenguin
Copy link

Hi,

is it possible to set the default address to localhost/127.0.0.1?

I don't want to reset the ip env setting on chroot everytime i'm moving...

@pelya
Copy link
Owner

pelya commented May 14, 2014

XSDL accepts connections from amywhere, even from outside of your network.
You may just specify DISPLAY=:0 for your chroot environment, it will use
Unix socket.
On May 14, 2014 8:57 AM, "BlindPenguin" notifications@github.com wrote:

Hi,

is it possible to set the default address to localhost/127.0.0.1?

I don't want to reset the ip env setting on chroot everytime i'm moving...


Reply to this email directly or view it on GitHubhttps://github.com//issues/15
.

@blindpenguin
Copy link
Author

Ah, this works. Thank you. :)

@pelya
Copy link
Owner

pelya commented May 14, 2014

For best results, download this library to your chroot:
https://github.com/pelya/cuntubuntu/blob/master/dist/libandroid-shmem.so?raw=true
then do
export LD_PRELOAD=/path/to/libandroid-shmem.so
It will enable shared memory between XSDL and Linux apps, so they will draw
a tiny bit faster.

On Wed, May 14, 2014 at 8:45 PM, BlindPenguin notifications@github.comwrote:

Ah, this works. Thank you. :)


Reply to this email directly or view it on GitHubhttps://github.com//issues/15#issuecomment-43113357
.

@ericfont
Copy link

sorry for necro bump, but I've used your libandroid-shmem.so and it seems to work for X. But I'd like to do a similar thing with pulse audio, such that a music app inside of a LinuxDeploy archlinuxarm chroot can send the audio directly to XSDL's pulse server without having to go through 127.0.0.1. Any ideas? The app I'm using is MuseScore, but I'm noticing a significant delay and some choppines when playing audio. (I was looking at https://wiki.archlinux.org/index.php/PulseAudio/Examples#PulseAudio_from_within_a_chroot_.28e.g._32-bit_chroot_in_64-bit_install.29 but I'm not sure that will work with XSDL since XSDL is just an user-level app.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants