Installing LAMP server in Ubuntu 10.10

This is simple. The great folks in the Ubuntu/Linux community have a all-in-one package. Just run this command

sudo apt-get install lamp-server^

Just be sure to write down all your account passwords…trust me. Also, your web folder is in /var/www/ – anything in this folder is viewable on your webserver. The webserver index URL is http://localhost/ or http://127.0.0.1

You can check your php installation by saving the following code into phpinfo.php in the www folder. The www folder does not allow non-root write permissions by default. You can change this with a quick chmod command or write as root. First restart the Apache server with this command. I don’t know why since it was just installed but I found it necessary.

sudo /etc/init.d/apache2 restart
<?php
phpinfo();
?>

Next, I recommend installing phpmyadmin, it is a graphical front end for MySQL admin.

sudo apt-get install phpmyadmin

Two option window will open in installation one for web server reconfigure automatically [select apache2] and second for configure database for phpmyadmin with dbconfig-common [select No].

You will need to copy the apache.conf to /etc/apache2/conf.d/ from /etc/phpmyadmin/ or the page will return a 404 error.

sudo cp /etc/phpmyadmin/apache.conf /etc/apache2/conf.d

And restart Apache again,

sudo /etc/init.d/apache2 restart

Phpmyadmin can be found at http://localhost/phpmyadmin

read more

Installing Eagle on Ubuntu 10.10

Download the latest package for Linux from Eagle, basically right-click save as. The latest at the time I wrote this was 5.11.0
http://www.cadsoft.de/download.htm

It doesn’t matter where you save it, I just put it in ~/Downloads. Once you download, run the self extracting installer.

mkdir ~/eagle
sh ~/Downloads/eagle-lin-5.11.0.run

Now the installer is going to ask you (among other things) where to install, make sure it is the same place as the directory you just created. I suggest using “eagle” because that is where it will want to install the “projects” and “examples” folders. You can tell it to put them somewhere else but I figured the software writers had something in mind so why make it complicated.

Once everything is finished, you can run it by executing ~/eagle/bin/eagle. I like to make launchers to execute my commonly used programs. Right click on the top panel and select “add to panel” then “Custom Application Launcher”. Click on the icon and browse to the eagle folder/bin/eagleicon50.png. The Command is “/home/YOURNAME/eagle/bin/eagle”

read more

Installing Processing on Ubuntu 10.10

First download Processing from http://www.processing.org/download/. I used version 1.2.1 which was the most recent stable version at the time of this writing. Click the “Linux” link and it will give you the opportunity to save the package.

If you don’t explicitly define the path, the package will probably download it into your Downloads folder. Most Ubuntu users install apps in the folder /usr/local/bin or /opt/ – I use bin folder for no other reason than that is what I heard others using and I try to be consistent. I’m going to assume the most likely case and assume the package is in your Downloads folder and you want to unpack in the bin folder.

sudo mkdir /usr/local/bin/processing-1.2.1/
sudo mv ~/Downloads/processing-1.2.1.tgz /usr/local/bin/processing-1.2.1/
cd /usr/local/bin/processing-1.2.1
sudo tar -xcvf processing-1.2.1.tgz

Processing doesn’t work with the java version most likely installed on your machine because it uses Sun Java6. You need to activate first the partner repository, to do that, go to System–>Administration–>Synaptic package manager then go to settings–> repositories and activate canonical Partners.

sudo apt-get install sun-java6-jre sun-java6-plugin
sudo add-apt-repos
itory ppa:sun-java-community-team/sun-java6
sudo apt-get update
apt-cache search java

Most likely, you will have the opensource java version that comes with Ubuntu, however, you need to tell your machine to use the Sun version.

sudo update-alternatives --config java

Select the Sun version which is probably the last selection. Now everything should be ready. Let’s check to see if it works.

sh /usr/local/bin/processing-1.2.1/processing

You should get the Processing IDE with no errors. If you get errors something is wrong and needs to be investigated.

Let’s make a launcher to make it easier to start the program. Create a folder to put our custom icons in.

sudo mkdir /usr/share/icons/custom-icons

Download this image…
Assuming it is in Downloads folder again, move it to your new icons folder.

sudo mv ~/Downloads/processing.png /usr/share/icons/custom-icons/

Go up to the top panel, right-click, “add to this panel”, select “Custom Application Launcher”.

You’ll get a dialog box. Click the image and select the icon you downloaded. It should be in the folder /usr/share/icons/custom-icons/processing.png

Fill in the remainder fields like the image. (Click to open)

That’s it. Click the image and Processing should open.


References:
http://www.webupd8.org/2010/09/how-to-install-java-jre-and-java-plugin.html
http://www.unixmen.com/linux-distributions/4-ubuntu/1266-how-to-install-latest-java-version-in-ubuntu-1010-maverick-meerkat-via-ppa
http://wiki.processing.org/w/Supported_Platforms#Linux

read more

Apple-1 Operation Manual

It’s nice that there are geeks out there preserving the history of geekdom.


Click to see the entire contents at computerhistory.org

read more

Don’t mess with a hacker’s computer!

This is great… it’s a session at DefCon 18 by Zoz… Dr. Zoz Brooks from MIT and of “Prototype This” fame. Some dumb ass stole his computer. Zoz is a computer genius, you don’t steal a computer from a computer genius. That is like stealing bacon from a really fat guy. Bad idea. Here is his recount of the story and the resulting pwnage.

read more