Solr with Jetty

Create etc/ solr/ and war/ directories.

Resources

  1. http://lucene.apache.org/solr/tutorial.html
  2. http://wiki.apache.org/solr/SolrResources
  3. http://www.xml.com/lpt/a/1668
  4. http://www.ibm.com/developerworks/java/library/j-solr1/
  5. http://www.slideshare.net/er_gauravverma/solr-presentation-presentation

Comments No Comments »

Problem

How to enable Apache SSL in Ubuntu.

Analysis

Solution

# apt-get install apache2

Now, enable ssl:

# a2enmod ssl
Enabling module ssl.
See /usr/share/doc/apache2.2-common/README.Debian.gz on how to configure SSL and create self-signed certificates.
Run '/etc/init.d/apache2 restart' to activate new configuration!

Configure:

References

  1. Need Apache2 SSL howto
  2. http://ubuntuforums.org/archive/index.php/t-405786.html

Comments No Comments »

Problem

Set up Ubuntu workstation to provide SVN using Apache and WebDAV.

Analysis

There are basically 2 ways to do it:

  1. ssh+svn
  2. https (using webdav)

Solution

We take the second one.

# apt-get install libapache2-svn
# cd /etc/apache2/sites-enabled
# vi 000-default

The content of 000-default:

    <Location /svn/repos>
      AuthType Basic
      AuthName "Subversion Repository"
      AuthUserFile /etc/apache2/passwd
      Require valid-user

      DAV svn
      SVNPath /var/svn/repos
    </Location>

Reload web server:

/etc/init.d/apache2 force-reload

Create your password file:

htpasswd -c /etc/apache2/passwd user

Resources

  1. Setting up a Subversion Server on Ubuntu Gutsy Gibbon server

Comments No Comments »

$ cd /usr/local/jini/lib

$ java -cp ./browser.jar -Djava.security.policy=../examples/all.policy com.sun.jini.example.browser.Browser

References

  1. http://www.eg.bucknell.edu/~hyde/Jini/doc/example/LookupBrowser.html

Comments No Comments »

Problem

On Ubuntu remote display in X doesn not work.

Analysis

We need to remove “-nolisten tcp” from X command line.

Solution

  1. This is sometimes in “/etc/X11/xinit/xserverrc”, but in Ubuntu you just need to configure GDM:Create or edit file /etc/gdm/custom.conf with the following content:
    [security]
    DisallowTCP=false
  2. Restart X or reboot.
  3. On the remote machine
    $ export DISPLAY=yourcomputer:0.0
  4. On local machine
    $ xhost + remotemachine

Comments No Comments »