Archive

Archive for the ‘Linux’ Category

Flash-player for Mozilla Firefox

April 25, 2010 Comments off

I thing firefox should struggle a bit to make a contract with adobe on this regards which will save our time but in the mean while see the below methods to do it yourself.

From the tar file:-

unpack anywhere (as a root user)

# tar -zxvf install_flash_player_10_linux.tar.gz

Run the script

# ./flashplayer-installer

Copyright(C) 2002-2006 Adobe Macromedia Software LLC.  All rights reserved.

Adobe Flash Player 10 for Linux

Adobe Flash Player 10 will be installed on this machine.

You are running the Adobe Flash Player installer as a non-root user.
Adobe Flash Player 10 will be installed in your home directory.

Support is available at http://www.adobe.com/support/flashplayer/

To install Adobe Flash Player 10 now, press ENTER.

To cancel the installation at any time, press Control-C.

NOTE: Please exit any browsers you may have running.

Press ENTER to continue…

———– Install Action Summary ———–

Adobe Flash Player 10 will be installed in the following directory:

Mozilla installation directory  = /home/username/.mozilla

Proceed with the installation? (y/n/q): y

NOTE: Please ask your administrator to remove the xpti.dat from the
components directory of the Mozilla or Netscape browser.

Installation complete.

Perform another installation? (y/n): n

The flash plugin is installed now!

Or if the tar file just have the lib proceed with the following

copy unpacked ‘libflashplayer.so’ to ‘/usr/lib64/browser-plugins’ directory

# cp libflashplayer.so /usr/lib/browser-plugins

set permissions: ‘chmod 755 /usr/lib64/browser-plugins/libflashplayer.so’

# chmod 755  /usr/lib/browser-plugins/libflashplayer.so

From the repository:-

In Redhat :

# up2date  flash-plugin

In Suse:

# zypper in flash-player

Retrieving repository ‘openSUSE-11.2-Non-Oss’ metadata [\]

Expected errors:

System management is locked by the application with pid 4399 (/usr/sbin/packagekitd).
Close this application before trying again.

Fix:

Kill the process and rerun the command

# kill -9 <PID>

In Ubuntu:

Just visit youtube.com and a pop=up will appear asking you to install the required flash plugin it’s that simple!

Confirmation:

To confirm successful installation launch your Firefox browser and in the address bar type “about:plugins” and press enter.

Caution:

To install the plugin successfully it is advised to close all the instances of the firefox before running the plugin

Categories: How to Tags: , ,

Configuration of Redmine on Ubuntu

April 3, 2010 2 comments

Pre-requisite packages:-

Update your repository

# apt-get update && apt-get upgrade

Following packages are required from the redmine

# sudo apt install apache2 libapache-dbi-perl libapache2-mod-perl2 libdigest-sha1-perl subversion libapache2-svn apache2-threaded-dev

# sudo apt install ruby ruby1.8-dev rubygems rubygems1.8 ruby-pkg-tools libgemplugin-ruby libgemplugin-ruby1.8  libruby-extras libruby1.8-extras rails rake

# sudo apt install build-essential libdbd-pg-perl mysql-server

Install a couple of gems

# sudo gem install rails mongrel mongrel_cluster mysql –include-dependencies

Add gems to $PATH

Temporarily

PATH =$PATH: /home/qasim/.gem/ruby/version/bin/

export PATH

Permanently

Add the following line at the end of the /etc/profile file

export PATH=$PATH: /home/qasim/.gem/ruby/version/bin/

Downloading Redmine:-

Using tar file

$ mkdir /var/www/redmine

$ cd /var/www/redmine

$ wget http://rubyforge.org/…&#8230;../redmine-version.tar.gz

$ sudo tar xvfz redmine-versiontar.gz

$ sudo mv redmine-version/* .;rm redmine-version.tar.gz -rf

$ sudo chown www-data:www-data * . -R

Using svn repo

For this setup I’ll be using the 0.6 stable branch of redmine via svn, and installing it under /var/www/rails_apps/redmine-0.6

Create the directory and checkout Redmine

$ mkdir /var/www/redmine

$ cd /var/www/redmine

$ svn co http://redmine.rubyforge.org/svn/branches/0.6-stable redmine-version

Configuring Redmine:

Set up the database for Redmine to use

We’ll create a database for redmine by logging into mysql server

$ mysql –u root –p

mysql> create database redmine character set utf8;

Query OK, 1 row affected (0.04 sec)

mysql> exit

Bye

Copy config/database.yml.example to config/database.yml and edit this file in order to configure your database settings for “production” environment.

/var/www/redmine$ sudo cp config/database.yml.example config/database.yml

Now open the databse.yml file and edit it according to your credentials

production:

adapter: mysql

database: redmine

host: localhost

username: redmine

password: XXXXXXXX

encoding: utf8

socket: /var/run/mysqld/mysqld.sock

Create the database structure, by running the following command under the application root directory (/var/www/redmine)

# sudo rake db:migrate RAILS_ENV=”production”

Insert default configuration data in database, by running the following command:

# sudo rake redmine:load_default_data RAILS_ENV=”production”

Errors

Error reading /home/qasim/.nano_history: Permission denied

Run the rake command with root permissions

Access denied for user ‘root’@’localhost’ (using password: NO)

Either password in database .yml is incorrect or you forgot to write it in

Now it’s the time to test the beast performance let’s confirm that every nut and bolt is in place.

Trigger the following while living in the same /var/www/redmine:

$ sudo mongrel_rails start –environment=production

Output

** Starting Mongrel listening at 0.0.0.0:3000

** Starting Rails with production environment…

** Rails loaded.

** Loading any Rails specific GemPlugins

** Signals ready.  TERM => stop.  USR2 => restart.  INT => stop (no restart).

** Rails signals registered.  HUP => reload (without restart).  It might not work well.

** Mongrel 1.1.5 available at 0.0.0.0:3000

** Use CTRL-C to stop.

Switch to your favorite browser and point it to localhost:3000 with the following credentials to access the administrator’s dashboard.

web address: http://localhost:3000

username: admin

password: admin

happy mining :p

Nokia PC suite on Linux

April 3, 2010 1 comment

Here is ma ma first interaction (officially) with Nokia devices specially with E73.

Following needs to be done while sticking to the Linux distro for humans, yeah you caught me right “Ubuntu”

Task: File synchronization among the phone and linux distro

As we are operating in the open source environment having Nokia phones following issue will be faced as listed hereunder;-

1-      File synchronization with desktop

Nokia is not offering their mobile manager software PC Suite for the Linux operating system we are left with following options;-

1-      Install  PC suite using Crossover (Proprietary version of Wine)

2-      Use card reader to snatch mobile data from external SD card

3-      Alternative native Linux packages for PC suite

Considering the third option regarding alternative PC suite packages on Linux following packages have been identified;-

Series60 Remote Installation

Redhat distro

rpm -i series60*.rpm

yum install PyQt4 pybluez python-matplotlib python-obexftp rpmlib

yum install rpm-libs

Debian distros

sudo dpkg -i series60*.deb

sudo apt-get install python-bluez python-qt4 python-qt4-sql sqlite3 libqt4-sql-sqlite

Applications>Internet>Series60-Remote

Instll package on Mobile phone

Python for S60, Series60-Remote

Testing

Device = E61i

Nokinux installation

Download the tar package

wget http://launchpad.net/nokinux/trunk/0.0.8.5/+download/nokinux-0.0.8.5.tar.gz

Untar the file

tar nokinux-0.0.8.5.tar.gz

Now install the package

sudo ./nokinux-setup install
Nokinux Pre Alpha 0.0.8.5 Setup
Welcome, this script will install Nokinux in your system.

==> Installing dependencies
Choose your distribution:

1. Debian, Ubuntu and derivatives
2. ArchLinux
3. Mandriva ( Experimental )
4. Fedora ( Experimental )
5. Suse ( Experimental )
6. Others

Enter number: 1
* Run APT-GET… Done
./nokinux-setup: line 104: /home/qasim/.nokinux/distro: No such file or directory
Warning: Dependencies install failed. Please install manually these packages:
openobex-apps obexftp obexfs gzip tree

==> Installing languages
* Installing language [it]… Fail

==> Copying necessary files
* Making folders… Done
* Copying files… Done
* Copying launcher… Done

==> Correction Zenity bug (LP: #272083)
* Patching zenity… Fail

<<< Installation failed >>>
Log files saved: /var/log/nokinux-install.log

Install the following packages manually

sudo apt-get install openobex-apps obexftp obexfs gzip tree linux-headers-2.6.31-14 libtsmux0 linux-headers-2.6.31-14-generic

Errors: patch: **** Can’t find file /usr/share/zenity/zenity.glade : No such file or directory

Download the zenity.glade file and place it accordingly

Re run the install command as listed here above;-

==> Correction Zenity bug (LP: #272083)
* Patching zenity… patching file /usr/share/zenity/zenity.glade
Reversed (or previously applied) patch detected!  Assuming -R.
Hunk #3 succeeded at 287 (offset -1 lines).
Hunk #4 succeeded at 327 (offset -1 lines).
Hunk #5 succeeded at 450 (offset 25 lines).
Hunk #6 succeeded at 575 (offset 25 lines).
Hunk #7 succeeded at 678 (offset 25 lines).
Hunk #8 succeeded at 801 (offset 25 lines).
Hunk #9 succeeded at 926 (offset 24 lines).
Hunk #10 succeeded at 1062 (offset 24 lines).
Hunk #11 succeeded at 1174 (offset 23 lines).
Done

Installation complete!

Applications>Accessories>Nokinux

Synchronize 🙂

Setting up MySQLWorkBench on Ubuntu

February 22, 2010 Leave a comment

Download MySQLWorkBench from the following portal;-

http://dev.mysql.com/downloads/workbench/

MySQL Workbench can be easily installed on Ubuntu/Gnome. Just download the binary .deb file from the MySQL web site for workbench (currently named mysql-workbench-oss-5.2.16-1ubu904-i386.deb), save it to your home directory. Then run:

sudo apt-get install liblua5.1-0 libzip1 libmysqlclient15off
sudo dpkg -i mysql-workbench-oss-5.1.18-1ubu904-i386.deb (adapt the name accordingly)

Selecting previously deselected package mysql-workbench-oss.
(Reading database ... 145956 files and directories currently installed.)
Unpacking mysql-workbench-oss (from mysql-workbench-oss_5.2.16-1ubu910_i386.deb) ...
dpkg: dependency problems prevent configuration of mysql-workbench-oss:
 mysql-workbench-oss depends on python-paramiko; however:
 Package python-paramiko is not installed.
 mysql-workbench-oss depends on python-pexpect; however:
 Package python-pexpect is not installed.
dpkg: error processing mysql-workbench-oss (--install):
 dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils ...
Errors were encountered while processing:
 mysql-workbench-oss
root@qasim-laptop:/media/BlackAir# apt-cache search python-paramiko
python-paramiko - Make ssh v2 connections with python
bzr - easy to use distributed version control system

Then, you have MySQL Workbench listed under “Applications > Programming”.

Following packages are also required;-

python-pexpect (module for automating interactive applications)

python-paramiko (ssh2 protocol for python)

Manage DB Connection:

Error:

Couldn’t load library libmysqlclient_r.so: libmysqlclient_r.so: cannot open shared object file: No such file or directory

possibly missing symbolic link

# cd /usr/lib

# root@qasim-laptop:/usr/lib# ln -s libmysqlclient_r.so.16 libmysqlclient_r.so

Error:

Test connect failed
Access denied for user ‘root’@’localhost’ (using password: NO)

Enter the correct password and Test Connection again.

Categories: Linux Tags: ,

Getting started with Linux

February 7, 2010 2 comments

You are here because there is something triggered in to your head or you come to know the world is revolving around Linux it’s there in every bit s and bytes of our life. Most probably you are shifting from windows environment or trying to give Linux a shot for experimentation as everyone is talking about it. Below are mentioned two ways you can install Linux on your windows machine as listed hereunder:-

1- as Virtual Machine

Software Required;
— Virtual Box
Download the .exe for Windows OS
— Any Linux distribution like (Fedora, CentOS, Ubuntu, Suse or others)

I’ll prefer you to get your hands on Ubuntu OS if that is the first experience for you to work with Linux.
You can collect the *iso file from download section available in both 32bits and 64bits versions.

You can request the CD/DVD from Ubuntu portal.

Create a Virtual Machine: Ubuntu 7.04 (Feisty Fawn)

Visit the following video to have a better idea how to proceed.

2- as Dual Boot

Ubuntu makes the life easier then ever before you just have to explore the CD/DVD and look for wubi.exe and doubple click it and fill the required fields like in which directory you want to install the Ubuntu and username etc. Mind you this wubi thingi only worked with Desktop versions.

Versions:

  • Ubuntu 9.04 (Jaunty Jackalope)
  • Ubuntu 9.10 (Karmic Koala)
  • Ubuntu 8.04.4 LTS (Hardy Heron)
  • Ubuntu 8.10 (Intrepid Ibex)
  • Ubuntu 7.04 (Feisty Fawn)
  • Ubuntu 7.10 (Gutsy Gibbon)

The best guide for learning Ubuntu is book written by Keir Thomas titled “Ubuntu Pocket Guide and Reference” and available freely for any new Linux lover you can download from the following website

Have fun and love rocking and digging Linux OS.

Categories: Linux Tags: , , ,
%d bloggers like this: