Home / Linux

Category: Linux

How to install an RPM package into a different directory?

A relocatable RPM package can change its installation path during the setup process. Not all RPM packages can be installed into a custom directory. Use the following command to see if a specific package can be relocated. # rpm -qpi <rpm package> | grep Relocations To check rpm packages, centos-lsb-1.3-3.1.EL3.i386.rpm and rsync-2.5.7-5.3E.i386.rpm: # rpm -qpi …

Read more

How to use setroubleshoot to get solution for AVC messages?

Install setroubleshoot-server as follows. # yum install -y setroubleshoot-server If the system is in enforcing or permissive mode, setroubleshoot will provide a user-friendly explanation about the AVC's. When there's AVC denial, messages like those below will print to /var/log/messages. Jul 14 09:52:03 desktop setroubleshoot: SELinux is preventing 57656220436F6E74656E74 from write access on the file firefox52.pdf. …

Read more

How to disable or enable the IPv6 protocol in AlmaLinux?

Why errors are received when changing IPv6 kernel parameters? # sysctl -p error: "net.ipv6.conf.default.accept_redirects" is an unknown key error: "net.ipv6.conf.default.accept_ra" is an unknown key error: "net.ipv6.conf.all.disable_ipv6" is an unknown key error: "net.ipv6.conf.default.disable_ipv6" is an unknown key Internet Protocol Version 6 (IPv6) is enabled by default in AlmaLinux and CentOS. However, some users might find it …

Read more

How to configure CUPS to use ephemeral ports instead of reserved ports?

When many users are printing at once, CUPS is very slow. The following error is seen repeatedly in the file /var/log/cups/error_log. E [09/Jul/2013:10:06:00 +0200] [Job 865106] Unable to reserve port: Resource temporarily unavailable The firewall blocks connections initiated from low-numbered TCP ports (port numbers less than 1024). This blocks CUPS outgoing LPD (Line Printer Deamon) …

Read more

32-bit application not finding files on XFS filesystem

Inodes received 32-bit numbers or less under older XFS behavior, which always allocated inodes within the first 1TiB of the filesystem. With more recent XFS behavior, inode64 is the default mount option, allowing inodes to be put anywhere inside the filesystem. However, files with inode numbers greater than 32 bits may be difficult for 32-bit …

Read more

How to install rasdaemon and monitor hardware errors

To set up the hardware error reporting rasdaemon. Install the rasdaemon package first. Launch the rasdaemon service after enabling data collection in Rasdaemon. Configure the rasdaemon service to restart automatically when the computer boots up. The motherboard DIMM labels can be imported into the EDAC drivers once the service has been launched for simpler fault …

Read more