hi there
this is an howto to migrate a minimal centos6 install on a VPS to a full SME 9.2
the only requirements are:
- a working SME9.2 install (we need a file from it)
- a VPS with a recovery console
1. Install a minimal C6
from the recovery console
2. install nano
yum install nano
if you have no network (and so yum can't run)
3. enable network; in my case a simple
dhclient eth0
is enough, but if you need/have to use a fixed ip, you have to edit
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network
/etc/resolv.conf
and restart network with
/etc/init.d/network restart
above files must be filled with the parameters (IP, netmask, GW, DNS) you had from your ISP
for the syntax, check google, there are zillions of howtos or, if you prefer, take a look at SME's files on a working server;
4. Remove selinux rpms (it's not a good thing, but SME doesn't use it)
yum remove selinux-policy selinux-policy-targeted
5. reboot
6. Check your network is up and running after reboot
ifconfig
7. remove all repos' conf file
mv /etc/yum.repos.d/* /root/
8. copy SME's yum repo file from a working SME install to the remote machine
scp root@yourremotesme:/etc/yum.smerepos.d/* /etc/yum.repos.d/
9. clean all related caches
yum --enablerepo=* clean all
10. remove dhcp-common file (I had some dependency issues)
rpm -e --nodeps dhcp-common
11. disable GPG check for yum (not needed ATM, we'll install packages from SME's repos and we don't have the GPG keys)
sed -i -e 's/gpgcheck=1/gpgcheck=0/g' /etc/yum.repos.d/sme-base.repo
12. run a
yum upgrade
this will upgrade initscripts
13. install SME's rpms
yum --disablerepo=* --enablerepo=smeos,smeupdates groupinstall base
14. re run a
yum upgrade
some other packages will be upgraded
15. time to call usual post upgrade and reboot events:
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot
16. after reboot you'll see usual console running, but it will just ask for backup restoring and root's password..
17. log in as root and re-run console
console
this time you can configure your server as usual.. I strongly suggest to configure it in server-and-gateway mode using, for internal lan, the dummy interface
18. enable ssh access
config setprop sshd PasswordAuthentication yes PermitRootLogin yes TCPPort=2822 access=public
signal-event remoteaccess-update
The above commands will let you ssh to your server as root using password on port 2822.. some ISPs don't let you change the ssh port (and I strongly suggest to enable access using keys asap)
HTH, feel free to add/amend if needed