linux64
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux64 [2024/07/17 20:56] – [grub2 boot config] bengt | linux64 [2025/10/12 13:55] (current) – [OpenWebRX+ for radio] bengt | ||
|---|---|---|---|
| Line 128: | Line 128: | ||
| # grub2-mkconfig -o / | # grub2-mkconfig -o / | ||
| - | === efi partition too small === | + | ==== efi partition too small ==== |
| Trying to fix full boot partition which failed to install new kernel rpm properly by: (Wrong solution, see end of chapter!) | Trying to fix full boot partition which failed to install new kernel rpm properly by: (Wrong solution, see end of chapter!) | ||
| Line 142: | Line 142: | ||
| Eventually I found https:// | Eventually I found https:// | ||
| # mv "/ | # mv "/ | ||
| + | I deleted the _disabled folder later to get back some disk storage. Seemed to boot fine, but it was the rescue stuff that was taking disk space. | ||
| + | | ||
| + | ==== efi partition to fat32 ==== | ||
| + | |||
| + | These instrutions were saved for possible future need if 256MB is not enough for /boot/efi, from https:// | ||
| + | |||
| + | Mount the ESP (if it's not mounted already, e.g. on /boot or /boot/efi): | ||
| + | # mount /dev/sdx1 /mnt # replace sdx1 with ESP | ||
| + | Make a backup of its contents: | ||
| + | # mkdir ~/esp | ||
| + | # rsync -av /mnt/ ~/esp/ | ||
| + | |||
| + | Unmount the ESP: | ||
| + | # umount /mnt | ||
| + | |||
| + | Delete and recreate the ESP: | ||
| + | # gdisk /dev/sdx # replace sdx with disk containing ESP | ||
| + | p (list partitions) | ||
| + | (ensure the ESP is the first partition) | ||
| + | d (delete partition) | ||
| + | 1 (select first partition) | ||
| + | n (create partition) | ||
| + | Enter (use default partition number, should be 1) | ||
| + | Enter (use default first sector, should be 2048) | ||
| + | Enter (use default last sector, should be all available space) | ||
| + | EF00 (hex code for EFI system partition) | ||
| + | w (write changes to disk and exit) | ||
| + | |||
| + | Format the ESP: | ||
| + | # partprobe /dev/sdx | ||
| + | # mkfs.fat -F32 /dev/sdx1 | ||
| + | |||
| + | Restore the ESP's contents: | ||
| + | # mount /dev/sdx1 /mnt | ||
| + | # rsync -av ~/esp/ /mnt | ||
| + | |||
| + | Update EFI entry in /etc/fstab | ||
| + | # blkid | grep EFI | ||
| + | # nano /etc/fstab | ||
| + | UUID=XXXX-XXXX /boot vfat umask=0077 0 2 # Replace with UUID from blkid | ||
| + | If you use GRUB, you may need to update or regenerate its configuration file (/ | ||
| ==== nvidia | ==== nvidia | ||
| Line 416: | Line 457: | ||
| See misc below for scanning tv channels... | See misc below for scanning tv channels... | ||
| - | ==== squeezebox | + | ==== squeezebox/ |
| - | I found out that there is a spotify-plugin for squeezebox and decided to try a Boom in the kitchen and after a number of years I now have 9 squeezeboxes. Nowadays they aren't manufactured anymore but it is possible to use a chromecast as a squeezebox using a plugin in the server. Squeezebox on the server is a very nice solution to get access to your music files, spotify, internet radio and more. Instructions for fedora here:\\ | + | I found out that there is a spotify-plugin for squeezebox and decided to try a Boom in the kitchen and after a number of years I now have 9 squeezeboxes. Nowadays they aren't manufactured anymore but it is possible to use a chromecast as a squeezebox using a plugin in the server. Squeezebox on the server is a very nice solution to get access to your music files, spotify, internet radio and more.Instructions for fedora here:\\ |
| http:// | http:// | ||
| + | |||
| + | Note that it is called lyrionmusicserver nowadays and some instructions below may need an update... | ||
| There was a period when the community squeeze project had a fedora repo available. This is no longer the case, but there are still some nice guys updating the server: | There was a period when the community squeeze project had a fedora repo available. This is no longer the case, but there are still some nice guys updating the server: | ||
| Line 432: | Line 475: | ||
| # vi /etc/group0 | # vi /etc/group0 | ||
| squeezeboxserver: | squeezeboxserver: | ||
| - | # wget http:// | ||
| - | # dnf install logitechmediaserver-8.3.1-0.1.1672158254.noarch.rpm | ||
| # wget https:// | # wget https:// | ||
| # dnf install logitechmediaserver-8.5.2-1.noarch.rpm | # dnf install logitechmediaserver-8.5.2-1.noarch.rpm | ||
| + | # wget https:// | ||
| + | # dnf install lyrionmusicserver-9.0.2-1.noarch.rpm # Moving config from / | ||
| # ln -s / | # ln -s / | ||
| # firewall-config # Open port 9000 TCP for http, 3483 TCP& | # firewall-config # Open port 9000 TCP for http, 3483 TCP& | ||
| Line 617: | Line 660: | ||
| If you want to be able to run with plugins you may want to look into https:// | If you want to be able to run with plugins you may want to look into https:// | ||
| - | $ wget https:// | + | $ wget https:// |
| $ cd minecraft/ | $ cd minecraft/ | ||
| $ wget -O floodgate-spigot.jar https:// | $ wget -O floodgate-spigot.jar https:// | ||
| Line 728: | Line 771: | ||
| ## NameCheap DynDNS | ## NameCheap DynDNS | ||
| ## | ## | ||
| - | use=web, web=dynamicdns.park-your-domain.com/ | + | |
| + | use=web, web=http:// | ||
| | | ||
| protocol=namecheap | protocol=namecheap | ||
| Line 761: | Line 805: | ||
| URL Redirect Record @ http:// | URL Redirect Record @ http:// | ||
| (If you keep the URL redirect stuff then the ip-addresses will be combined with namecheaps. Not good.) | (If you keep the URL redirect stuff then the ip-addresses will be combined with namecheaps. Not good.) | ||
| + | |||
| + | |||
| + | ==== OpenWebRX+ for radio ==== | ||
| + | |||
| + | I buought an rtl sdr dongle that I later realized would be nice to pair with a leftover pi 4: \\ | ||
| + | https:// | ||
| + | https:// | ||
| + | |||
| + | Use the the official raspberry image to enable and set ssh username/ | ||
| + | https:// | ||
| + | https:// | ||
| + | |||
| + | SSH into the machine and follow the instructions to add a user: \\ | ||
| + | sudo openwebrx admin adduser < | ||
| + | |||
| + | You may want to install extra drivers, see note on home page: \\ | ||
| + | sudo install-softmbe.sh | ||
| + | |||
| + | Some comments about antenna length: | ||
| + | https:// | ||
| + | |||
| + | ==== ollama in podman for ai ==== | ||
| + | |||
| + | Using rootless podman as a separate user (starting with cpu only): | ||
| + | # dnf install | ||
| + | # useradd ollama | ||
| + | # visudo | ||
| + | ALL ALL=(ollama) NOPASSWD: / | ||
| + | # firewall-config # Add tcp 11434 to be able to access it from hass | ||
| + | # su - ollama | ||
| + | $ mkdir ollama | ||
| + | $ vi start.sh | ||
| + | #!/bin/bash -x | ||
| + | cd $HOME | ||
| + | loginctl enable-linger ollama | ||
| + | podman run -d --rm -v / | ||
| + | $ chmod u+x start.sh | ||
| + | Then setup a start.sh-script containing the startup command line and maybe start this using " | ||
| + | |||
| + | Test it as the ollama user: | ||
| + | # su - ollama | ||
| + | $ podman exec -it ollama ollama run llama2 | ||
| + | |||
| + | You can add the ollama integration to home assistant. On issues check your firewall config. Be sure to have " | ||
| + | |||
| + | TODO: GPU support. Need to use nvidia drivers first... | ||
| Line 996: | Line 1086: | ||
| # systemctl stop firewalld.service | # systemctl stop firewalld.service | ||
| # iptables --flush | # iptables --flush | ||
| - | | + | |
| + | Calculate sha256 of all files in folder and store in text file that can be used to check for bit rot later or when replacing disk and checking rsync: | ||
| + | $ find movies/ -type f -exec sha256sum {} \; > | ||
| + | or | ||
| + | $ find movies/ -type f | sort | xargs -d' | ||
| + | File checksum mismatch after copying files to a new disk can be due to memory issues. It can even vary checksumming the same file on the same disk. You can use " | ||
| ==== Picade ===== | ==== Picade ===== | ||
| Line 1152: | Line 1247: | ||
| Seems ok. Had to do this later for " | Seems ok. Had to do this later for " | ||
| - | ==== Upgrade Fedora ... -> 35 -> 36 -> 37 -> 38 -> 39 ==== | + | ==== Upgrade Fedora ... -> 35 -> 36 -> 37 -> 38 -> 39 -> 40 -> 41 ==== |
| Following the instructions on https:// | Following the instructions on https:// | ||
| Line 1164: | Line 1259: | ||
| # dnf remove gnomebaker php-recode --noautoremove # For fedora 32 | # dnf remove gnomebaker php-recode --noautoremove # For fedora 32 | ||
| # dnf remove compat-ffmpeg28 # For fedora 39 | # dnf remove compat-ffmpeg28 # For fedora 39 | ||
| - | # dnf system-upgrade download --releasever=39 # Did not work on Saturdays due to 404 for lacking rpmfusion files, waiting for mirroring and retrying on Sunday worked. | + | |
| + | # dnf remove python2-pillow # For fedora 41 | ||
| + | | ||
| You may need the " | You may need the " | ||
| Line 1172: | Line 1269: | ||
| After upgrade: | After upgrade: | ||
| + | - For fedora 39 there is a bug when installing kernels fails with "No space left on device" | ||
| - It hangs during first boot waiting for lvm2 mirrors. I had to disable Intel RST and use AHCI in BIOS to get it to boot. Then I disabled/ | - It hangs during first boot waiting for lvm2 mirrors. I had to disable Intel RST and use AHCI in BIOS to get it to boot. Then I disabled/ | ||
| - Old, not be needed anymore: It is running cgroups v2 which was incompatible with docker. Either switch to v1 using kernel command line options or use podman instead of docker. Add " | - Old, not be needed anymore: It is running cgroups v2 which was incompatible with docker. Either switch to v1 using kernel command line options or use podman instead of docker. Add " | ||
| - 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 / | + | - Autologin had to be reconfigured in / |
| - Maybe clean up old unmaintained packages using " | - Maybe clean up old unmaintained packages using " | ||
| + | |||
linux64.1721249800.txt.gz · Last modified: 2024/07/17 20:56 by bengt