Archive for the ‘Linux’ Category
Dec
16
How about some neat-o shell tricks for everyone to play with? I figured out some neat things the other day while trying to add some functionality to my shell, specifically through scripts or the profile. What I found was that the magic is in the profile!
Have you ever wanted to have commands that performed certain functions from quick keystrokes rather than long command lines? Of course you have, that’s why we all set aliases in our profiles like ‘ll’ instead of ‘ls -al’ and the like. But what if you want or need more functionality than simple command shortening? That’s what I was after, more function in a smaller form. Some way to pass variables to aliases to get more out of them. Ah, but you can’t pass variables to aliases, so we are stuck right? Wrong, that’s where the functions come in to play.
Read the rest of this entry »
Nov
6
Mr. Thierry H. was kind enough to post a comment with a nice little mod to the PERL round function I posted a while back. With his addition, you can now specify how many digits to show on the right of the decimal. Pretty neat, check it out.
Oct
27
For all you Debian and Ubuntu nuts out there, and especially the newbies, there is a nice little apt-get quick reference that has been added to the library. Take a look and get to apt-ing!
Oct
4
Here are some tips for getting Sun Microsystem’s Java environment up and running smoothly on Ubuntu. This includes the JRE (Java Runtime Environment – for running Java apps) and the JDK (Java Development Kit – for creating Java apps). It’s actually easier than you think! Basically, add the universe repo and use synaptec. An added advantage is that you can install updates through there too.
Sep
27
Well, this might be old news for some but maybe not for others so I thought I would share. I have been using RedHat (and its derivitives) for ten years or more now, so I have been real comfortable with up2date. In recent times, I knew yum was out there and you could use one or the other, but I stuck with up2date because after all, if it aint broke, don’t fix it, right? Well, then up2date broke. I noticed I was getting errors when trying to check for new updates and after a little research I found that the up2date repositories (for CentOS anyway) are gone, they removed them. This means that up2date is pretty much useless. I read up on yum a little bit and installed all of updates (by now there were quite a few that I needed) without a hitch, both in test and production. So, what I am passing on is that up2date has gone by the wayside, you might can get it to work again with a lot of tinkering, but my advice is to go ahead and make the switch to yum. You’ll be all the better and happier for it. From what I read, it does a better job of finding updates and dependancies as well. I certainly had no trouble with it (so far). You can run yum check-update to see if you have anything that needs to be updated, and yum update to get them. These are synonamous with up2date -l and up2date -u. Enjoy!
Sep
20
Recently I was working on a script for log reporting. You know, one of those handy little guys that send you some info every day helping to make sure you keep up with whatever it is that you don’t want to forget about. Well, some of the data was in a plain old text file, and there is nothing wrong with that. It’s easy to simply cat the file and pipe it through mailx or mutt, no fuss, no muss.
Read the rest of this entry »