Booktype
De 33system wiki
Contenido
Booktype
Teoría
Práctica
# nos descargamos el paquete wget http://superb-dca2.dl.sourceforge.net/project/booktype/Booktype-1.6.1/Booktype-1.6.1.tar.gz # descomprimimos el paquete gunzip Booktype-1.6.1.tar.gz # desempaquetamos el contenido tar -xvf Booktype-1.6.1.tar # movemos el directorio a /opt mv booktype-1.6.1 /opt/booktype # Install needed packages apt-get -q -y install python python-dev git-core python-pip python-virtualenv libjpeg-dev zlib1g-dev redis-server libxml2-dev libxslt-dev postgresql postgresql-server-dev-9.1 # Create Python Virtual Environment virtualenv --distribute mybooktype cd mybooktype source bin/activate # Fetch Booktype source git clone https://github.com/sourcefabric/Booktype.git # Install needed Python modules pip install -r Booktype/requirements/postgresql.txt # Create Booktype project ./Booktype/scripts/createbooki --database postgresql mybook # Create PostgreSQL user and enter password sudo -u postgres createuser -SDRP booktype # Create PostgreSQL database sudo -u postgres createdb -E utf8 -O booktype booktype