diff --git a/images/resize-disk.tar.xz b/images/resize-disk.tar.xz new file mode 100644 index 0000000..e83ff06 Binary files /dev/null and b/images/resize-disk.tar.xz differ diff --git a/pdf/rk3588_guide.pdf b/pdf/rk3588_guide.pdf index bf5f393..62b86dc 100644 Binary files a/pdf/rk3588_guide.pdf and b/pdf/rk3588_guide.pdf differ diff --git a/rk3588_guide.tex b/rk3588_guide.tex index 2ef920a..c71bcea 100644 --- a/rk3588_guide.tex +++ b/rk3588_guide.tex @@ -66,6 +66,7 @@ \usepackage{makecell} % \usepackage{xdufont} \usepackage[owncaptions,tablegrid]{vhistory} +\usepackage{attachfile2} \pgfplotsset{compat=newest} % \usepackage[ @@ -213,25 +214,26 @@ %\myclearpage \end{content} +\clearpage + +\embeddedfile[Change .pdf to .tar.xz]{resizedisk}[resize-disk.pdf]{images/resize-disk.tar.xz} + %\bibliographystyle{alpha} %\input{contents/biblio} -\clearpage +%\clearpage +{ +\hypersetup{linkcolor=black} %\listoftables -%\listoffigures - +\listoffigures %\printindex +} % endregion -% xelatex -%\embeddedfile[Remove pdf postfix of fmsh\_qspips\_sw.c.pdf]{fmshqspi}[fmsh_qspips_sw.c.pdf]{scripts/fmsh_qspips_sw.c} +%\textattachfile[description={Change .pdf to .tar.xz}, mimetype=application/pdf]{resize-disk.tar.xz}{} +\finishpdffile -% lualtex -%\embedfile[filespec=fmsh_qspips_sw.c.pdf,% -% mimetype=application/pdf,% -% desc={将文件另存为 fmsh\_qspips\_sw.c} ] {scripts/fmsh_qspips_sw.c} \end{document} -\embedfilefinish %%%% 正文部分结束 % Local Variables: diff --git a/tex/issue.tex b/tex/issue.tex index 495c2c6..6f67d6f 100644 --- a/tex/issue.tex +++ b/tex/issue.tex @@ -86,7 +86,7 @@ sysmem_dump_all: \caption{修改U-Boot 栈大小} \end{figure} -\section{网卡名固定成 ethX} +\section{网卡名固定成 ethX} \label{sec:fixethx} 网卡接口名称默认会根据文件: {\small /lib/udev/rules.d/80-net-setup-link.rules} 中定义的规则来。如果你要更改规则,需要先将文件:{\small 80-net-setup-link.rules} diff --git a/tex/ubuntu.tex b/tex/ubuntu.tex index 7061f60..80581de 100644 --- a/tex/ubuntu.tex +++ b/tex/ubuntu.tex @@ -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 安装软件: