Home » Archive

Articles in the Bash Category

Bash, Linux Administration, Open Source »

[3 Aug 2009 | No Comment | ]

I have previously written about Tilda, a gnome replacement for Yakuake. I had some issues with Tilda so I came to have a nice relationship with Yakauke. It’s important to note though, that there is another reasonable alternative to both Tilda and Yakuake and it’s called Guake.
Guake has some of the basic features of Yakuake but is still lacking in a few things. The main ones for me are:

Yakauke allows you to choose terminal width / Guake takes up fullscreen width. The advantage of this for me is that I …

Apache, Bash, Javascript, Linux Administration, Web Development »

[1 Jun 2009 | 15 Comments | ]

So, you have used Website Optimization Analyzer or you installed Yslow for Firefox or you discovered somewhere else that compressing your files (html, javascript & css) is a good thing to do. Unfortunately, it’s not always as easy as it looks to do this.
In Apache web hosting environments, there is a module called mod_deflate (for 2.x versions) or mod_gzip (for 1.3) versions. This is generally the easiest way to get content compressed. As in my last post about Magento, you should normally be able to enable this safely with the …

Bash, Internet Goodness, Open Source, Python, Web Development »

[29 Oct 2008 | No Comment | ]

I have been playing around with boo a little bit because it has Python-inspired syntax, runs at C# speeds and is a first class citizen on dotnet.
So I decided to find out what it would be like to do some web programming in it. I learned a bit about asp.Net in the process and mono also.
So first thing I did was:
$ cd /usr/share/doc/boo/examples/asp.net$ xsp2
and then from your browser you can run any of the “inline” samples
http://localhost:8080/InlineBooButtonClick.aspxhttp://localhost:8080/InlineBooExpression.aspxhttp://localhost:8080/InlineBooHelloAspNet.aspx
but if you try and run one of the code behind samples, you get something …

Bash, Linux Administration, Open Source »

[19 Oct 2008 | 2 Comments | ]

Sometimes I forget what power there is in free software. I put this quickie together the other day. Just be aware that it won’t handle any spaces in the PDF filename.
for i in *.pdf;do pdfimages $i ${i%.*};done && for i in *.ppm;do ppmtojpeg $i >> ${i%.*}.jpg;done; rm -f *.ppm
images are exported as
-00n.jpg – ie: the n’th image found in the pdf.

Bash, Linux Administration »

[28 Apr 2008 | No Comment | ]

Here’s a simple method of automatically muting your volume overnight and resetting it in the morning. This is especially good for those who use softphones, skype or an IM client that have sound alerts output to speakers.
We are going to use three command line tools for this: aumix, which and cron. We are also only going to set things up so the commands are run under the user account, rather than as root as cron used incorrectly can open up some security issues.
so, to get started try and run:
:~$ aumix
and …

Bash, Linux Administration, Open Source »

[4 Aug 2007 | One Comment | ]

Ok – some real-life critical experience today.. one of our web servers notifies us (thanks to csf / lfd firewall ) that the server has had a high load for greater than 5 minutes. I get logged in and see the 5,10 & 15 minute load average exceeding 30 and this server normally runs at a load of <1
Here’s the MRTG Graph of the load:

A quick look at top showed me approx 15 httpd (apache) processes maxxing out the CPU. Now, it’s a shared server with hundreds of Virtual …