biji/wenti.tex

122 lines
4.5 KiB
TeX
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

\documentclass[a4paper,12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[UTF8]{ctex}
\usepackage{xcolor}
%\setmainfont{Noto Serif CJK SC}
%\setmainfont{FangSong}
\setmainfont{SimSun}
%\fontsize{16pt}
% Title Page
\title{需要解决的问题}
\author{行走的芦苇}
\begin{document}
\maketitle
\begin{abstract}
我打算通过这本文档记录通过问题驱动的方式学习的历程。
\end{abstract}
\section{技术}
\subsection{如何下载cuda 12.4}
https://developer.nvidia.com/cuda-toolkit-archive 该网址是所有官方下载网址的入口
\subsection{qt5.15.14在linux环境编译}
问题的出处在于编译后SimpleView测试代码无法运行显示缺少xcb插件。
\subsection{slurm使用}
\begin{itemize}
\item sacct:显示激活的或已完成的作业或作业步的记账
\item salloc为需实时处理的作业分配资源
\item sattach:吸附到运行中的作业步的标准输入、输出或出错通过吸附使得有能力监控运行中的作业步的IO等。
\item sbatch提交作业脚本使其运行
\item scancel取消排除或运行中作业或作业步还可用于发送任意信号到运行中的作业或作业步中的所有进程
\item scontrol:显示或设定slurm作业、队列、节点等状态
\item sinfo:显示队列或节点状态,具有非常多过滤、排序和格式化等选项
\item squeue:显示队列中的作业及作业步状态
\item srun实时交互运行并行作业
\end{itemize}
节点操作:
\begin{verbatim}
scontrol update nodename=c0 state=drain reason=""
scontrol update nodename=c0 state=idle
scontrol update nodename=c0 state=down reason=""
scontrol update nodename=c0 state=resume
scontrol show partition
scontrol show job
scontrol show node
scontrol show config
scontrol reconfig
\end{verbatim}
用户操作:
\begin{verbatim}
sacctmgr show user
sacctmgr add user username DefaultAccount=accountname Qos=qosname
sacctmgr modify user username set Qos=qosname
sacctmgr delete user username
\end{verbatim}
多多软件站www.ddooo.com\\
\subsection{查询opengl版本}
\begin{itemize}
\item 安装mesa-utils或x11-utils软件包
\item 执行glxinfo
\end{itemize}
如何更新rockey linux 8.10 ,采用本地库与远程库同步的方式:
确保你的系统已经安装了必要的工具,如 yum-utils 和 createrepo。如果尚未安装可以使用以下命令进行安装sudo dnf install yum-utils createrepo
在本地创建一个目录,用于存放从远程仓库同步下来的软件包。例如,创建 /data/rocky810_repo 目录sudo mkdir -p /data/rocky810_repo
使用 reposync 命令将 Rocky Linux 8.10 的远程仓库同步到本地。reposync 是 yum-utils 包中的一个工具,用于从远程 YUM 仓库下载软件包及其元数据。如果你想同步所有可用的 Rocky Linux 8.10 仓库可以使用以下命令sudo reposync -g -l -d -m --newest-only --download-metadata -p /data/rocky810_repo
-g下载组文件有助于进行软件包分组管理。
-l允许下载不在标准位置的软件包。
-d下载额外的元数据文件。
-m下载源 RPM 包(如果有)。
--repoid指定要同步的仓库 ID。
--newest-only只下载每个软件包的最新版本。
--download-metadata下载仓库的元数据文件。
-p指定下载的软件包和元数据文件存放的本地目录。
同步完成后,需要使用 createrepo 命令为本地仓库生成元数据,以便系统能够识别和使用本地仓库。针对每个同步的仓库目录执行以下命令:
sudo createrepo /data/rocky810_repo/baseos
sudo createrepo /data/rocky810_repo/appstream
创建一个新的 .repo 文件,用于配置本地仓库。可以使用文本编辑器(如 vi 或 nano创建并编辑 /etc/yum.repos.d/rocky810-local.repo 文件sudo vi /etc/yum.repos.d/rocky810-local.repo
在文件中添加以下内容:
[rocky810-local-baseos]
name=Rocky Linux 8.10 Local BaseOS Repository
baseurl=file:///data/rocky810_repo/baseos
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial
[rocky810-local-appstream]
name=Rocky Linux 8.10 Local AppStream Repository
baseurl=file:///data/rocky810_repo/appstream
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial
配置完成后,使用以下命令清除缓存并重新生成元数据缓存,然后查看仓库列表,验证本地仓库是否配置成功:
sudo dnf clean all
sudo dnf makecache
sudo dnf repolist
\section{}
\end{document}