https://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/
PRE-INSTALLATION ACTIONS
Some actions must be taken before the CUDA Toolkit and Driver can be installed on
Linux:
‣ Verify the system has a CUDA-capable GPU.
‣ Verify the system is running a supported version of Linux.
‣ Verify the system has gcc installed.
‣ Verify the system has the correct kernel headers and development packages
installed.
‣ Download the NVIDIA CUDA Toolkit.
‣ Handle conflicting installation methods.
1 2 3 4 | lspci | grep -i nvidia uname -m && cat /etc/ *release gcc --version sudo dnf install kernel-devel-$( uname -r) kernel-headers-$( uname -r) |
As follows:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | [root@localhost ~] # lspci | grep -i nvidia 01:00.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 970] (rev a1) 01:00.1 Audio device: NVIDIA Corporation GM204 High Definition Audio Controller (rev a1) [root@localhost ~] # uname -m && cat /etc/*release x86_64 Fedora release 23 (Twenty Three) NAME=Fedora VERSION= "23 (Workstation Edition)" ID=fedora VERSION_ID=23 PRETTY_NAME= "Fedora 23 (Workstation Edition)" ANSI_COLOR= "0;34" CPE_NAME= "cpe:/o:fedoraproject:fedora:23" HOME_URL= "https://fedoraproject.org/" BUG_REPORT_URL= "https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT= "Fedora" REDHAT_BUGZILLA_PRODUCT_VERSION=23 REDHAT_SUPPORT_PRODUCT= "Fedora" REDHAT_SUPPORT_PRODUCT_VERSION=23 PRIVACY_POLICY_URL=https: //fedoraproject .org /wiki/Legal :PrivacyPolicy VARIANT= "Workstation Edition" VARIANT_ID=workstation Fedora release 23 (Twenty Three) Fedora release 23 (Twenty Three) [root@localhost ~] # gcc --version gcc (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [root@localhost ~] # uname -r 4.2.3-300.fc23.x86_64 [root@localhost ~] # gcc --version gcc (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [root@localhost ~] # sudo dnf install kernel-devel-$(uname -r) kernel-headers-$(uname -r) |
Disable nouveau and
1 2 3 4 5 6 | [root@localhost ~] # echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf [root@localhost ~] # vi /etc/sysconfig/grub [root@localhost ~] # grub2-mkconfig -o /boot/grub2/grub.cfg [root@localhost ~] # vi /etc/dnf/dnf.conf [root@localhost ~] # mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img [root@localhost ~] # dracut /boot/initramfs-$(uname -r).img $(uname -r) |
Reboot to runlevel 3
1 2 3 4 | [root@localhost ~] # systemctl set-default multi-user.target Removed symlink /etc/systemd/system/default .target. Created symlink from /etc/systemd/system/default .target to /usr/lib/systemd/system/multi-user .target. [root@localhost ~] # reboot |
1.开机按Ctrl+Alt+F5 进入字符界面
2.在root 下输入 yum list NVIDIA 查找安装的驱动名称
3.yum remove name
4.reboot
https://nmilosev.svbtle.com/fedora-24-bumblebee-nvidia-cuda-theano
systemctl set-default graphical.target
systemctl set-default multi-user.target
telinit 5
lsmod | grep nouveau
sudo sh cuda_8.0.27_linux.run --tmpdir=/opt/temp/ --no-opengl-libs
echo 'blacklist nouveau' >> /etc/modprobe.d/disable-nouveau.conf
echo 'nouveau modeset=0' >> /etc/modprobe.d/disable-nouveau.conf
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
2016-03-07 利用sklearn计算文本相似性