Linux Blog

Diffie-Hellman Key Exchange

Filed under: General Linux — davidapnic at 8:16 am on Wednesday, October 29, 2008

Today we have a post from davidapnic, who has kindly written up some information about the Diffie-Hellman key exchange.

Diffie-Hellman Key Exchange is a popular mathematical key exchange algorithm. It allows two parties to establish a ‘key’ over an insecure medium such as the internet. As you will see, it doesn’t matter whether the intercepting party captures each piece of transmitted information, they will not be able to break the key in any way, other than the usual brute force method. (Read on …)

Back Again

Filed under: The Linux Blog News — TheLinuxBlog.com at 9:30 am on Tuesday, October 28, 2008

I had to leave town last Tuesday for a family funeral, and therefore did not make any updates to my blog. While I had a long drive that I could have wrote some posts, its sometimes nice to just take a break. I didn’t even update or check my Twitter account.

In the upcoming days I’ll have some more blog posts written. Its almost Halloween again, and I guess its been almost a year (maybe two) since I introduced Aaron but he never made a post. Perhaps I’ll convince him to write one since I’ve been helping him out with his blog BackwoodsHorror.com (and I just linked to him.) I do however have some guest posts from some one called Dave from the good old Internet’s that I’ll be posting for your reading pleasure. If you’d like to write for TheLinuxBlog, just send them to me by e-mail (owen–A T–thelinuxblog.com) or send me a message and I’ll create you a user account.

As always I appreciate user feedback and more content to publish would be awesome! Thanks for all of your contributions,

– Owen.

Working with CSV files in Bash

Filed under: Shell Script Sundays — TheLinuxBlog.com at 1:25 pm on Sunday, October 19, 2008

CSV files are very common. Using them with Bash to aid in scripting can be very useful. Here are a some methods of using bash to work with CSV files. These are what I sometimes use when dealing with CSV files in bash, they may work for your CSV’s they may not. I accept no responsibility of the accuracy of these, I’m sure there are better ways of accomplishing the same tasks. If anybody finds other ways or knows better please comment and let me know. Don’t run these on production data, its always a good idea to make backups and test them before using in a production environment. Who knows how your precious data could become mangled due to a wrong number of quotes, terminations or bad regex. Jump for the post (Read on …)

Microsoft Advertising Strategy

Filed under: The Linux Blog News — TheLinuxBlog.com at 12:01 pm on Tuesday, October 14, 2008

All right, so just because this is a Linux Blog does that mean I’m only allowed to blog about Linux technologies? Well, its my blog and since I’m here I might as well go ahead and write about what is on my mind.

Over the past year I’ve noticed a lot of advertisements that have the “nerdy” appeal to them. Namely the Mac Vs. Pc ones, and any others that you might see whist watching say the Office.

Well, it seems that Microsoft is trying to promote Server 2008 in this way. Creating “hip” advertisements that make people laugh. Whilst I thought the advertisement I saw on some IT blog was funny, after watching it a couple of times (downloading it, uploading to YouTube and posting it here) I’m starting to find it rather annoying.

So here is the video

What do you think of this video? I snickered at first, and then watched the other videos… (I had to bust out Windows, blow the dust off of it, endure the bootup and then install silverlight to see all of them) and I can’t say that it was time well spent. None of these adverts give me any information as to why I should use Windows virtualization other than the point of “We have a big marketing budget, buy our stuff” Well, if they are just trying to get the word out, I guess it worked, after all I am blogging about it :) If they’re trying to get people to think about it, then I guess it worked. This sort of reminds me of the older VOIP YOUR WAY ads, which I enjoyed a lot better. Again, they must have a huge budget for this as they have re-done the VOIP site (it used to be silverlight only, its now flash)

Well, I suppose I’m starting to rant now, so I’ll let you all go about your business. I’m posting this in the Linux Blog News category for lack of a better place. Perhaps I’ll create an area for non Linux related posts one day.

Add Voice to your Shell Scripts

Filed under: Shell Script Sundays — TheLinuxBlog.com at 3:52 pm on Sunday, October 12, 2008

Text to speech has been around for a number of years. While you may not want to add text to speech to all of your shell scripts you may have a particular script that would be nice to get some audio feedback from. There are a couple of text-to-speech engines that run in the shell, but my favorite is flite. It is really simple to install and use and has a decent set of voices. You can add other voices or compile your own with FestVox.

Here is how to use flite from the shell to directly play the text:

[owen@TheLinuxBlog ~]$ flite -t "Thanks for reading The Linochs Blog"

Notice the misspelling of the word Linux. If flite doesn’t correctly output the words, you can sometimes use phonetics to get a better result.

You can also play text files by using the -f option.

[owen@TheLinuxBlog ~]$ flite -t "Thanks for reading The Linochs Blog"
flite: pcm_params.c:2333: sndrv_pcm_hw_params: Assertion `err >= 0' failed.

(Read on …)

New Laptop

Filed under: Linux Hardware — TheLinuxBlog.com at 10:06 am on Friday, October 10, 2008

I’m excited because this weekend I’m getting another laptop. I’ve gone through quite a few laptops some of which have been more Linux friendly than others. I have been happy with my last two Toshiba laptops (Portege 4010 and Tecra M2) but this time I am buying a used Lenovo Thinkpad.

I was very happy with my last upgrade, from a 933MHz with 512MB of ram, to a 1.7GHz with 768MB ram that was recently upgraded to 1GB. The performance increase was phenomenal. Now moving from a 1.7GHz to am Intel Core 2 Duo should provide another greatly needed performance increase.

Forwarding Ports over an active SSH connection

Filed under: General Linux,Linux Software,Quick Linux Tutorials — TheLinuxBlog.com at 12:01 am on Tuesday, October 7, 2008

There is no doubt about it that SSH is a handy administration and remote access tool. Have you ever wanted to add port forwarding or cancel port forwarding from within an active SSH connection? Well, a feature that many do not know about is the ssh escape feature. With this pseudo terminal you can do some nifty things, such as forward ports over an active SSH connection.

To do this, follow these instructions:
(Read on …)

The Economy and Open Source

Filed under: General Linux — TheLinuxBlog.com at 11:53 am on Monday, October 6, 2008

The word on the street, at least all over the news is that we could be heading into bad times. All over the news sites are articles on how Open Source will or could save you money. For individuals that know about GNU/Linux, it is not a question that if you are building a new PC and you run Linux, you are going to save $100 from not having to buy an operating system. Often there are comparable applications that may be used as alternatives and a little more money could be saved. Many argue that time is money, you get your licenses when you buy a new PC, etc. I don’t know the exact answer, it’s hard to say for each individual case but I have not spent any money on software in a long time.

I don’t know if Open Source will gain more momentum because of the economy and I don’t think that any one knows for sure. All that can be done is speculate and correlate data.

Here are some Links to other articles on this topic for those that are interested:
Open Source To The Rescue In Hard Times
http://www.informationweek.com/blog/main/archives/2008/10/open_source_to.html

Linux and FOSS in a Slowing Economy
http://www.linuxjournal.com/content/linux-and-foss-slowing-economy

Interesting Finds

Filed under: The Linux Blog News — TheLinuxBlog.com at 12:11 pm on Friday, October 3, 2008

This week I’ve been particularly slacking on this blog. However I did get to talk to the guys over at Linux Cranks. Throughout the week I found some interesting stuff on the web. Most of its Linux or tech related so if you’re interested … (Read on …)

Getting a Hand With Bash

Filed under: General Linux — TheLinuxBlog.com at 8:27 am on Wednesday, October 1, 2008

If you use the bash shell, or as many know it the terminal on a regular basis then there is a package that you can install that will make your life a whole lot easier. Firstly I’ll tell you a little bit more about it.
When I first started using Linux a friend told me to install this package. I never really understood what it exactly did, but using the terminal was a whole lot easier then using the command prompt in Windows. I couldn’t explain it but things just worked. Features that were missing from Dos were there. There was awesome auto completion that knew what I wanted to type. Over the years I became more accustomed to using Linux and the Bash shell. I upgraded hardware, changed distributions and never really noticed what I was missing out on. The other day I was thinking, wouldn’t it be nice if I could press tab and this would auto complete. Then it hit me, the package my friend had told me to install when I first was starting out. The package happened to be exactly for this purpose. Since I was a novice and he was helping me out I didn’t really have the time to ask about the details of every single package, so here I am now letting you in on a little secret. (Read on …)