IBM Lenovo RS210 install lenny

no cd-rom detected

use USB!!!

http://ftp.nl.debian.org/debian/dists/lenny/main/installer-i386/current/images/hd-media/

download vmlinuz && initrd.gz

fdisk /dev/sdb
mkdosfs /dev/sdb1
syslinux /dev/sdb1

#vi syslinux.cfg
default /vmlinuz vga=791
append initrd=/initrd.gz

mount /dev/sdb1 /mnt/sdb1

copy syslinux.cfg vmlinuz initrd.gz /mnt/sdb1
copy Lenny ISO /mnt/sdb1/

lilo -S /dev/null -M /dev/sdb ext
lilo -S /dev/null -A /dev/sdb 1
install-mbr /dev/sdb

Posted in Uncategorized at April 6th, 2010. No Comments.

debian lenny django mod-wsgi

aptitude install libapache2-mod-wsgi python-imaging gettext python-mysqldb

## download django src/svn

## apache cfg

### DJANGO begin ###
Alias  /media/ /var/www/htdocs/website/django/website/media/
WSGIScriptAlias / /var/www/htdocs/website/django/website/apache/django.wsgi
WSGIDaemonProcess nuovacigat user=website group=website  processes=1 threads=1 maximum-requests=1000 display-name=website.dj
WSGIProcessGroup website
### DJANGO end ###

## cat  /var/www/htdocs/website/django/website/apache/django.wsgi

import os
import sys

sys.stdout = sys.stderr

#Calculate the path based on the location of the WSGI script.

apache_configuration= os.path.dirname(__file__)project = os.path.dirname(apache_configuration)workspace = os.path.dirname(project)sys.path.append(workspace)
sys.path.append(‘/var/www/htdocs/website/django/django-website’)      <–  django fw
sys.path.append(‘/var/www/htdocs/website/django/website’)       <– app
import django.core.handlers.wsgi
os.environ[‘DJANGO_SETTINGS_MODULE’] = ‘website.settings’
application = django.core.handlers.wsgi.WSGIHandler()

Posted in Apache at April 1st, 2010. No Comments.