Friday, September 21, 2012

Installing Nginx on Ubuntu 12.04

Installed Nginx on Ubuntu 12.04.

1. Resources
My previous installation on Ubuntu 11.04.

2. Installation
I used Synaptic to install Nginx.
It installed the following packages: nginx, nginx-common, nginx-full.

3. Check Installation
$ nginx -V
nginx version: nginx/1.1.19
TLS SNI support enabled
configure arguments: 
--conf-path=/etc/nginx/nginx.conf                     # config file

4. Start server
$ sudo /etc/init.d/nginx start
Starting nginx: nginx.

5. Test

Friday, September 7, 2012

Installing WinFF on Ubuntu 12.04

Installed WinFF (a GUI for video converter, ffmpeg) on my Ubuntu 12.04.

1. Resources

WinFF home:
FFmpeg home:

2. Installation

I installed it ("winff") using Synaptic.
It installed the following:

 libav-tools libavdevice53 libavfilter2 winff winff-doc

It placed its symlink under Sound and Video menu.

Thursday, September 6, 2012

Installing WordPress on Ubuntu 12.04 (Server)

Installed WordPress on my Ubuntu 12.04 Server.

1. Resources

How To Install WordPress in Ubuntu Server 12.04 LTS

2. Requirements

You need LAMP Server (Appache, MySQL, PHP) to install WordPress.
See Installing LAMP Server on Ubuntu 12.04

3. Installation

I used Synaptic to install WordPress.
Just search for wordpress and install.

It installed the following packages:


4. Check Installation

$ find / -name wordpress

$ ls /usr/share/wordpress/
index.php           wp-comments-post.php  wp-links-opml.php  wp-settings.php
readme.html         wp-config-sample.php  wp-load.php        wp-signup.php
wp-activate.php     wp-config.php         wp-login.php       wp-trackback.php
wp-admin            wp-content            wp-mail.php        xmlrpc.php
wp-app.php          wp-cron.php           wp-pass.php
wp-blog-header.php  wp-includes           wp-register.php

5. Create a Symbolic Link of WP folder in Appache Document Root

$ sudo ln -s /usr/share/wordpress /var/www/wp

6. Run Setup program

Find a setup program.

$ ls /usr/share/doc/wordpress/examples/
apache.conf  setup-mysql

Found it (setup-mysql). Let's run it.

I use "wordpress" for user name.
I use "localhost" for database name (same as URL)

$ sudo bash /usr/share/doc/wordpress/examples/setup-mysql  -n wordpress localhost
PING localhost ( 56(84) bytes of data.
64 bytes from localhost ( icmp_req=1 ttl=64 time=0.083 ms
--- localhost ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.083/0.083/0.083/0.000 ms
/etc/wordpress/config-localhost.php written
Trying to create upload directory: /srv/www/wp-uploads/localhost
Setting up permissions
Goto http://localhost to setup Wordpress

6. Change Owner of WordPress folder [updated]

$ sudo chown -R www-data usr/share/wordpress

I had a problem installing a new plugin for wordpress, getting an error:
"Unable to locate WordPress Plugin directory."

Changing of owner of WordPress folder fixed the error.

7. Test

Go to: http//localhost/wp

There we have it!

Installing LAMP Server on Ubuntu 12.04 (Server)

Installed LAMP Server, using tasksel.
I needed it to experiment WordPress.

1. Resources

Install Lamp With 1 Command In Ubuntu 12.04...
Easy LAMP Server Installation

2. Installation

Launch tasksel.

$ sudo tasksel

Select and Install "LAMP Server".
Give a password for MySQL root when prompted.

3. Check Appache2 Installation

Go to:

4. Check PHP Installation

Create a new php file.

$ sudo gedit /var/www/phpinfo.php

Enter the following:

<?php phpinfo() ?>

Restart Appache2.

sudo /etc/init.d/apache2 restart
 * Restarting web server apache2                                                 ... waiting              [ OK ]
$ sudo /etc/init.d/apache2 status
Apache2 is running (pid 17784).

Now go to: 


Monday, September 3, 2012

Installing nautilus-open-terminal

I found a convenient application, nautilus-open-terminal, which opens Terminal from withing Nautilus. Now I can open Terminal by right-clicking on a folder in Nautilus and selecting Open in terminal, making the folder current directory in  the terminal.

1. Resources

Add Open in Terminal Command to Nautilus Context Menu in Ubuntu 11.10 (Oneiric Ocelot)

2. Installation

I searched and installed nautilus-open-terminal from Synapitc.

Installing a Label Maker on Ubuntu (12.04)

Installed a label maker called glabels.

1. Resources
Ubuntu App Review (gLabels label maker):

2. Installation

Search for and install "glabels" from Software center.
After installation, you can launch it from the Office menu group.