Month: November 2013
-
[HOWTO] Copy and paste in tmux (complete HOWTO)
I often forget this (because I don’t use copy/paste a lot in tmux), so this is a reminder for me: Go to the pane from where you want to copy Prefix [ Navigate to beginning of copy part, press space Navigate to end of copy part, press enter Text is now in buffer. Paste by…
-
[FIX] The GPG keys listed for the “*” repository are already installed but they are not correct for this package.
I got: Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release The GPG keys listed for the “RHEL6 Server” repository are already installed but they are not correct for this package. Check that the correct key URLs are configured for this repository. Fix: Run the update command with -v. You will get the same output, but before the error, you…
-
[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 -uroot -ppassword > SELECT CONCAT ( ROUND( ( ( SUM(DATA_LENGTH)+SUM(INDEX_LENGTH) ) / 1024 / 1024 / 1024 ) ,2 ), ” GB”) as…
-
[FIX] Could not allocate requested partitions: requested size exceeds maximum allowed
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). Fix: Stop partitioning, click ‘back’ Go to a text terminal (alt-f2) Find the device you want to put a 2GB+ system on: ls -al /dev/mapper/…
-
[FIX] vfs unable to mount root fs unknown-block
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 /mnt/sysimage (to work in the actual disk) Go and remove the oldest kernel, find oldest kernel by typing `rpm -q kernel` Remove by doing: `rpm…
-
Linux java control panel binary location
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. The java control panel for Linux is called ‘jcontrol’ and can be found in (/usr)/bin/jcontrol. Now you can set java proxy settings in linux and…