<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Ubuntu on moyutianzun 的博客</title><link>https://moyutianzun.com/tags/ubuntu/</link><description>Recent content in Ubuntu on moyutianzun 的博客</description><generator>Hugo</generator><language>zh-cn</language><copyright>moyutianzun</copyright><lastBuildDate>Thu, 14 Aug 2025 16:21:13 +0800</lastBuildDate><atom:link href="https://moyutianzun.com/tags/ubuntu/index.xml" rel="self" type="application/rss+xml"/><item><title>WSL2搭建cuda-triton开发环境</title><link>https://moyutianzun.com/blog/wsl2%E6%90%AD%E5%BB%BAcuda-triton%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83/</link><pubDate>Thu, 14 Aug 2025 16:21:13 +0800</pubDate><guid>https://moyutianzun.com/blog/wsl2%E6%90%AD%E5%BB%BAcuda-triton%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83/</guid><description>&lt;p style=""&gt;先用了vmware + ubuntu的方法，结果发现现在gpu无法透传到vmware的虚拟机里&lt;/p&gt;&lt;p style=""&gt;&lt;/p&gt;&lt;p style=""&gt;故此使用wsl2的开发环境，后续会更新许多更舒服丝滑的操作&lt;/p&gt;&lt;p style=""&gt;&lt;/p&gt;&lt;h1 style="" id="wsl2"&gt;&lt;strong&gt;WSL2&lt;/strong&gt;&lt;/h1&gt;&lt;p style=""&gt;查看所有发行版本&lt;/p&gt;&lt;pre&gt;&lt;code&gt;wsl --list --online
&lt;/code&gt;&lt;/pre&gt;&lt;p style=""&gt;安装指定版本&lt;/p&gt;&lt;pre&gt;&lt;code&gt;wsl --install Ubuntu-22.04
&lt;/code&gt;&lt;/pre&gt;&lt;p style=""&gt;安装成功之后设置一下账户密码就行&lt;/p&gt;&lt;h2 style="" id="%E5%AE%89%E8%A3%85miniconda"&gt;&lt;strong&gt;安装miniconda&lt;/strong&gt;&lt;/h2&gt;&lt;p style=""&gt;用脚本安装&lt;/p&gt;&lt;pre&gt;&lt;code&gt;wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
&lt;p&gt;chmod +x Miniconda3-latest-Linux-x86_64.sh&lt;/p&gt;
&lt;p&gt;./Miniconda3-latest-Linux-x86_64.sh&lt;/p&gt;
&lt;p&gt;source ~/.bashrc&lt;/p&gt;
&lt;p&gt;conda list
&lt;/code&gt;&lt;/pre&gt;&lt;p style=""&gt;用脚本安装就一直yes就行&lt;/p&gt;&lt;h2 style="" id="%E5%AE%89%E8%A3%85cuda-toolkit-%E5%92%8C-cudnn"&gt;&lt;strong&gt;安装CUDA Toolkit 和 cudnn&lt;/strong&gt;&lt;/h2&gt;&lt;p style=""&gt;使用 nvidia-smi查看cuda版本，在下面链接选择相应的版本&lt;/p&gt;</description></item></channel></rss>