Sep 21 2009

Setup LAMP on Ubuntu

Install Apache

To start off we will install Apache.

1. Open up the Terminal (Applications > Accessories > Terminal).

2. Copy/Paste the following line of code into Terminal and then press enter:

sudo apt-get install apache2

3. The Terminal will then ask you for you’re password, type it and then press enter.

Testing Apache

To make sure everything installed correctly we will now test Apache to ensure it is working properly.

1. Open up any web browser and then enter the following into the web address:

http://localhost/

You should see a folder entitled apache2-default/. Open it and you will see a message saying “It works!” , congrats to you!

Install PHP

In this part we will install PHP 5.

Step 1. Again open up the Terminal (Applications > Accessories > Terminal).

Step 2. Copy/Paste the following line into Terminal and press enter:

sudo apt-get install php5 libapache2-mod-php5

Step 3. In order for PHP to work and be compatible with Apache we must restart it. Type the following code in Terminal to do this:

sudo /etc/init.d/apache2 restart

Test PHP

To ensure there are no issues with PHP let’s give it a quick test run.

Step 1. In the terminal copy/paste the following line:

sudo gedit /var/www/testphp.php

This will open up a file called phptest.php.

Step 2. Copy/Paste this line into the phptest file:

<?php phpinfo(); ?>

Step 3. Save and close the file.

Step 4. Now open you’re web browser and type the following into the web address:

http://localhost/testphp.php

Congrats you have now installed both Apache and PHP!

Install MySQL

To finish this guide up we will install MySQL. (Note – Out of Apache and PHP, MySQL is the most difficult to set up. I will provide some great resources for anyone having trouble at the end of this guide.)

Step 1. Once again open up the amazing Terminal and then copy/paste this line:

sudo apt-get install mysql-server

Step 2 (optional). In order for other computers on your network to view the server you have created, you must first edit the “Bind Address”. Begin by opening up Terminal to edit the my.cnf file.

gksudo gedit /etc/mysql/my.cnf

Change the line

bind-address = 127.0.0.1

And change the 127.0.0.1 to your IP address.

Step 3. We are now going to install a program called phpMyAdmin which is an easy tool to edit your databases. Copy/paste the following line into Terminal:

sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin

Step 4. Now linking phpMyAdmin to Apache’s www folder

sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin

After that is installed our next task is to get PHP to work with MySQL. To do this we will need to open a file entitled php.ini. To open it type the following:

gksudo gedit /etc/php5/apache2/php.ini

Now we are going to have to uncomment the following line by taking out the semicolon (;).

Change this line:

;extension=mysql.so

To look like this:

extension=mysql.so

Now just restart Apache and you are all set!

sudo /etc/init.d/apache2 restart


Jun 25 2009

Power Wheels Racing Series

Power Wheels Racing Series from Jeff Kantarek on Vimeo.


May 23 2009

How to prepare an USB device to boot and install Windows 7

Prerequisites:

· Your BIOS must support booting to an USB device, and that functionality has to been enabled

        · An empty 4GB (or greater) USB device, and you’ve removed all other important files from the device. This process will WIPE IT CLEAN. You have been warned.

        · You must be using Windows Vista (or newer) DISKPART

Note: Don’t insert the USB device just yet. I’ll will tell you when.

Open a command prompt as administrator. From the C:> prompt, type:

diskpart

From the DISKPART> prompt, type:

list disk

Make mental note of the disks you have. Then, insert your USB device, and

list disk

again. You should see a new disk with a new number. That’s the number you’ll use in the next command:

select disk x

(x = the number for your USB device)

To make sure that there’s nothing on the USB device that will interfere with our booting; we will wipe out any and all partition information on the device. WARNING! This will wipe the USB device clean! It will delete and destroy any and all data on the device.

From the DISKPART> prompt, type:

clean

Now we want to create our primary partition for booting. From the DISKPART> prompt type:

create partition primary

Now we want to change to that partition and make it an active or bootable partition. From the DISKPART> prompt type:

select partition 1

When that step completes, type:

active

Next we need to format our active partition and assign a drive letter to the boot partition.

From the DISKPART> prompt type:

format fs=fat32 quick

When the format completes, type:

assign

You can now exit DISKPART and close the command prompt.

The USB device is now ready to boot. Next, just copy the files from the ISO (if you’ve mounted it using a tool which does this) or from the Windows 7 DVD onto the USB device.

Click here to download the Word DOCX


Apr 24 2009

DVD Playback for Ubuntu the Jaunty Jackalope

With appropriate codecs, DVD movies can be played in gxine, Totem movie player, VLC and kaffeine (for Kubuntu). I personally prefer the VLC player as it simply works, without having to do much configuration.

First, install the following library:

sudo apt-get install ubuntu-restricted-extras

This will install most of the codecs for multimedia (audio and video) playing.

The library package is not available in the Ubuntu repository, you have to use the libdvdread4 installer script.

sudo /usr/share/doc/libdvdread4/install-css.sh

This will retrieve and install the libdvdcss2. If it don’t work, download the deb installer at http://download.videolan.org/pub/libdvdcss/1.2.9/deb/libdvdcss2_1.2.9-1_i386.deb and click to install it.

Install the xine library
sudo apt-get install libxine1-ffmpeg

Install VLC
sudo apt-get install vlc

Now you should be to watch DVD in your VLC player.

If you want to use Totem Mplayer, you have to install totem-xine rather than using the default totem-gstreamer.
sudo apt-get install totem-xine


Dec 22 2008

Born Brave!

developers1


Nov 6 2008

CNN Hologram

 

Look familiar?? A long time ago in a galaxy far, far away….


Jun 12 2008

Synergy v1.3.1

SynergyI came across this new application called Synergy and it is amazing. I used the application all day today. I have it setup on my iMac and my Windows XP laptop and well it worked flawlessly once I had it setup correctly. I couldn’t get it working with using the hostnames but ip addresses work just as good. Now my challenge is to get it working with my linux box and iMac since my laptop is a dual boot system. Download your copy now at http://synergy2.sourceforge.net/