Fedora: Difference between revisions

From Leo's Notes
This page was last edited on 12 May 2019, at 22:23.
m Leo moved page Fedora 20 Notes to Fedora without leaving a redirect: General Fedora notes rather than 20 specific
No edit summary
Line 1: Line 1:
Here're some stuff I'm noting while I work with Fedora 20.


== Disabling Nouveau Drivers ==
== Updating ==
 
Updating to a different release involves first updating the system, and then using the {{code|system-upgrade}} command.
 
{{highlight|lang=terminal|code=
# yum -y update
# dnf system-upgrade download --refresh --releasever=30
# dnf system-upgrade reboot
}}
 
See: https://fedoraproject.org/wiki/DNF_system_upgrade#How_do_I_use_it.3F
 
== Other ==
 
=== Disabling Nouveau Drivers ===


As mentioned at https://ask.fedoraproject.org/en/question/23982/how-to-disable-nouveau-in-fedora-18/, to disable the nouveau drivers (needed to install the nvidia drivers), you have to modify the initramfs image using dracut.
As mentioned at https://ask.fedoraproject.org/en/question/23982/how-to-disable-nouveau-in-fedora-18/, to disable the nouveau drivers (needed to install the nvidia drivers), you have to modify the initramfs image using dracut.


dracut --force --omit-drivres nouveau /boot/initramfs-$(uname -r) $(uname -r)
{{highlight|lang=terminal|code=
# dracut --force --omit-drivres nouveau /boot/initramfs-$(uname -r) $(uname -r)
}}


I tried to do the usual modprobe.d to black list nouveau, but it didn't seem to work. I even added nomodeset on to the grub kernel cmdline but that also didn't seem to work...
I tried to do the usual modprobe.d to black list nouveau, but it didn't seem to work. I even added nomodeset on to the grub kernel cmdline but that also didn't seem to work...


== Systemd ==
=== Grub2 Configuration ===
 
Surprisingly, systemd managed to see my existing CPSC init script and tried to run it as a service. For some reason though, it failed to read my list of scripts and thus the service failed.
 
== Grub2 ==


Grub configuration needs to be updated by running
Grub configuration needs to be updated by running


grub2-mkconfig -o /boot/grub2/grub.cfg
{{highlight|lang=terminal|code=
# grub2-mkconfig -o /boot/grub2/grub.cfg
}}


The main grub configuration file is at {{code|/etc/default/grub}}. You must remake the configratuion for grub after you edit this file.
The main grub configuration file is at {{code|/etc/default/grub}}. You must remake the configratuion for grub after you edit this file.


== Changing Runlevels ==
Instead of using {{code|init 5}}:
systemctl isolate graphical.target
or {{code|init 3}}:
systemctl isolate multi-user.target


[[Category:Linux]]
[[Category:Linux]]

Revision as of 22:23, 12 May 2019

Updating

Updating to a different release involves first updating the system, and then using the system-upgrade command.

# yum -y update
# dnf system-upgrade download --refresh --releasever=30
# dnf system-upgrade reboot

See: https://fedoraproject.org/wiki/DNF_system_upgrade#How_do_I_use_it.3F

Other

Disabling Nouveau Drivers

As mentioned at https://ask.fedoraproject.org/en/question/23982/how-to-disable-nouveau-in-fedora-18/, to disable the nouveau drivers (needed to install the nvidia drivers), you have to modify the initramfs image using dracut.

# dracut --force --omit-drivres nouveau /boot/initramfs-$(uname -r) $(uname -r)

I tried to do the usual modprobe.d to black list nouveau, but it didn't seem to work. I even added nomodeset on to the grub kernel cmdline but that also didn't seem to work...

Grub2 Configuration

Grub configuration needs to be updated by running

# grub2-mkconfig -o /boot/grub2/grub.cfg

The main grub configuration file is at /etc/default/grub. You must remake the configratuion for grub after you edit this file.