Hardy Heron Hey!

June 19, 2008

Sorry for the long gap between the posts, I kinda lost focus. So here’s a new one.

I made a fresh install of Hardy Heron. I skipped Compiz, Emerald and AWN this time. I finally realized that some of this are still buggy, and are sometimes really annoying.

I decided to have my plain old Gnome and Metacity this time. No extra eye candies.

Now, I focus on productivity. I love my Gedit. I also love it when running with administrator privileges, so I made an appliction launcher sitting on my top panel with this command.

gksudo gedit

The gksudo command makes your gedit run with administrator privileges, it’s the pretty GUI box that darkens everything in the background and asks for your password.

Before gksudo, i ran my launcher with sudo, which keeps a bash terminal running on the background, it kinda eats up some screen real estate, so i decided to find a way to get rid of it.

I’m studying up on Python, it’s a great language. Guess what’s my best IDE for python.

Of course, Gedit!

There’s many tutorials online that teaches how to make your Gedit feel like a real IDE, nothing really comes close to a real IDE, but that’s actually the best part, ’cause we don’t want all of that bloat!

Here’s a tutorial I found to try to achieve a Python IDE:

Using Gedit as a Python IDE (instructables), this is actually good, but you may want to skip the python console on the bottom pane. When your script acts up, your gedit might crash too, you may want to see Better Python Console, it opens a new window and runs your script there. Neat.

I recommend the following plugins, which I myself, use everyday.

Auto Tab, learns your tabbing preferences and uses it when you Tab.

Better Python Console, an external python interpreter window.

External Tools, built in with Gedit.

File Browser Pane, built in with Gedit.

HTML Tidy, you’re a good person when you write good html. Shows you your HTML errors and will help you clean up bad mark up.

Indent Lines, built in with Gedit.

Insert Date/Time, built in with Gedit, good for Documentation.

Modelines, built in with Gedit, this is your usual beloved modelines.

Project Manager, organize your files into one project file.

Python Code Completion, really handy.

Python Outline, browse your code in GUI in the side pane, really good for big projects or large scripts.

Snippets, built in with Gedit.

Spell Checker, built in with Gedit, of course you’d hate a typo error.

Tag List, built in with Gedit, suggests commonly used tags or strings.

Word Completion, suggests words that are used in other files opened in other tabs or windows, really handy.

Oh, I almost forgot, here’s how to install these plugins.

Extract the files to:
/home/[yourname]/.gnome2/gedit/plugins/

if you want to install them for all users extract the files to:
/usr/lib/gedit-2/plugins/

That simple. Some other plugins, none in this post, will require you to install the plugin via a make or something else, don’t worry, those packages usually provide a step by step instruction, just NEVER IGNORE THE README file.

another compiz fusion HOWTO, but.. this time, with emerald. and it’ll be using amaranth’s repo (deb http://ppa.dogfood.launchpad.net/amaranth/ubuntu feisty main restricted universe multiverse).

Forlong’s Blog: The best way to install Compiz Fusion on Ubuntu Feisty

he also made a how to set up compiz fusion.

Forlong’s Blog: How to set up Compiz Fusion

and this is where i found out about this better installation, though i got burned a bit for posting another’s howto.

Ubuntu Forums: The best way to install Compiz Fusion on Ubuntu Feisty

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