Re: Upgrading Ubuntu from 12.04 to 14.04

2014-05-18 Thread Uri Even-Chen
Yes, we use virtualenv. Thank you.

Uri Even-Chen
Mobile Phone: +972-50-9007559
E-mail: u...@speedy.net
Speedy Net: http://www.speedy.net/
Speedy Composer: http://www.speedycomposer.com/



On Sun, May 18, 2014 at 11:38 AM, Elazar Leibovich wrote:

> I'd urge you to consider using virtualenv to manage python dependencies.
>
> The only OS dependency you'd have, is python. You shouldn't care about
> dependencies beyond that.
>
> This is even more correct when deploying your application.
>
>
> On Thu, May 15, 2014 at 3:20 PM, Uri Even-Chen  wrote:
>
>> Hi people,
>>
>> I work at my job with Ubuntu 12.04 and we run Django 1.4.12 locally with
>> Python 2.7.3 and PostgreSQL. We want to upgrade Django from 1.4 to 1.6 and
>> I also thought it would be a good idea to upgrade Python to 2.7.6 and maybe
>> even 3, so I tried to upgrade Ubuntu to 14.04. But after I completed the
>> upgrade, Django didn't work and I couldn't even run migrations (with
>> South). I had to reinstall Ubuntu 12.04 and I lost all the files I had in
>> my home directory (because I chose not to keep Ubuntu 14.04) except some
>> files that I backed up. My questions are:
>>
>> 1. What do we need to do in order for Django to work with Ubuntu 14.04?
>> 2. Why isn't it possible to reinstall Ubuntu 12.04 after upgrading to
>> 14.04 and still keep all the files in my home directory, while not keeping
>> all the other files (the operating system files)?
>>
>> Thanks,
>> Uri Even-Chen
>> Mobile Phone: +972-50-9007559
>> E-mail: u...@speedy.net
>> Speedy Net: http://www.speedy.net/
>> Speedy Composer: http://www.speedycomposer.com/
>>
>>
>> ___
>> Linux-il mailing list
>> Linux-il@cs.huji.ac.il
>> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>>
>>
>
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Upgrading Ubuntu from 12.04 to 14.04

2014-05-18 Thread Elazar Leibovich
I'd urge you to consider using virtualenv to manage python dependencies.

The only OS dependency you'd have, is python. You shouldn't care about
dependencies beyond that.

This is even more correct when deploying your application.


On Thu, May 15, 2014 at 3:20 PM, Uri Even-Chen  wrote:

> Hi people,
>
> I work at my job with Ubuntu 12.04 and we run Django 1.4.12 locally with
> Python 2.7.3 and PostgreSQL. We want to upgrade Django from 1.4 to 1.6 and
> I also thought it would be a good idea to upgrade Python to 2.7.6 and maybe
> even 3, so I tried to upgrade Ubuntu to 14.04. But after I completed the
> upgrade, Django didn't work and I couldn't even run migrations (with
> South). I had to reinstall Ubuntu 12.04 and I lost all the files I had in
> my home directory (because I chose not to keep Ubuntu 14.04) except some
> files that I backed up. My questions are:
>
> 1. What do we need to do in order for Django to work with Ubuntu 14.04?
> 2. Why isn't it possible to reinstall Ubuntu 12.04 after upgrading to
> 14.04 and still keep all the files in my home directory, while not keeping
> all the other files (the operating system files)?
>
> Thanks,
> Uri Even-Chen
> Mobile Phone: +972-50-9007559
> E-mail: u...@speedy.net
> Speedy Net: http://www.speedy.net/
> Speedy Composer: http://www.speedycomposer.com/
>
>
> ___
> Linux-il mailing list
> Linux-il@cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Upgrading Ubuntu from 12.04 to 14.04

2014-05-16 Thread Amos Shapira
Beyond the original specific question - upgrades like this should be tested
using a Vagrant box, preferably also using an automatic provisioning tool
like Puppet (my personal preference) or Chef (obligatory mention) and
automatic testing using things like Cucumber, Spec, ServerSpec or perhaps
other testing frameworks.

That way you can write the tests to verify your current setup and repeat
the verification after the update.

Also - once you have automatic provisioning and testing in place, you
should consider treating the servers as immutable, i.e. once they are setup
they are not upgraded in-place but rebuilt whenever such a large change is
required. This way you are sure that what you run is exactly what you
tested in your Vagrant environment and what will be re-installed in case of
a disaster.


On 15 May 2014 23:27, Efraim Flashner  wrote:

> I don't believe it is possible for a user to create a partition.  Of
> course that is more of a brain-fart on my part, because it's not so
> useful to your situation.  Gparted should be able to resize unmounted
> ext3/4 partitions, and from there you can create a new partition, copy
> your /home directory there and edit /etc/fstab to point to the new
> partition.
>
> I found these release notes:
> https://wiki.ubuntu.com/TrustyTahr/ReleaseNotes, but it looks rather
> short, and doesn't mention django.  Fortunately django has its own release
> notes here: https://docs.djangoproject.com/en/1.6/releases/ which should
> help with the upgrade.
>
> Sorry I couldn't be more helpful, I've never used django.
>
> -Efraim
>
>
> On Thu, 15 May 2014 16:00:00 +0300
> Uri Even-Chen  wrote:
>
> > Thank you, it's a good idea. At work my home directory is not in a
> > separate partition so it's not kept if I reinstall Ubuntu. Do you
> > know how I can create a partition and move it to a separate partition?
> >
> > Uri Even-Chen
> > Mobile Phone: +972-50-9007559
> > E-mail: u...@speedy.net
> > Speedy Net: http://www.speedy.net/
> > Speedy Composer: http://www.speedycomposer.com/
> >
> >
> >
> > On Thu, May 15, 2014 at 3:46 PM, Ori Idan 
> > wrote:
> >
> > >
> > > On Thu, May 15, 2014 at 3:20 PM, Uri Even-Chen 
> > > wrote:
> > >
> > >> Hi people,
> > >>
> > >> I work at my job with Ubuntu 12.04 and we run Django 1.4.12
> > >> locally with Python 2.7.3 and PostgreSQL. We want to upgrade
> > >> Django from 1.4 to 1.6 and I also thought it would be a good idea
> > >> to upgrade Python to 2.7.6 and maybe even 3, so I tried to upgrade
> > >> Ubuntu to 14.04. But after I completed the upgrade, Django didn't
> > >> work and I couldn't even run migrations (with South). I had to
> > >> reinstall Ubuntu 12.04 and I lost all the files I had in my home
> > >> directory (because I chose not to keep Ubuntu 14.04) except some
> > >> files that I backed up. My questions are:
> > >>
> > >> 1. What do we need to do in order for Django to work with Ubuntu
> > >> 14.04? 2. Why isn't it possible to reinstall Ubuntu 12.04 after
> > >> upgrading to 14.04 and still keep all the files in my home
> > >> directory, while not keeping all the other files (the operating
> > >> system files)?
> > >>
> > > Why do you think it is not possible?  I do it all the time.
> > > I  keep my home directory in a separate partition so when I upgrade
> > > (or downgrade) the OS the home directory stays the same.
> > >
> > > --
> > > Ori Idan
> > >
> > >
>
>
>
> --
> Efraim Flashner
> efraim.flash...@gmail.com 4096R/CA3D8351 created: 2013-10-08
> GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
>
> ___
> Linux-il mailing list
> Linux-il@cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>


-- 
 [image: View my profile on LinkedIn]

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Upgrading Ubuntu from 12.04 to 14.04

2014-05-15 Thread Efraim Flashner
I don't believe it is possible for a user to create a partition.  Of
course that is more of a brain-fart on my part, because it's not so
useful to your situation.  Gparted should be able to resize unmounted
ext3/4 partitions, and from there you can create a new partition, copy
your /home directory there and edit /etc/fstab to point to the new
partition.

I found these release notes: https://wiki.ubuntu.com/TrustyTahr/ReleaseNotes, 
but it looks rather short, and doesn't mention django.  Fortunately django has 
its own release notes here: https://docs.djangoproject.com/en/1.6/releases/ 
which should help with the upgrade.

Sorry I couldn't be more helpful, I've never used django.

-Efraim


On Thu, 15 May 2014 16:00:00 +0300
Uri Even-Chen  wrote:

> Thank you, it's a good idea. At work my home directory is not in a
> separate partition so it's not kept if I reinstall Ubuntu. Do you
> know how I can create a partition and move it to a separate partition?
> 
> Uri Even-Chen
> Mobile Phone: +972-50-9007559
> E-mail: u...@speedy.net
> Speedy Net: http://www.speedy.net/
> Speedy Composer: http://www.speedycomposer.com/
> 
> 
> 
> On Thu, May 15, 2014 at 3:46 PM, Ori Idan 
> wrote:
> 
> >
> > On Thu, May 15, 2014 at 3:20 PM, Uri Even-Chen 
> > wrote:
> >
> >> Hi people,
> >>
> >> I work at my job with Ubuntu 12.04 and we run Django 1.4.12
> >> locally with Python 2.7.3 and PostgreSQL. We want to upgrade
> >> Django from 1.4 to 1.6 and I also thought it would be a good idea
> >> to upgrade Python to 2.7.6 and maybe even 3, so I tried to upgrade
> >> Ubuntu to 14.04. But after I completed the upgrade, Django didn't
> >> work and I couldn't even run migrations (with South). I had to
> >> reinstall Ubuntu 12.04 and I lost all the files I had in my home
> >> directory (because I chose not to keep Ubuntu 14.04) except some
> >> files that I backed up. My questions are:
> >>
> >> 1. What do we need to do in order for Django to work with Ubuntu
> >> 14.04? 2. Why isn't it possible to reinstall Ubuntu 12.04 after
> >> upgrading to 14.04 and still keep all the files in my home
> >> directory, while not keeping all the other files (the operating
> >> system files)?
> >>
> > Why do you think it is not possible?  I do it all the time.
> > I  keep my home directory in a separate partition so when I upgrade
> > (or downgrade) the OS the home directory stays the same.
> >
> > --
> > Ori Idan
> >
> >



-- 
Efraim Flashner
efraim.flash...@gmail.com 4096R/CA3D8351 created: 2013-10-08
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351


signature.asc
Description: PGP signature
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Upgrading Ubuntu from 12.04 to 14.04

2014-05-15 Thread Uri Even-Chen
Thank you, it's a good idea. At work my home directory is not in a separate
partition so it's not kept if I reinstall Ubuntu. Do you know how I can
create a partition and move it to a separate partition?

Uri Even-Chen
Mobile Phone: +972-50-9007559
E-mail: u...@speedy.net
Speedy Net: http://www.speedy.net/
Speedy Composer: http://www.speedycomposer.com/



On Thu, May 15, 2014 at 3:46 PM, Ori Idan  wrote:

>
> On Thu, May 15, 2014 at 3:20 PM, Uri Even-Chen  wrote:
>
>> Hi people,
>>
>> I work at my job with Ubuntu 12.04 and we run Django 1.4.12 locally with
>> Python 2.7.3 and PostgreSQL. We want to upgrade Django from 1.4 to 1.6 and
>> I also thought it would be a good idea to upgrade Python to 2.7.6 and maybe
>> even 3, so I tried to upgrade Ubuntu to 14.04. But after I completed the
>> upgrade, Django didn't work and I couldn't even run migrations (with
>> South). I had to reinstall Ubuntu 12.04 and I lost all the files I had in
>> my home directory (because I chose not to keep Ubuntu 14.04) except some
>> files that I backed up. My questions are:
>>
>> 1. What do we need to do in order for Django to work with Ubuntu 14.04?
>> 2. Why isn't it possible to reinstall Ubuntu 12.04 after upgrading to
>> 14.04 and still keep all the files in my home directory, while not keeping
>> all the other files (the operating system files)?
>>
> Why do you think it is not possible?  I do it all the time.
> I  keep my home directory in a separate partition so when I upgrade (or
> downgrade) the OS the home directory stays the same.
>
> --
> Ori Idan
>
>
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Upgrading Ubuntu from 12.04 to 14.04

2014-05-15 Thread Ori Idan
On Thu, May 15, 2014 at 3:20 PM, Uri Even-Chen  wrote:

> Hi people,
>
> I work at my job with Ubuntu 12.04 and we run Django 1.4.12 locally with
> Python 2.7.3 and PostgreSQL. We want to upgrade Django from 1.4 to 1.6 and
> I also thought it would be a good idea to upgrade Python to 2.7.6 and maybe
> even 3, so I tried to upgrade Ubuntu to 14.04. But after I completed the
> upgrade, Django didn't work and I couldn't even run migrations (with
> South). I had to reinstall Ubuntu 12.04 and I lost all the files I had in
> my home directory (because I chose not to keep Ubuntu 14.04) except some
> files that I backed up. My questions are:
>
> 1. What do we need to do in order for Django to work with Ubuntu 14.04?
> 2. Why isn't it possible to reinstall Ubuntu 12.04 after upgrading to
> 14.04 and still keep all the files in my home directory, while not keeping
> all the other files (the operating system files)?
>
Why do you think it is not possible?  I do it all the time.
I  keep my home directory in a separate partition so when I upgrade (or
downgrade) the OS the home directory stays the same.

-- 
Ori Idan
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Upgrading Ubuntu from 12.04 to 14.04

2014-05-15 Thread Uri Even-Chen
Hi people,

I work at my job with Ubuntu 12.04 and we run Django 1.4.12 locally with
Python 2.7.3 and PostgreSQL. We want to upgrade Django from 1.4 to 1.6 and
I also thought it would be a good idea to upgrade Python to 2.7.6 and maybe
even 3, so I tried to upgrade Ubuntu to 14.04. But after I completed the
upgrade, Django didn't work and I couldn't even run migrations (with
South). I had to reinstall Ubuntu 12.04 and I lost all the files I had in
my home directory (because I chose not to keep Ubuntu 14.04) except some
files that I backed up. My questions are:

1. What do we need to do in order for Django to work with Ubuntu 14.04?
2. Why isn't it possible to reinstall Ubuntu 12.04 after upgrading to 14.04
and still keep all the files in my home directory, while not keeping all
the other files (the operating system files)?

Thanks,
Uri Even-Chen
Mobile Phone: +972-50-9007559
E-mail: u...@speedy.net
Speedy Net: http://www.speedy.net/
Speedy Composer: http://www.speedycomposer.com/
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il