Regenerate grub2
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
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…
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…
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.
(Note to self) /etc/udev/rules.d/70*
This is very annoying, and undocumented. Basically, you do not have to change anything on the linux side. It is just the TV that needs to know you are connecting…
In .tmux.conf: set -g automatic-rename off set -g allow-rename off
FILE=file_name; CHUNK=$((64*1024*1024)); SIZE=$(stat -c "%s" $FILE); for ((i=0; i < $SIZE; i+=$CHUNK)); do losetup --find --show --offset=$i --sizelimit=$CHUNK $FILE; done via http://www.commandlinefu.com/commands/view/13735/split-a-large-file-without-wasting-disk-space
mount -o flush /dev/sdf1 /mnt
Activate: Find the hidden .kobo dir after attaching the kobo to your pc/laptop Install sqlite3 sqlite3 KoboReader.sqlite INSERT INTO “user” VALUES(‘aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa’,’aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa’,’xxxx@xxxx.xx’,’xxxx@xxxx.xx’,’2aaaa aaaaaaaaaaaaa==’,NULL,NULL); sqlite> .exit Add dictionaries: http://www.mobileread.com/forums/showthread.php?t=196931
telnet towel.blinkenlights.nl
traceroute -m 255 obiwan.scrye.net
WIP sudo tcpdump -i any -nnvvv -s 1500 '(port 67 or port 68)'
Open gnome-control-center, go to system, details, default applications
systemctl enable nfs Failed to issue method call: No such file or directory Solution: use nfs-server .
python -c 'import crypt; print(crypt.crypt("Karlo", "$6$SaltHere"))' If your output ends with a dot, copy that as well.
When logging in (via SSH) to one of my systems, it said: timeout in locking authority file */.Xauthority When this happens: Make sure the users’ home dir is readable +…
If you want to change the selinux config, be aware that there are two files: /etc/selinux/config /etc/sysconfig/selinux The second one should be a symlink to the first one but I…