2019年12月12日 星期四

CentOS 相關

=== Disable eth0 interface rename enp0s1=== 
boot add "net.ifnames=0"


=== Update Grub === CSM:
# grub2-mkconfig -o /boot/grub2/grub.cfg

UEFI:

grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg

2019年11月25日 星期一

Ubuntu 安裝 Nvidia 驅動程式

Ubuntu 站台上的Nvidia驅動有時無法支援較新的顯示卡時, 可以透過加入ppa或官網下載.run檔來安裝

透過ppa安裝方式如下:
$ sudo add-apt-repository ppa:graphics-drivers/ppa 
$ sudo apt-get update
$ sudo apt-get install nvidia-driver-418

2019年3月4日 星期一

Disable systemd-udevd renamed network interface

Linux OS有時侯會出現eth0&eth1被系統改名為p3p1&p1p1
[    8.159878] systemd-udevd[190]: renamed network interface eth0 to p3p1
[    8.163860] systemd-udevd[193]: renamed network interface eth1 to p1p1

可以在boot command加入 net.ifnames=0 biosdevname=0 參數就能關掉 rename 功能, 使用原本的eth0&eth1

Fedora 18 下修改方式:
# vim /etc/default/grub
GRUB_CMDLINE_LINUX=".... net.ifnames=0 biosdevname=0
# grub2-mkconfig -o /boot/grub2/grub.cfg
# reboot