-
Notifications
You must be signed in to change notification settings - Fork 46
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
Installation fails on Kali #110
Comments
Are you running the latest version of the script from the repo (rather than the release)? This looks a lot like #90 |
Thanks for that, sorry I overlooked that topic. It sure looks like the same thing. I don't really know what you mean with the latest from the repo vs the release. I just used git clone from this page. Is there any way to get anything more recent than that? I'll try using the suggested patch file. I'm relatively new to Linux and when I'm trying different things to troubleshoot sometimes it's hard to know how to undo/clean up and start fresh. I'll report back after I've tried the fix from the other thread. |
Unfortunately I still can't get it to work. I took the suggested code (but changed the OS version to mine), put it in a file called patch1.txt in the pulseaudio-module-xrdp folder:
then ran the patch command like this:
then ran the script again with sudo ./scripts/...etc. I already did sudo apt install doxygen manually by the way. Your script says apt-get. I understood apt was kind of the trimmed down version of apt-get but should still do basically the same thing, just with less options. What's so weird is that if I just type "doxygen" in terminal it opens (and complains I didn't give it a file etc.), so it does actually work and run - just not from the script. |
'git clone' is fine. Here are some explanations of your other comments, which I hope is helpful. I'll get to the actual problem further below.
Please come back to me if any of the above don't make sense. The error suggests that Are you able to post the whole contents of the log file |
See the attached file. There's a few things in there that seem suspicious to me but I don't have enough experience to really say for sure. For example, the pulse-audio package wasn't installed in the sandboxed environment because access was denied to some file, and cmake wasn't found for my build. But...? I don't see any line there where it tries to install doxygen except at the end where it fails to configure doxygen because it's not installed. Thank you for the explanation of what the script is doing by the way, that makes a lot of sense. Reminds me a little of a one-off docker container. |
Some progress. It seems something failed with the patch file. I went into the install_pulseaudio_sources_apt.sh file manually and it still said Kali 2022*, I changed that to Kali 2024* and ran it again. It took forever with very little visible CPU usage but it completed successfully this time. For the next steps I did:
However, no audio device other than dummy audio is shown and I hear no sound. If I try manually starting the loading script I get:
If I start the script as sudo I get no response but also still no audio device. Disconnecting xrdp and reconnecting doesn't make a difference. |
I am no confused as to whether my system is using pipewire or pulse, I understand only pulseaudio is supported. I definitely have " some" pipewire on my system as I can see it if I run task manager. I also have something called " pipewire-pulse" and the pavumeter works just fine (only showing dummy output but response with the meter). I also of course installed pulseaudio using the installer script. How do I make sure I'm actually using pulse for playback, not pipewire? |
pipewire-pulse is a pulseaudio compatible server which pushes sound through pipewire. What does |
To go back to your previous post (if still relevant):-
Not only shouldn't you do this as root, but you mustn't. Building software (rather than installing it) should be entirely non-privileged these days. You've probably got files owned by root in your home account. You can find them with:-
Off the top of my head, you can change them to be owned by your user account (in $USER) with something like:-
A breakdown:-
Having done that, the |
PS: If you are using pipewire, look at:- https://github.com/neutrinolabs/pipewire-module-xrdp |
pactl info gave me this:
Doesn't say pulseaudio 16.1 anywhere which is what should have been installed...
I'm starting to think I should just trash this VM and start over. Unless this shows some obvious error to you? |
Sorry, I forgot the "bootstrap" step that time. Everything completed this time, although sudo make install complains that it doesn't have much to do:
I'll have a look at the pipewire page now, thanks for that. |
I installed the pipewire module as per the other page. I don't want to mix up the topics too much but suffice to say the install was a lot easier and completed without errors - however, no audio device other than "dummy audio device" appears, so still no sound. |
I spoke to soon, somehow, a reboot or two more seems to have fixed it, for now. I still don't completely understand which step finally did it. But the audio device "xrdp-sink" suddenly replaced the "dummy audio device" and I can actually hear sound. Annoyingly, it's incredibly choppy when viewing something on YouTube. That isn't necessarily the primary purpose of this exercise but still disappointing. Thank you for all your guidance, I hope I can do it all right the first time with the next VM! |
The choppy nature could be down to bandwidth limitations. When you're watching a video with sound, you're trying to squeeze a lot of data down a (potentially) quite small pipe at the same time. These may be of interest to you.:-
Can I close this one now? |
Cool thanks! It's usually a home situation where my VM is hooked up via ethernet and my laptop is on WiFi. It's WiFi 5 though. I haven't checked on my cabled desktop yet.
I can live with it for now, it's still helpful to get system audio and if I pop out the video and make it small it works well so yeah, probably bandwidth.
Do you know if there is any way to prioritize audio over video? I wouldn't mind if the video is a little choppy (it's mostly tutorials) as long as the audio is intelligible.
For the rest, yes please close it and thanks again. I updated my original post with TL;DR instructions in case anyone runs into something similar.
Kind regards,
Sander
Sent from MailDroid
…-----Original Message-----
From: matt335672 ***@***.***>
To: neutrinolabs/pulseaudio-module-xrdp ***@***.***>
Cc: SanderVeeken ***@***.***>, Author ***@***.***>
Sent: Fri, 01 Mar 2024 11:36
Subject: Re: [neutrinolabs/pulseaudio-module-xrdp] Installation fails on Kali (Issue #110)
The choppy nature could be down to bandwidth limitations. When you're watching a video with sound, you're trying to squeeze a lot of data down a (potentially) quite small pipe at the same time.
These may be of interest to you.:-
1) If you're running over a WAN, have a look at neutrinolabs/xrdp#2910. This may improve things.
2) We're getting close to releasing a new major version of xrdp v0.10.x which supports better compression. This could help quite a bit.
Can I close this one now?
--
Reply to this email directly or view it on GitHub:
#110 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
We don't have a way to prioritise audio over video yet I'm afraid. Thanks for the update, and please try the next version when we get it out the door! |
TL;DR for whoever comes across this:
scripts/install_pulseaudio_sources_apt.sh, find the line where it says "Kali" and make sure the version is the same that you're running (usually, "Kali-YYYY*" where YYYY is the current year. In my case it was "Kali-2024*". The script said "Kali-2022*".
Hello,
I've been trying to get this working on my Kali Linux VM but I can't. XRDP is working fine, for what it's worth, but no audio. I tried the Debian convenience script, that outputs:
The referenced log file ends with:
The final lines from that log are similar;
FWIW of course I tried installing Doxygen manually as follows;
But it makes no difference.
The second thing I tried was doing a custom build using the "other distro" instructions. While the instructions didn't line up completely I got as far as actually having the "end result" files as shown by the suggested command:
However no "xrdp-sink" audio device shows up anywhere and if I try to manually use the loading script I get errors as if the modules are not installed:
If I use a sudo command to run the script I get no response (presumably then it's loaded correctly?) but still no other audio device than "Dummy Audio" shows up anywhere and there is no sound.
I feel like I'm getting close but I'm too much of a noob to get it further than this. Hopefully this can be solved?
The text was updated successfully, but these errors were encountered: