PHP 5.3.X on RHEL 5 / CentOS 5

PHP

PHP

Another one for posterity here. I was asked to find out how to upgrade on PHP RHEL 5 / CentOS 5 to v 5.3.x and to test the procedure. It turns out to work pretty well and is not as difficult as you might think as long as you have the right repositories enabled:

wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -Uvh epel-release-5-4.noarch.rpm
rpm -Uvh remi-release-5.rpm
yum –enablerepo=remi update php php-* mysql

This, of course, assumes that your LAMP stack is already installed. If not, you would change the “update” to “install” and away you go. This will currently set you to php v 5.3.3 and mysql 5.1.51..

EncFs

EncFs

EncFs


I had the opportunity to check out some encrypted filesystem stuffs recently. The one that really stood out as easy to install. manage and use, for me, was EncFs. Now this post is mostly for posterity, but I wanted to share that, unless you are trying to get it running on RHEL, it’s pretty easy to get set up. I mostly referred to this site and had it up and going lickety-split.. I really am thrilled with how easy this actually was…

Until….

I tried getting it running on RHEL 5. I will spare you all the gory details about how it took hours of peeling through the dependency issues with nonstandard RHEL packages, but you get the idea. What I will leave you with here is what actually made it work:

yum -y install fuse fuse-devel fuse-libs
wget http://packages.sw.be/rlog/rlog-1.3.7-1.el5.rf.i386.rpm
wget http://packages.sw.be/fuse-encfs/fuse-encfs-1.4.1-1.el5.rf.i386.rpm
rpm -Uvh rlog-1.3.7-1.el5.rf.i386.rpm
rpm -Uvh fuse-encfs-1.4.1-1.el5.rf.i386.rpm
modprobe fuse
useradd -G fuse your_user_name

And that was it! Bask in the glory!!!

TLLTS Email List

Thunderbird

E-Mail


We just mentioned on the last LinuxLink TechShow that we are starting a mailing list. Our intention is to provide a way to more easily disseminate information during the week to our listeners, have a place for some interesting conversation, ideas and help, and have a sort of virtual user group. If you would like to join in on the fun, point your browser to: https://www.thelinuxlink.net/mailman/listinfo/tllts and sign right up! I’ll see you there!

Linux Mint Debian

Mint Debian

Linux Mint Debian


I was sure excited when I saw the announcement that there would be a Linux Mint Debian edition. For some time now, I have been excited to look over practically anything involved with Linux Mint. It’s no secret that it is my favorite desktop Linux.

I grabbed the iso and set about installing it on my current slushbox, which is a 3ghz single core machine with 1gb of ram and a 40gb hdd. Of course I didn’t notice that it had no dvd drive until after I was already frustrated that the dvd wouldn’t boot in the machine. ๐Ÿ™‚ Eventually I came to my senses and hooked in an external dvd drive and was quickly greeted by the installer.

The first thing I noticed is the partitioner. When installing Mint proper, you can just autopartition the drive and use the entire thing. This is not so here, in fact, the partitioner didn’t even recognise my sata drive at all initially. I had to fdisk the thing and create a new partition table (can’t remember what was originally on the drive to be fair) before the partitioner would even see the drive far enough to suggest that I need to repartition it for Mint Debian. Even at that, the menuing at that point is not completely suggestive as to what and how this should be done. Since this was not my first rodeo, I partitioned the hdd with a 2gb swap (twice my memory size) and the rest with a giant root (/) partition. Be forwarned, the disk partitioning on this distribution is not something I would throw at a newbie.

Once the system was partitioned, the rest of the installation was relatively simple. This followed the normal Mint installation and the only thing notable about it was that it was simple enough to not be notable at all. Good job!

After the installation, I always make it a point to immediately do all the updates. The surprising thing here was the number of updates available. The distribution has been available for only a week and there were well over 300 package updates already. This is a good and a bad thing. It’s good proof that people are looking at things and improving them but it’s sort of annoying to have to wait 45 minutes to use your brand new distribution too. The other really notable issue here is that updates on this distribution are not as user friendly as on Mint proper. In the very first update I was asked what to do with some conf files it said I had changed, even though I had hardly had the chance to log in let alone change config files, and worse yet, the updates included grub, which asked me where to install itself. That is a particularly bad thing to spring on a newer user. I don’t understand why it couldn’t have checked where it was already installed except for a pretty poor implementation of the package update. Again, this is a big deal because a new person would have either given up, or had (in my case) a 50/50 chance of picking the wrong option here. If you are calculating odds, for a newbie, that is a 75% chance of horking your new Linux install. That would not be a good way to make a first impression.

Once all the updates were correctly done and I had a clean reboot just to make sure grub was installed correctly, things were rockin’. Over all I was impressed with the desktop. This is the typical Mint desktop that I have grown to love and appreciate since Mint 7. To me, Mint’s default desktop feels like my digital home.

Of course, there were some issues there too. Aren’t there always? Mint Debian is , obviously, Debian underneath and not Ubuntu, so, as you would expect, there are some differences. I found quickly that there was no xterm installed (oh come on people) and when launching gnome-terminal from the run command (alt-f2) I got an error about the default set of quotes not being available or something like that. That is a non issue for me because I turn them off anyhow, but still, that shouldn’t happen.

Running Mint Debian on this machine seems pretty snappy, so I did some resource checking. The entire system was running on only 144 megs of ram (nice)! CPU was a different story. It was running at almost 20% load. In contrast, my other machine running Mint 9 proper was running at 173 mb of ram and 6% CPU. Interesting difference since the other machine has 1.5gb of ram and a single core 1.7ghz proc. Other items of note are the placement of some menu items, etc..

What were my honest impressions? Well, it seems to me, in this instance that Mint can be seen as sort of an abstraction layer. What I mean by that is that Ubuntu used Debian as a starting point and then, in my opinion anyway, added a level of usability and polish on top of that to make a name for itself. In the same manner, Mint proper did that with Ubuntu as a base, adding a substantial, again in my opinion, level of polish. This same polish, applied to a Debian base gives you what we have in Mint Debian today. Unfortunately it’s missing the intermediate Ubuntu polish in there. ๐Ÿ™‚

This is not to say that I didn’t like Mint Debian. I very much enjoyed it. I am certainly looking forward to seeing it mature and I fully believe that all of the persnickety details I noticed will be fully addressed within short order. For those of you who have been “doing Linux” for a while, you should definitely check this out. For the new guys, give it a month or three. Like I said, I know I’ll be watching this one.

The NEW Oldest Linux Show

NewTLLTS

NewTLLTS

  I don’t even remember where the idea came from, but it was decided that after 365 shows, that’s one for every day of the year, folks, that we would consider that “season 1” for the LinuxLink TechShow, and we would then, finally, start on “season 2”. Those 365 episodes comprise 7 years of weekly recordings and add up to roughly 30 days of continual audio, day and night. I guess you could say we have been doing this for a while….

  Since last year’s Ohio Linux Fest we have had a few TLLTS Elders meetings to decide upon what we saw as the problems of the first TLLTS season, what we could do to fix them and what kinds of things we wanted to pursue for season 2. We tried to take into consideration the things we had positive and negative comments on from our listener base and years of our beloved “hate mail” ๐Ÿ™‚

  First and foremost we needed to address our constant audio issues. Long have we had complaints about our audio so we needed to make that a priority. We do have a very complicated setup in that area due to our arrangement of multiple hosts and guests in multiple locations, local and remote, not to mention the extra issues caused by being a live show, which causes us to add even more audio sources. You see, we don’t postprocess audio and dub things in later like promos and intro/outros. They happen as we roll along live, just like everything else. As it turns out though, a lot of our audio issues were actually caused by NOT using the Linux built in goodies. They were caused by our analog setup (mixer, compressor, cabling, etc..) Once we identified that we actually could remove that mess all together and just go digital, things got a lot better pretty fast.

  Other and maybe minor things we needed to address had to do with the loose format of the show, the show and guest planning and general preparedness, the timing of things during the show, regular guest hosts, the website and things of that sort. Boy, there sure were lots of things to work on!

  We decided that we needed to tighten things up a bit with the show format. We settled on trying hard to keep the show times from 8:30pm to 10pm (and no longer). We want to try and divide the show into sections, giving time to any interviews we may have while still sequestering some time for us for a little discussion as well. We decided on using some music as a separator, much like we did early on in the show – an intermission. An exciting addition here would be the possibility of also adding in some “shorts” or short topical audio segments dealing with our hosts specialty subjects. These would be not only a way for us to facilitate an important break in the show, but a way to generate some interest in a recurring topic and also provide a possible stepping stone into the hosts discussion on the second half of the show.

  We decided we would like to get not only some more good new guests, but also to revisit some of our wildly interesting past guests to see what they have been up to. Luckily, the ones I have contacted thus far have not only remembered us, but have also agreed to stop by again to say hello ๐Ÿ™‚ Make sure to check the calendar for who’s coming up and send along your suggestions of people you would like to hear from!

  One of the major things I was tasked with working on and updating was the website. I thought the old one was fantastic, mostly because I designed and coded it, but the other hosts assured me it was time for something new ๐Ÿ™‚ I pursued the great and famous Richard Querin who graciously came up with a great looking front page and theme and sent it to me. A little php work and content by Dann and I and you have the masterpiece you see now.

  I have to say that I really enjoyed doing the show for the last seven years. I get to talk shop with my buddies every week. I get to talk to really cool linux/open source celebrities. I get to meet and make a lot of geeky friends from all over the world, people who I have come to consider as almost family ove the last 7 years. It has been a helluva fun ride and I am eager to put a good start to the next 7, so make sure and head on over to http://tllts.org and join in the fun. The prelude to season 2 was recorded and put up for distribution right at the end of OLF 2010 and the official start happens 9/15/2010 @8:30pm EDT. See ya there!

Linux Mint – Debian?

Linux Mint Debian

Linux Mint Debian


Today is very important for Linux Mint. Itโ€™s one day to remember in the history of our project as weโ€™re about to maintain a new distribution, a rolling one, which promises to be faster, more responsive and on which weโ€™re less reliant on upstream components. Linux Mint Debian Edition (LMDE) comes with a Debian base, which we transformed into a live media and on top of which we added a new installer. Itโ€™s rougher and in some aspects not as user-friendly as our other editions, itโ€™s very young but it will improve continuously and rapidly, and it brings us one step closer to a situation where weโ€™re fully in control of the system without being impacted by upstream decisions…….
Read More Here

I am a man!

razor
Oh yeah, I have been busy, but I promised myself I would post some stuff as soon as I got a chance. One of the things I wanted to mention was my recent purchase of a straight razor. I bought this shave set from Amazon a few weeks ago and have finally learned how to shave with it without slitting my throat. Really, though, the reason I bought this was I have freakishly sensitive skin and get horrible razor burn just walking past the razor display in a store. The only decent shave I ever had was when I went to a barber and he shaved me with a straight razor. Combine that with Allan bragging about his wickedly cool badger hair shave brush and I was all of the sudden buying a straight razor.

Once I received the razor, I hit youtube for a couple straight razor shaving tutorials (hey I am not stupid), I put in a brand new blade and I was off to the proverbial races. Although I did nick myself a couple times (the worst was on the second shave) this really is not at all difficult and you get fantastic shaves. I highly advocate at least trying this, you will like it, and I can see no easier and inexpensive way to start than with the set I bought. Check it out!

My Web Workers Toolkit

Ahh, it’s been far too long since I have had anything to say here. I have to say that I have been *legitimately* busy this time. As many of you know, we have come to a close on the first season of The LinuxLink TechShow. That’s 365 (about) 2 hour long episodes over the course of the last 6 years. We are due to start our next 365 at the Ohio Linux Fest in a month. This leaves an enormous amount of prep work and a fair bit of reorganization to keep things exciting and help us start out with a bang.

One of the *surprises* in store brings me to my current topic at hand, my web workers toolkit.

People all have differing opinions about what you really need to do decent web work. As an old commandline jockey, I thought I would share my own.

1) Vim.
Quite possibly the best text editor in the world, I use vim for darn near everything. As a system administrator, it’s indispensable (for scripting) and I find it similarly necessary for web work. Vim has a fantastic (imho) syntax highlighting system which does quite well for html and php highlighting. The only caveat is to make sure to set “set background=dark” in your .vimrc file, unless, of course, you are one of those wierdos who uses a light background in your terminal.

2) tidy or the w3c validator.
I DEFY you to write good code without one of these. There is NOTHING as nice as standards compliant code and without a good validator, you will have nothing like standards compliant code. The reason I listed both of these is that tidy is a program you can use locally to check your code and the w3c validator will check any pages that are accessible via the web.

3) Many different browsers.
Unfortunately, all browsers are not made equal. You can be sure that all mozilla based browsers like Firefox, etc., will display things very similarly, and maybe even throw Google Chrome into that mix, but you may really want to check your code with Safari and IE to be sure things still look the way you had intended, and let’s not forget about a text browser like lynx or w3m to make sure your pages are readable and navigable that way too.

4) Lastly, for me, some good reference material.
One can hardly be expected to remember everything and having some reference material handy for those odd css commands and perhaps php/perl/python/someotherprogramminglanguage could really save you some time and frustration. Never underestimate keeping your old code around for example and never ever underestimate the power of the power of the Google Search!

In a nutshell, that’s generally what keeps me cranking out websites and webpages. What kinds of things do you use? What am I missing out on? Send a long a comment and let us all know what works for you! ( Unless, of course, you use emacs ๐Ÿ˜€ )

Splunk + OSSEC

splunk

splunk


I have just started working with splunk a little bit and one of the things I have tried is to hook it up to OSSEC. This, like most things these days, has proven to be interesting to say the least. Actually, it’s a very simple process, however, the documentation is abysmal at best and I spent hours pouring through different websites until I found the correct potion to get things actually working they way they are supposed to. I am documenting it here for future reference. I am currently running OSSEC v2.4.x and Splunk v4.1.4:

On splunk:

Install ossec module into splunk

splunk->manager->data inputs->udp->new
udp port – 10002
set host – ip
source type – manual
source type – ossec
save

Make sure 10002 is enabled

On OSSEC:

vim /var/ossec/etc/ossec.conf
add:
<syslog_output>
<server>172.25.3.3</server>
<port>10002</port>
</syslog_output>
under global config

/var/ossec/bin/ossec-control enable client-syslog

service ossec restart

You should now start getting ossec alerts to splunk…!

Linux User Needs Help

FreeLinuxBox


Got an email through the FreeLinuxBox.Org site today:

Hello,

My name is ***** and i a computer science major at the University Of Georgia. I have been a linux fan for about two years now and i am in need of a computer.I really don\’t have enough money right now to buy a computer. I am willing to pay shipping costs. Thanks for considering me.

Thanks

Obviously this kid is slightly confused on how the site works, but his email is not wasted on me. I understand that he is in need of a machine, a Linux box. He’e even willing to pay shipping. Can’t SOMEONE help this kid out? I am betting there are lots more like him too. Please take a couple minutes to inventory your stash of old computers you know you will never use and put them up on the site for donation to someone needy!

Head on over to http://freelinuxbox.org and click the “Login/Manage/New Entry” link on the top right of the webpage. Create a new account on there if you do not already have one (new accounts do not put a password – it’ll be emailed to you). Post your free linux box and go about the rest of your day happy in the knowledge that you are doing a good deed for a fellow human and linux user. ๐Ÿ™‚