Archive for the ‘Linux’ Category

Back in the mix.

Saturday, May 10th, 2008

After abruptly being woken up today nice and early I figured that I would put some work into my linux box. It was almost foreign to me, since I haven’t been doing anything linux since I moved. My Mediacenter has mainly just been sitting online running as a Transparent Squid proxy, Caching DNS server, Fileserver to my XBMC. The specs of the machine are as follows:

1.25ghz AMD XP
512 PC2700
784gb of Random SATA Drives.

As you can see its not anything that special, but houses a decent amount of drive space and handles everything just fine for my needs. That being said I wanted to squeeze a as much juice out of it as possible. I figured the best way to do this would be to remove any unused services that start, really no need in running cups when there is no printer connected to it. I also removed bluetooth, pcmcia, and a bunch of laptop services.
I really need to find my extra ram that I have laying around and spruce it up to 1gb of ram, as well as purchase another SATA card so I can add a few more drives that I have laying around. Adding the SATA card should boost me up to around 1tb of storage. More than enough space to start downloading the internets.

SSHMenu FTW

Monday, February 4th, 2008

I came across SSHMenu, and its is very handy if you have multiple machines that you connect into on a regular basis.  Here is a screenshot of the program to give you an idea.

SSHMenu

You can get more information on it over at their Official Site.

Horde Mail SQL SessionHandler issue

Saturday, February 2nd, 2008

If you have problems with Horde but SquirrelMail gives you the following message.

“A fatal error has occurred Could not connect to database for SQL SessionHandler. Details have been logged for the administrator.”

Here is what will fix the issue.

cd /tmp
ls |grep mysql

If you see nothing after that then type the following

ln -s /var/lib/mysql/mysql.sock

You will probably want to run /scripts/upcp after this to make sure that it updates everything else.

ktorrent ipfilter issues

Friday, February 1st, 2008

I have been having problems with kTorrent not unzipping the ipfilter list that it downloads and finally came across the solution.  I run gnome on my system and since kTorrent relies on a lot of kde libs and such it is only logical that it might have some issues.  For anyone having problems with the ipfilter not converting make sure you have the run the following command on your machine.  In my case I run Ubuntu.

sudo apt-get install kdebase-kio-plugins

If it still doesn’t work with this … umm well I dont have a fix for that.

Auto reconnect to Screen session

Wednesday, January 9th, 2008

I came across this bit of info which makes life easier. Just add this to your .bash_profile and when you SSH to the server it will auto attach to your screen session if you have one running.

if [[ $TERM != 'screen' ]] ; then
if [[ `screen -list | grep -v "No" | awk '$2 { print }' | wc -l` == 0 ]] ; then
screen
else
screen -dr
fi
fi

CPanel phpMyadmin MySQL Fix

Tuesday, November 6th, 2007

If you end up getting this error

#2002 - The server is not responding (or the local MySQL server’s socket is not correctly configured)

Then you need to do the following.

vi /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php

find
$cfg['Servers'][$i]['socket'] = ”;
change to
$cfg['Servers'][$i]['socket'] = ‘/var/lib/mysql/mysql.sock’;

next line
$cfg['Servers'][$i]['connect_type'] = ‘tcp’;

change to

$cfg['Servers'][$i]['connect_type'] = ’socket’;

You should be all set after that…