Nov 01

A little more than two years ago talked about Damn Small Linux (DSL) and how I suggested it to a friend because it had revived an old PC of mine.

Yes… DSL revived it but I wasn’t sure what I would use the PC for. At one point I turned it into a XMAME machine, running classic arcade roms. And that was fun, but I didn’t have the time or craftsmanship ability to build a cabinet to house the machine. Nor was I willing to pay someone to have it built. Shortly afterwards, the computer went right back to the garage… Until Friday afternoon.

Compaq 5000 Desktop Series

Compaq 5009 Desktop Series

Yes! I found a real-life use for this machine! In fact, it will now serve a bigger purpose than it ever has! I purchased this machine in 2000 – the second computer I had ever bought. I remember buying my first and thinking I would never fill its 6GB hard drive… I wasn’t naive enough to think I would never fill this computer’s monstrous 15GB.

So this computer served for writing reports for school, for e-mail, and for surfing the web. About 6 months after I purchased it I got my first job in the technology sector. I needed to learn to navigate through *nix-based systems so I installed Red Hat 6 along side WindowsMe. Another six months went by and I noticed that my windows partition was almost full (I had split the drive in halves).

I went out and bought a second, bigger, faster drive and installed Mandrake 7.2. I liked Mandrake because I had been using RH6 strictly via the terminal. I never realized that I could install x on it. Wait… Did I just admit that on the web?

Mandrake came with a VERY NICE desktop environment. The bad thing was that I could not connect to the web. It didn’t recognize my network card and I didn’t know how to manually install the necessary components.

:) Thank God I had my Win98se laptop through all of this!

Needless to say… the computer became a jukebox 18 months after I purchased it. I would deposit my mp3′s there and play them. The computer had speakers, worked out great for the next few years. Until about 2008 when it would take WinMe anywhere between 5 and 10 minutes to boot up. I was relying more and more on my laptop so off to the garage it went.

The specifications

Desktop Specifications700MHz processor, 64MB ram, 11MB video memory, 15GB hard drive, CD-ROM drive, a separate CD-RW drive, a 56Kbps modem, and ethernet adapter.

How is this old computer useful?

I need a contact management system where I can keep track of communications I’ve had with business partners and customers. Instead of putting one up on this or another one of the websites that I manage, I thought, “Why not set the old computer up as a web server? Why not install Apache, MySQL, and PHP on top of DSL?”

That’s what I did. It took me a couple of days to get reacquainted with DSL and web servers… I had never set one up by myself and I did a lot of reading. Turns out that setting DSL up as a web server is one of the easiest things anyone can do! Everything comes pretty much pre-installed! Everything except PHP, which is a trivial task to get and install.

Quickest way to set up your server

Install DSL on the hard drive.
DSL comes with the Monkey Web Server and SQLite3 for a database. It also has perl and lau installed – these can be run on the cgi-bin (also preconfigured).

Really, the only thing missing was PHP! And this is much, MUCH simpler than how I went about it. I hacked it.. yes. But for what I need this system, it is PERFECT! There are two php packages in the MyDSL Browser. Simply search “php”, select either (I chose php-4-monkey.tar.gz), then click “Install Selected”. Installation is done!

Next… My hack

Launch a terminal. Copy /usr/local/bin/sqlite to /usr/bin/.

That’s it! Your server is ready to go! Ahhh… And DSL also comes w/ an SSH & FTP daemon. I added:
/usr/bin/betaftpd
/usr/bin/sshd
/opt/monkey/bin/banana start

to /opt/bootlocal.sh to have then start automatically when the server boots up.

Okay… It’s time for me to start building the contact management system.

Tagged with:
Aug 10

As most of you know, I didn’t have much time to do any programming in the past few years while I was in school. I completed my last class in December, 2010 and took a nutrition class for the spring semester of ’11.

It’s been about a month since I decided to start programming once again – currently getting reacquainted with C. I’m following a book I purchased back in 2000, “Sams Teach Yourself C in 21 Days (6th Edition)“. My version is a little outdated – it’s the 4th edition but it’s an easy book to follow. I’ve never had any problems with the “teach yourself in 21 Days” series.

I hope to get through C and go on to C++ (never used it before), Java, and later ActionScript (never used it before). If time permits, I hope to their syntax in the next couple of months.

I have done some cool things with C so far. I had never developed/compiled on linux (I use Ubuntu) before so it’s been fun learning to use gcc.

Also… I want to take a minute to thank the guys at Ubuntu Forums. I’ve posted code for some of my projects and they have helped me see where I could make improvements. I have also learned quite a bit about programming and algorithms.

I’ve uploaded the code that I submitted to Ubuntu Forums. They are two very popular games – Hangman & Tic-Tac-Toe.

And before you say anything… these are the last programs I will EVER publish with “gets()”. That said… I look forward to your comments.

Tagged with:
Aug 29

As I was waiting for installs from last night’s experience with my father’s Dell laptop, I remembered that this kid from the lab is getting real excited about linux and is always asking questions about it. He told me he had an older computer running Win98 which is no longer used because it is too slow and just completely bogged down.

At the beginning of the summer, I too had a Win98 machine which I REVIVED by installing Damn Small Linux on it. This is a 50MB OS! That’s ridiculously small! It comes with GUI, games, FireFox, an office suite, and a whole lot more. Here’s a pic:


So I burned the kid a CD with the iso. He has no experience with linux and this would be great for him to learn on. And he’ll be using an older computer so he can’t go wrong.

When I got to the lab, I put the CD on my laptop to show him around the OS a bit and I said “this is really meant to be on memory stick and just carried with you.” He said, “can you do that so I don’t take your CD?” I decided to do it just because I had never done it before. :)

How NOT to do it
I went to the DSL FAQ Wiki and looked at the process to creating the partitions and installing the iso on the usb mem stick. Here’s the FAQ that has the directions (http://www.damnsmalllinux.org/wiki/index.php/Installing_to_a_USB_Flash_Drive). When I saw the directions indicate fdisk this and that, I got a little worried. Last thing I want is to incorrectly point fdisk and wipe my drive clean. I installed GParted and as I was looking for it, I saw Ubuntu’s “USB Startup Disk Creator”. I tried to install the image using this utility, but apparently the utility only works for Ubuntu iso’s so it erred.

How to do it
After a few more minutes of reading, I saw a mention of UNetbootin. I looked in synaptic, and BAHM! found it. I immediately installed it, and ran it (Applications > System Tools > UNetbootin).


Browse to the iso in “Diskimage” field. In “Type” field select “USB Drive” and whatever the location of your USB device is. Then click OK. Done.

Result
The USB works great! Well, worked on my laptop beautifully but didn’t work on my friend’s Dell netbook (go figure — Dell doesn’t like to play nice).

Tagged with:
Aug 28

Ubuntu on Dell

Ubuntu on Dell

I’m happy to say I got it installed!

Oh yeah. After lots and lots of hours, I lucked out.

Here’s how this all started:

I installed Ubuntu 8.10 (Intrepid Ibex) in February. A few weeks ago, however, the laptop would stop during boot and indicate that there was a problem with the battery. It would hang there until you provided it input/confirmation that you had read the error. There were a couple of other issues as well.

He needed windows to view some charts that are only viewable through exe download and to be able to log onto a webinar. Additionally, there was a problem with his projector cutting off the bottom of presentation when OOo2.4 was launched.

Last night I fixed the battery issue. I looked up the specific error and found that letting the laptop turn off on its own because the battery is out of juice would take care of the problem. I did just that, then I removed the battery, booted Ubuntu without the battery (plugged into wall). I then shutdown, inserted battery and restarted laptop. Error gone. BAHM!

Next the projector. I tried all sort of setting and nothing worked. Everything looked just fine except when OOo’s Presenter was launched. I thought it might be an error with the version so I decided to update. This is where the problem began. It would not update!

I remembered that Ubuntu (9.04) Jaunty Jackalope came with OOo3.0. So I backed up his files, pulled up the Update Manager and clicked on the Jaunty update button. I waited. Everything was going awesome. All seemed well… but then the files installed. Out went wifi, mouse pad, USB, and more recognition. I tried so many things that were suggested on the web that I had no clue what I was doing anymore.

After HOURS of messing with Jaunty Jackalope, I decided to switch back to Intrepid Ibex because it’s where the computer was working before. So I installed it. Same thing. NOTHING recognized. After HOURS of looking online (I have memorized the first 10 results that Google returns for “ubuntu latitude 131L” — especially http://ubuntuforums.org/showthread.php?t=367898) I decided to look in synaptic for “dell” and “latitude”. Much to my surprise, there are a lot of entries from Dell! I installed them all! At this point, I just wanted something to click.

Being that I messed with config files (per forum recommendations) I decided I needed a fresh install. So a few hours ago, I installed Jaunty Jackalope on it once again. But this time EVERYTHING was recognized except for the the microphone and the wifi. But when I went to System > Administration > Hardware Drivers, I saw two wifi drivers! I installed those and the wifi works! Now all I need is the mic. Which is big… Especially for Skype, which my father uses A LOT.

Tagged with:
preload preload preload