Can you upgrade your current install to upgrade the database then move it? Don’t forget to backup the database first.
Latest posts made by Mark Playford
RE: Moving from ubuntu to centos 6.3
Install Centos 6.3, whichever style you like.
When I installed CentOS, I removed the default partitions and used 1 large partition so I could have the image files on the same disk as well
I’ve taken some bits from here, many thanks to Kirk, but there are a couple of errors that I have changed below:
Once installed run the updates by using:
[FONT=Courier New]yum -y update && reboot[/FONT]
If you are using the minimal you will need to get wget by typing:
yum -y install wget
Not sure if you need it but I installed yum-priorities
[FONT=Courier New]$ yum install yum-priorities[/FONT]
You now need RPM Forge depending on you version:
[FONT=Courier New]$ wget [url]http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm[/url][/FONT]
[FONT=Courier New]$ wget [url]http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm[/url][/FONT]
Then import the Dag Key:
rpm --import [url]http://apt.sw.be/RPM-GPG-KEY.dag.txt[/url]
[FONT=Calibri]Then install the repo:[/FONT]
rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm
Then to install the EPEL repo:
$ su -c 'rpm -ivh [url]http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm[/url] ’
$ rpm --import [url]https://fedoraproject.org/static/217521F6.txt[/url]
We now have access to the required packages for FOG via the RPMforge and EPEL repositories. We will now want to disable SELinux and the firewall. If you are running this server in production I would highly recommend that after having tested your FOG deployment you take the proper measures to secure the box before running it in a production environment.
$ vi /etc/sysconfig/selinux
change the line that reads SELINUX=enforcing or SELINUX=enforcing permissive to SELINUX=disabled and reboot one final time.
$ reboot now
When restarted disable the firewall. I can disable the firewall as I have a hardware firewall in place.
$ service iptables save
$ service iptables stop
$ chkconfig iptables off
Nearly ready to install fog:
$ wget [url]http://downloads.sourceforge.net/project/freeghost/FOG/fog_0.32/fog_0.32.tar.gz[/url]
$ tar -xzf fog_.tar.gz
$ cd fog_
$ vi lib/redhat/config.sh
Edit line 22 and remove ‘php-gettext’ then change ‘clamav-update’ to ‘clamav’
Edit line 63 to read: “freshDB=/var/clamav/”;
Edit line 66 to read: “freshcron=/usr/bin/freshclam”
Then install Fog
$ cd bin
Follow steps on screen to complete install then browse to URL displayed in terminal to run database schema install and click on ‘Install/Upgrade Now’
Next change the password for the fog CentOS user by typing in Terminal:
$ passwd fog
And set your password, I left it as standard. Then edit:
Change “TFTP_FTP_PASSWORD” and “TFTP_FTP_PASSWORD” to be the same as the fog user, then log on to the website and click the i icon and then fog settings and go down to the TFTP Server section and change the password to the same as before. Then click on Storage Management, All Storage Nodes then the default member and change the password there.
I think that is all I did but try and if not reply to this thread and I can help you through it.
There is talk of needing PHP53 for the install but I already had it installed.
Hope this helps