Checklist for fresh Ubuntu installs

Now don’t bash me just for installing proprietary and restricted software on my computer. I have no other option for the time-being. I am too a free software evangelist.

Each time I (re)install Ubuntu on my laptop or home PC or on a friend’s laptop, I always forget some or the other software which I have to download at a later date. This is sometimes troublesome if I don’t have net working at my home and take the laptop to a wired workplace to download the packages. Here are the packages which I usually download and you would always find it as a part.

This includes many proprietary softwares as well, if you know a good replacement, please do take pains to inform me about it.

Runtimes

  • Adobe Integrated Runtime (proprietary)
  • Java 6 (free)

Applications

  • Twhirl (proprietary)
  • Terminator (free)
  • xChm (free)
  • Inkscape (free)
  • TweetDeck (?)
  • K3B (free)
  • Scribus (free)

Networking (incl Internet)

  • Thunderbird (free)
  • Epiphany (free)
  • FileZilla (free)
  • WireShark (free)
  • XChat (free)
  • Opera (?)
  • KTorrent (free)
  • Bluetooth OBEX Server (free)

System Tools and Softwares

  • Yakuake (free)
  • VirtualBox OSE (free)
  • Konsole (free)
  • QGRUBEditor (free)
  • APTonCD (free)
  • Wine (free)

Programming (Editors + SDK)

  • Geany (free)
  • Glade Interface Desinger (free)
  • Komodo (proprietary)
  • Netbeans (free)
  • Qt Designer + Qt Creator (free)
  • Qt SDK (free)
  • GTK+ Development Headers (free)
  • Leafpad (free)
  • Emacs (free)
  • Amaya (free)
  • QT4 Linguist and Assistant (free)
  • MySQL (free)
  • Apache (free)
  • PHP (free)
  • SQLiteman (free)

Multimedia

  • VLC Media PLayer (free)
  • Amarok (free)
  • Banshee (free)
  • Last.fm Scrobbler (free)
  • Miro Internet TV (free)
  • RealPlayer (proprietary)
  • Gstreamer Codecs (proprietary) (restricted)
  • Xine (proprietary) (restricted)

Configuration

  • Dust Theme (free)
  • Nautilus Action Configurations (free)
  • Nautilus Open Terminal (free)
  • Compiz Config Settings Manager (free)
Advertisements

Running PHP Applications on Linux

Overview:

I usually find that lots of poeple find it quite difficult to install any application made in PHP and MySQL on their Linux boxes. They find it a bit confusing how to configure the settings. How to install the LAMP stack. Where to put the PHP applications code. I was quite inspired to write to this after having I saw people facing problems on Ubuntu Forums. This is the one which I dealt with.

Sometimes spoon-feeding becomes important,but only for the first time.

Scenario:

A newbie who knows just the basics of Linux. He/She wants to run a PHP application like wordpress / phpBB / osCommerce on their computer.

The distro is assumed to be Ubuntu, though it doesn’t change much for others too.

Lets Start:

Step 1: Getting the LAMP stack on your system

You first need to install LAMP on your box, Installation is quite simple. Just get the following packages using the command on your terminal ( Applications> Accessories>Terminal)

sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server

While installing MySQL, it might ask for set up the root password,if it doesn’t ask, then continue.

For more information check this post here .

Step 2: Download the PHP application

You need to download the PHP application which you want to run over the webserver. Examples are WordPress, phpBB, osCommerce, MediaWiki etc

Get them and let it be in the folder where you have downloaded it.

Step 3: Moving these software to the Apache’s root directory

Apache’s root directory is /var/www (/var/www/html). This is owned by the user www-data which is a minimal user created just for running apache and web servers. A normal user cant write to this directory.

Now here is the solution of how to copy the data to this directory. This method can be used for any directory which the normal user does not have write access. The concept behind the method is to start an instance of nautilus ( explorer) with root (superuser) privileges. For this follow the isntructions

* Press Alt + F2

* A Run daialog box appears, over there type gksudo nautilus /var/www

* You will be asked for your password as you are elevating your privileges

* Nautilus opens up,now copy the tarball/zip file from the download location to /var/www

* Untar the archive by Right Click > Extract Archive

You may have the package in the folder say /var/www/wordpress. We are supposing wordpress as an example.

Step 4: Setting up username and accounts in database

Now you need to have a create a new database for the software you intent to work on. For this open MySQL from the terminal. If you had been asked to set up the password at time of MySQL installation then use this command

mysql -u root -p

and then enter the root password which you set up

if you were not asked to set up root password, then use this command at terminal

mysql -u root

After this is done you will be dropped to mysql prompt. Create a new database using this:

create database foo;

type quit to exit.

Step 5: Change the data in the config file.

Hunt for file which may have name such as config,settings etc etc. One you locate it,open to find the area for entering database settings. The settings should be:

Hostname: localhost

Username: root

Password: <the password you set up>

Database name: foo (or whatever you created)

Step 6: Access it via browser

Now point your browser to http://localhost/wordpress

You may get the basic installation thing or whatever stuff you need.

Additional Stuffs:

You can be asked to make some locations writable. There may be instances like the software cant write to a specific folder or file. It can be used for cache or any such temporary stuff. Then you need to change the permissions. Simply give write permissions to the user www-root. However this situation may be unlikely. e..g we have to change the permissions of folder /var/www/wordpress/cache

sudo chmod -cR u+w /var/www/wordpress/cache