Archive

Archive for May, 2013

Upgrading to Debian 7 (with dotdeb) the easy way

May 15, 2013 Leave a comment

Directly from the dotdeb.org site:
apt-get -f install -o Dpkg::Options::=”–force-overwrite”
apt-get update
apt-get dist-upgrade

This should eliminate all the problems mentioned in the previous post.

Advertisements
Categories: sysadmin

Upgrading your server to Debian 7 (wheezy)

May 6, 2013 Comments off

To upgrade to Wheezy follow the standard instructions. Change all references
in /etc/apt/sources.list from squeeze to wheezy. Pound out any non-standard
sources. I am using dotdeb and used the following per their instructions:

deb http://packages.dotdeb.org wheezy all
deb-src http://packages.dotdeb.org wheezy all

Then do apt-get update, apt-get dist-upgrade.
I have done this on two 64 bit squeeze servers and had a few errors on both.
The errors all involved using dotdeb versions of mysql and php5.
Do not reboot your remote server until you are able to complete the upgrade w/o errors.
I ended up removing mysql-5.5 and the offending php5 packages with aptitude.

I then reinstalled mysql-5.5-server and the php5 packages wheezy packages.
Everything then worked as advertised.

I did have to install dsyslog (replacement for rsyslog) manually in order
to start logging. On one box I had to install ifupdown manually to allow
the network to start.

if your using Dovecot, the dovecot.conf file needs to be updated. When you
restart it you will see the instructions.

You can check your work by doing dpkg –audit after you have completed the upgrade. You should
see any packages that need reinstalling.

Categories: sysadmin

Upgrading to Debian 7 (wheezy) – lamp server with dotdeb

May 5, 2013 Leave a comment

To upgrade to Wheezy follow the standard instructions. Change all references
in /etc/apt/sources.list from squeeze to wheezy. Pound out any non-standard
sources. I am using dotdeb and used the following per their instructions:

deb http://packages.dotdeb.org wheezy all
deb-src http://packages.dotdeb.org wheezy all

Then do apt-get update, apt-get dist-upgrade.
I have done this on two 64 bit squeeze servers and had a few errors on both.
The errors all involved using dotdeb versions of mysql and php5.
Do not reboot your remote server until you are able to complete the upgrade w/o errors.
I ended up removing mysql-5.5 and the offending php5 packages with aptitude.

I then reinstalled mysql-5.5-server and the php5 packages wheezy packages.
Everything then worked as advertised.

I did have to install dsyslog (replacement for rsyslog) manually in order
to start logging. On one box I had to install ifupdown manually to allow
the network to start.

if your using Dovecot, the dovecot.conf file needs to be updated. When you
restart it you will see the instructions.

You can check your work by doing dpkg –audit after you have completed the upgrade. You should
see any packages that need reinstalling.

Categories: sysadmin

Clone your Debian server’s packages to new server with dpkg

May 2, 2013 Leave a comment

Make sure /etc/apt/sources.list is identical to your the file on the original server.
You may have to rsync /etc/apt from your old server to your new server if you have
installed different apt keys.

First run
dpkg –get-selections | awk ‘{print $1}’ >installed-packages ## on existing server
then sftp the installed-packages file to your new server.
on your new server, make sure you have /etc/apt/sources.list exactly like the
one on your old server.

On your new machine run:
apt-get install `cat installed-packages`

Your new server should now have all the packages your old server has.
You can copy the /etc/*.conf files to your new server (I would make a new place for them)
and add them back as needed to the new server.

Categories: sysadmin