Categories
Uncategorized

Mounting a flash drive on Alma Linux (exfat)

Enable the rpmfusion repo. Download it from https://rpmfusion.org/Configuration

wget https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
rpm -i rpmfusion-free-release-8.noarch.rpm
yum install fuse-exfat
mkdir /media/usb
mount /dev/sdx /media/usb #Where x is your device name i.e sdd1

Categories
Uncategorized

Redirect dhcpd.log file to another file

In Centos 7 the dhcp log file is sent to /var/log/messages

This can be redirected to another file

emacs /etc/dhcp/dhcpd.conf

Replace this line

log-facility local7;

With this

log-facility local6;

Now modify /etc/rsyslog.conf

emacs /etc/rsyslog.conf

Add this line right after local7.*

# Redirect dhcpd log messages to another logfile
local6.*                                                /var/log/dhcpd/dhcpd.log

Modify this line

# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none                /var/log/messages

With this

*.info;mail.none;authpriv.none;cron.none;local6.none                /var/log/messages

So you only appended ;local6.none

Create the new directory where the new dhcp log file will be stored

mkdir /var/log/dhcpd

Now restart rsyslog

systemctl restart rsyslog
Categories
Uncategorized

CUPS

Idle – “File “/usr/lib64/cups/filter/foomatic-rip” not available: No such file or directory”

yum install -y foomatic-filters foomatic-db foomatic-db-ppds
Categories
Uncategorized

Check what ports are running

lsof -i -P -n | grep LISTEN