Archives / April 2014

  • April 15, 2014 - rob

    RPM DB Errors

    If you’re getting something along the lines of the following when performing any rpm operations (including yum), then I have a simple fix for you: 1 2 3 4 5 rpmdb: unable to join the environment error: db4 error(11) from dbenv->open: Resource temporarily unavailable error: cannot open Packages index using db3 – Resource temporarily unavailable […]

    Read More
  • Cursor movement h – move left j – move down k – move up l – move right w – jump by start of words (punctuation considered words) W – jump by words (spaces separate words) e – jump to end of words (punctuation considered words) E – jump to end of words (no punctuation) […]

    Read More
  • April 10, 2014 - rob

    My life and death wizards

    Read More
  • #!/bin/bash user=”root” password=”leialou30″ host=”localhost” backup_path=”/backup/mysql” date=$(date +”%d-%b-%Y”) # Get list of databases databases=$(mysql –user=$user –password=$password -e “SHOW DATABASES;” | grep -Ev “(Database|information_schema)”) # Create folder using date mkdir $backup_path/$date # Create dumps for each database for db in $databases do mysqldump –user=$user –password=$password –host=$host $db > $backup_path/$date/$db.sql done

    Read More
  • How to start vnc at boot up to login remotely 1. Install x11vnc sudo apt-get install x11vnc 2. Create the x11vnc.conf file vi /etc/init/x11vnc.conf 3. Add the following lines to the new file: start on login-session-start script /usr/bin/x11vnc -xkb -noxrecord -noxfixes -noxdamage -auth /var/run/lightdm/root/:0 -display:0 -forever -bg end script 4. Save the file :wq 5. […]

    Read More