Category Archive for "linux"



IT & Tips & linux marky on 06 May 2010

Boot From USB Drive (pre-bios supported)

This was taken from How-To-Geek and I have it here just for archival purposes.  This is by far one of the most helpful tools when dealing with legacy servers!!!

I am not sure who wrote it but if I knew I would give him huge props, not to mention credit for this article as well.

Boot From a USB Drive Even if your BIOS Won’t Let You

You’ve always got a trusty bootable USB flash drive with you to solve computer problems, but what if a PC’s BIOS won’t let you boot from USB? We’ll show you how to Continue Reading »

Apple & Malware & Microsoft & Virus & bad form & bullshit & linux marky on 06 Oct 2009

Antivirus Pro

I sent this email out to the staff of my $DAYJOB.

As of late the Technicians of the world have been overrun with some malware called “Antivirus Pro”. It is delevered via a flash banner with Java embedded that runs when you close the popup. Then demands your credit card to remove the virus that it self Continue Reading »

IT & Microsoft & linux marky on 06 Oct 2009

A bit of a change

Since my world really is based in Windows, and some major changes are happening. Windows 7 and Exchange 2008, I have been focusing on Windows as of late. I still truly believe that Ubuntu and Linux are very very very close to opening the worlds mind to change. But the business world is still very grounded in Microsoft. At the end of the day Microsoft products are what pay my bills.

X11 & linux & quick linux hints marky on 22 Apr 2009

Enabling CTRL-ALT-BACKSPACE again

This is the kind of stuff that gets under my skin. Why the hell would you disable CTRL-ALT BACKSPACE. All you have done in this case is limit the user from doing what he wants. I know “Cry me a river you f’in linux zealot!” Yeah, but why? CTRL-ALT-BACKSPACE has been the quintessential break out of X11 jail card for years. Now they are going to take it away.

NOT TODAY.

Lets edit.

sudo vi /etc/X11/xorg.conf
just paste this in to the bottom of your conf file
Section "ServerFlags"
Option "DontZap" "off"
EndSection

what the hell is DontZap? well we shall consult the wisdom of the man… page.

Option "DontZap" "boolean"
This disallows the use of the Ctrl+Alt+Backspace sequence. That sequence is normally used to terminate the Xorg server. When this option is enabled (as per default), that key sequence has no special meaning. Default: on.

Now why would they go to change that default behavior from off to on? I have no idea but now we have it the bomb. Martini time.

MySQL & linux & quick linux hints marky on 15 Apr 2009

MySQL got too big for the /var partition!

I have run into a situation where the current MySQL setup outgrew the original partition scheme. Yeah that sux. You have no idea. so I had to move the location of the MySQL data store. Here is what I did.

stop MySQL… this will throw fits if you don’t.
/etc/init.d/mysql stop
Take note on heavily used servers that can take a while for the transactions to finish. Just keep that in mind.

Anyway now you need to copy the files to your new location
cp -a /var/lib/mysql /foo/mysqlstore
your permissions should be preserved but double check. It really doesn’t hurt.
ls -lah /foo/mysqlstore
Move the old mysql store to a new location (for saftey purposes, just rename the directory until you know this all works)
mv /var/lib/mysql /var/lib/mysql.good
I found a site that recommended making a symbolic link to the original location, and I thought it was a good idea. So I do that too. Make sure that user and group are set to mysql

mkdir /var/lib/mysql
chown mysql:mysql /var/lib/mysql
ln -s /foo/mysqlstore/ /var/lib/mysql.good/

Whoo hoo it is done now. Wait… we need to tell MySQL to look to the new location.
as always we make a backup of the file we are about to change.
cp -a /etc/mysql/my.cnf /etc/mysql/my.conf.good.YYYYMMDD
emacs or vi your conf file (use any thing you want that edits the file pico, gedit, magnetic chisel if you so desire)

vi /etc/mysql/my.cnf
Edit the following lines:
socket = /var/run/mysqld/mysqld.sock
and
datadir = /var/lib/mysql
to
socket = /foo/mysqlstore/mysqld.sock
and
datadir = /foo/mysqlstore

start up MySQL

/etc/init.d/mysql start

It should work and you can now have a martini. If you have to put off the martini for a few minutes because it won’t start. Read your logs. They will tell you what is wrong. Fix what is wrong and then since it didn’t work off the bat you get two martinis.