Skip to content

Instantly share code, notes, and snippets.

@smoonlee
Created November 30, 2023 13:21
Show Gist options
  • Save smoonlee/aa22592603235de46e1c3bad24dc2a8e to your computer and use it in GitHub Desktop.
Save smoonlee/aa22592603235de46e1c3bad24dc2a8e to your computer and use it in GitHub Desktop.
linux-hyper-v-enhanced-session-patch-notes
# Enhanced Session HvBus
``` pwsh
Set-VM ubuntu -EnhancedSessionTransportType HvSocket
https://github.com/Hinara/linux-vm-tools
wget https://raw.githubusercontent.com/Hinara/linux-vm-tools/ubuntu20-04/ubuntu/22.04/install.sh
Reboot
```
# Enhanced Session Volume
https://www.elevenforum.com/t/how-to-get-sound-on-ubuntu-in-hyper-v.801/
```
sudo apt-get install git libpulse-dev autoconf m4 intltool build-essential dpkg-dev libtool libsndfile-dev libspeexdsp-dev libudev-dev -y
sudo cp /etc/apt/sources.list /etc/apt/sources.list~
sudo sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list
sudo apt-get update
sudo apt build-dep pulseaudio -y
cd /tmp
sudo apt source pulseaudio
pulsever=$(pulseaudio --version | awk '{print $2}')
cd /tmp/pulseaudio-$pulsever
sudo ./configure
sudo git clone https://github.com/neutrinolabs/pulseaudio-module-xrdp.git
cd pulseaudio-module-xrdp
sudo ./bootstrap
sudo ./configure PULSE_DIR="/tmp/pulseaudio-$pulsever"
sudo make
cd /tmp/pulseaudio-$pulsever/pulseaudio-module-xrdp/src/.libs
sudo install -t "/var/lib/xrdp-pulseaudio-installer" -D -m 644 *.so
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment