Skip to content

Commit

Permalink
补充用 PPA 反向代理安装 TeXstudio 的方法
Browse files Browse the repository at this point in the history
  • Loading branch information
OsbertWang committed Oct 23, 2020
1 parent 0381ce9 commit 038281a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions appendix/updateinfo.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ \section*{v2020.11.1}
\begin{enumerate}
\item Overleaf 后台更新为 \TeX Live 2020
\item 补充卸载方法
\item 补充 PPA 反向代理安装 \TeX Studio 的方法
\end{enumerate}

\section*{v2020.10.1}
Expand Down
25 changes: 25 additions & 0 deletions chapter/editor.tex
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,31 @@ \section{Ubuntu 20.04 系统}
sudo apt-get update
sudo apt-get install texstudio
\end{lstlisting}
鉴于网络原因,
直接从 PPA 下载容易丢包.
这里介绍中科大的\href{https://lug.ustc.edu.cn/wiki/mirrors/help/revproxy/}{反向镜像},
\begin{lstlisting}[language = bash]
/etc/apt/sources.list.d/
\end{lstlisting}
中文件的内容
\begin{lstlisting}
http(s)://ppa.launchpad.net
\end{lstlisting}
改为
\begin{lstlisting}
https://launchpad.proxy.ustclug.org
\end{lstlisting}
而后再
\begin{lstlisting}[language = bash]
sudo apt update
\end{lstlisting}
即完成换源.
有时地址太多而逐个换太麻烦,
可以直接使用如下命令直接替换\footnote{参见 \url{https://mogeko.me/2018/035/}}
\begin{lstlisting}[language = bash]
sudo find /etc/apt/sources.list.d/ -type f -name "*.list" -exec sed -i.bak -r 's#deb(-src)?\s*http(s)?://ppa.launchpad.net#deb\1 https\2://launchpad.proxy.ustclug.org#ig' {} \;
\end{lstlisting}

安装完毕后,
用户可以在 \textsf{Terminal} 中执行
Expand Down

0 comments on commit 038281a

Please sign in to comment.