I have recorded the steps to set up TurboGears on a XEN-based VPS that only
came with a minimal Ubuntu Dapper install, and I think I have really recorded
every step I took and it runs without problems.
Please see the attached file for details. Ignore the first five and the last
three steps.
HTH, Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---
Checklist for setting up the VPS on contextshift.eu
===================================================
:OS: Ubuntu Linux 6.10 LTS "Dapper Drake"
:Memory: 96 MB
:CPU: Athlon 64 3000+
The following steps should be carried out after the VPS has been created:
* Change root password::
passwd
* Set up **sudo** with ``visudo``::
# /etc/sudoers
# Defaults
Defaults !lecture,tty_tickets,!fqdn
# User privilege specification
root ALL=(ALL) ALL
%adm ALL=(ALL) ALL
* Add an un-priviledged user to the ``adm`` group::
adduser <user>
addgroup <user> adm
* Log out, generate a SSH key on you local host and upload it to the VPS::
ssh-keygen -t dsa
ssh <user>@<host> install -m 700 -d .ssh
scp .ssh/id_dsa.pub <user>@<host>:.ssh/authorized_keys
ssh <user>@<host> chmod 600 .ssh/authorized_keys
ssh root@<host> install -m 700 -d .ssh
scp .ssh/id_dsa.pub root@<host>:.ssh/authorized_keys
ssh root@<host> chmod 600 .ssh/authorized_keys
* Log in as the new user on the VPS:
ssh-add
ssh <user>@<host>
* Edit ``/etc/apt/sources.list`` and add **uni-/multiverse** repositories:
sudo vi /etc/apt/sources.list
* Upgrade all installed packages::
sudo apt-get update && sudo apt-get upgrade
* Install desired language packs (at least ``language-pack-en``)::
sudo apt-get install language-pack-{de,en,it...}
* Install **rsync**::
sudo apt-get install rsync
* Install **setuptools**::
sudo apt-get install python-setuptools # installs 'python-dev' too
* Set default directory Python package installations via **easy_install**
by creating the file ``/root/.pydistutils.cfg`` with the following
content::
# /root/.pydistutils.cfg
[install]
prefix=/usr/local
[easy_install]
site-dirs=/usr/local/lib/python2.4/site-packages
* Copy ``/root/.pydistutils.cfg`` to ``/home/<user>``.
* Update **setuptools** via **easy_install**::
sudo easy_install -UZ setuptools
* Remove old version of **setuptools** of the Ubuntu package::
sudo apt-get remove --purge python-setuptools
* Install SQLite 3 with development libraries and command line programs
and other packages needed for compiling Python extensions::
sudo apt-get install sqlite3 libsqlite3-dev gcc python-profiler
* Install **pysqlite**::
sudo easy_install -UZ pysqlite
* Install **TurboGears** >= 1.0b2::
# this will install a host of other
# Python packages as well
sudo easy_install -UZ TurboGears
* Install the Python **textile** and **dateutil** modules::
sudo easy_install -UZ textile python-dateutil
* Upgrade **Cheetah** module to >= 2.0rc6:
sudo easy_install -UZ Cheetah
* Install **nginx**:
* Create deb build environment::
sudo apt-get install pbuilder
sudo pbuilder create # wait...
* Download nginx source package, patches and ``.dsc`` file from
http://deb.wapper.ru/nginx/::
wget http://deb.wapper.ru/nginx/nginx_0.4.14-1.dsc
wget http://deb.wapper.ru/nginx/nginx_0.4.14.orig.tar.gz
wget http://deb.wapper.ru/nginx/nginx_0.4.14-1.diff.gz
* Build ``amd64`` package::
pbuilder build nginx_0.4.14-1.dsc
* Install pre-requisites and created nginx package::
sudo apt-get install libpcre3 libssl0.9.7
sudo dpkg -i /var/cache/pbuilder/result/nginx_0.4.14-1_amd64.deb
* Configure **sshd** and change the following line in
``/etc/ssh/sshd_config``::
PermitRootLogin yes
to::
PermitRootLogin without-password
* Test your root login!