Sunday, April 12, 2009

Tools to Develop websites in Linux

Here I am going to mention the basic and some pretty good tools to develop websites...
Of course using Linux and free software :P.
  1. First program I use is XAMPP which includes a web server (APACHE), Database System (MySQL) and includes PHP. Besides this capabilities of this program it provides with pretty good tools to manage a web based system, like PhpMyAdmin to manage MySQL with a pretty nice and easy to use GUI.
  2. Aptana is a free IDE to manage a website, to make easier to understand it is similar to Dreamweav....something, tough It has some nicer features despite that everything runs pretty much faster than Dream..something. And It is freeeeeeee.
  3. To develop and debug sites easier I recommend Firefox web browser with the some nice add-ons like firebug, web developer, css viewer and colorzilla are pretty good tools to manage, design and debug your website.
Instructions to install each of this are on their websites, no trouble to get this up and running.

Good Luck, I hope this is helpful.
And Tutorials for PHP, I rather Lynda.com video tutorials, they are great!!!

Having problems with your wireless network card?

It was very easy for me to get this wireless card installed...
The part that was very difficult was finding the right instructions.
  • In my case, I have a VGN-NR310E Sony VAIO laptop with a built in ethernet pci express Atheros card.
The way I got this working and it is pretty easy is the next few steps:
  1. Open up Synaptic Package Manager
  2. Search for ndiswrapper that will list 3 different files called ndisgtk, ndiswrapper-utils-1.9 and ndiswrapper-common.
  3. Install this 3 files and close the Synaptic Package manager.
  4. Now open a terminal window and type "sudo gedit /etc/modprobe.d/blacklist" and add this at the end of the file, blacklist bcm43xx, blacklist b43, blacklist b43legacy and blacklist ssb. Each of those are in seperate lines without commas. Which will disable any wireless built in drivers for atheros that might conflict with the ones we're about to install.
  5. Now, make sure you have the drivers from windows. Not the .exe files but the .sys and .inf files.
  6. Now we need to go to System/Administration/Windows wireless drivers
  7. Once it is open you need to click Install new driver and open the .inf file that will automatically read the .sys file. Both are needed
  8. Once you add the driver you just reboot and wireless will be working.
If any error prevent you from continue following the instructions just go to this page and check for further information.

I Hope this works as it did for me. Good Luck!!!

Friday, April 10, 2009

How to make Ubuntu Mount a Drive at Startup

  1. First thing you got to do is Mount the drives you wish to be mounted at startup
  2. Then run the following commands
    • sudo fdisk -l
    • cat /etc/fstab
    • df -h

    This commands will show you the following information.

    Click to enlarge


    Whit this information you would be able to figure out what you should have instead of the following sample lines.
  3. Now you need to run this command "sudo gedit /etc/fstab" which will open a text editor with the file where you need to enter the sample lines.
  4. /dev/sda5 /media/Documents ntfs-3g defaults 0 0
    /dev/sda1 /media/MorenoISC ntfs-3g defaults 0 0

    This line are the commands that tell ubuntu at start up to mount this drives:

    Drive is /dev/sda5 and directory is /media/Documents. The rest of the command is to tell the format of the drive and to allow read and write to files in it.



    Note: You need to install ntfs-3g to make sure your system supports NTFS

    sudo apt-get update
    sudo apt-get install ntfs-3g

    The previous lines will install NTFS-3g to support NTFS drives.

    The following line is to create the directory where you want to mount your Drives.

    sudo mkdir /media/Documents /media/MorenoISC
    sudo mount -a
    df -h


    And that is All... From now on those drives will be mounted at start up and will appear at the directory /media.....

    Good Luck!!!