Archive

Posts Tagged ‘Ubuntu’

Flex development on Linux

September 2, 2010 1 comment

Hey guys, I hope there are lot of guys who are relying on linux distro like Ubuntu, centos or fedora to name some. As far as the developers, geeks and machine fanatics are concerned. Aftyer such an addiction it’s quite difficult to work back on Windows system for some specific reasons like previous was the case as flash development is restricted to windows based machines. But now as adobe took a nice decision to move to bit to open source society with their new open source flexsdk the dream to develop flash based application on the linux island come true. Now with a handful of simple plugins our distro will be up and ready to develop application in flash and actionscript.

1. Download the eclipse euorpa with JEE support (v3.2 or higher)
Visit the following link http://www.eclipse.org/downloads/
Look for Eclipse IDE for Java EE Developers
32bit: http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/helios/R/eclipse-jee-helios-linux-gtk.tar.gz
64bit: http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/helios/R/eclipse-jee-helios-linux-gtk-x86_64.tar.gz

or get a torrent: http://build.eclipse.org/technology/phoenix/torrents/jee/eclipse-jee-helios-linux-gtk.tar.gz.torrent

Move the tar file into /opt dir
# sudo mv eclipse-*.tar /opt

Untar the eclipse compress file
# sudo tar zxvf eclipse-*.tar
# sudo cd eclipse
# ./eclipse &

2. Install the following plugins

In the menu, we choose Help -> Install new software…

Click on the “Add…” button, and type the following:

Name: Eclipse IMP
Location: http://download.eclipse.org/technology/imp/updates/

Name: AXDT
Location: http://update.axdt.org/

Choose (at least) the following packages:
Axdt AS3 Feature
Flex3SDK Feature

Then click on the “Next >” button, accept the licence and proceed to install the AXDT + Flex SDK framework.

Once installed, restart Eclipse

Go to the menu: Window -> Open perspective -> Other… -> AXDT

That’s all what you need to get started with Flas application development.

Coming soon

Tutorial: Write and compile you first flex application

Advertisements

Joomla installation on Ubuntu

April 23, 2010 2 comments

Today’s we are going to see how to use google map mashup in a famous CMS – Content Management System which is Joomla.  Though the documentation is self explanatory I’ll just list te common mistakes that fly-over testers make while installing Joomla but let me tell you experience developers (like Mr. Nabeel Mushtaq) always prefer to read the documentation evertime you you have to install some package or framework because it’s like the movie “The Matrix” every time you find something to grab!

Move the downloaded zip file of the Joomla package to webserver’s root directory;-

# mv /home/user-name/Downloads/Joomla***.zip /var/www/joomla

Unzip it here

# unzip Joomla***.zip

Delete the existing configuration.php-dist file

# rm -rf configuration.php-dist

Most users don’t perform the above step and just rename the filename

# mv configuration.php-dist configuration.php

Due to whish while running the web wizard or installation it causes problems as the script feels dizzy while updated the already populated configuration.php file

Create a new unwritten file

# toucj configuration.php

Give’em writes to apache users to writeable

# chmod 755 configuration.php

Some users while rename the configuration.php-dist file to configurtion.php while fall at the end of the web installation wizard with a fatal error.

If you got permission errors I would suggest you should give apache user the rights to read write the joomla folder

#chown www-data /var/www/joomla -R

That’s it!

Setting up Elgg on Ubuntu

March 8, 2010 2 comments

Download the elgg open source social platform from http://sourceforge.com/elgg
#cp elgg-1.7.tar /var/www/html
#mkdir <domain_name>
#cd <domain_name>
#tar -xvzf elgg-1.7.tar
Visit the directory in the web browser
http://localhost/html/domain_name
Welcome to Elgg page
The current url will be
http://localhost/html/nebula/install.php
Enter your database settings below and hit save:
Warning:   Once you’ve corrected any configuration issues, press reload to try again.
Asking you to create the .htaccess file in the root directory where you have extracted the elgg platform source code.
Error:   Elgg couldn’t connect to the database using the given credentials.
Take the bachup of the setting.example.php
#cp /var/www/html/domain_name/engine/settings.example.php setting.php~
#nano settings.php
Under the standard configuration section
// Database username
$CONFIG->dbuser = ‘root’;

// Database password
$CONFIG->dbpass = ‘**********’;

// Database name
$CONFIG->dbname = ‘nebula’;

// Database server
// (For most configurations, you can leave this as ‘localhost’)
$CONFIG->dbhost = ‘localhost’;

// Database table prefix
// If you’re sharing a database with other applications, you will want to use this
// to differentiate Elgg’s tables.
$CONFIG->dbprefix = ‘elgg_’;

After modifying the settings file reload the page on the browser
you’ll be directed to the System settings
Message: Elgg’s database was installed successfully.

Now it’s time to create the data folder where the elgg platform will save your data including text and photos extra.
Note that the data folder should be outside the directory where you have extracted the elgg framework
#mkdir /home/logged-user/data
#chmod a+x data/ -R
#chown www-data data/
If you didn’t set the proper permissions for the data director the elgg installation will throw a warning
Warning: Your data directory /home/ is not writable.
If all set well the url will be changed
http://localhost/html/nebula/account/register.php

Error :

The requested URL /action/systemsettings/install was not found on this server.

# sudo nano /etc/apache2/sites-available/default

Look for the Directory section referring to the folder where your Drupal site lives (in /etc/apache2/sites-available/default, this is typically <Directory /var/www>), and change the line:

AllowOverride None

to

AllowOverride All

Save this file and then reload apache.

# sudo /etc/init.d/apache2 reload

Note:: http://drupal.org/node/134439

Error: on URL – http://localhost/html/elgg-1.7/install.php

Elgg error: Apache does not have mod_rewrite loaded. Please check your Apache setup.

Elgg relies on the mod_rewrite Apache extension in order to simulate certain URLs.

Go to /etc/apache2/apache2.conf

Then you have to enabled the rewrite module(mod_rewrite). You no longer have to do the:
LoadModule rewrite_module modules/mod_rewrite.so
AddModule mod_rewrite.c

It’s now as easy as:
sudo a2enmod rewrite

To disable this module it’s just:
sudo a2dismod rewrite

# sudo service apache2 restart

INSTALLING ELGG ON LIVE SERVER

The page isn’t redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

*   This problem can sometimes be caused by disabling or refusing to accept cookies.

(I edit .htaccess and add RewriteBase /my-elgg-path after RewriteEngine on) Persists

For detail troubleshooting :: http://docs.elgg.org/wiki/Install_Troubleshooting

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: , , ,

How to access your Windows drives from Ubuntu

March 4, 2009 1 comment

If you want to access your NTFS Windows drives follow these instructions:

  1. Make sure you have internet access (see the network icon on the top right)
  2. Open the “Applications” menu and select “Add/Remove…”
  3. In the listbox on the right select: “Show All Available Applications”
  4. Search for “NTFS” and select “NTFS Configuration Tool”. Click OK to install it
  5. Run the configuration tool under Applications > System Tools > NTFS Configuration Tool
  6. Select “Enable write support for internal device”. Click OK to set it up.
  7. Once you reboot you will find your windows disks under /media (you can access that from Places > Computer > File System > media).
Categories: OS: Ubuntu Tags: , ,
%d bloggers like this: