Month: August 2020

Booting Centos 7 with newer 5.x kernels fails with Realtek ethernet interfaces

If you have the problem described for example here, you can’t boot with newer ElRepo-kernels because the kernel driver für your Realtek ethernet card ist not loaded into the initrd environment, you can add them into /etc/dracut.conf

add_drivers+=”r8169 realtek “

and rebuild the initramfs with something like

dracut -f -v /boot/initramfs-5.8.5-1.el7.elrepo.x86_64.img 5.8.5-1.el7.elrepo.x86_64
grub2-mkconfig -o /boot/grub2/grub.cfg

Building Samba 4.12 on Centos 7

Samba has some new dependencies which are not so easily fulfilled on Centos 7. You’ll need Python 3 and Nettle and GnuTLS-Devel-Packages which conflict with installed packages. Luckily there are “compat” packages, for example at the tranquil.it repository:
https://samba.tranquil.it/centos7/samba-4.12.6/x86_64/compat-gnutls34-devel-3.4.17-0.1.el7.x86_64.rpm
https://samba.tranquil.it/centos7/samba-4.12.6/x86_64/compat-nettle32-devel-3.2-0.3.el7.x86_64.rpm

My shell script to build Samba looks like this, note the export-Statement:

export PKG_CONFIG_PATH=/usr/lib64/compat-gnutls34/pkgconfig:/usr/lib64/compat-nettle32/pkgconfig

./configure –disable-python –without-ads –disable-cups –without-json –without-libarchive –disable-iprint –with-systemd –without-winbind –without-ad-dc –without-ldap –prefix=/ –sysconfdir=/etc/samba –with-logfilebase=/var/log/samba –with-piddir=/var/run –with-privatedir=/var/lib/samba/private –includedir=/usr/include –sharedstatedir=/usr/share –with-lockdir=/run/lock/samba

make && make smbclient && make install && make clean && make distclean