Updating to Ubuntu 12.04 on old VPS instances and installing Virtualmin

4 posts / 0 new
Last post
#1 Mon, 07/30/2012 - 20:30
pass

Updating to Ubuntu 12.04 on old VPS instances and installing Virtualmin

Teach me to fish, please!

I have spent two long nights trying to update a standard install Ubuntu 10.04 LTS to 12.04 LTS and then install Virtualmin on top. After finally getting 12.04 LTS to work, I could not get Virtualmin to install, and now I have done a reformat of the VPS instance.

Since I only have one more day to get this done I offer $50 by PalPal for someone to do this over the phone with me - you do the work if you want, but tell me what you are doing - so that I can then do it for myself.

Fri, 08/03/2012 - 13:52
ryanelders

Here is an article on doing the upgrade from 10.04 to 12.04 from the terminal.

They recommend doing it from the desktop environment though.

After the upgrade can you download the install.sh script from here?

Change the install.sh script to be exectuable: sudo chmod +x install.sh

Then run: sudo ./install.sh

www.ryanelders.com

Sat, 08/04/2012 - 17:08
helpmin

Why don't you post how you tried to upgrade ubuntu (on what kind of VPS).

Tue, 08/07/2012 - 18:05
pass

There were multiple issues.

As Eric pointed out, there were RAM and network reliability issues, so I ordered new VPS instances and from what I can recall, I did the following, even though I may have messed up a few steps:

1 vi /etc/hosts

2 vi /etc/hostname

3 hostname -F /etc/hostname

4 hostname -f

5 vi /etc/init.d/hostname_vps

HOSTNAME=something.domain.com

[ -f /etc/hostname ] && echo $HOSTNAME > /etc/hostname

[ -f /etc/HOSTNAME ] && echo $HOSTNAME > /etc/HOSTNAME

[ -f /etc/sysconfig/network ] && sed -i.hebackup s/HOSTNAME=".*"/HOSTNAME=\"$HOSTNAME\"/ /etc/sysconfig/network

/bin/hostname $HOSTNAME

[ -f /etc/my.resolv.conf ] && cp /etc/my.resolv.conf /etc/resolv.conf

[ -f /etc/my.hosts ] && cp /etc/my.hosts /etc/hosts

exit 0

6 chmod +x /etc/init.d/hostname_vps

7 update-rc.d hostname_vps defaults 09

8 vi /etc/apt/sources.list

deb http://archive.ubuntu.com/ubuntu precise main multiverse universe deb http://archive.ubuntu.com/ubuntu precise-security main restricted universe multiverse deb http://ppa.launchpad.net/izx/ovz-libc/ubuntu precise main deb http://software.virtualmin.com/gpl/ubuntu/ virtualmin-precise main deb http://software.virtualmin.com/gpl/ubuntu/ virtualmin-universal main

9 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4A9F6F74BFAB4BD9

10 apt-get update

11 apt-get dist-upgrade

12 apt-get remove python-smartpm python-software-properties update-notifier-common libmpfr1ldbl zlibc libdjvulibre-text

13 apt-get install --reinstall python-smartpm python-software-properties update-notifier-common libmpfr1ldbl zlibc libdjvulibre-text

14 apt-get install -o APT::Immediate-Configure=false -f apt python-minimal

15 do-release-upgrade -d

16 apt-get dist-upgrade

17 apt-get install -o APT::Immediate-Configure=false -f apt python-minimal

18 apt-get install update-manager-core

19 apt-get dist-upgrade -d

20 do-release-upgrade -d

21 rm /var/lock

22 apt-get install lamp-server^

23 chattr -i /etc/resolv.conf

24 cd /tmp

25 wget http://software.virtualmin.com/gpl/scripts/install.sh

26 chmod u+x install.sh

27 /tmp/install.sh

Done!

Topic locked