Saturday, February 4, 2012

Upgrade Ubuntu 9.04 to 9.10 then 10.04

You cannot skip versions between upgrades. The version between Jaunty and Lucid is Karmic. I suggest you do backup important data and do a complete reinstall as many things has changed, including the boot loader.

If you do not like a fresh install, you can upgrade using an Alternate CD.

Preparations:

  • Backup the system (if possible a disk image)
  • Backup your personal files (the home directory) so you can easily copy the files
  • Remove all PPA's and non-standard repositories, including their packages
  • Be prepared for failure, have a Live CD available so you can still boot even if the disk is dead

The upgrade using the alternate CD is described below:

  1. Download ubuntu-9.10-alternate-i386.iso from http://releases.ubuntu.com/karmic/ to your home directory (replace i386 with amd64 if you've a 64-bit system and ubuntu with kubuntu for KDE)
  2. Open a terminal and run:

    sudo mount -o loop ~/ubuntu-9.10-alternate-i386.iso /media/cdrom
  3. Start the upgrade by executing:

    gksu "sh /media/cdrom/cdromupgrade"

    If you're using KDE (Kubuntu):

    kdesudo "sh /media/cdrom/cdromupgrade"
  4. Reboot

After this upgrade from 9.04 to 9.10, proceed with the upgrade to 10.04 using:

sudo do-release-upgrade -d

Wednesday, December 28, 2011

How to install webmin on ubuntu using apt-get install webmin

Webmin is a web-based interface for system administration for Unix. Using any modern web browser, you can setup user accounts, Apache, DNS, file sharing and much more. Webmin removes the need to manually edit Unix configuration files like /etc/passwd, and lets you manage a system from the console or remotely.

Install webmin on ubuntu 11.04 (Natty) server


We have already discussed how to install ubuntu 11.04 LAMP server now we will install webmin for easy administartion

Edit /etc/apt/sources.list file

sudo vi /etc/apt/sources.list

Add the following lines

deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

Save and exit the file

Now you need to import GPG key

wget http://www.webmin.com/jcameron-key.asc

sudo apt-key add jcameron-key.asc

Update the source list

sudo apt-get update

Install webmin

sudo apt-get install webmin

Now you need to access webmin using http://serverip:10000/ once it opens you should see similar to the following screen



You need to enter root username and password to login.Once you logged in you should see similar to the following screen.

Friday, November 11, 2011

Configure Screenlet In 11.10



Add Desktop Widget/Goodies

To add its appearance and performance you can add some Desktop Goodies/Widget on your desktop. There some desktop application which usually fill Linux Desktop that is Screenlets, Conky, Super Karamba, Cairo-Dock, and Docky. All application that i mention above can improve your desktop appearance besides add functionality.

Install Screenlets in Ubuntu 11.10
Here's following command to install Screenlets on your desktop

sudo add-apt-repository ppa:screenlets/ppa
sudo apt-get update
sudo apt-get install screenlets && sudo apt-get install screenlets-pack-all

Thursday, October 27, 2011

Using Virtualbox In Full Screen On The Second Monitor

When i upgrade my Ubuntu 11.04 to 11.10 , i had a problem with my virtual box . Suddenly my guest OS became in the first monitor when it full screen ( my laptop monitor) not in my 17" LCD monitor.

Actually i run a dual set monitor for my laptop and i want guest OS run full screen on second monitor.

To make it full screen on the second monitor, after entering full screen mode with the guest OS,
hover over the Virtualbox hidden menu at the bottom of the guest OS.

On View > Virtual Screen 1 > Use Host Screen 2
This will make the guest OS shows up in the second monitor when using full screen mode.

I get this tip from : http://tipstank.com/2010/06/04/virtualbox-full-screen-second-monitor/

Monday, October 17, 2011

Upgare My Ubuntu

Upgarding my Ubuntu to 11.10 , but this time i make sure everything in place before it be done. Luckily no bad things happen. I need to be familliar with Unity , no more menu for system and administrator.

Thursday, August 25, 2011

Coppermine Photo Gallery v1.5.14: Ubuntu Prep

1 Preliminary Note

In this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100. These settings might differ for you, so you have to replace them where appropriate.

I'm running all the steps in this tutorial with root privileges, so make sure you're logged in as root:

sudo su


2 Installing MySQL 5

First we install MySQL 5 like this:

aptitude install mysql-server mysql-client

You will be asked to provide a password for the MySQL root user - this password is valid for the user root@localhost as well as root@server1.example.com, so we don't have to specify a MySQL root password manually later on:

New password for the MySQL "root" user: <-- yourrootsqlpassword
Repeat password for the MySQL "root" user: <-- yourrootsqlpassword


3 Installing Apache2

Apache2 is available as an Ubuntu package, therefore we can install it like this:

aptitude install apache2

Now direct your browser to http://192.168.0.100, and you should see the Apache2 placeholder page (It works!):





Apache's default document root is /var/www on Ubuntu, and the configuration file is /etc/apache2/apache2.conf. Additional configurations are stored in subdirectories of the /etc/apache2 directory such as /etc/apache2/mods-enabled (for Apache modules), /etc/apache2/sites-enabled (for virtual hosts), and /etc/apache2/conf.d.


4 Installing PHP5

We can install PHP5 and the Apache PHP5 module as follows:

aptitude install php5 libapache2-mod-php5

We must restart Apache afterwards:

/etc/init.d/apache2 restart


5 Testing PHP5 / Getting Details About Your PHP5 Installation

The document root of the default web site is /var/www. We will now create a small PHP file (info.php) in that directory and call it in a browser. The file will display lots of useful details about our PHP installation, such as the installed PHP version.

vi /var/www/info.php

Now we call that file in a browser (e.g. http://192.168.0.100/info.php):

As you see, PHP5 is working, and it's working through the Apache 2.0 Handler, as shown in the Server API line.

If you scroll further down, you will see all modules that are already enabled in PHP5. MySQL is not listed there which means we don't have MySQL support in PHP5 yet.

6 Getting MySQL Support In PHP5

To get MySQL support in PHP, we can install the php5-mysql package. It's a good idea to install some other PHP5 modules as well as you might need them for your applications. You can search for available PHP5 modules like this:aptitude search php5

Pick the ones you need and install them like this:

aptitude install php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-json

Now restart Apache2:

/etc/init.d/apache2 restart

Now reload http://192.168.0.100/info.php in your browser and scroll down to the modules section again. You should now find lots of new modules there, including the MySQL module:

7 phpMyAdmin

phpMyAdmin is a web interface through which you can manage your MySQL databases. It's a good idea to install it:

aptitude install phpmyadmin

You will see the following questions:Web server to reconfigure automatically:

- apache2

Configure database for phpmyadmin with dbconfig-common?

No Afterwards, you can access phpMyAdmin under http://192.168.0.100/phpmyadmin/:

Friday, August 19, 2011

Webmin : After Restart - connection refused

After install , the webmin running well but suddenly after restart the server , i got error said connection refused.

Before this i reinstall the webmin package but now i felt something wrong with webmin service. Then i try to restart the services but nothing happen but i got some message saying that no service webmin. Oooo walla .. i know the webmin service not started from beginning. So i used this command to restart webmin

sudo /etc/webmin start

That All , My webmin comeback nicely.