[FIX] Clean up old puppet reports and reclaim mysql space (ibdata)
MySQL for puppet dashboard gets BIG. You can make this smaller by deleting old records. Source for this article is here. To get the size in GB of the dashboard:…
MySQL for puppet dashboard gets BIG. You can make this smaller by deleting old records. Source for this article is here. To get the size in GB of the dashboard:…
I got “Could not allocate requested partitions: requested size exceeds maximum allowed” while installing RHEL on a SAN. Linux seems to be having a max partition size of 2.2TB (2TB).…
A RHEL update today fucked up a RHEL system, giving: “vfs unable to mount root fs unknown-block”. Fix: Boot from RHEL CD Choose rescue mode Start (with network) Type: chroot…
I sometimes need the java control panel. It is not named like the other java programs (java javac javadoc javah javap javaws), that is why I sometimes can’t find it.…
I got this on my laptop: Progress state: NS_ERROR_FAILURE VBoxManage: error: Failed to install "/home/klu/tmp/Oracle_VM_VirtualBox_Extension_Pack-4.2.18-88780.vbox-extpack" VBoxManage: error: The installer failed with exit code 127: Error creating textual authentication agent: Error…
Get the full path of a file via: $ readlink -f ./file Tip: make an alias: alias fullpath='readlink -f'
While transferring 200k files to my USB HDD, it stopped and when remounting the disk, I got: Error mounting /dev/sdj1 at /run/media/karlo/WD: Command-line `mount -t “ntfs” -o “uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177” “/dev/sdj1” “/run/media/karlo/WD”‘…
This might be helpful for someone. A quick script I made for changing output modes on my Dell laptop. There are different configurations. laptop: laptop screen only vga: vga output…
Encrypt: openssl enc -aes-256-cbc -a -salt -in plain.txt -out encrypted.enc Decrypt: openssl enc -d -aes-256-cbc -a -in encrypted.enc -out plain.txt Functions: #!/bin/bash function encrypt() { openssl enc -aes-256-cbc -a -salt…
You can check the endtime/end time/notafter/expiration date of a site by doing this: openssl s_client -connect google.com:443 2>/dev/null
Delete package cyrus-sasl-ldap after verifying you don’t need SASL/LDAP on your machine. See https://bugzilla.redhat.com/show_bug.cgi?id=167300 .
$ watch -n 5 grep Dirty /proc/meminfo Gives you the amount of unsync’ed memory every 5 seconds.
pvcp(){ pv "$1" > $2 } Should work. Not yet tested ;).
Adjust to your needs ;) #!/bin/bash # Create puppet module layout if ];then echo "$0 modulename" exit 1 fi if ]; then echo "Dir already exists" exit 1 fi #…
From here.: yum check dependencies \ | grep 'has missing requires' \ | sed 's/.\+has missing requires of //' \ | sed 's/ .\+//' \ | while read dep; do…
In tmux.conf, add: bind e set -g synchronize-panes Prefix-e now toggles pane synchronization.
I got: E558: Terminal entry not found in terminfo 'screen-256color' not known. Available builtin terminals are: ... This means that the remote host you are working on does not know…
Simple fix, as root: # hostname -f hostname: Name or service not known # echo "127.0.0.1 `hostname`" >> /etc/hosts # hostname -f karlo-laptop
On support websites I am noticing there is a lot of confusion about system load. This post is my attempt to make a short guide to understanding (and fixing) high…
Stop display of motd on login: # On the machine of which you don't want to see the banner $ touch ~/.hushlogin Stop display of banner on ssh login: #…
I always want to use tmux. So I put the following in my bashrc (just before the functions). # If not running interactively, do not do anything # If you…
Don’t know what a syscall code means in your audit output? Follow these steps to find out: Find the source for your kernel: https://www.kernel.org/pub/linux/kernel/v2.6/ Extract the file Go to //arch//include/asm…
I was working on a server which did not have ntpq installed, so I couldn’t do ntpq -p. Simple solution is to stop the ntp service and run ntpd -d…
I was not able to log into an old server. Directly after connecting over ssh, I got a “Server is going down” message. Solution is to reboot into safe mode,…
I recently got empty rpm’s back from Red Hat. The system was registered properly. Problem was thet for reposync, I used a different .repo file. This file still had the…
Add to tmux.conf: # Count 1 set -g base-index 1 set -g pane-base-index 1 Completely stop and start all tmux processes and you are good to go!
When I was updating to a new openldap server version, I got: samba olcObjectClasses: AttributeType not found: "displayName" I first tried recompiling the ldif’s with a new samba.schema (you can…
Are you getting the following on yum update ? libmcommon.so.0.0.1()(64bit) is needed by (installed) matahari-net-0.4.0-5.el6.x86_64 libmnet.so.0.0.1()(64bit) is needed by (installed) matahari-net-0.4.0-5.el6.x86_64 matahari-lib = 0.4.0-5.el6 is needed by (installed) matahari-net-0.4.0-5.el6.x86_64 libmqmfagent.so.0.0.1()(64bit)…
A RHEL6 installation complained: “DeprecationWarning: Call to deprecated function: hasNow” in /usr/libexec/rhsmd . According to RedHat, this is not a problem, as rhsmd is working fine. Workaround in order to…
yum-utils-1.1.31-7 fixes this issue, but it’s not available for RHEL (as far as I see). You can fix /usr/bin/reposync: --- a/reposync.py +++ b/reposync.py @@ -198,6 +198,7 @@ def main(): #…