Browse Source

add pulseaudio service

Signed-off-by: surenyi <surenyi82@163.com>
master
surenyi 4 months ago
parent
commit
d349918ea6
  1. BIN
      pdf/rk3588_guide.pdf
  2. 26
      tex/ubuntu.tex

BIN
pdf/rk3588_guide.pdf

Binary file not shown.

26
tex/ubuntu.tex

@ -155,6 +155,32 @@ TimedLoginEnable=true
TimedLogin=ubuntu
TimedLoginDelay=10
\end{minted}
\item 设置 pulseaudio 音频服务 (可选):
添加文件 \texttt{/etc/systemd/system/pulseaudio.service}:
\begin{minted}[bgcolor=lightgray!30,fontsize=\scriptsize]{ini}
[Unit]
Description=PulseAudio system server
# DO NOT ADD ConditionUser=!root
[Service]
Type=notify
ExecStart=pulseaudio --daemonize=no --system --realtime --log-target=journal
Restart=on-failure
[Install]
WantedBy=multi-user.target
\end{minted}
然后执行命令:
\begin{minted}[bgcolor=lightgray!30,fontsize=\scriptsize]{ini}
systemctl --system enable --now pulseaudio.service
\end{minted}
添加以下内容到 \texttt{/etc/pulse/client.conf}文件中:
\begin{minted}[bgcolor=lightgray!30,fontsize=\scriptsize]{ini}
default-server = /var/run/pulse/native
autospawn = no
\end{minted}
将用户添加到 \texttt{pulse-access}组中。
\item 设置网络参数/etc/network/interfaces.d/eth0
\begin{minted}[bgcolor=lightgray!30,fontsize=\scriptsize]{ini}
auto eth0

Loading…
Cancel
Save