Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Saturday, April 28, 2012

Installing joomla on ubuntu in 15 minutes


This is a simple and easy to use guide to install joomla without any permission issues on ubuntu. You can successfully install joomla within 15 minutes.

Let's start the clock and start working.

First you need to have a web server on your local machine. Xampp is the most popular open source web server which installs all the required components for your web server.
Download XAMPP for Linux to your your Home folder.

Install XAMPP


Open Terminal and enter:

sudo tar xvfz xampp-linux-1.7.7.tar.gz -C /opt


(replace xampp-linux-1.7.7.tar.gz with the version of XAMPP you downloaded).

This installs ... Apache2, mysql and php5 as well as an ftp server.

Start the xampp server with this command.

sudo /opt/lampp/lampp start

Test your XAMPP localhost server


Open your Browser and point it to
http://localhost
The index.php will redirect to
http://localhost/xampp
There you will find instructions on how to change default usernames/passwords. On a PC that does not server files to the Internet or LAN then changing the defaults is personal choice.

Get Joomla


Download the latest Joomla instalation zip [1]

Unzip to your hard drive

Connect to localhost with an FTP client. You can use FileZilla client as an open source ftp client. you can download it from here

http://filezilla-project.org/download.php

once you installed filezilla, start filezilla and connect to your localhost server with following information.

host: localhost

username: nobody

password: lampp

Create a folder for your Joomla on the localhost server

FTP the unpacked Joomla installation files to the newly created Joomla folder. You can drag and drop files using filezilla client.

Important:
  • The XAMPP installation sets the correct Ownership of the files and permissions.


  • Using the CHOWN command will cause Ownership problems with xampp.


  • Using nautilus to manipulate folders/files on localhost will cause Ownership problems with xampp.


Configure Joomla


In your Browser type
http://localhost/yournewjoomlafolder
In the first Joomla installation screen if error reporting is shown as on then:

In your Terminal type

sudo gedit /opt/lampp/etc/php.ini


In the php.ini file, locate

error_reporting =

And change the value to

error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED

Also locate

display_errors = On

And change the value to

display_errors = Off


Stop then restart xampp for the new settings to take effect

FTP layer is NOT needed

Then  go to your phpmyadmin database page and create a database for the joomla installation. You can do this by going to your localhost folder and then click on the phpmyadmin link and then it will take you to the phpmyadmin home page.

create a database named db_joomla (or whatever name you like)

once the database is created, go to the phpmyadmin home page and click on previleges tab and create a new user and asign all the previleges from the option.

username: user_joomla

password: joomla123 (Best practise is to use the generate password option).

OK. Now you have a separate database for your joomla installation.

Database info

Host: localhost

Database name: db_joomla
Database user: user_joomla
Password for Database user: joomla123
Administrator password is your choice.

Installing Sample Data is recommended for the novice user.

After installation delete the installation directory and point your Browser to:
http://localhost/yournewjoomlafolder
or
http://localhost/yournewjoomlafolder/administrator
That's it. Now you have installed joomla on your ubuntu machine within 15 minutes.
Cheers !!!!!!!!!!!


Sunday, April 22, 2012

How to change the root password in Ubuntu


As default Ubuntu has no password set for the root user, To gain root access you have to type in your own user password. This is the password you set for the first user while installing Ubuntu.

To manually set a password for the root user, type in the following in the shell:
sudo passwd

After that you are asked to type in the new root password twice. Finally, your root user has its own password.

Thursday, April 12, 2012

How to pin Eclipse to the ubuntu 11.04 Unity launcher

 If you are developing in ubuntu with eclipse, you may want  to add your eclipse shortcut to the ubuntu unity launcher. But if you open the eclipse, you may see that the eclipse is in the launcher, but the icon is not displaying and only a question mark icon appears. This is a simple solution to add ubuntu icon to the launcher menu. You can use the same procedure to add any other program to your launcher menu.
  1. Go to the ubuntu desktop and right click on it.
  2. Select, "Create Launcher.." option.

        3. Fill the required fields as shown in the below image.



In the command field above, select the eclipse file inside the eclipse folder in your file system.

        4. Select the icon by clicking the icon box in the top left hand corner and go to the eclipse folder in your file system and choose the eclipse icon "eclipse.xpm" and it will be display as below after the correct selection.



        5. Now you can see eclipse icon on the desktop. Double click the icon and start eclipse.
        6. Now the eclipse icon can be seen in your launcher since it is started. Right click the eclipse icon on the launcher and select the option "Keep in Launcher ..".
        7. Exit the eclipse and now you can see that eclipse is displayed in the launcher and the icon is properly displayed


cheers !!!!!!!!!!

Saturday, April 7, 2012

solution for ubuntu not loading stuck in grub terminal


This has cost me lot of my time and effort to recover from this weird situation. There were some other methods to get rid of this situation. But i had a more unique requirement. That i needed my ubuntu installation restored. Because there were lot of things inside my ubuntu installation which were really important. I hope you are someone like me. You don't need loss your ubuntu installation.

Let's move on. 

I had ubuntu installed inside windows 7 using the wubi installer. One day i have shut down the machine after using with ubuntu and i disconnected my power supply before the system shuts down. Unfortunately , my laptop battery has been removed at that time (for a replacement) and when i disconnect the power supply it was totally without power. Next time when i started the machine and i select the ubuntu from operating system selection menu, it goes to grub terminal..

something like this 

grub>

There was a note mentioning that you can see the commands by pressing TAB key. I have tried various methods mentioned in internet and i had lost one of my partitions by doing those things. But finally i found a solution.

When you boot Windows and look in the C:\ubuntu\disks directory you'll notice the root.disk is missing. In some cases, the \ubuntu\disks directory is missing completely or is corrupted.

Running chkdsk
Depending on the problem, Windows may have run an automatic chkdsk or you may need to run it manually. It's not always necessary, but it will never hurt, so the first thing is to run it.
  • Go to My Computer on XP or Computer on Vista/7,
  • right click the drive you installed Ubuntu on e.g. right click on C:,
  • select Properties, select the Tools tab, then under Error-checking click Check now.
  • Select to Automatically fix file system errors or Scan for and attempt recovery of bad sectors 
  • When the drive you installed on is C: the computer will tell you it has to schedule the scan for the next time you start your computer. Reboot to complete. 


Locate recovered files/directories
The first thing to do is to look for the \found.000 folder on the drive in question i.e. C:\found.0000. This is hidden by default and (on my Windows 7 install) I also had to tell Windows not to "Hide protected OS files" just to see it. You may also have to recover from an administrator command prompt on Win7 (see below).

Hit the START key, enter CMD, then look above and right click on CMD.exe and select "Run as
Administrator".


C:\>cd \found.000
C:\found.000>dir
 Volume in drive C is OS
 Volume Serial Number is B4B7-99A8

 Directory of C:\found.000

19/07/2011  02:02 PM    15,000,000,000 file0000.chk
               1 File(s)              8 bytes
               0 Dir(s)  222,258,069,504 bytes free


So now you look for your root.disk (or other .disk files) and copy them back to the \ubuntu\disks folder. If the entire \ubuntu\disks folder is missing, you'll likely find a dir0000.chk directory and within that the root.disk, swap.disk and empty \boot\grub folders. Copy this back to \ubuntu renaming the directory todisks.

C:\found.000>move file0000.chk \ubuntu\disks\root.disk
        1 file(s) moved.

or if the whole disks folder is recovered
C:\found.000>move dir0000.chk \ubuntu\disks
        1 dir(s) moved.


If you're missing the root.disk but there is no file of that name, it may have been renamed chk0000.chk. Rename this to root.disk and copy back to \ubuntu\disks.

If the corruption was minor, then likely everything will work fine. If the corruption is major Windows may not even recover the root.disk at all.

I hope this helps you to recover your files. Remember to backup important data on your Wubi install. There's no reason to install important personal files on a root.disk - you can access them easily on the /host partition.

Cheers !!!!!!!!!!!

This site has helped me in solving this issue 


Saturday, March 31, 2012

Install Sinhala fonts in ubuntu

This is so simple. just type the following command in terminal window.'

sudo apt-get install ttf-sinhala-lklug

That's it. Now you can see Sinhala fonts

Wednesday, March 21, 2012

How to change $PATH variable in ubuntu

PATH variable in Windows and Linux will help the operating system to find the commands we are executing in the command line within the system.

In other words, if you want to run any command within any folder in your system, system should be able to find that command file. PATH variable contains the folders in which that particular command you have typed, can be stored in the system.

 if you want your custom commands or tools to be run from anywhere in the command line, you need to add the folder which contains that command or tool in to the PATH variable.

in Windows you can change the PATH variable in the Enviornment variables section under system variables. (You can get the System properties window by clicking WIN + Pause keys. )

in ubuntu you change the path within the command line by typing the following command.

export PATH=/folder/contains/the/tool:$PATH

This will add the folder "/folder/contains/the/tool" to the system PATH variable. Then you can run your command or tool from anywhere in the system.

cheers !!!!!!!!!!!!!!!!

Tuesday, September 22, 2009

Sinhala Operating System has come in BETA

One and Only Sinhala Operating System Hanthana Linux has been released. You can find more details on the following link.
http://www.hanthana.org/index.php

Friday, August 21, 2009

back ground process and nohup in linux

we can run a process in the background in linux by typing &(ampersand) at the end of the command.
We can use nohup to run a process in a remote machine or within our local machine after we are logging off or close the terminal

Friday, August 14, 2009

Ubuntu Configuration

You can download and install Compiz Config package from ubuntu add/remove programs and then you can experience the real GUI experience with heart breaking simple OS UBUNTU