OpenVZ 7 Upgrade Error !
While upgrading OpenVZ server I got an error as below : ==== –> Finished Dependency Resolution Error: Package: 10:qemu-kvm-vz-2.9.0-16.3.vz7.8.x86_64 (factory) Requires: libspice-server.so.1(SPICE_SERVER_0.12.5)(64bit) You could try using –skip-broken to work around the problem ** Found 1 pre-existing rpmdb problem(s), ‘yum check’ output follows: grub2-theme-openvz-1.4-1.vl7.noarch has installed conflicts grub2-theme-openvz: grub2-theme-openvz-1.4-1.vl7.noarch ==== This is a known bug and has been patched by OpenVZ Team and below is the fix : Update vzlinux-release yum update vzlinux-release Enable virtuozzolinux-factory repo – edit /etc/yum.repos.d/vzlinux.repo or launch […]
Read MoreFlush DNS cache
This morning I was doing some work with one of my website transfer and to see the changes on my MacBook laptop I knew I would need to flush the DNS cache so I wouldn’t have to wait for the cache to expire. So for anyone else who needs to know the commands here they are: OS X <= 10.5.1 (Mac OSX versions 10.5.1 and before) lookupd -flushcache OS X >= 10.5.2 (Mac OSX Leopard) dscacheutil -flushcache In Linux, the […]
Read MoreLinux Configuration and Diagnostic Tools
untitled System and Network Configuration * linuxconf – A GUI interactive interface available on Redhat 6.0 or later which includes netconf configuration. * netconf – A GUI interactive interface available on Redhat 6.0 and later. * kbdconf – A Redhat Linux tool which configures the /etc/sysconfig/keyboard file which specifies the location of the keyboard map file. This is a GUI based tool. * mouseconfig – A Redhat Linux tool used to configure the /etc/sysconfig.mouse file. This is a GUI tool. […]
Read MoreAuto lock your Mac when you walk away
We geeks all have some sort of bluetooth device on us like your Nokia N80 or your new iPhone (which I will be getting and LOVE) so why not take advantage of one of these as a beacon to your computer. With a small application you can set your computer to detect the proximity of your device and perform actions based on when it comes in or goes out of range. I’m using the free utility Proximity to do the […]
Read MoreGive me the most current file
I needed a quick way to maintain a current symlink to the most recent file by time stamp. Here’s one way to do it: ls -t1 *.jpg | head -1 | xargs -i ln -sf {} current.jpg
Read More#!/bin/bash
I think the number one skill a sysadmin should have is a solid understanding of shells and shell scripting. The Advanced Bash-Scripting Guide is a good place to start or take a refresher. From the introduction: A working knowledge of shell scripting is essential to anyone wishing to become reasonably proficient at system administration, even if they do not anticipate ever having to actually write a script. Consider that as a Linux machine boots up, it executes the shell scripts […]
Read More10 mental blocks keeping you from being a kick-ass sysadmin
Ok, it’s actually an article about 10 Mental Blocks to Creative Thinking but isn’t creative thinking a huge part of being a kick-ass sysadmin? Here’s what I thought of when I read each point, but I highly recommend that you read the whole article and look for ways it applies to you. In terms of what mindset you should be in: There is almost always more than one right answer. Don’t be so rigid with your logic that you become […]
Read MoreRepairing MySQL tables that will not open.
This should be handled on a case by case basis, but if you are using the default MySQL table type of MyISAM (which is the default storage engine unless changed or specified differently) here are a few options: The myisamchk utility can be run from a command line to checks, repairs, or optimizes tables. It is normally run while the database is not running. For more information about myisamchk visit the MySQL website. mysqlcheck is similar in function to myisamchk, […]
Read MoreCannot install binary packages using pkg_addCannot install binary packages using pkg_add
Failure to install binary packages in older FreeBSD versions using “pkg_add -r”. Solution: Add these lines to /etc/csh.cshrc (/etc/profile if you are using bash or sh): [FreeBSD 4.x] setenv PACKAGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4-stable/Latest/ setenv PACKAGELIST [FreeBSD 5.x] setenv PACKAGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5-stable/Latest/ setenv PACKAGELIST
Read More