Definite's Extractor

My findings on Life, Linux, Open Source, and so on.

Monthly Archives: April 2008

svn apache access in RHEL/Fedora

First of all, please modify the Location section in /etc/httpd/conf.d/subversion.conf like so:

<Location /repos>
   DAV svn
   SVNParentPath /home/svn/repos

   SSLRequireSSL
   Require valid-user

   AuthType Basic
   AuthUserFile /etc/httpd/local/svn-auth
   AuthName "SVN Authorization"
   AuthzSVNAccessFile /etc/local/httpd/svnauthz.conf 
</Location>

If you want SSL, also modify /etc/httpd/conf.d/ssl.conf like:

#   Server Certificate:
SSLCertificateFile /etc/pki/tls/certs/localhost.crt

#   Server Private Key:
SSLCertificateKeyFile /etc/pki/tls/private/dchen.key

#   Certificate Authority (CA):
SSLCACertificateFile /etc/pki/tls/certs/ca-bundle.crt

Refer following links for certificate generation:
Self-signed SSL Certificate for testing purposes

Real SSL Certificate

After this, and it’s important, check the SELinux setting.
The quick workaround is, of course, set it to either permissive mode or disable it.
But it is better to set SELinux label accordingly.
Execute following commands:

setsebool -P httpd_unified=1

Please refer man 8 httpd_selinux or http://fedoraproject.org/wiki/SELinux/apache for further information.

Advertisements

[xorg] Portrait Display

It is very simple, just add following line to section “Monitor” in xorg.conf
like so:

Section "Monitor"
     ....
    Option	   "Rotate" "CCW"
    .....
EndSection

Encountered: invalid use of incomplete type “struct QMouseEvent”

Solution:

add -DQT_INCLUDE_COMPAT in CFLAGS.