|
|
@ -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 |
|
|
|