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

Posted on 2012-08-20
Last Modified: 2013-11-18
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?


Question by:zakwithu2012
    LVL 87

    Expert Comment

    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.
    LVL 82

    Expert Comment

    by:Dave Baldwin
    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.
    LVL 87

    Expert Comment

    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...
    LVL 19

    Accepted Solution

    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
    LVL 3

    Expert Comment

    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.

    Author Comment

    thanks for all these replies... i'll review and test all of them.... then will come back to you with my comments.

    Thanks ;-)

    Author Comment


    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."

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Introduction People like FTP.  It's a solid, stable, robust protocol for quickly transferring files between two hosts using TCP/IP.  In most cases it's much faster than SMB or CIFS, and certainly much easier to set up between organizations.  This…
    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now