How to install new Linux distro (ubuntu) over the old distribution (red hat) ?

Hi there. I am just getting my toes wet in the linux world and I have a question before I try switching distros.

I am currently running
[root@mtatb01 ~]# uname -a
Linux 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:54:53 EST 2006 i686 athlon i386 GNU/Linux

my distro is Red Hat Enterprise Linux AS release 4 (Nahant Update 3)

actually i was given this server as it is. i didn't install red-hat myself. and there is other stuff that i do not need. and my main problem now is that i tried to install my required software (xampp) but other software already installed are conflicting xampp services like mysql, apatche and prpftp.
i tried to uninstall or stop any conflicting services that i don't want but i didn't manged. I even posted it in here in Expert-exchange but till now i didn't come to a solution below is my post:

I've decided to rebuild the server again.... i want to get rid of red hat and install clean version of ubuntu server. i already downloaded this iso image

My quesions:
1. Can I just install the new distro over the old distribution ? Is that all that is required.? or it does need more steps and configuration? please provide steps how to install on real server (not vmaware)

2. keeping in mind that my server is located far from my office. how can i insatll ubuntu remotely?


Who is Participating?
joolsConnect With a Mentor Commented:
Why do you want to install XAMPP when there is  perfectly good LAMP services available if you just install Apache MySQL and perl/php on their own. I've only used xampp on Windows servers myself.

If you dont care about any of the data just put the cd/dvd in and wipe over it, there should be an option to reformat the drives, this would be difficult really unless you have console access via iLO or something similar and someone on the ground where the office is located (you wont want to use remote CD for this because it will run like a dog!).

RHEL 4 is really old so you want the least amount of services running on it. Does it have the firewall enabled and is SELinux running?

Did you stop ftp, apache and mysql on the other Q...
# chkconfig ftpd off
# chkconfig httpd off
# chkconfig mysqld off
# for i in xinetd httpd mysqld
service $i stop
Generally you would delete all former partitions on the HD and when installing the new OS allow it to create new ones either automatically (or you can also select to define the partitions manually). If you want to keep data you must of course take care not to delete those partitions with the data on.

Normally when installing any distro you boot from the CD or DVD, and then just answer some questions the installer asks you. This normally means you have to be there as you have to insert the CD or DVD into the drive and sit at the console to answer the first few questions until you get remote access configured on it.

If the server uses virtualization, then you could install the OS remotely, as you normally have remote access to the virtualization system. Those can usually boot a VM directly from the iso file.

If the server is managed by a 3rd party, like in a collocated site, it is best to first get in touch with those people.
Dave BaldwinFixer of ProblemsCommented:
While Ubuntu and Redhat use 'similar' file layouts, they are Not the same.  It is not likely to work properly if you try to install Ubuntu 'over' Redhat.  And since you are wanting to do a 'clean install', there will be no services or communications running on that machine until the new system is installed and set up so I don't see how you can do it remotely.
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

If using a VM type setup it could be done. But you'ld have to install the virtualizer first. Probably RedHat supports XEN, or another type 1 hypervisor, so he could install something like that under RH, then install Ubuntu afterwards. But of course this requires a lot of planning, and probably first a local test-installation so he could simulate the installation at home before doing it on the remote server...
Just pointing out in case you didn't realize, that is a 32 bit iso you downloaded.  If your server has more than 4GB of RAM, you would want to install a 64 bit version.
zakwithu2012Author Commented:
thanks for all these replies... i'll review and test all of them.... then will come back to you with my comments.

Thanks ;-)
zakwithu2012Author Commented:

I tried the solution suggested  by: jools

it works fine to stop the conflicting services namely httpd and ftpd.... but it failed for MySQL....  
it says Another MySQL daemon is already running.
as below:
[root@mtatb01 ~]# /opt/lampp/lampp start
Starting XAMPP for Linux 1.8.0...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Another MySQL daemon is already running.
XAMPP: Starting ProFTPD...
XAMPP for Linux started.

Open in new window

any idea how to stop this "Another MySQL daemon is already running."
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.