ubuntu22_04升级记录
安装deep wine系列
参考 https://github.com/zq1997/deepin-wine
2204直接安装即可
|
|
|
|
system load monitor
|
|
neovim && config
|
|
ffmpeg && youtube-dl && lux
|
|
docker
|
|
使用nvidia gpu的设置 https://cloud.tencent.com/developer/article/1924792
自动挂载sftp的目录
来自chatgpt~,使用时需要注意,目录名字不是18742038032,而是187XXXX8032 如果您想在Ubuntu启动时自动挂载sftp目录,可以通过使用SSHFS工具实现。 SSHFS是一个基于FUSE的工具,它可以通过SSH协议连接到远程服务器,并将远程文件系统挂载到本地文件系统上。
以下是实现自动挂载sftp目录的步骤:
- 安装SSHFS
首先,您需要安装SSHFS。在终端中输入以下命令进行安装:
|
|
- 创建本地目录
在本地文件系统上创建一个目录,用于挂载远程目录。您可以选择任何名称和位置。例如,我们将创建一个名为“remote_dir”的目录:
|
|
- 编辑/etc/fstab文件
打开/etc/fstab文件并在文件末尾添加以下行:
|
|
将“user”和“host”替换为您的远程服务器用户名和主机名。将“/remote/directory”替换为您要挂载的远程目录的路径。将“/path/to/local/mountpoint”替换为本地目录的路径,也就是在第2步中创建的目录。将“/path/to/private/key”替换为您的私钥文件的路径。
- 重新挂载文件系统
现在,您可以重新挂载文件系统以使更改生效。输入以下命令:
|
|
如果一切顺利,您应该可以在本地文件系统中看到挂载的远程目录了。
通过samba挂载极空间
首先安装 cmbclient
|
|
然后可以通过如下命令查看
|
|
通过如下命令挂载
|
|
写入fstab
|
|
安装cuda
To install CUDA on Ubuntu 22.04, follow these steps:
-
Download the CUDA toolkit installer from the NVIDIA website. You can find the latest version at https://developer.nvidia.com/cuda-downloads.
-
Open a terminal window and navigate to the directory where the CUDA installer was downloaded.
-
Make the installer executable by running the following command:
chmod +x cuda_<version>_linux.run
Replace
<version>
with the version number of the CUDA toolkit that you downloaded. -
Disable the Nouveau driver by creating a file in the
/etc/modprobe.d/
directory with the following content:blacklist nouveau options nouveau modeset=0
-
Update the initramfs by running the following command:
sudo update-initramfs -u
-
Reboot your computer.
-
Switch to a console terminal by pressing
Ctrl+Alt+F3
. -
Stop the X server by running the following command:
sudo service lightdm stop
-
Run the CUDA installer by running the following command:
sudo ./cuda_<version>_linux.run
Replace
<version>
with the version number of the CUDA toolkit that you downloaded. -
Follow the prompts in the installer to complete the installation.
-
Reboot your computer.
-
Verify that CUDA is installed correctly by running the following command:
nvcc --version
This should display the version number of the CUDA toolkit that you installed.