Things to do with a fresh installation of CentOS 7.
Hi there,
I am looking for proper ways to use CentOS 7. Yes, I have use different linux distributions before, but this is my first time using CentOS 7. I performed fresh installation of Gnome Desktop from CentOS-7-x86_64-Everything-1804.iso just last night. Here are the steps that I have done. 1. sudo yum update -y 2. sudo yum upgrade -y 3. sudo yum install nano I tried getting the most recent version of the kernel available. 4. sudo rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org 5. sudo rpm -Uvh http://www.elrepo.org/elrepo-release- 7.0-3.el7.elrepo.noarch.rpm 6. sudo yum --disablerepo="*" --enablerepo="elrepo-kernel" list available 7. sudo yum --enablerepo=elrepo-kernel install kernel-ml 8. I rebooted and chose the most recent kernel from the grub menu. 9. sudo yum update -y I started adding necessary repositories that I found on the internet. 10. sudo yum install epel-release 11. wget https://rpms.remirepo.net/enterprise/remi-release-7.rpm 12. sudo rpm -Uvh remi-release-7.rpm 13. sudo rpm -Uvh http://li.nux.ro/download/nux/dextop...nux.noarch.rpm 14. sudo rpm -Uvh http://mirror.ghettoforge.org/distri...el7.noarch.rpm 15. sudo rpm --import http://wiki.psychotic.ninja/RPM-GPG-KEY-psychotic 16. sudo rpm -ivh http://packages.psychotic.ninja/6/ba...tic.noarch.rpm 17. sudo rpm -Uvh https://centos7.iuscommunity.org/ius-release.rpm 18. sudo yum install vlc I installed Microsoft Fonts. 19.sudo yum install curl cabextract xorg-x11-font-utils fontconfig 20. sudo rpm -i https://downloads.sourceforge.net/pr...6-1.noarch.rpm 21. sudo rpm -ivh http://linuxdownload.adobe.com/adobe...0-1.noarch.rpm 22. sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux 23. sudo yum install flash-plugin alsa-plugins-pulseaudio libcurl 24. wget https://go.skype.com/skypeforlinux-64.rpm 25. sudo yum localinstall skypeforlinux-64.rpm 26. sudo wget -O /etc/yum.repos.d/playonlinux.repo http://rpm.playonlinux.com/playonlinux.repo 27. sudo yum install playonlinux 28. sudo yum install blender I heard I need the steps below for Multimedia. 29. sudo yum install vlc smplayer ffmpeg HandBrake-{gui,cli} 30. sudo yum install libdvdcss gstreamer{,1}-plugins-ugly gstreamer-plugins-bad-nonfree gstreamer1-plugins-bad-freeworld My questions to you are below. 1. Since this is CentOS 7, what do you use the two repositories below for, from RPMFusion? I notice I can get VLC from Nux-Dextop. sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free...e-7.noarch.rpm sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/nonf...e-7.noarch.rpm2. Do you prefer software from Nux-Dextop, RPMFusion, or FlatHub(https://www.flathub.org/home)? I heard the software from Nux-Dextop should perform best for CentOS 7, because it would execute natively, while software from FlatHub would execute in container. 3. Someone told me software from Nux-Dextop is much older version than RPMFusion, because no one maintains it. Is this fact true? Should I use RPMFusion instead of Nux-Dextop? 4. I am looking for steps to install Nvidia 304, for Legacy GeForce 6/7, which is EOL. However, I also heard that this driver 304 would be implemented natively within Nouveau soon. Is this fact true? Thank you. |
the first thing you did is you set up "sudo" that is a ubuntu fetish
RHEL/Cent uses "su -" by default so other than what you have done is read the cent wiki about the repos https://wiki.centos.org/AdditionalRe...s/Repositories install and CONFIGURE the yum plugin "Priorities" https://wiki.centos.org/PackageManag...Yum/Priorities |
Quote:
Quote:
Also the "nux-dextop" repo should not overwrite base packages for CentOS. RPMFusion could overwrite base packages. Quote:
Quote:
The nouveau driver is the open-source driver for NVIDIA based graphics, NVIDIA doesn't release an open-source driver. So no, if I'm understanding you right, then no, I don't think it is. I do have to agree with John VV about sudo, just because Ubuntu uses it, it doesn't mean every other distribution does - CentOS by default doesn't. |
Thank you so much for helping me. Your replies look very interesting. Please allow me to do analysis on the repositories that I have, and I will add the priorities to them next.
However, at this point, I do not understand why the two lines below give me two different results. # uname -r 4.19.1-1.el7.elrepo.x86_64 # rpm -q kernel-devel kernel-devel-3.10.0-862.el7.x86_64 kernel-devel-3.10.0-862.14.4.el7.x86_64 I read your Nvidia post, and I really want to proceed with installing Nvidia driver. Here is the additional information. # nvidia-detect kmod-nvidia-304xx Code:
# yum --enablerepo=elrepo-kernel install kernel-ml-devel kernel-ml-headers Code:
# yum --enablerepo=elrepo-kernel install kernel-ml* |
Quote:
Quote:
As highlighted above, if you would like to use the .run script/installer instead; it appears that you already have the required kernel-ml packages installed for it to be able to build the driver on your local system. You'll need to make sure that you kill the graphical environment before trying to install the NVIDIA driver, and that you have gcc, etc installed, so the system can build the driver. |
Quote:
*touches wood* |
Hi everyone,
I decided to try installing Nvidia Driver from this "Run" file. However, it failed. Here are the steps that I have done. 1. su - 2. nano /etc/default/grub Code:
GRUB_TIMEOUT=5 4. nano /etc/modprobe.d/blacklist.conf Code:
blacklist nouveau 6. I rebooted my notebook. 7. yum groupinstall "Development Tools" I checked that nouveau is no longer in use. 8. lshw -numeric -C display Code:
*-display UNCLAIMED 9. systemctl isolate multi-user.target 10. bash NVIDIA-Linux-x86_64-304.137.run However, it would failed at the step 10, with the message "The script failed. Please check Nvidia.log for details". Now, I tried installing Nvidia driver from El. 1. Rebooted my notebook. 2. yum install kmod-nvidia-304xx Code:
Loaded plugins: fastestmirror, langpacks, priorities |
I'd strongly emphasise John's recommendation (#2) to install and use yum_priorities. If you don't, some repository may overwrite a base installation library, and all hell may break out!
|
Okay. I tried the following, just now, because I do not need these two kernels any more.
1. yum remove kernel-3.10.0-862.el7.x86_64 2. yum remove kernel-3.10.0-862.14.4.el7.x86_64 Now, since I do not know how to work with yum-priority, I tried the following. 3. sudo yum --disablerepo="*" --enablerepo=elrepo-kernel,elrepo install kmod-nvidia-304xx But I still have these error messages near the end. Code:
--> Finished Dependency Resolution Should I stop using "kernel-ml-4.19.1-1.el7.elrepo.x86_64", and change to "kernel-lt-4.4.163-1.el7.elrepo.x86_64"? How would I do that? |
Quote:
|
A friend of mine told me I should do the following.
1. yum --disablerepo="*" --enablerepo="elrepo-kernel" list available Code:
Loaded plugins: fastestmirror, langpacks, priorities Code:
Loaded plugins: fastestmirror, langpacks, priorities 4. Rebooted. 5. yum --disablerepo="*" --enablerepo="elrepo-kernel" install kernel-lt* Code:
Loaded plugins: fastestmirror, langpacks, priorities Code:
Loaded plugins: fastestmirror, langpacks, priorities Code:
Loaded plugins: fastestmirror, langpacks, priorities 9. Rebooted. |
Here is the additional step.
yum --disablerepo="*" --enablerepo="elrepo-kernel" install kernel-lt* Quote:
|
Upon removing and reinstalling different kernel, both kernel-ml and kernel-lt, I can't get my Nvidia driver to work.
My questions that I have now are. 1. What are the difference between kernel-ml and kernel-lt? I can tell now that both of them is from "elrepo" re pository. 2. Can one system use both kernel-ml and kernel-lt by installing it through "yum --disablerepo="*" --enablerepo="elrepo" install kernel*"? Do you use only one of them? Which one do you recommend? I will also start my notebook fresh with CentOS 7 soon. |
It sounds like you have taken a wrong turn somewhere and it's all gone downhill from there. Without repeating myself too much, a few things:
* You already have kernel-ml installed along with the required development packages if you want to use the .run script/installer file. It's just a question whether or not you also have gcc, make, etc installed - which is very easy to find out (yum info gcc - or "make" instead of "gcc", etc). Then as long as you have gcc, make, etc installed, and you've killed the graphical environment, as in: it's *not* running, then you should be able to install the driver from the .run script/installer. You may have missed the following: Quote:
* If you want to install it via the software package instead, then you don't need dkms, because as long as you make sure the kmod-nvidia-304xx package is also updated along with the rest of the packages, then the driver is already built and updated along with the rest of the system (provided you have also made sure the kernel package has also been updated). * As far as yum priorities are concerned; it's only important if you're using software repositories that may overwrite base packages - "base packages" meaning packages from the official CentOS software repositories and more precisely the "base" repository itself. So once again and as mentioned in the link to CentOS's wiki for it's repositories page, the "nux-dextop" repo is the safer choice, because it will not overwrite base packages. RPMFusion will. I haven't setup yum priorities on my CentOS 7.5 system and I've never had a problem because I use the "nux-dextop" repo myself. So unless you are planning on using software repo's that may/will overwrite base packages, it's probably not likely that you'll have a problem. The kernel-lt packages is explained on the elrepo site. From http://elrepo.org/tiki/kernel-lt Quote:
Remember to do what my signature below says when you're finished. |
Thank you everyone. I learn a lot. Now, that I am starting from fresh installation again, it is possible to run "yum update -y", during the installation correct? I see "Addition Repositories" checkboxes in Anaconda a little while ago.
How do you get the most recent update during the installation from Anaconda? Thank you. |
All times are GMT -5. The time now is 07:27 AM. |