Create a directory for scripts, e.g.:
mkdir /home/<user>/bin
Install the script for selecting play method:
install -m 750 lsp-select_player.sh /home/<user>/bin/
Install the script that sets the nullsink and starts the browser:
install -m 750 audio_ff.sh /home/<user>/bin/
Find the pulse source:
pactl list | grep -A2 'Source #' | grep 'Name: ' | cut -d" " -f2 | head -1
Edit audio_ff.sh
and replace the existing pulse source with the output from the command above. You can also change the browser if you like.
Create the directory for the configuration files:
mkdir /home/<user>/.lsp
Note that the directory is hidden.
Install the configuration file for LSP on the client:
install -m 640 lsp.conf /home/<user>/.lsp/
Edit the file and add the missing data.
The .lsp
direcory will also include an automatically created file named selected_player.txt
. The file includes the text "mpd" or "squeeze" depending on the selected play method.
Install VLC:
sudo apt install vlc
Install mpc:
sudo apt install mpc
Edit /etc/pulse/daemon.conf
to resample with a higher quality, e.g.:
resample-method = speex-float-7
Note that this setting will only effect the sound streamed from the client (or played on the client with other audio players). No resamling is taking place when playing with LMS on the server.
Install the desktop file for autostart:
install -m 664 lsp-start_browser.desktop /home/<user>/.config/autostart/
Install the desktop file for autostart:
install -m 664 lsp-select_player.sh.desktop /home/<user>/.config/autostart/
Note: I haven't got Cairo-Dock working with Wayland on Ubuntu 21.04, but I think it "should" work.
Install Cairo-Dock:
sudo apt install cairo-dock
Create a directory for icons, e.g.:
mkdir /home/<user>/bin/icons
Install the icons:
install -m 650 audio_ff.svg lsp_select_player.svg /home/<user>/bin/icons/
Configure Cairo-Dock so that:
- The button with
audio_ff.svg
as icon runs theaudio_ff.sh
script. - The button with
lsp_select_player.svg
as icon runs thelsp_select_player.sh
script withtoggle
as parameter.
You can use Conky to show which play method that is selected. You are on your own with Conky.
You can install this script to tell Conky which player that is selected:
install -m 750 conky_streaming.sh /home/<user>/bin/