New server
This is the new server.
This is the new server.
change your * to \{-}: #bad (.*?) #good (.\{-})
If you need to automate a GUI app, like you would script a CLI app with expect, use xdotool. It should be in your repo. What you can do for…
Via reddit: -R allows ANSI colors (and other ANSI features) -S allows horizontal scrolling (I don't use this one with query-logs though) -X Leaves the output on the screen after…
From http://www.smallo.ruhr.de/award.html , dome things to improve in your (and my) scripts ;). Anything that looks like something | grep '..*' | wc -l can usually be rewritten like something…
Note to self; if I have changed /etc/sysconfig/grub, then run grub2-mkconfig -o /boot/grub2/grub.cfg For uefi: grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
“No memory reserved for crash kernel” on RH7 Increase RAM to 2GB+. Also make sure crashkernel=auto is set in your cmdline.
src/xradius_cache.c: In function 'xrad_cache_dbm_post_config': src/xradius_cache.c:146:22: error: 'unixd_config' undeclared (first use in this function) chown(path1, unixd_config.user_id, -1); ^ src/xradius_cache.c:146:22: note: each undeclared identifier is reported only once for each function it…
Add: AuthBasicProvider xradius
Add the AddRadiusAuth to your virtualhost ;)
(happened in reposync) Either install pyliblzma via yum or do it yourself: easy_install pip pip install --upgrade pip pip install pyliblzma If the latest install does not work, install gcc…
$ sudo yum update error: rpmdb: BDB0113 Thread/process 11565/140378074454016 failed: BDB1507 Thread died in Berkeley DB library error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery error:…
Solution: delete the -u definitions from /etc/oddjobd.conf.d/oddjobd-mkhomedir.conf and oddjobd will use the umask from /etc/login.defs . I feel this should be default.
This was a challenge. So it turns out FreeIPA talks ldap out of the box. I wanted to authenticate against FreeIPA using FreeRADIUS. I am thankful to Arran Cudbard-Bell which…
β β β No state indicated for: non-communicating remote machines, βLOCALβ for this local host, (unutilised) high stratum servers, remote machines that are themselves using this host as their synchronisation…
I was seeing this: "/var/run/slapd-*socket"}, 110) = -1 ENOENT" Unable to get connection, skipping disabling agreements: Unable to bind to LDAP server: No such file or directory "Server error -…
Use re_match. http://www.rsyslog.com/doc/master/rainerscript/functions.html?highlight=re_match if ( $fromhost-ip startswith '10.0.0' and re_match($hostname,'.*-fw') ) then action(type="omfile" file="/tmp/test.log")
Install postgresql-server, do postgresql-setup initdb, change listen address in /var/lib/pgsql/data/postgresql.conf, change ident methods in /var/lib/pgsql/data/pg_hba.conf, systemctl start postgresql, ^start^enable. CREATE USER unam PASSWORD ‘123’; CREATE SCHEMA unamschema AUTHORIZATION unam; CREATE…
You want to install rsyslog7 but you get: Error: rsyslog7 conflicts with rsyslog-5.8.10-10.el6_6.x86_64 So you choose to erase/remove rsyslog first, but this removes: cronie, cronie-anacron, crontabs, redhat-lsb, redhat-lsb-compat, redhat-lsb-core, redhat-lsb-graphics,…
tail -f /var/log/messages | grep -E --line-buffered --color '.*kernel.*|$' This will show all lines from the tail, with lines having ‘kernel’ in them colored.
tail -f file | grep --line-buffered search
Use vmstat . Also try vmstat -f to see # of forks (interesting). Use -w to make the output more wide.