Difference between revisions of "IT-OS-Config-CentOS"
Jump to navigation
Jump to search
Samerhijazi (talk | contribs) |
Samerhijazi (talk | contribs) m (Samerhijazi moved page IT-OS-CFG-CentOS to IT-OS-Config-CentOS without leaving a redirect) |
||
| (8 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| + | =Source= | ||
| + | * https://www.server-world.info/en/note?os=CentOS_8&p=download | ||
| + | =NVIDIA-Driver= | ||
<pre class="code"> | <pre class="code"> | ||
| + | sudo dnf groupinstall "Development Tools" | ||
| + | sudo dnf install epel-release elrepo-release | ||
| + | sudo dnf install kernel-devel | ||
| + | sudo dnf install dkms | ||
| + | ################################################# | ||
| + | sudo lshw -class display | ||
| + | ################################################# | ||
| + | sudo vi /etc/default/grub | ||
| + | |||
| + | # Append GRUB_CMDLINE_LINUX with following | ||
| + | # "modprobe.blacklist=nouveau" or "nouveau.modeset=0" | ||
| + | sudo grub2-mkconfig -o /boot/grub2/grub.cfg | ||
| + | # or | ||
| + | sudo grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg | ||
| + | sudo reboot | ||
| + | ################################################# | ||
| + | vi /etc/modprobe.d/blacklist-nouveau.conf | ||
| + | # blacklist nouveau | ||
| + | # options nouveau modeset=0 | ||
| + | dracut --force | ||
| + | reboot | ||
| + | ################################################# | ||
| + | sudo systemctl isolate multi-user.target | ||
| + | |||
| + | ################################################# | ||
| + | sudo bash NVIDIA-Linux-x86_64-410.78.run | ||
| + | sudo reboot | ||
| + | nvidia-settings | ||
| + | nvidia-smi | ||
| + | ################################################# | ||
| + | </pre> | ||
| + | |||
| + | =Mix= | ||
| + | * EPEL (Extra Packages for Enterprise Linux) | ||
| + | <pre class="code"> | ||
| + | $ yum search epel-release | ||
| + | $ yum info epel-release | ||
| + | $ yum install epel-release | ||
| + | ... | ||
$ ls /etc/network/interfaces | $ ls /etc/network/interfaces | ||
$ ls /etc/NetworkManager/NetworkManager.conf | $ ls /etc/NetworkManager/NetworkManager.conf | ||
$ ls /etc/sysconfig/network-scripts/ | $ ls /etc/sysconfig/network-scripts/ | ||
| + | $ yum --disablerepo=\* install /path/to/dvd/Packages/NetworkManager-wifi* | ||
| + | ... | ||
$ nmtui | $ nmtui | ||
$ nmcli general status | $ nmcli general status | ||
| Line 12: | Line 56: | ||
$ nmcli con add type ethernet con-name Myhome1 ifname enp0s3 | $ nmcli con add type ethernet con-name Myhome1 ifname enp0s3 | ||
$ nmcli dev wifi list | $ nmcli dev wifi list | ||
| − | + | ... | |
| − | ip link set enp12345 down | + | $ ip a |
| − | ip link set enp12345 name eth0 | + | $ ip link set enp12345 down |
| − | ip link set eth0 up | + | $ ip link set enp12345 name eth0 |
| + | $ ip link set eth0 up | ||
| + | ... | ||
| + | $ nmcli d | ||
| + | $ nmcli r wifi on | ||
| + | $ nmcli d wifi list | ||
| + | $ nmcli d wifi connect MazayaNetwork password <password> | ||
| + | $ nmcli c up <name> | ||
</pre> | </pre> | ||
Latest revision as of 15:03, 23 February 2022
Source
NVIDIA-Driver
sudo dnf groupinstall "Development Tools"
sudo dnf install epel-release elrepo-release
sudo dnf install kernel-devel
sudo dnf install dkms
#################################################
sudo lshw -class display
#################################################
sudo vi /etc/default/grub
# Append GRUB_CMDLINE_LINUX with following
# "modprobe.blacklist=nouveau" or "nouveau.modeset=0"
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
# or
sudo grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
sudo reboot
#################################################
vi /etc/modprobe.d/blacklist-nouveau.conf
# blacklist nouveau
# options nouveau modeset=0
dracut --force
reboot
#################################################
sudo systemctl isolate multi-user.target
#################################################
sudo bash NVIDIA-Linux-x86_64-410.78.run
sudo reboot
nvidia-settings
nvidia-smi
#################################################
Mix
- EPEL (Extra Packages for Enterprise Linux)
$ yum search epel-release $ yum info epel-release $ yum install epel-release ... $ ls /etc/network/interfaces $ ls /etc/NetworkManager/NetworkManager.conf $ ls /etc/sysconfig/network-scripts/ $ yum --disablerepo=\* install /path/to/dvd/Packages/NetworkManager-wifi* ... $ nmtui $ nmcli general status $ nmcli general hostname geeklab.example.com $ nmcli d $ nmcli r wifi on $ nmcli d wifi list $ nmcli connection add type ethernet con-name connection-name ifname interface-name $ nmcli con add type ethernet con-name Myhome1 ifname enp0s3 $ nmcli dev wifi list ... $ ip a $ ip link set enp12345 down $ ip link set enp12345 name eth0 $ ip link set eth0 up ... $ nmcli d $ nmcli r wifi on $ nmcli d wifi list $ nmcli d wifi connect MazayaNetwork password <password> $ nmcli c up <name>