Disable lid suspeld linux (no gnome)
edit /etc/systemd/logind.conf set HandleLidSwitch=ignore via http://revryl.com/2013/05/16/how-to-disable-auto-suspend-when-laptop-lid-is-closed-in-fedora-1817/
edit /etc/systemd/logind.conf set HandleLidSwitch=ignore via http://revryl.com/2013/05/16/how-to-disable-auto-suspend-when-laptop-lid-is-closed-in-fedora-1817/
I got the error “No space left on device” when doing mkdir. Steps to fix: Is there still space (yes in my case); df -h /data/ Are there still inodes…
Start using CD, tab at the install menu, add “inst.vnc inst.vncpassword=kluinst” and it will do a vnc install.
For https://valloric.github.io/YouCompleteMe/ you will need (on Fedora) to: cd .vim/bundle git clone https://github.com/Valloric/YouCompleteMe cd YouCompleteMe git submodule update –init –recursive sudo yum install cmake gcc-c++ python-libs python-devel ./install.sh
It is gone, and that is a Good Thing. See my post from 2011: http://karloluiten.nl/deprecated-linux-networking-commands-and-their-replacements/
Outlook and gmail do not always work together. If a someone sends you a mail from outlook using Rich Text, and has s/mime enabled, the mail will show in gmail…
$ yum install tnef $ tnef --save-body=body --unix-paths winmail.dat $ oowriter body.rtf
Use these commands to see if a private key matches a server’s certificate: # openssl rsa -noout -modulus -in server.key # openssl x509 -noout -modulus -in server.crt If the modulus…
If you want to validate your kickstart files, install pykickstart. It comes with /usr/bin/ksvalidator which gives info on what is wrong with your kickstart files (syntax et cetera).
If you only have samba libs, and not cifs-utils installed, you will get: mount: block device //10.0.64.60/linux is write-protected, mounting read-only mount: cannot mount block device //10.0.64.60/linux read-only So install…
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.
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
$ 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 +/- 27ms ^* ntp0.mediamatic.nl…
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…
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
My nsf shares were mounted as ‘nobody. In /etc/idmap.conf the Method= nsswitch, so that is not the problem. Solution is to do “nfsidmap -c” on the box where the share…
Problem: Dec 6 09:09:19 kahuna-karlo systemd-modules-load: Failed to find module 'vboxdrv' Dec 6 09:09:19 kahuna-karlo systemd-modules-load: Failed to find module 'vboxnetflt' Dec 6 09:09:19 kahuna-karlo systemd-modules-load: Failed to find module…
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).…
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…
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”‘…
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 ;).
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…
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…