as a webdeveloper this was my first priority to install. a lot of people say that linux is hard to use, but installing lamp on an ubuntu installation is not hard at all, it’s a heck lot easier than installing in windows, lesser ticks and tacks to make it work. once installed, you’ll be confident that it’s gonna run properly.

so what is lamp? it is Linux Apache MySQL and PHP.

Installing LAMP On Ubuntu For Newbies | HowtoForge – Linux Howtos and Tutorials

Update your Sources

sudo apt-get update

Install Apache and PHP5
in the terminal

sudo apt-get install apache php5 libapache2-mod-php5

Refresh Apache then try it on
again, nowhere else

sudo /etc/init.d/apache2 restart

then in your browser open this address

 http://localhost/

and if you have your machine on a local network try this address on another computer in the same network.

http://{your_machine_name}/

Try PHP too
create a php file, in your terminal

gksudo gedit /var/www/test.php

copy and paste this in the newly opened gedit

<?php phpinfo(); ?>

now open it up in your web browser

http://localhost/testphp.php

Install MySQL
once again in the terminal

 sudo apt-get install mysql-server

to allow other computers in the network to get access to mysql, edit my.cnf

gksudo gedit /etc/mysql/my.cnf

and change this line, using your ip address

bind-address = 127.0.0.1

Set MySQL password 

mysql -u root

the prompt should change to mysql>, then enter the following

SET PASSWORD FOR ‘root’@'localhost’ = PASSWORD(‘yourpassword’);

Install PHPMyAdmin
this is a great tool for managing databases, it’s web based, so you’ll be using the web browser with this one.

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

and now to make PHP work with MySQL

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

look for this line, and remove the semicolon.

;extension=mysql.so

Again, refresh Apache, then your Done.

sudo /etc/init.d/apache2 restart

it took me two days to find the best solution on how to install compiz fusion in my 5 hour old ubuntu feisty fawn, i’ve tried about three bad HOWTOs, they weren’t actually bad HOWTOs, i’m just not at all good in linux, so there, i kept on looking for easier ways. silly me, i haven’t tried the HOWTO in compiz fusion’s home site.

Compiz.org :: Compiz and Compiz Fusion GIT Ubuntu Repository – Compiz

add the repository

this one is unofficial, but recommended by compiz.org. for me, it;s one of the best REPOs i’ve found.

# Treviño’s Ubuntu Feisty EyeCandy Repository (GPG key: 81836EBF)
# Many eyecandy 3D apps: Beryl, Compiz, Fusion, AWN and kiba-dock
# built using latest available (working) sources from git/svn/cvs…
# if you are on AMD64 add -amd64 to the end of the two lines below
deb http://download.tuxfamily.org/3v1deb feisty eyecandy
deb-src http://download.tuxfamily.org/3v1deb feisty eyecandy

you can also add this through the GUI, just go to:

System > Administration > Software Sources > [enter your password] > [tab] Third Party Software > [button] Add…

then add the two deb lines above. if you did this, DO NOT CLOSE THE WINDOW YET until you’ve gotten the public key for the repo.

get the public key for the repo
enter this in your terminal

wget http://download.tuxfamily.org/3v1deb/DD800CD9.gpg -O- | sudo apt-key add -

if that did not work try:

KEY=DD800CD9; sudo gpg –keyserver subkeys.pgp.net –recv $KEY && sudo gpg –export –armor $KEY | sudo apt-key add -

upon success, if you added sources via the GUI, now is the right time to close it.

update the package list
again in your terminal

sudo apt-get update

if you added sources via the GUI, it’s been already updated.

now the installation begins
in the terminal..

remove the previous (default) compiz installation

sudo apt-get remove compiz-core

then install all the needed packages, replace gnome with kde if your on, uhh.. kde.

sudo apt-get install compiz # compiz-gnome

install the compizConfig configurator

sudo apt-get install compizconfig-settings-manager # compizconfig-backends-* ?!

install the plugins, yey!! Ü

sudo apt-get install compiz-fusion-*

you’re basically done with the installation. now you try it on.
alt+F2 on your keyboard, then enter

compiz –replace.

notice the new item: System > Preferences >CompizConfig Settings Manager

make compiz fusion run on startup (on boot)
go to: System > Preferences > Sessions > [button] New
enter Compiz for name and enter

compiz –replace -c emerald &

for command.

welcome

August 30, 2007

ubuntu feisty fawn eye candy for dummies like us.

i’ll be posting links to HOWTOs and walkthroughs about installing or maintaining ubuntu packages, i know it’s hard looking for references, so here, i plan to post all of the best HOWTOs i’ll be running into. most of my posts will be HOWTOs that worked in my machine.

i’ve been using ubuntu for about 4 days now, hahaha, not a long time at all.

i would also like you guys to hand in some of the working HOWTOs that you’d run into, basically that’s how this blog would work.

so there, happy apt-getting to all of us.