|
|
@ -103,18 +103,24 @@ Type=idle |
|
|
|
\begin{minted}[bgcolor=lightgray!30,fontsize=\scriptsize]{ini} |
|
|
|
systemctl enable serial-getty@ttyFIQ0.service |
|
|
|
\end{minted} |
|
|
|
\item 设置网络参数/etc/network/interfaces.d/eth1 |
|
|
|
\item 设置网络参数/etc/network/interfaces.d/eth0 |
|
|
|
\begin{minted}[bgcolor=lightgray!30,fontsize=\scriptsize]{ini} |
|
|
|
auto eth1 |
|
|
|
iface eth1 inet static |
|
|
|
auto eth0 |
|
|
|
iface eth0 inet static |
|
|
|
address 192.168.1.80 |
|
|
|
netmask 255.255.255.0 |
|
|
|
gateway 192.168.1.1 |
|
|
|
\end{minted} |
|
|
|
修改/etc/network/interfaces,执行命令: |
|
|
|
修改/etc/network/interfaces \footnote{这个步骤可选,默认的配置应该已经包含这个设置。},执行命令: |
|
|
|
\begin{minted}[bgcolor=lightgray!30,fontsize=\scriptsize]{bash} |
|
|
|
echo "source-directory /etc/network/interfaces.d"> /etc/network/interfaces |
|
|
|
echo "source-directory /etc/network/interfaces.d" > /etc/network/interfaces |
|
|
|
\end{minted} |
|
|
|
用这里 \ref{sec:fixethx} 的方法将网卡名固定为 ethX 。 |
|
|
|
\item 下载并安装附件的\openfilelink{resize-disk.pdf}{resize-disk} 脚本。 |
|
|
|
\begin{minted}[bgcolor=lightgray!30,fontsize=\scriptsize]{bash} |
|
|
|
tar xpvf resize-disk.tar.xz -C / |
|
|
|
\end{minted} |
|
|
|
|
|
|
|
\end{enumerate} |
|
|
|
\subsection{安装 ssh server} |
|
|
|
\noindent 安装软件: |
|
|
|