UsualCoding.eu

To content | To menu | To search

Wednesday, July 16 2008

Private Weave Server (with ssl)

Since Google Browser Sync has been discontinued, I moved to Mozilla Weave. The cool thing is that it is open source and you can even create your own weave server.
All you need is an apache server with following modules activated and configured:

  • dav
  • dav_fs
  • dav_lock

Since weave only uses basic authentication (digest would have been better) it is strongly advised to use https.
Here is the vhost configuration file. It should be pretty straightforward:

<VirtualHost *:80>
        ServerName weave.YOURDOMAIN

        RewriteEngine On
        RewriteCond %{HTTPS} !on
        RewriteRule ^/(.*) https://%{SERVER_NAME}%{REQUEST_URI} [R]
</VirtualHost>

<VirtualHost *:443>
        ServerName weave.YOURDOMAIN
        ServerAdmin YOURMAIL

        DocumentRoot "/var/www/weave.YOURDOMAIN"

        <Directory /var/www/weave.YOURDOMAIN>
                SSLRequireSSL
                Order allow,deny
                Allow from all

                DAV On
                AuthType Basic
                AuthName "Restricted"
                AuthUserFile /etc/apache2/passwd/weave_htpasswd
                require valid-user

                AllowOverride None
        </Directory>

        <Directory /var/www/weave.YOURDOMAIN/user/YOURUSER>
                require user YOURUSER
                Options Indexes
        </Directory>

        ErrorLog /var/log/apache2/weave.YOURDOMAIN_error.log
        LogLevel warn
        CustomLog /var/log/apache2/weave.YOURDOMAIN_access.log combined
</VirtualHost>

Now all you need to do is to create the /user/YOURUSER directory in the vhost and give apache the rights to write to it.
Then create the password file with the htpasswd utility.

That should be enough to have a working weave server. You can test it by going to the directory with your browser first. Once everything works, change the server in your weave preferences.

Links:

EDIT: If you use firefox 3 you will have to add a security exception if your certificate is not signed.

Wednesday, April 18 2007

mod_xinerama for Ion3

I guess I was not the only one who was disappointed when Tuomo Valkonen announced that xinerama support has been removed from ion3 since ion-3ds-20070203 and that he would never support it again since “no once really needs it any way” because it’s only “unecological penis enlargement”.

Well there is finally some hope:
Thomas Themel released some working code last week on the ion mailing list
It works for me and there has been other success reports.

The installation is really easy:

  • Download it via darcs or http.
  • Compile it.
  • Add dopath(“mod_xinerama”) to you ion config before the statusbar module.

Thank you very much Thomas for spending some of your time doing this!

By the way Tuomo posted in his usual manner that he will have nothing to do with anyone or any distribution using this module. Thank you anyway Tuomo. Ion3 is still a great window manager.

Update

I just found some debian packages (source and amd64)