- WIFI & Network
sudo apt install -y build-essential
sudo apt update
sudo apt install -y vim
sudo apt-get install -y git
- Download necessary packages
sudo add-apt-repository ppa:canonical-hwe-team/backport-iwlwifi
sudo apt-get update
sudo apt-get install backport-iwlwifi-dkms
reboot
- Install Network Driver
mkdir -p ~/Package/Network
cd ~/Package/Network
git clone https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/backport-iwlwifi.git
cd backport-iwlwifi
make defconfig-iwlwifi-public
sed -i 's/CPTCFG_IWLMVM_VENDOR_CMDS=y/# CPTCFG_IWLMVM_VENDOR_CMDS is not set/' .config
sudo make
cd ../
git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
cd linux-firmware
sudo cp iwlwifi-* /lib/firmware/
cd ../backport-iwlwifi
sudo make install
Reference:
https://blog.csdn.net/xinguihu/article/details/103738717/
- Install NVIDIA-SMI for graphic card
https://blog.csdn.net/jiangchuanhu/article/details/94381622
tested environments
- cuda安装,下载cuda最新版deb包
sudo dpkg -i ./xxx.deb
run the last command in the reported log
sudo apt install cuda
reboot
不可行,可以安装成功,并且可以驱动的上,但是启动后显示黑屏
- ppa安装,先放弃cuda只安装nvidia。
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
ubuntu-drivers devices # install the recommended version
sudo apt install nvidia-driver-455
sudo reboot
仍然不行。
在etc/default/grub
中设置nouveau.modeset=0
以及 no
之后 sudo update-grub
sudo vim /etc/modprobe.d/blacklist.conf
中添加
blacklist nouveau
options nouveau modeset=0
也不行。
之后sudo update-initramfs -u
仍然启动后停留在一大堆[OK]下。
https://blog.csdn.net/m0_45388819/article/details/109411904
这篇博客上说是版本的问题,ok我下面尝试一下不升级内核,就采用旧版内核看看是否出现这个问题。
ubuntu的图形管理命令:
sudo apt-get install lightdm
sudo apt-get install gdm3
删除指令
sudo apt-get remove lightdm
sudo apt-get remove gdm3
先试一下gdm3行不行,再不行试一下lightdm行不行,都不行重新安装不升级的18.04.2LTS