Year: 2014
-
[FIX] tcpdump: non-network bits set in “1.2.3.4/24
Use the lowest IP of the range, ergo: # tcpdump net 1.2.3.0/24 # tcpdump net 10.0.0.0/8 not .1 at the and.
-
End vim macro in insert mode
Start recording macro (i normaly use qq) Do commands, end in insert mode Ctrl-o q Macro is now ended and saved in insert mode
-
Chrony status command (ntpq -p alternative)
$ chronyc sources 210 Number of sources = 4 MS Name/IP address Stratum Poll Reach LastRx Last sample =============================================================================== ^+ arethusa.tweakers.net 2 10 377 22m -574us[ -574us] +/- 27ms ^* ntp0.mediamatic.nl 2 10 377 22m -946us[-1032us] +/- 32ms ^- dns02.wsrs.net 2 9 377 192 -54ms[ -54ms] +/- 91ms ^+ hosting01.spk.rickes.nl 2 10 377 22m -1834us[-1834us]…
-
Cron headers unix / linux
Compact: #.—————- min (0-59) #| .————- hr (0-23) #| | .———- dom (1-31) #| | | .——- mon (1-12) #| | | | .—- dow (0-7|mon-sun0) #| | | | | Wide:
-
Howto: vmware resize disk (lvm/ext4)
Very short version: echo 1 > /sys/class/scsi_disk/2\:0\:0\:0/device/rescan Resize disk in vmware fdisk /dev/sda2 p, d, 2, n, p, 2 , 258, t, 2, 8e, w reboot/rescan pvresize /dev/sda2 lvextend -l +100%FREE /dev/mapper/VG-lv_data df -h && echo “Be happy” Using parted: resize disk, reboot parted, p (should give larger disk, remember partition start for lvm part)…
-
Delete old yum/rpm packages from repository (reposync)
repomanage -k2 –old /data/repo/data/el-6-epel | xargs rm -f
-
[Fix] KS RHEL minimal (no base)
Not documented in the kickstart docs I use: https://fedoraproject.org/wiki/Anaconda/Kickstart , the way to do a minimal (core/nobase) install: %packages –nobase @core @server-policy %end
-
[Fix] NFS directories mounted as ‘nobody’ user
My nsf shares were mounted as ‘nobody. In /etc/idmap.conf the [Translation] Method= nsswitch, so that is not the problem. Solution is to do “nfsidmap -c” on the box where the share is mounted. And make sure the uid/gid’s are the same (use ldap or something).