[Desktop Entry] Name=Clash For Windows Name[zh_CN]=Clash For Windows Comment=Clash For Windows Comment[zh_CN]=Clash For Windows Exec=/opt/clash/cfw --no-sandbox Terminal=false Icon=/opt/clash/clash.jpeg Categories=Development Type=Application
{ echo"Starting auto mount script" mkdir -p /media/takagisan/Storage mount UUID=7152E432F736F985 /media/takagisan/Storage echo"Finished auto mount script" } > /home/takagisan/myfiles/auto_mount.log 2>&1
官网
选择合适的 CUDA ,然后选择 Installer Type 为
runfile(local) ,这个比较方便可控。然后根据指导即可。
比如 12.4 的:
1 2
wget https://developer.download.nvidia.com/compute/cuda/12.4.0/local_installers/cuda_12.4.0_550.54.14_linux.run sudo sh cuda_12.4.0_550.54.14_linux.run
遇到提示存在已有的installer,选择 continue 。
注意如果不想再安装N卡驱动,就取消勾选 Driver
,由于前面一般都装好了驱动,所以取消勾选。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
$ sudo sh cuda_12.4.0_550.54.14_linux.run 请把您的手指放在指纹读取器上 =========== = Summary = ===========
Driver: Not Selected Toolkit: Installed in /usr/local/cuda-12.4/
Please make sure that - PATH includes /usr/local/cuda-12.4/bin - LD_LIBRARY_PATH includes /usr/local/cuda-12.4/lib64, or, add /usr/local/cuda-12.4/lib64 to /etc/ld.so.conf and run ldconfig as root
To uninstall the CUDA Toolkit, run cuda-uninstaller in /usr/local/cuda-12.4/bin ***WARNING: Incomplete installation! This installation did not install the CUDA Driver. A driver of version at least 550.00 is required for CUDA 12.4 functionality to work. To install the driver using this installer, run the following command, replacing <CudaInstaller> with the name of this run file: sudo <CudaInstaller>.run --silent --driver
解决
CUDA 12.1 与 GCC 13.2、12.3.0 的兼容性问题导致 CUDA 编译报错:
报错信息如下:
第一种是使用 Ubuntu 24.04 默认预装的 GCC 13.2
时报错编译器版本不兼容:
1 2 3 4
/usr/local/cuda-12.1/include/crt/host_config.h:132:2: error: #error -- unsupported GNU version! gcc versions later than 12 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk. 132 | #error -- unsupported GNU version! gcc versions later than 12 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk. | ^~~~~ error: command'/usr/local/cuda-12.1/bin/nvcc' failed with exit code 1
# # /etc/pam.d/common-auth - authentication settings common to all services # # This file is included from other service-specific PAM config files, # and should contain a list of the authentication modules that define # the central authentication scheme for use on the system # (e.g., /etc/shadow, LDAP, Kerberos, etc.). The default is to use the # traditional Unix authentication mechanisms. # # As of pam 1.0.1-6, this file is managed by pam-auth-update by default. # To take advantage of this, it is recommended that you configure any # local modules either before or after the default block, and use # pam-auth-update to manage selection of other modules. See # pam-auth-update(8) for details. auth sufficient pam_fprintd.so # here are the per-package modules (the "Primary" block) auth [success=2 default=ignore] pam_unix.so nullok auth [success=1 default=ignore] pam_sss.so use_first_pass # here's the fallback if no module succeeds auth requisite pam_deny.so # prime the stack with a positive return value if there isn't one already; # this avoids us returning an error just because nothing sets a success code # since the modules above will each just jump around auth required pam_permit.so # and here are more per-package modules (the "Additional" block) auth optional pam_cap.so # end of pam-auth-update config
# When UsePercentageForPolicy is true, the levels at which UPower will # consider the battery low, critical, or take action for the critical # battery level. # # This will also be used for batteries which don't have time information # such as that of peripherals. # # If any value is invalid, or not in descending order, the defaults # will be used. # # Defaults: # PercentageLow=20 # PercentageCritical=5 # PercentageAction=2 PercentageLow=99 # 把这里的值改为99 PercentageCritical=5 PercentageAction=2