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: 
--prefix=/etc/nginx 
--conf-path=/etc/nginx/nginx.conf                     # config file
--error-log-path=/var/log/nginx/error.log 
--http-client-body-temp-path=/var/lib/nginx/body 
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi 
--http-log-path=/var/log/nginx/access.log 
--http-proxy-temp-path=/var/lib/nginx/proxy 
--http-scgi-temp-path=/var/lib/nginx/scgi 
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi 
--lock-path=/var/lock/nginx.lock 
--pid-path=/var/run/nginx.pid 
--with-debug 
--with-http_addition_module 
--with-http_dav_module 
--with-http_geoip_module 
--with-http_gzip_static_module 
--with-http_image_filter_module 
--with-http_realip_module 
--with-http_stub_status_module 
--with-http_ssl_module 
--with-http_sub_module 
--with-http_xslt_module 
--with-ipv6 
--with-sha1=/usr/include/openssl 
--with-md5=/usr/include/openssl 
--with-mail 
--with-mail_ssl_module 
--add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-auth-pam 
--add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-echo 
--add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-upstream-fair 
--add-module=/build/buildd/nginx-1.1.19/debian/modules/nginx-dav-ext-module


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


5. Test
http://localhost


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: http://winff.org/html_new/
FFmpeg home: http://ffmpeg.org/


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:


vascript-common
libjs-cropper
libjs-prototype
libjs-scriptaculous
libphp-phpmailer
libphp-simplepie
libphp-snoopy
php5-curl
php5-gd
php5-intl
tinymce
wordpress
wordpress-l10n
wwwconfig-common

4. Check Installation


$ find / -name wordpress
...
/var/lib/wordpress
/usr/share/wordpress
/usr/share/doc/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 (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): 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:
http://localhost




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: 

http://localhost/phpinfo.php





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

gLabels.org: http://www.glabels.org/
Ubuntu App Review (gLabels label maker): http://www.youtube.com/watch?v=sS1eLNyY0OY&feature=related

2. Installation

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