gqrx를 설치해서 원격으로 음악이나 들으려고 했더니
연결 거부되었다고 에러가 나서 검색.
$ gqrx "Pulseaudio error: 연결 거부됨" $ pax11publish -r
$ gqrx gr-osmosdr 0.2.0.0 (0.2.0) gnuradio 3.10.1.1 |
[링크 : https://unix.stackexchange.com/questions/193208/program-run-in-ssh-accessing-pulseaudio-on-the-machine-where-it-runs]
-r 곱션을 찾아보니 remove의 r인 것 같은데.
$ pax11publish -help pax11publish [-D display] [-S server] [-O sink] [-I source] [-c file] [-d|-e|-i|-r]
-d X11 디스플레이에 연결된 최신 PulseAudio 데이터 표시 (기본값) -e X11 디스플레이에 로컬 PulseAudio 데이터를 내보내기 -i X11 디스플레이에서 로컬 환경 변수 및 쿠키 파일에 PulseAudio 데이터 가져오기. -r X11 디스플레이에서 PulseAudio 데이터 삭제 |
이걸 한다고 해서 SSH client 쪽으로 소리가 나는 것도 아니고.. 애매하네
$ man pax11publish pax11publish(1) General Commands Manual pax11publish(1)
NAME pax11publish - PulseAudio X11 Credential Utility
SYNOPSIS pax11publish -h pax11publish [options] [-d] pax11publish [options] -e pax11publish [options] -i pax11publish [options] -r
DESCRIPTION The pax11publish utility can be used to dump or manipulate the PulseAu‐ dio server credentials that can be stored as properties on the X11 root window.
Please note that the loadable module module-x11-publish exports the same information directly from the PulseAudio sound server, and should in most cases be used in preference over this tool.
Use the following command to dump the raw PulseAudio-specific data that is stored in your X11 root window:
xprop -root | grep ^PULSE_
OPTIONS -h Show help.
-d Read the PulseAudio server credentials currently set on the X11 root window and dump them in a human readable form. This reads the PULSE_SERVER, PULSE_SINK, PULSE_SOURCE and PULSE_COOKIE properties.
-i Similar to -d, however dumps them in a Bourne shell compatible format so they may be used together with the eval shell command to set the $PULSE_SERVER, $PULSE_SINK, $PULSE_SOURCE environment variables. Also reads the authentication cookie from the root window and stores it in ~/.config/pulse/cookie.
-e Export the currently locally used sound server, sink, source configuration to the X11 root window. This takes the data from the $PULSE_SERVER, $PULSE_SINK, $PULSE_SOURCE environment vari‐ ables and combines them with the data from ~/.con‐ fig/pulse/client.conf (or /etc/pulse/client.conf if that file does not exist). If specific options are passed on the command line (-S, -O, -I, -c, see below), they take precedence. Also up‐ loads the local authentication cookie ~/.config/pulse/cookie to the X11 server.
-r Removes the configured PulseAudio configuration from the X11 root window.
-D DISPLAY Connect to the specified X11 display, instead of the default one configured in $DISPLAY.
-S SERVER Only valid for -e: export the specified PulseAudio server as de‐ fault to the X11 display instead of the one configured via local configuration.
-O SINK Only valid for -e: export the specified sink as default sink to the X11 display instead of the one configured via local configu‐ ration.
-I SOURCE Only valid for -e: export the specified source as default to the X11 display instead of the one configured via local configura‐ tion.
-c FILE Only valid for -e: export the PulseAudio authentication cookie stored in the specified file to the X11 display instead of the one stored in ~/.config/pulse/cookie.
AUTHORS The PulseAudio Developers <pulseaudio-discuss (at) lists (dot) freedesktop (dot) org>; PulseAudio is available from http://pulseau‐ dio.org/
SEE ALSO pulseaudio(1), xprop(1)
Manuals User pax11publish(1)
|