Fedora – RedHat – Paolo Redaelli https://monodes.com/predaelli A civil engineer with a longlife fondness for Software Libero Fri, 21 Apr 2023 09:05:08 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 91795679 The immutables: Fedora Silverblu, EndlessOS and VanillaOS https://monodes.com/predaelli/2023/04/21/the-immutables-fedora-silverblu-endlessos-and-vanillaos/ https://monodes.com/predaelli/2023/04/21/the-immutables-fedora-silverblu-endlessos-and-vanillaos/#respond Fri, 21 Apr 2023 19:04:00 +0000 https://monodes.com/predaelli/?p=10388 Browsing How to rebase to Fedora Linux 38 on Silverblue – from Fedora Magazine I just discovered that

Fedora Silverblue is a new variant of Fedora Workstation with rpm-ostree at its core to provide fully atomic upgrades.  Furthermore, Fedora Silverblue is immutable and upgrades as a whole, providing easy rollbacks from updates if something goes wrong.

Just wondering is there anything Debian based. And of course someone else already asked this (on Reddit) and other people curated a list of immutable distributions. So the answer is EndlessOS and Vanilla OS.

Silly me, I bought a laptop for my father-in-law with EndlessOS, finding it very solid!

]]>
https://monodes.com/predaelli/2023/04/21/the-immutables-fedora-silverblu-endlessos-and-vanillaos/feed/ 0 10388
https://monodes.com/predaelli/2022/04/27/9311/ https://monodes.com/predaelli/2022/04/27/9311/#respond Wed, 27 Apr 2022 19:57:00 +0000 https://monodes.com/predaelli/?p=9311 As I wished to add a little NextCloud installation to my small corporate server I used its web installer that quaralled that PHP 7.2 is too old. I was used to Debian way of handling multiple versions of a package (having the major version in the package name). These notes on server-world.info reminded me dnf has its own ways.

]]>
https://monodes.com/predaelli/2022/04/27/9311/feed/ 0 9311
Progressively un-centoing https://monodes.com/predaelli/2022/04/27/progressively-un-centoing/ https://monodes.com/predaelli/2022/04/27/progressively-un-centoing/#respond Wed, 27 Apr 2022 15:47:00 +0000 https://monodes.com/predaelli/?p=9307 I got slightly annoyed when Centos were terminated. In my efforts to Fedorize the server I use everyday to host the WordPress blog that records most of the work done on our Quality Managament System I encountered this annoying error

Failed to download metadata for repo ‘appstream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist – Centos 8

luckily Habibur Rhoman Joy from namespaceit.com provided an easy solution on his blog.

Habibur Rhoman Joy
FROM centos:8<br data-rich-text-line-break="true" /><br data-rich-text-line-break="true" />RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-* &&\<br data-rich-text-line-break="true" />    sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-*<br data-rich-text-line-break="true" /><br data-rich-text-line-break="true" />#docker<br data-rich-text-line-break="true" />RUN yum upgrade -y<br data-rich-text-line-break="true" /><br data-rich-text-line-break="true" />#other commands<br data-rich-text-line-break="true" />

 

On Centos 8, I have run “sudo yum update” but getting this error – 

Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

Here I have given different solution for different situation.

Solution 1:

This error we are getting cause CentOS 8 became EOL at the end of 2021. Better if you migrate to CentOS Stream 8, CentOS 9 or Rocky Linux.

To solve current os you can run these commands –

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-*

sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-*

If you run these commands then dnf will work, but you will not get any updates.

If you want you can also upgrade to centos 8 stream:

 sudo dnf install centos-release-stream -y
 sudo dnf swap centos-{linux,stream}-repos -y
 sudo dnf distro-sync -y

 

Solution 2:

If you are using docker, you may face same type of problem. Hope this commands will help you –

FROM centos:8

RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-* &&\
    sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-*

#docker
RUN yum upgrade -y

#other commands
]]>
https://monodes.com/predaelli/2022/04/27/progressively-un-centoing/feed/ 0 9307
How To Upgrade From Fedora 32 To Fedora 33 https://monodes.com/predaelli/2021/03/31/how-to-upgrade-from-fedora-32-to-fedora-33/ https://monodes.com/predaelli/2021/03/31/how-to-upgrade-from-fedora-32-to-fedora-33/#respond Wed, 31 Mar 2021 20:20:00 +0000 https://monodes.com/predaelli/?p=8303

How To Upgrade From Fedora 32 To Fedora 33 [CLI & Graphical Methods] | Linux Journal

It’s so simple with the GUI, but I’m a shell guy, so

$ sudo dnf upgrade --refresh
$ sudo dnf install dnf-plugin-system-upgrade
$ sudo dnf system-upgrade download --releasever=33
$ sudo dnf system-upgrade reboot

]]>
https://monodes.com/predaelli/2021/03/31/how-to-upgrade-from-fedora-32-to-fedora-33/feed/ 0 8303
Epiphany on CentOS 7 https://monodes.com/predaelli/2017/09/27/epiphany-on-centos-7/ https://monodes.com/predaelli/2017/09/27/epiphany-on-centos-7/#respond Wed, 27 Sep 2017 06:46:35 +0000 https://monodes.com/predaelli/?p=3388 I’m quite puzzeled: Centos 7 contains the same software as RedHat so knowing that Red Hat is one of the forces behind Gnome one would expect to find Web, the browser once known as Epiphany to be installed or at least installable on it.

Nope.

As I discoverede reading Gnome 3 on CentOS 7 – How I Made It Lovely and Usable a piece from 2014, you must install the package directly from Fedora packages, as in

sudo yum install http://mirror.internode.on.net/pub/fedora/linux/releases/22/Everything/x86_64/os/Packages/e/epiphany-3.16.1-1.fc22.x86_64.rpm http://mirror.internode.on.net/pub/fedora/linux/releases/22/Everything/x86_64/os/Packages/e/epiphany-runtime-3.16.1-1.fc22.x86_64.rpm

well, I felt like being cast in the 90ties. Actually I shouldn’t have done it on my work desktop.

 

]]>
https://monodes.com/predaelli/2017/09/27/epiphany-on-centos-7/feed/ 0 3388
Sometimes it is annoying https://monodes.com/predaelli/2016/10/21/sometimes-it-is-annoying/ https://monodes.com/predaelli/2016/10/21/sometimes-it-is-annoying/#respond Fri, 21 Oct 2016 17:19:17 +0000 http://monodes.com/predaelli/?p=1814 Who? SELinux of course!

Mind me, it is a wonderful tool. Tell me I’m old-fashioned, tell me I’m unacknowledged about the security it brings.

This after I just wanted to add a theme to my WordPress inner company blog.

SELinux kept saying something like “I don’t think so!”.

I ended up switching it off. For a while.

Yet this «CentOS 7 + SELinux + PHP + Apache – cannot write/access file no matter what» from Lysender’s Daily Log Book is a nice page to save and study.

I wish I’ve studied RHCE and related certifications a little more…

]]>
https://monodes.com/predaelli/2016/10/21/sometimes-it-is-annoying/feed/ 0 1814
Debianisms https://monodes.com/predaelli/2016/06/07/debianisms/ https://monodes.com/predaelli/2016/06/07/debianisms/#respond Tue, 07 Jun 2016 06:05:44 +0000 http://monodes.com/predaelli/?p=1648 I was going to enable mod_rewrite on the new work box, discovering that CentOS doesn’t have a2enmod. So reading apache 2.2 – CentOS“-bash: a2enmod: command not found” – from Server Fault I discovered that

a2enmod is a debianism, on CentOS you will need to do this manually. Please refer to the Apache documentation to find out how to do this.

Life is full of surprises

 

]]>
https://monodes.com/predaelli/2016/06/07/debianisms/feed/ 0 1648
Hugin on Centos 7 https://monodes.com/predaelli/2016/05/27/hugin-on-centos-7/ https://monodes.com/predaelli/2016/05/27/hugin-on-centos-7/#respond Fri, 27 May 2016 07:48:16 +0000 http://monodes.com/predaelli/?p=1598 To update corporate website and for a EcoMondo I had to stitch some photos I’ve made a couple of weeks ago. As usual I wanted to use Hugin.

yum install hugin told me that my new Centos 7 machine don’t have it. Ok, let’s search for a proper repo. Too bad there isn’t.

Ok, let’s do it the old way: recompiling it from sources.

That’s a small log of me following the path hinted at on Hugin Compiling Fedora – PanoTools.org Wiki

Note: I’ve finally renounced. Too many unmet dependencies, too many unsolved parts. CentOS is a server distribution and I won’t mess it just to use Hugin. I would rather run something more “pliable” as a virtual machine

CompilingIf you want to compile hugin yourself, just follow the instructions in the INSTALL_cmake file, you will need these development RPM packages (April 2013): libpano13-devel zlib-devel libtiff-devel libjpeg-devel libpng-devel gettext-devel wxGTK-devel boost-devel cmake desktop-file-utils OpenEXR-devel gcc-c++ exiv2-devel glew-devel freeglut-devel mesa-libGLU-devel libXmu-devel wxPython tclap-devel python-devel swig flann-devel lensfun-devel perl-podlators (needed for fedora 19 and above)

  • Installing all those requirements.
  • Discovering that version 2016 requires a too recent cmake. Ok, reverting to version 2014
  • Oh my: no libpano13-devel and no tclap-devel packages available. It feels like using a way-outdated distro.
  • Ok, looking for their sources too. I begin longing for a less “stable” distribution.
  • Exif support missing, installing libexif-devel
  • Not enough, installing exiv2
  • No it’s not that. It may be perl-Image-ExifTool.noarch
  • Mhmmm… cmake seems satisfied. But compiler found a syntax error in 2014 release. Wow. Last try: 2015 release which also require VIGRA.
  • Let’s hope that vigra-devel suffice. AFAICS it should be The VIGRA Computer Vision Library.
  • Error: Libvigraimpex found.  But vigraimpex seems to compiled without OpenEXR support.  OpenEXR support is required for Hugin.

Ok, enough is enough. Let’s create a “hacking” virtual box, based on something “more recent”, such as Fedora 24.

Stay tuned

]]>
https://monodes.com/predaelli/2016/05/27/hugin-on-centos-7/feed/ 0 1598
Weirdness https://monodes.com/predaelli/2016/05/26/weirdness/ https://monodes.com/predaelli/2016/05/26/weirdness/#respond Thu, 26 May 2016 17:15:49 +0000 https://monodes.com/predaelli/?p=1583 One feels smart, he has written a nice DVD of CentOS 7 to be installed on his shiny new box.

image

Have you noticed something strange and silly in the above photo?
Right. It misses the optical drive. Actually it has only USB and Ethernet.

I felt dumb.

Dumber indeed because I cannot boot it using PXE as the DHCP is under the control of a win domain. Well, not without making a mess on the network. And I didn’t had an USB stick big enough. I’ve literally thrown away a couple hours trying to boot a minimal ISO installed on my Ext2-formatted Usb key (yes, you can format sticks with ext2!), discovering that the ISO I picked still required PXE to boot. No way. So next day I got this shiny – literally – 8Gb stick. And here I am. Centos 7 running on a “normal” Intel i3 box with 8gb of RAM which is a fairly normal spec by today’s standards, but it’s a huge jump from my previous one.

Click to view slideshow.

It feels weird after all those years to return to an RPM based distro. Everything looks alien and familiar at the same time.

And I already miss the huge package selection of Debian. WordPress? Isn’t there. Chrome. No way. Epiphany, the Gnome browser? Not available. That’s the price of stability, I suppose.

I haven’t already enjoyed intimacy with SE-Linux security layer. I half-suspect it won’t be an easy deal.

 

 

]]>
https://monodes.com/predaelli/2016/05/26/weirdness/feed/ 0 1583
Printers https://monodes.com/predaelli/2016/05/26/printers/ https://monodes.com/predaelli/2016/05/26/printers/#respond Thu, 26 May 2016 13:45:37 +0000 http://monodes.com/predaelli/?p=1594 Schermata da 2016-05-26 15-38-43
Richard Stallman back in the  late ’70 were compelled to start GNU project because he cannot hack the firmware of a prototype of a laser printer.

Fourty years later people using software libero still quarrel with printers. Me for example…. on the previous (Ubuntu) box I was able to smoothly use that printer. Now Centos keeps arguing that the printer has low black ink (true!) and that there’s no paper (wrong!).

The mysteries of software libero…. 🙂

]]>
https://monodes.com/predaelli/2016/05/26/printers/feed/ 0 1594