https://www.dokuwiki.org/install:debian
install:debian [DokuWiki]
1 of 5
https://www.dokuwiki.org/install:debian
DokuWiki
It's better when it's simple
DokuWiki package for Debian
DokuWiki is available in the official Debian repository and is installable through the usual Debian tools.
Dokuwiki-package overview [http://packages.debian.org/dokuwiki]
technical overview and news [http://packages.qa.debian.org/dokuwiki]
bug reports [http://bugs.debian.org/dokuwiki]
Specificities of the Debian Dokuwiki-package
Contrary to a standard Dokuwiki installation, the Debian Dokuwiki-package is managed by the package manager
[http://en.wikipedia.org/wiki/Package management system] (of course), which allows you to get upgrades and security updates along
with the rest of your system.
Paths
The Debian Dokuwiki-package has a specific file structure, basically:
<dokuwiki
/etc/dokuwiki This directory holds all configuration files for dokuwiki, including the configuration for
the web server, like lighttpd or apache HTTP server. E.g. the file /etc/lighttpd/conf-
available of the Debian lighttpd-package is a symlink to /etc/dokuwiki/lighttpd.conf
<dokuwiki /usr/share The main dokuwiki directory. This is where the web server points to.
root> /dokuwiki <dokuwiki /var/lib data> /dokuwiki/data
conf>
The main content directory, instead of var/www/dokuwiki
The initial configuration of the Debian Dokuwiki-package is also done via the package manager, and not via the install web page
of Dokuwiki.
The package manager also manages the configuration of your web server to give you access to your Dokuwiki installation.
The Debian Dokuwiki-package uses some packaged libraries instead of the embedded ones, e.g. Geshi and SimplePie.
Some of these specificities come from the packaging system itself, some are to comply with the Debian policy
[http://www.debian.org/doc/debian-policy/]. This has:
some advantages, like a good operating system integration, easy initial configuration;
some drawbacks, like unusual file paths and some specific bugs.
Specific problems
The full list of bugs filed against the Debian package can be found here [http://bugs.debian.org/dokuwiki]. Here are the most
important problems you may encounter:
The RSS feature will not work with the Debian Squeeze version, because of a library incompatibility. If you need this
feature you will have to use a more recent version from the backports or to install DokuWiki manually without using the
28/11/13 07:56
install:debian [DokuWiki]
2 of 5
https://www.dokuwiki.org/install:debian
Debian package.
Some plugins may break because of the specific file layout.
Bugs reports
Please report bugs in the package using the Debian bug tracking system [http://bugs.debian.org/]. See also the current list of bugs
[http://bugs.debian.org/dokuwiki].
Installation
You can use dokuwiki with any web server that supports PHP, e.g. Cherokee [http://en.wikipedia.org/wiki/Cherokee (web server)],
Hiawatha [http://en.wikipedia.org/wiki/Hiawatha (web server)], lighttpd [http://en.wikipedia.org/wiki/lighttpd], Nginx
[http://en.wikipedia.org/wiki/Nginx], Apache HTTP Server [http://en.wikipedia.org/wiki/Apache HTTP Server], and many more. So far
(2013-01), the Debian software package of dokuwiki offers an assisted installation only for Apache HTTP Server and lighttpd.
Either run
apt-get install dokuwiki
this will inevitably install Apache as well; Alternatively install the web server of your choice first, and then dokuwiki, e.g.
apt-get install lighttpd
apt-get install php5-cgi php5 dokuwiki
Initial Configuration of Dokuwiki with dpkg
Starting with Debian Squeeze and Lenny with backports, dpkg asks you some questions for the initial configuration:
the web servers to configure and whether or not to restart them to apply the configuration;
the web path where your wiki is to be available, that is, /dokuwiki, /wiki or whatever;
the access scope of your wiki: local host, LAN or Internet;
if you chose LAN, your LAN IP address range;
whether or not to remove the wiki data when purging the package;
whether or not to allow configuration and plugin administration from the web interface;
the wiki title, license and ACL;
wiki admin name, password, full name, email address and password.
To get all available questions for the configuration of the dokuwiki debian software package, regardless of your debconf-settings,
simply run:
# dpkg-reconfigure dokuwiki
Further Configuration of DokuWiki via the DokuWiki Configuration Manager
See →config, the most nearby options being use rewrite and use slash.
lighttpd
apt-get update
apt-get install lighttpd
apt-get install php5-cgi php5 dokuwiki
lighty-enable-mod fastcgi fastcgi-php dokuwiki
/etc/init.d/lighttpd force-reload
Done.
nginx
28/11/13 07:56
install:debian [DokuWiki]
3 of 5
https://www.dokuwiki.org/install:debian
Insert in /etc/nginx/sites-enabled/default
# serve static files from nginx
location ~ ^/dokuwiki/lib/.+\.(css|gif|js|png)$ {
root /usr/share;
expires 30d;
}
location = /dokuwiki/install.php {
deny all;
}
location = /dokuwiki {
rewrite ^ /dokuwiki/ permanent;
}
location = /dokuwiki/ {
rewrite ^ /dokuwiki/doku.php last;
expires 30d;
}
location ~ ^/dokuwiki/(|lib/(exe|plugins/[^/]+)/)[^/]+\.php {
root /usr/share;
fastcgi_pass unix:/var/run/php5-fpm.sock;
include
fastcgi_params;
}
location /dokuwiki/ {
deny all;
}
Debian Backports
The package versions can be a bit outdated, specially if you are using an old Debian version such as Lenny (oldstable). Updated
packages are available using the backports repository [http://backports.debian.org/]. For instance, for Lenny:
echo "deb http://ftp.de.debian.org/debian-archive/debian-backports/ lenny-backports main" >> /etc/apt/sources.list
apt-get update
apt-get -t lenny-backports install dokuwiki
Additional Installation Information
For more information on installing and configuring Dokuwiki on Debian, see debian_ubuntu_extras. Among other things, this
covers how to set up nice urls using the htaccess option.
Usage
After installation of the package, your dokuwiki install is available at http://127.0.0.1/dokuwiki/ [http://127.0.0.1/dokuwiki/]
(replace localhost (127.0.0.1) with the FQDN or IP address of your server if it is not your local computer).
Starting with Debian Squeeze and Lenny backports, your wiki is completely usable after installation, so start using it and skip the
Lenny section that is not for you. With Lenny without backports, the initial configuration is limited though, so read the next
section.
Debian 5 Lenny
The Dokuwiki-package in the Debian 5 Lenny repository is a bit buggy. We recommend to upgrade your system to Debian 6
Squeeze or use the package from the backports! If you do not want to do that and really want to use the version from the Lenny
repository, read on.
For a full access from the LAN or from Internet, edit the /etc/apache/conf/dokuwiki.conf file and change 127.0.0.0 to All for
Apache2: /etc/apache2/conf.d/dokuwiki.conf
You'll likely need to restart apache for this to take effect.
For a full config that includes login and adminstration from within the wiki you have to enable ACL and change some configs.
You need root privileges to use the commands.
28/11/13 07:56
install:debian [DokuWiki]
4 of 5
https://www.dokuwiki.org/install:debian
1. copy /etc/dokuwiki/local.php.dist to /etc/dokuwiki/local.php and edit according to your local needs. Make sure, the
option useacl is enabled.
2. allow user www-data to read and write the config files
chown -R www-data /etc/dokuwiki/
chown -R www-data /usr/share/dokuwiki/lib/
3. copy the disabled examples of authentification files to where dokuwiki expects them (or run the installer):
cp /etc/dokuwiki/acl.auth.php.dist /var/lib/dokuwiki/acl/acl.auth.php
cp /etc/dokuwiki/users.auth.php.dist /var/lib/dokuwiki/acl/users.auth.php
Replacing config file /etc/dokuwiki/htaccess with new version
Replacing config file /etc/dokuwiki/local.php with new version
Replacing config file /etc/dokuwiki/apache.conf with new version
Not replacing deleted config file /etc/dokuwiki/lighttpd.conf
Lighttpd not installed, skipping
you have to purge instead of just removing the package, then reinstall dokuwiki again. Do not worry, if you configured the
package the right way, the content will not be removed.
Creating config file /etc/dokuwiki/lighttpd.conf
Questions and answers
Feel free to ask questions here:
Where are data dirs?
Under /var/lib/dokuwiki to comply with the Debian Policy [http://www.debian.org/doc/debian-policy/] and match the general
system layout.
Can you briefly list all steps necessary for multiple (separate) installations sharing the codebase?
Implementing the farming within the Debian package is a mid-term goal, not achieved yet. Stay tuned.
Can you install it on Ubuntu
Yes, because every package in Debian ends up in Ubuntu too. It is not directly maintained though, so things may break.
How do I restore data from an older install on another machine?
Copy /var/lib/dokuwiki/data from the old installation to the new one. Install the needed plugins manually. (Don't forget to give
write access to '/var/lib/dokuwiki/lib/plugins' for www-data user to allow plugin installation from the admin panel)
I installed using the Debian package, that would be the proper way to upgrade DokuWiki?
Upgrade your system (from Lenny to Squeeze for instance) or use a backport.
How using DokuWiki download installation in stead of Debian package version?
I installed using the Debian package, but now (for whatever reason, e.g. access to latest release early) I want to go use the
DokuWiki download installation (which is not Debian policy compatible). How would i do?
Get DokuWiki, install it following the regular instructions. Then restore your old content:
Put your old /var/lib/dokuwiki/data content into the data directory of your new DokuWiki installation.
28/11/13 07:56
install:debian [DokuWiki]
5 of 5
https://www.dokuwiki.org/install:debian
You can also try to restore:
your configuration file, that are under /etc/dokuwiki;
your plugins, that are under /var/lib/dokuwiki/lib/plugins.
install/debian.txt · Last modified: 2013/09/24 17:25 by 86.56.112.41
Imprint
28/11/13 07:56
26 comentarios:
he intentado instalar el festival pero no sé porque razón no me aparece en los repositorios
te paso mi sources.list
deb cdrom:[Ubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)]/ breezy main restricted
deb http://es.archive.ubuntu.com/ubuntu breezy main restricted
deb-src http://es.archive.ubuntu.com/ubuntu breezy main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://es.archive.ubuntu.com/ubuntu breezy-updates main restricted
deb-src http://es.archive.ubuntu.com/ubuntu breezy-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# deb http://es.archive.ubuntu.com/ubuntu breezy universe
# deb-src http://es.archive.ubuntu.com/ubuntu breezy universe
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://es.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
# deb-src http://es.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu breezy-security main restricted
deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted
# deb http://security.ubuntu.com/ubuntu breezy-security universe
# deb-src http://security.ubuntu.com/ubuntu breezy-security universe
#activados por min, o de arriba é orixinal
deb http://es.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
deb-src http://es.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
deb http://es.archive.ubuntu.com/ubuntu breezy universe
deb-src http://es.archive.ubuntu.com/ubuntu breezy universe
------------ sources.list ------------
deb http://mx.archive.ubuntu.com/ubuntu breezy main restricted
deb-src http://mx.archive.ubuntu.com/ubuntu breezy main restricted
deb http://mx.archive.ubuntu.com/ubuntu breezy-updates main restricted
deb-src http://mx.archive.ubuntu.com/ubuntu breezy-updates main restricted
deb http://mx.archive.ubuntu.com/ubuntu breezy universe
deb http://mx.archive.ubuntu.com/ubuntu breezy multiverse
deb-src http://mx.archive.ubuntu.com/ubuntu breezy universe
deb http://mx.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
deb-src http://mx.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu breezy-security main restricted
deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted
deb http://security.ubuntu.com/ubuntu breezy-security universe
deb-src http://security.ubuntu.com/ubuntu breezy-security universe
------------ sources.list ------------
Espero te sirva.
Mi sistema es un debian, y mi conexion es lenta (modem), por lo que dejare bajando todo en la noche para intentarlo mañana.
y espero luego poder pasar mis archivos pasados a voz a un archivo ogg (o mp3), para poderlo oir comodamente en la palm
muy interesante, si tengo broncasespero poder hecharte un cable (por aca).
pues deja te alcanzo primero, para empezaer con dudas
$ festival --language spanish
SIOD ERROR: unbound variable : voice_el_diphone
festival: fatal error exiting
Alguna idea
Antes de nada felicitarte por esta guia pues está escrito con mucha claridad. Me fue de gran ayuda para empezar a trastear con esto. Tal y como anotaron en el mensaje anterior, la modificación de la voz en español no se llegó a comentar tal y como decía la guia. ¿Vas a escribirla en la bitácora?
Un saludo, y muchas gracias.
No van a ser meses, yo creo que en 2 semanas ya esta este tutorial completo, saludos y gracias por sus comentarios.
He igual si estan interesados en algún otro tipo de tutoriales, solo pidanlos en aztkgeek arroba gmail punto com o dejando un comentario aqui
me gustaria que me ayudaran, ya que en veradad lo necesito para poder desarrollar mi tesis de la U.
Festival es la base de mi proyeto, porque deseo desarrollar un sintetizador de voz y necesito guiarme con FESTIVAL TTS.
gracias por su atencion.
mi correo es faramirt@gmail.com
Supongo q te aburriste de escribir, pues el tutorial es muy completo, pero cumple con lo prometido, complétalo por favor! es muy útil
festival> (SayText "Hello Mr. MINOMBRE. How are you?")
Linux: can't open /dev/dsp
'#< Utterance 0xb721f758 >'
festival> (quit)
$ echo "hellow i am julio" | esddsp festival --tts
y eso funciona perfectamente.. ya que utilizo esd para reproducir casi cualquier cosa :D
bytes
pd: lo unico que no se es como subir el volumen del esd al momento de reproducir, ya que la musica se oye muy fuerte y casi no se distingue festival...
festival> (SayText "Hello Mr. MINOMBRE. How are you?")
Linux: can't open /dev/dsp
'#< Utterance 0xb721f758 >'
festival> (quit)
y tengo instalado el audio suena perfectamente el problema es que tengo el audio integrado y una tarjeta de sonido ¿que puedo hacer para escuchar ?
aoss firefox
en lugar de solo firefox
saludos
A mi tambien se me presento el mismo problema de "anonimo"
festival> (SayText "Hello Mr. MINOMBRE. How are you?")
Linux: can't open /dev/dsp
'#< Utterance 0xb721f758 >'
festival> (quit)
Pero sabes lo que hice, corte por lo sano y busque en Synaptic los paquetes de festival, simplemente puse "festival" en search y me aparecieron los paquetes de festival, los cuales los marque para su instalacion desde Synaptic, luego le dí "Start" y me instaló todos los paquetes necesarios por Festival.
Una vez terminado me fui a la linea de comandos de festival y todo funciono perfecto. Muy simple con Synaptic.
Saludos!!
RdelaHoz
Puedes configurar en festival que la voz sea de hombre o de mujer?
sudo cp -Rf us1 /usr/share/festival/voices/english/us1_mbrola
Should be
sudo cp -Rf us1_mbrola/ /usr/share/festival/voices/english/
Thank you! I am following your guide using Babelfish as I do not understand Spanish. :-)
espero su ayuda.
He estado buscando información para usar festival con mbrola en español pero no he podido encontrar algo concreto, podrias ayudarme??
Mi correo es: hectorjlr@hotmail.com
Gracias y saludos!!!
- De momento aún no es posible colocar todas las voces del MBROLA en el Festival.
- Hay procedimientos conocidos y verificados sobre como utilizar FESTVOX con las seguientes voces MBROLA:
INGLES
CHECO
ALEMAN
Los procedimientos pueden ser obtidos buscando en este link: http://docs.kde.org/development/en/kdeaccessibility/kttsd/configuration.html
ver el apartado "Using Festival with MBROLA"
- Para las demás voces (como el portugues y el castellano), he buscado mucho y no he encontrado forma.
- En todo caso, aunque no sea posible utilizar todas las voces del MBROLA, existe un packete debian de una voz en castellano para el FESTIVAL, desarrollada por festvox:
#$ sudo apt-get install festvox-ellpc11k
Este paquete es de una voz generada por festvox, o sea, una alternativa a la voz del MBROLA castellano (dicen que no suena tan bien, no he llegado a comparar)
Para utilizar: $ echo "hola hombre" | festival --tts --language spanish
Quisiera que me ayudaras con información de como usar el TTS FESTIVAL desde JAVA. Que necesito instalar, ejemplos, etc.
Gracias
http://mary.dfki.de/online-demos/online-speech-synthesis/speech_synthesis
Estoy interesado en el plug in para firefox, debe ser divertido seleccionar una porcion de texto hacer click derecho y activar festival con la seleccion como argumento de entrada
"Linux: can't open /dev/dsp"
Se soluciona con la siguiente línea en la terminal :
printf ";use ALSA\n(Parameter.set 'Audio_Method 'Audio_Command)\n(Parameter.set 'Audio_Command \"aplay -q -c 1 -t raw -f s16 -r \$SR \$FILE\")\n" > ~/.festivalrc
yo lo probé y me funcionó ( a mi no, pero vamos a darle una oportunidad )
Por otro lado tenemos que instalar esto:
pdftotext
Grácias a:
http://www.cyberciti.biz/faq/converter-pdf-files-to-text-format-command/
pdftotext: Linux / UNIX Convert a PDF File To Text Format
Answer: Use pdftotext utility to convert Portable Document Format (PDF) files to plain text. It reads the PDF file, and writes a text file. If text file is not specified, pdftotext converts file.pdf to file.txt. If text-file is -, the text is sent to stdout.
Install pdftotext under RedHat / RHEL / Fedora / CentOS Linux
pdftotext is installed using poppler-utils package under various Linux distributions:# yum install poppler-utilsOR use the following under Debian / Ubuntu Linux
$ sudo apt-get install poppler-utilspdftotext syntax
pdftotext {PDF-file} {text-file}How do I convert a pdf to text?
Convert a pdf file called hp-manual.pdf to hp-manual.txt, enter:$ pdftotext hp-manual.pdf hp-manual.txtSpecifies the first page 5 and last page 10 (select 5 to 10 pages) to convert, enter:
$ pdftotext -f 5 -l 10 hp-manual.pdf hp-manual.txtConvert a pdf file protected and encrypted by owner password:
$ pdftotext -opw 'password' hp-manual.pdf hp-manual.txtConvert a pdf file protected and encrypted by user password:
$ pdftotext -upw 'password' hp-manual.pdf hp-manual.txtSets the end-of-line convention to use for text output. You can set it to unix, dos or mac. For UNIX / Linux oses, enter:
$ pdftotext -eol unix hp-manual.pdf hp-manual.txtYo ya lo tenia instalado asi que imagino que viene en los repositorios. ( ahora estoy en Linux Mint )
De momento lo dejo en espera ya que tengo que hacer dos mil cosas más...
a1o