Music: Difference between revisions
Jump to navigation
Jump to search
(Re-format and add newer command) |
mNo edit summary |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
Music is run off |
Music is run off <code>powernap</code>, since that's the computer with the speakers attached. |
||
Office staff/termcom/syscom permissions are required to play music in the office. |
|||
All music files are in <code>/music</code>. You may or may not be required to be a member of the audio group to actually play tracks |
|||
We also have MPD available, however this method is rarely used after 2022. ''kids these days'' |
|||
<s>View recently listened tracks: http://www.last.fm/user/csclub</s> (2022-10-19): this hasn't been set back up since nullsleep went on hiatus, should eventually re-add. |
|||
== |
==How to play music== |
||
# Run <code>ssh |
# Run <code>ssh [watid]@powernap.csclub.uwaterloo.ca</code> |
||
# Run <code> |
# Run <code>bluetoothctl</code> |
||
# Type <code>pairable on</code> and <code>discoverable on</code> into the console to enable pairing and discovery |
|||
# That's it! |
|||
# Connect to <code>powernap</code> from your device |
|||
# Respond yes to all the prompts on the terminal from <code>powernap</code> |
|||
# Type <code>trust [device_mac]</code> to automatically allow audio from your device next time |
|||
# You should be able to play audio like a normal audio device now |
|||
==How to control audio server== |
|||
⚫ | |||
powernap uses PipeWire and can talk to PulseAudio client. To set volume, mute some audio stream, or change output setting, use an office terminal and do: |
|||
<pre> |
|||
PULSE_SERVER=powernap.csclub.uwaterloo.ca pavucontrol |
|||
</pre> |
|||
If you're using a Linux laptop then this should work too. |
|||
⚫ | |||
To view the keybindings of ncmpcpp, press F1 while it's running. |
To view the keybindings of ncmpcpp, press F1 while it's running. |
||
The number keys switch between tabs in it. |
The number keys switch between tabs in it. |
||
* |
*1 is current playlist |
||
* |
*2 is browsing files |
||
* |
*3 is search |
||
* |
*4 is browsing the media library |
||
* |
*5 is browsing saved playlists, etc. |
||
You can add your own ''absolutely legitimately obtained'' music by copying them to <code>/music</code> on powernap. Then type <code>u</code> in ncmpcpp to refresh the database. |
|||
==Termcom Info== |
|||
*We require https://github.com/hrkfdn/mpdas to get scrobbling working as it "official" last.fm integration was removed from mpd in 2013. |
|||
**n.b. https://github.com/hrkfdn/mpdas/issues/58 |
|||
*To control the mixer on other terminals, use <code>PULSE_SERVER=nullsleep pavucontrol</code> |
|||
*The official last.fm account credentials are stored in the exec password spot :) |
Latest revision as of 21:23, 10 June 2024
Music is run off powernap
, since that's the computer with the speakers attached.
Office staff/termcom/syscom permissions are required to play music in the office.
We also have MPD available, however this method is rarely used after 2022. kids these days
How to play music
- Run
ssh [watid]@powernap.csclub.uwaterloo.ca
- Run
bluetoothctl
- Type
pairable on
anddiscoverable on
into the console to enable pairing and discovery - Connect to
powernap
from your device - Respond yes to all the prompts on the terminal from
powernap
- Type
trust [device_mac]
to automatically allow audio from your device next time - You should be able to play audio like a normal audio device now
How to control audio server
powernap uses PipeWire and can talk to PulseAudio client. To set volume, mute some audio stream, or change output setting, use an office terminal and do:
PULSE_SERVER=powernap.csclub.uwaterloo.ca pavucontrol
If you're using a Linux laptop then this should work too.
MPD Controls
To view the keybindings of ncmpcpp, press F1 while it's running. The number keys switch between tabs in it.
- 1 is current playlist
- 2 is browsing files
- 3 is search
- 4 is browsing the media library
- 5 is browsing saved playlists, etc.
You can add your own absolutely legitimately obtained music by copying them to /music
on powernap. Then type u
in ncmpcpp to refresh the database.
Termcom Info
- We require https://github.com/hrkfdn/mpdas to get scrobbling working as it "official" last.fm integration was removed from mpd in 2013.
- To control the mixer on other terminals, use
PULSE_SERVER=nullsleep pavucontrol
- The official last.fm account credentials are stored in the exec password spot :)