Posts Tagged ‘Technology’

Enable SLM on Virtuozzo 3.0

Thursday, May 10th, 2007

After doing some research on SLM it looks like it is the way to go if you are running Virtuozzo 3.0. What is SLM, “Virtuozzo Service Level Management (SLM) is a system that maintains and allows administrators to configure and control the levels of service (i.e., the set of ‘promises’) provided to VPS owners.
I came across some different ways of enabling SLM on the VP Node, by far the best was the information about how to enable it with out a Node reboot. If you are running a current version of Virtuozzo you can do this with pretty much a simple modprobe. Just connect to the VP Node of your chose and run the following commands. These are the steps I tood to enabled SLM on my 512mb Virtual Dedicated server.

modprobe slm_core

Edit the following files and make said changes

/etc/sysconfig/vz and change the SLM entry to slm=yes
/etc/sysconfig/vzagent/vzagent.conf Locate the SLM entry, change it to 1.

Now you need to enable SLM on your Virtual Dedicated server. Since mine was a 512mb server I enabled it as shown to give it dedicated 512mb, with a burstable 1024mb.

vzctl set 408 –slmmode all –slmmemorylimit 512M:1024M –save

To check your settings you can login to your vps and use the free command.

free -m

If everthing went as planned you should now have an SLM enabled Virtual Dedicated server.

SSH automatic login assistance script

Thursday, May 10th, 2007

A while ago I did a write up on SSH keys, anyways I was looking into it a little more today and came across this handy little script that makes it… well simple.  I didn’t write it myself, I found it over here.  Go ahead and give it a try it works like a charm.

#!/bin/bash
# say: ./pussh.sh hostname
# Uploads your id_rsa.pub to the specified host, wrapped for readability
if [ ! -r ${HOME}/.ssh/id_rsa.pub ]; then
ssh-keygen -b 2048 -t rsa
fi
# Append to the copy on the remote server
cat ~/.ssh/id_rsa.pub | ssh ${USER}@$1 “cat - >> .ssh/authorized_keys”

if [ $? -eq 0 ]; then
echo “Success”
fi

MythTv Revisited

Thursday, May 10th, 2007

It has been a while since I have had a post about MythTV on here.  Since my roommate purchased a nice 40in LCD I figure I might as well start to rock the MythTV box again.  This time it will be running Ubuntu Feisty Fawn(Mainly for the ease of use/install)  I will have some pictures up once it is back up and running.
And on another note I have tweaked my site a bit so that it loads a hair faster, and by far faster than Vanessa’s site…

Gallery 2.2.1 Reinstalled

Tuesday, May 8th, 2007

I decided to reinstall the newest build of Gallery… So that means that all the pictures have been wiped out.  The newest build, dubbed the Double Double does seem to have some vast improvements over the last release.  I will be adding some pictures this week and checking them all out.  If you haven’t upgraded yet, then you should.  It was a pretty simple upgrade.  They have come a long way since Gallery 1.

Wordpress : Perfect Setup

Thursday, May 3rd, 2007

With working in the web hosting industry I get a lot of questions or how to minimize load and prevent comment spam. I thought that I would do a quick little write up of what I have found to be the best ways to head off these issues, many of which I use here myself.

First off you want to make sure that you are running the latest and greatest version of Wordpress(At the time of this writing the newest version was 2.1.3). Wordpress 2.1.3 has many fixes in it and a lot of code rewrites which not only improve loading time, but also cuts down on a lot of the queries that are not needed for certain functions. And as usual the upgrade from older version to the new takes only a few minutes thanks to the great upgrade script that is included with the install.

Minimal Theme: We all love to have a theme with a ton of bells and whistles to it, but all those extra images and tables can cause a lot higher load on Apache than something that is very trimmed down.

Less Plugins: Same goes here, it is always nice to have a tag cloud, stats and handfuls of trackers. The more of these that you remove the less queries that Wordpress has to make to the database, this can speed up things a log.

Here are the plugins and hacks that I have found to not only prevent spam, but give you an upper hand when combating spam on your blog.

Akismet - This is by far the best plugin to have enabled on the front line. Not only does it do a great job at catching spam, but it is written by the same folks that created Wordpress so it ties in very well… oh yeah did I mention that the service is free. Note: If you are not running Wordpress you can still make use of this plugin with other Content Management/Blog software.

WP-Cache plugin - This plugin alone has been shown to drop server loads from a Wordpress site anywhere from 50-80%. The install for this plugin is very straight forward and you can have it up and running in a matter of minutes. With the newer version of the plugin it also has some bug fixes with the built in Wordpress Cache. With in the settings of WP-Cache you can change the “expire time” from 3600 seconds to 600 seconds, this should help you out in case you ever make front page on Slashdot or Digg.

http:BL - This is a pretty new plugin that makes use of Project Honey Pot. This plugin verifies IP addresses of clients connecting to your blog against the Project Honey Pot database. You just need to enable it and then head over to ProjectHoneyPot.org and get a free account.

Post Query Accelerator - Changes the way that a variable is looked at in Wordpress so some queries are cached.

Bad Behavior 2 - I have actually yet to install this, mainly because of a lack of time as there are some extra tweaks that you need to do to get this working effectively with WP-Cache. I have done some reading and this looks to be much better over Spam Karma 2, not to mention they are looking at enabling http:BL into the next version which will do away with yet another plugin.

Now if you have a Virtual Dedicated or a fully Dedicated server you can do even more to the system, and some hosting providers might even do these type of changes on a Shared platform as well.

eAccelerator - This is a great add-on for any system. It caches parts of scripts so that PHP does not have to run the file again, cutting down on CPU usage. In most cases the default settings for this after install should do you well. You can check out my article on how to install it.

Lighttpd - I am still using Apache since I am on a CPanel system, and well Apache works just fine with it. But if you want to take on the task you should look into Lighttpd. Lighttpd is a light weight web server that is getting a lot of attention since it has a small footprint and still supports many of the same add-ons as Apache.

Stay tuned for more tweaks coming soon.

Not 7pounds

Wednesday, May 2nd, 2007

I have gotten a few emails from people wondering why they have arrived here when they were attempting to get to 7pounds.net.  I am not a squatter or anything like that, I actually own both of the domains and have for sometime now.  I recently decided to put an end to 7pounds since I wasn’t really keeping it updated.  Its much to hard to maintain multiple sites.  Anyways this will be the new home for it for a while, or until I decide that it needs to be on its own again.