Priki
The Prevalent Wiki
 
Modo somente leitura

<< Wiki em modo somente leitura. Opções de edição estão desabilitadas. >>


Troubleshooting

Postado em Jan 9, 2008 por 143.54.13.84 - História

The Captcha doesn ' t show in edit page in headless linux server

Install Xvfb

run:

Xvfb :1 -screen 0 1024x768x16 
export DISPLAY=localhost@1:0

More Info: http://javaboutique.internet.com/tutorials/captcha/index-2.html

In Debian 4.0:

apt-get install xvfb
apt-get install xfonts-base
apt-get install XFree86-fonts-100dpi
apt-get install xfonts-100dpi xfonts-75dpi
apt-get install xfonts-cyrillic
apt-get install xfonts-scalable
apt-get install xfonts-cronyx-misc
apt-get install libfreetype6
apt-get install libxext6
apt-get install libxtst6
apt-get install libXi6

Change

/etc/init.d/tomcat5.5 

setting headless to false and adding:

export DISPLAY=:1.0 

Configure Xvfb to start on rc.3: http://curiositydriven.com/2007/10/09/starting-an-x-virtual-framebuffer-on-boot /

Encoding problems

Priki works only with UTF-8 URIs.

Change the properties catalina.sh adding in JAVA_OPTS

-Dfile.encoding=UTF-8 

Change server.xml. In the Connector tag, add

URIEncoding="utf-8" useBodyEncodingForURI="true" 

If you are using Apache Webserver and JK, open apache2.conf and set:

JkOptions    +ForwardURICompatUnparsed

Comentários