[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…
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…
Get the full path of a file via: $ readlink -f ./file Tip: make an alias: alias fullpath='readlink -f'
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
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…
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 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…
cd /etc/ chmod -R 664 . *SHIT!* If you find you did an accidental chmod -R, you may be able to restore it. Make sure SSH login keeps working (chmod…
I have a scheduled.txt file like this: # Scheduled tasks for todo.txt # Format: # # a dow, Mon,Tue,Wed,... # b moy, Jan,Feb,Mar,... # d dom, 01..31 # D m/d/y…
Add this to your .bashrc: clippy() { echo "I see you're trying to use the terminal …"; echo " v "; echo " ╭─╮"; echo " ⌾ ⌾"; echo "…
$ gsettings list-recursively | grep gnome.shell.clock org.gnome.shell.clock show-date false org.gnome.shell.clock show-seconds false Set via: $ gsettings set org.gnome.shell.clock show-date true $ gsettings set org.gnome.shell.clock show-seconds true
This cost me some hours to find out, but I am currently using the native spotify linux preview under fedora 16, 64 bit: Steps: Make sure you don’t use spotify…
My tip: make a temporary directory for all kinds of random stuff. Downloads, quick notes et cetera. I use it a lot. By using a crontab like this, the old…
Remove audacity (#yum remove audacity), install audacity-freeworld (#yum install audacity-freeworld ). That’s it. You might have to enable RPMFusion.
Clear the BASH history easily via: $ >~/.bash_history Remember to log out after doing this.
Today, ifconfig was not working for me. I think this happened after I installed X11 on my headless server. $ ifconfig bash: ifconfig: command not found It turns out something…
If you want to use `top` over SSH, use the -t option: $ ssh -t servername top This also works if you want to use `tail -f` over ssh: $…