Browse Source

add resize-disk.tar.xz script

Signed-off-by: surenyi <surenyi82@163.com>
master
surenyi 6 months ago
parent
commit
3d261e1c97
  1. BIN
      images/resize-disk.tar.xz
  2. BIN
      pdf/rk3588_guide.pdf
  3. 22
      rk3588_guide.tex
  4. 2
      tex/issue.tex
  5. 16
      tex/ubuntu.tex

BIN
images/resize-disk.tar.xz

Binary file not shown.

BIN
pdf/rk3588_guide.pdf

Binary file not shown.

22
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:

2
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}

16
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 安装软件:

Loading…
Cancel
Save