Browsing Category: "Techie"

sh: uncompress: command not found

tutorials August 1st, 2010

If you are uncompressing a program from a .bin and you are working with a freshly installed Linux distro, you might receive the following error – sh: uncompress: command not found. This error might be a result of either you have not installed gunzip on your system, or a proper link association with the compression application does not exist.

I will provide instruction on how to fix the latter first, because usually gunzip should be installed by default. To create the proper file linking we will use the ln command, which is used to create links to files. So, all you have to do is first make sure you are logged in as root, then run the following command:

ln -s /usr/bin/gunzip /usr/bin/uncompress

Once this has been done try running the command you executed last when you received the “sh: uncompress: command not found” error. I last encountered this error when I was installing the Valve Source gaming dedicated server – SRCDS, and I was executing the following command – ./hldsupdatetool.bin.

Now, if you do not have gunzip installed, just login as root and use yum or yast to do so. Below is how you can install gunzip using yum.

yum install gzip

How to mount and unmount a hard drive in Linux?

Techie, tutorials June 25th, 2010

I lease multiple Linux servers. One of them has multiple hard drives installed in it. After asking the data center to reload the OS on it, the staff only mounted one of the drives. Surprisingly it is extremely easy for anyone with a root access to mount a hard drive on a Linux-based system. Here I will show you the very basic ways to mount and unmount a hard drive.

For starters, you should first see what hard drives and partitions are available. A real quick way to see the available hard drives in your system is to run the command fdisk -l. The results will give you some helpful information about the drive(s), as well as information on the partitions.

I should point out that your hard drive or drives might be identified on your system as hd or sd. If you have multiple drives they will be identified by a letter, i.e. hda / hdb, or sda /sdb. The partitions on each drive will be identified numerically, i.e. hda1 /hda2, or sdb1 /sdb2. You can see this in the screenshot above.

Here is how to mount a hard drive in Linux.

First thing you should do is create a directory where the drive or partition will be mounted. In my case, I use the second hard drive for backups so I…

srcTitle – the answer to the “null” title for the “from” link in Google Buzz feed

Techie, searches, tutorials February 26th, 2010

google buzz logo srcTitle   the answer to the null title for the from link in Google Buzz feedThis morning I implemented Google Buzz. You can see the button on the left of this paragraph. After playing around with the code, I buzzed my last post, which was about high fructose corn syrup. When I checked my Google profile I noticed that after the title of the article there was a “null”, which linked back to the home page of my blog.

After spending few minutes searching on the Internet, I wasn’t able to find much information on the problem. Next I decided to look for API documents and other help information published by Google. Seeing that the Google Buzz button works by sharing via Google Reader, the best place for the answer was in the Google Reader help docs . I found this post – Adding a ‘Share in Reader’ link to your website or blog.

The solution to the problem is very simple and logical. As “title” – the title of the item you are sharing, is to “url” – the address of the item you are sharing, “srcTitle” is to “srcUrl”. In which case the former is the name you want to use for the source of the item, and the latter is the address to that…

blank