User Tools

Site Tools


linux64

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux64 [2025/12/30 14:18] – [Upgrade Fedora ... -> 35 -> 36 -> 37 -> 38 -> 39 -> 40 -> 41 -> 42] bengtlinux64 [2026/06/01 09:43] (current) – [Moving boot disk from sata to m.2] bengt
Line 49: Line 49:
 Standard users https://docs.fedoraproject.org/en-US/Fedora/14/html/Deployment_Guide/s1-users-groups-standard-users.html and groups https://docs.fedoraproject.org/en-US/Fedora/14/html/Deployment_Guide/s1-users-groups-standard-groups.html which seems to be lacking. Maybe because I did a workstation installation. Standard users https://docs.fedoraproject.org/en-US/Fedora/14/html/Deployment_Guide/s1-users-groups-standard-users.html and groups https://docs.fedoraproject.org/en-US/Fedora/14/html/Deployment_Guide/s1-users-groups-standard-groups.html which seems to be lacking. Maybe because I did a workstation installation.
  
-==== TBS 6280 PCIe DVB-T2 ==== 
- 
-A PCIe card for recording DVB-T2 TV. Linux driver support from the manufacturer, which means that you have to recompile it on kernel update. Official linux drivers can be downloaded at http://www.tbsdtv.com/download/ and open source at https://github.com/ljalves/linux_media/wiki/Installating. Visit https://www.tbsdtv.com/forum/viewtopic.php?f=87&t=25422 and http://www.tbsdtv.com/forum/viewforum.php?f=49 for a forum. 
- 
-You will need to disable secure boot in bios for uefi boot to load 3rd party drivers. Maybe solved by selecting "Other OS" instead of "Windows" in the boot options. 
- 
-Roughly following https://www.linuxtv.org/wiki/index.php/TBS_driver_installation#Installing_drivers I did like this as root top build and install official drivers (old): 
-  dnf install kernel-headers kernel-devel 
-  mkdir tbs 
-  cd tbs 
-  wget http://www.tbsiptv.com/download/common/tbs-linux-drivers_v170330.zip 
-  unzip tbs-linux-drivers_v170330.zip 
-  tar xvjf linux-tbs-drivers.tar.bz2 
-  cd linux-tbs-drivers/ 
-  ./v4l/tbs-x86_64.sh # For 64bit and ./v4l/tbs-x86_r3.sh for 32bit, see docs for other kernels. 
-  make -j6 
-  mv /lib/modules/$(uname -r)/kernel/drivers/media/ ~/media_$(uname -r) # Will fix some issues like symbol mismatches and in my case a driver crash in dmesg registering SAA716x dvb adapter. 
-  make install 
-  reboot 
-  dmesg | grep DVB 
-The cards should be possible to configure in mythtvsetup now. After kernel upgrades you will need to remove the "linux-tbs-drivers" folder and unpack again, make clean does not seem to work. 
- 
-Nowadays it seems like like using the open source drivers at https://github.com/tbsdtv/linux_media/wiki is the model to keep up with kernel changes: 
-  dnf install perl-Proc-ProcessTable patchutils 
-  mkdir tbs && cd tbs 
-  git clone https://github.com/tbsdtv/media_build.git 
-  git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest ./media 
-  cd media_build 
-  make dir DIR=../media 
-  make distclean 
-  make -j6 
-  mv /lib/modules/$(uname -r)/kernel/drivers/media/ ~/media_$(uname -r) # Maybe still needed to fix install mismatch issues? 
-  make install 
-  reboot 
- 
-Install firmware: 
-  wget http://www.tbsdtv.com/download/document/linux/tbs-tuner-firmwares_v1.0.tar.bz2 
-  tar jxvf tbs-tuner-firmwares_v1.0.tar.bz2 -C /lib/firmware/ 
- 
-Update using: (Does not work anymore since kernel 5.7.15) 
-  cd tbs/media 
-  git remote update && git pull 
-  git clean -ffdx 
-  cd ../media_build 
-  git remote update && git pull 
-  git clean -ffdx 
-  make dir DIR=../media 
-  make distclean 
-  echo -e "#define NEED_FWNODE_GETNAME 1" > ./v4l/config-mycompat.h # Fix undefined fwnode_get_name on kernel 5.6 fedora 30 
-  sed -i '/VIDEO_OV9650/d' ./v4l/versions.txt && sed -i '/9.255.255/a VIDEO_OV9650' ./v4l/versions.txt # Fix undefined __devm_regmap_init_sccb on kernel 5.6/5.7 fedora 30/31 by skipping OV9650 build 
-  make -j6 # I actually tried compiling without disabling OV9650, then I had to run "make distclean" and "make -j6" again to make it work. Needed? 
-  sudo mv /lib/modules/$(uname -r)/kernel/drivers/media/ ~/media_$(uname -r) # Still needed to fix install mismatch issues!? 
-  sudo make install 
-  sudo reboot 
- 
-I've really had issues with kernel 5.7, in the forum they suggest to download precompiled files instead which does not work either. Failed the same way as the compilation for 5.7.15 did. Therefor I eventually decided to try: 
  
 ==== Hauppauge WinTV Dual HD ==== ==== Hauppauge WinTV Dual HD ====
Line 120: Line 64:
  
 Then I deleted the cards and sources and recreated them because EIT data did not get updated. Still had issues with low SVT1/2/B/K but I think this was because EIT for these overwrote the ones in use. Only enable EIT for channels in use. See MythTV EIT Issues below. Then I deleted the cards and sources and recreated them because EIT data did not get updated. Still had issues with low SVT1/2/B/K but I think this was because EIT for these overwrote the ones in use. Only enable EIT for channels in use. See MythTV EIT Issues below.
 +
 +==== Moving boot disk from sata to m.2 ====
 +
 +Updating boot drive from sata to m.2 turned out to be a real hassle on my MSI Tomahawk Max B450. Just putting the m.2 drive in and it stopped booting from the old sata boot drive. It turns out that m.2 disables sata ports 5 and 6. After rearranging cables and adding default,nofail to data drives it boots again. Also, if I want to use my future graphics card for LLM:s I need to boot with UEFI for ReBar but without secure boot for nvidia drivers to load.
 +
 +Then I need to boot from a live usb stick (press Fn+F11 during boot and do not use the topmost slow usb ports) and then use dd to clone:
 +  # dd if=/dev/sda of=/dev/nvme0n1 bs=64K status=progress conv=fsync
 +
 +Then it still hangs on boot when systemd is trying to mount my vfat /boot partition with uuid F71B-C42F. Apparently this is for lacking drivers in the boot image. Had to remove the m.2 disk and boot fedora 43 again to prepare with support for nvme on on sata disk:
 +  # echo 'hostonly="no"' | tee /etc/dracut.conf.d/generic.conf
 +  # dracut --regenerate-all --force
 +Ran out of disk space in /boot here. The fun never ends.
 +
 +Removed a kernel and tried this instead:
 +  # echo -e 'add_drivers+=" nvme ahci libata sd_mod "' | tee /etc/dracut.conf.d/generic.conf
 +  # dracut --force
 +Then clone again. Remove sata and boot from nvme to check that it works. This time it did. Then boot livecd again, install gparted and use this to expand /boot and move and expand / putting the swap at the end as well. Reboot
 +
 +Also took the time to get new rescue images as my old ones were from 2016, remove old vmlinuz/initramfs for rescue first:
 +  # /usr/lib/kernel/install.d/51-dracut-rescue.install add "$(uname -r)" /boot "/boot/vmlinuz-$(uname -r)"
 +
 +
  
 ==== grub2 boot config ==== ==== grub2 boot config ====
Line 200: Line 166:
 More info on rpmfusion drivers: More info on rpmfusion drivers:
 https://rpmfusion.org/Howto/NVIDIA https://rpmfusion.org/Howto/NVIDIA
 +
 +==== TBS 6280 PCIe DVB-T2 [old] ====
 +
 +A PCIe card for recording DVB-T2 TV. Linux driver support from the manufacturer, which means that you have to recompile it on kernel update. Official linux drivers can be downloaded at http://www.tbsdtv.com/download/ and open source at https://github.com/ljalves/linux_media/wiki/Installating. Visit https://www.tbsdtv.com/forum/viewtopic.php?f=87&t=25422 and http://www.tbsdtv.com/forum/viewforum.php?f=49 for a forum.
 +
 +You will need to disable secure boot in bios for uefi boot to load 3rd party drivers. Maybe solved by selecting "Other OS" instead of "Windows" in the boot options.
 +
 +Roughly following https://www.linuxtv.org/wiki/index.php/TBS_driver_installation#Installing_drivers I did like this as root top build and install official drivers (old):
 +  dnf install kernel-headers kernel-devel
 +  mkdir tbs
 +  cd tbs
 +  wget http://www.tbsiptv.com/download/common/tbs-linux-drivers_v170330.zip
 +  unzip tbs-linux-drivers_v170330.zip
 +  tar xvjf linux-tbs-drivers.tar.bz2
 +  cd linux-tbs-drivers/
 +  ./v4l/tbs-x86_64.sh # For 64bit and ./v4l/tbs-x86_r3.sh for 32bit, see docs for other kernels.
 +  make -j6
 +  mv /lib/modules/$(uname -r)/kernel/drivers/media/ ~/media_$(uname -r) # Will fix some issues like symbol mismatches and in my case a driver crash in dmesg registering SAA716x dvb adapter.
 +  make install
 +  reboot
 +  dmesg | grep DVB
 +The cards should be possible to configure in mythtvsetup now. After kernel upgrades you will need to remove the "linux-tbs-drivers" folder and unpack again, make clean does not seem to work.
 +
 +Nowadays it seems like like using the open source drivers at https://github.com/tbsdtv/linux_media/wiki is the model to keep up with kernel changes:
 +  dnf install perl-Proc-ProcessTable patchutils
 +  mkdir tbs && cd tbs
 +  git clone https://github.com/tbsdtv/media_build.git
 +  git clone --depth=1 https://github.com/tbsdtv/linux_media.git -b latest ./media
 +  cd media_build
 +  make dir DIR=../media
 +  make distclean
 +  make -j6
 +  mv /lib/modules/$(uname -r)/kernel/drivers/media/ ~/media_$(uname -r) # Maybe still needed to fix install mismatch issues?
 +  make install
 +  reboot
 +
 +Install firmware:
 +  wget http://www.tbsdtv.com/download/document/linux/tbs-tuner-firmwares_v1.0.tar.bz2
 +  tar jxvf tbs-tuner-firmwares_v1.0.tar.bz2 -C /lib/firmware/
 +
 +Update using: (Does not work anymore since kernel 5.7.15)
 +  cd tbs/media
 +  git remote update && git pull
 +  git clean -ffdx
 +  cd ../media_build
 +  git remote update && git pull
 +  git clean -ffdx
 +  make dir DIR=../media
 +  make distclean
 +  echo -e "#define NEED_FWNODE_GETNAME 1" > ./v4l/config-mycompat.h # Fix undefined fwnode_get_name on kernel 5.6 fedora 30
 +  sed -i '/VIDEO_OV9650/d' ./v4l/versions.txt && sed -i '/9.255.255/a VIDEO_OV9650' ./v4l/versions.txt # Fix undefined __devm_regmap_init_sccb on kernel 5.6/5.7 fedora 30/31 by skipping OV9650 build
 +  make -j6 # I actually tried compiling without disabling OV9650, then I had to run "make distclean" and "make -j6" again to make it work. Needed?
 +  sudo mv /lib/modules/$(uname -r)/kernel/drivers/media/ ~/media_$(uname -r) # Still needed to fix install mismatch issues!?
 +  sudo make install
 +  sudo reboot
 +
 +I've really had issues with kernel 5.7, in the forum they suggest to download precompiled files instead which does not work either. Failed the same way as the compilation for 5.7.15 did. Therefor I eventually decided to try usb instead. See above.
 +
 ===== Services ===== ===== Services =====
  
Line 475: Line 499:
   # vi /etc/group0   # vi /etc/group0
   squeezeboxserver:x:319:   squeezeboxserver:x:319:
-  # wget https://downloads.lms-community.org/LogitechMediaServer_v8.5.2/logitechmediaserver-8.5.2-1.noarch.rpm +  # wget https://downloads.lms-community.org/LyrionMusicServer_v9.1.0/lyrionmusicserver-9.1.0-1.noarch.rpm 
-  # dnf install logitechmediaserver-8.5.2-1.noarch.rpm +  # dnf install lyrionmusicserver-9.1.0-1.noarch.rpm # Moving config from /var/lib/squeezeboxserver to /etc/sysconfig/lyrionmusicserver and needs changes to scripts accordingly
-  # wget https://downloads.lms-community.org/LyrionMusicServer_v9.0.2/lyrionmusicserver-9.0.2-1.noarch.rpm +
-  # dnf install lyrionmusicserver-9.0.2-1.noarch.rpm # Moving config from /var/lib/squeezeboxserver to /etc/sysconfig/lyrionmusicserver and needs changes to scripts accordingly+
   # ln -s /usr/lib/perl5/vendor_perl/Slim /usr/lib64/perl5/vendor_perl/Slim # Fix for 64bit OS   # ln -s /usr/lib/perl5/vendor_perl/Slim /usr/lib64/perl5/vendor_perl/Slim # Fix for 64bit OS
   # firewall-config # Open port 9000 TCP for http, 3483 TCP&UDP, 9005 TCP&UDP for spotify, 49152-49215 TCP for 3x chromecast bridge and 9090 TCP for cli. Note that cc bridge port is dynamic, tick "Use LMS interface and start from port" and set base port 49152.   # firewall-config # Open port 9000 TCP for http, 3483 TCP&UDP, 9005 TCP&UDP for spotify, 49152-49215 TCP for 3x chromecast bridge and 9090 TCP for cli. Note that cc bridge port is dynamic, tick "Use LMS interface and start from port" and set base port 49152.
-  # systemctl enable squeezeboxserver && systemctl start squeezeboxserver +  # systemctl enable lyrionmusicserver.service && systemctl start lyrionmusicserver.service 
-Check logs with something like "**journalctl -u squeezeboxserver.service**" or "systemctl status -n1000 squeezeboxserver.service".+  # cd /etc/lyrionmusicserver/ # Check rpmsave files and likely replace old conf-files. Can fix cpan module issues. 
 +Check logs with something like "**journalctl -u lyrionmusicserver.service**" or "systemctl status -n1000 lyrionmusicserver.service"
 + 
 +If you get issues with lacking modules in status, like Proc::Background, then the problem may actually be that you need to copy /etc/lyrionmusicserver/modules.conf.rpmnew to /etc/lyrionmusicserver/modules.conf.
  
-For example after upgrade to fedora 35 the "EV YAML::XS" module failed to load according to "journalctl -u squeezeboxserver.service". Found https://forums.slimdevices.com/showthread.php?115928-Updating-from-8-0-1-to-8-3-0 and I decided to upgrade to latest 8.2 nightly http://downloads-origin.slimdevices.com/nightly/?ver=8.2 to be sure to get an updated version. This worked; remember to start by upgrading rpm when facing issues after fedora upgrade.+Another example after upgrade to fedora 35 the "EV YAML::XS" module failed to load according to "journalctl -u squeezeboxserver.service". Found https://forums.slimdevices.com/showthread.php?115928-Updating-from-8-0-1-to-8-3-0 and I decided to upgrade to latest 8.2 nightly http://downloads-origin.slimdevices.com/nightly/?ver=8.2 to be sure to get an updated version. This worked; remember to start by upgrading rpm when facing issues after fedora upgrade.
  
 The web server is then available for configuration: \\ The web server is then available for configuration: \\
Line 1248: Line 1273:
 Seems ok. Had to do this later for "events" as well. Do not forget to remove the recovery setting and restart mariadb so that home assistant can connect. Moved away from remote mariadb hass database to the default sqlite implementation with a database on an ssd. Set up a nightly backup through an automation to to avoid all these issues. Seems quicker as well. Seems ok. Had to do this later for "events" as well. Do not forget to remove the recovery setting and restart mariadb so that home assistant can connect. Moved away from remote mariadb hass database to the default sqlite implementation with a database on an ssd. Set up a nightly backup through an automation to to avoid all these issues. Seems quicker as well.
  
-==== Upgrade Fedora ... -> 35 -> 36 -> 37 -> 38 -> 39 -> 40 -> 41 -> 42 ====+==== Upgrade Fedora ... -> 35 -> 36 -> 37 -> 38 -> 39 -> 40 -> 41 -> 42 -> 43 ====
  
 Following the instructions on https://fedoramagazine.org/upgrading-fedora-31-to-fedora-32/ and https://docs.fedoraproject.org/en-US/quick-docs/dnf-system-upgrade/ Following the instructions on https://fedoramagazine.org/upgrading-fedora-31-to-fedora-32/ and https://docs.fedoraproject.org/en-US/quick-docs/dnf-system-upgrade/
Line 1262: Line 1287:
   # dnf remove python3-iso-639 # For fedora 40   # dnf remove python3-iso-639 # For fedora 40
   # dnf remove python2-pillow # For fedora 41   # dnf remove python2-pillow # For fedora 41
-  # dnf system-upgrade download --releasever=42 # Did not work on Saturdays due to 404 for lacking rpmfusion files, waiting for mirroring and retrying on Sunday worked.+  # dnf remove scala # For fedora 43 
 +  # dnf system-upgrade download --releasever=43 # Did not work on Saturdays due to 404 for lacking rpmfusion files, waiting for mirroring and retrying on Sunday worked.
 You may need the "--allowerasing" flag or possibly force uninstall of some packages using "rpm -e --nodeps <package>" to get this to pass. You may need the "--allowerasing" flag or possibly force uninstall of some packages using "rpm -e --nodeps <package>" to get this to pass.
  
Line 1276: Line 1302:
   - Had to upgrade to squeezeboxserver 7.9.3 and build tbs with workarounds for kernel 5.7. Later I replaced tbs with a hauppauge dongle.    - Had to upgrade to squeezeboxserver 7.9.3 and build tbs with workarounds for kernel 5.7. Later I replaced tbs with a hauppauge dongle. 
   - New samba 4.11 disables smbv1 by default which does not work with my tablet used as a photo frame. See samba section above for how to fix.   - New samba 4.11 disables smbv1 by default which does not work with my tablet used as a photo frame. See samba section above for how to fix.
-  - Autologin had to be reconfigured in /etc/lxdm/lxdm.conf for at least fedora 37, 40, 42. Just add back the autologin line, see the .rpmsave file.+  - Autologin had to be reconfigured in /etc/lxdm/lxdm.conf for at least fedora 37, 40, 42, 43. Just add back the autologin line, see the .rpmsave file.
   - The mailserver got disabled for fedora 42, run "systemctl start postfix && systemctl enable postfix".   - The mailserver got disabled for fedora 42, run "systemctl start postfix && systemctl enable postfix".
   - Maybe clean up old unmaintained packages using "remove-retired-packages 36" or similar. You may also use "dnf repoquery --unsatisfied" and "dnf repoquery --duplicates" to check for broken/duplicates. See fedora upgrade docs for more info.   - Maybe clean up old unmaintained packages using "remove-retired-packages 36" or similar. You may also use "dnf repoquery --unsatisfied" and "dnf repoquery --duplicates" to check for broken/duplicates. See fedora upgrade docs for more info.
  
  
linux64.1767104313.txt.gz · Last modified: by bengt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki