A little somewhere else

To content | To menu | To search

Tag - software

Entries feed - Comments feed

Monday, March 16 2009

Recursive scp and symlinks

This is a long time I haven't write a technical entry. Let's correct it with a problem I got copying over the network a directory with many symbolic links in it. Usually, I'm using the scp command. But this time I didn't want to copy the files pointed by the symlinks. scp doesn't propose this possibility. One of the the solutions is to use rsync like this:

rsync -avz -e ssh /my/dir user@host:/my/dst/dir

Tuesday, October 28 2008

robotsTxt 0.1beta2 plugin for Dotclear2

Thank's to Alexis, robotsTxt is now available in french. The version is stamped 0.1-beta2.

You can download it on the dedicated page of robotsTxt plugin.

Saturday, September 20 2008

Secure your web

Since a few months I was looking for a way to force my web browser to redirect me from http to https protocol for some websites I often use if I forgot to type the correct url. The best solution was of course to develop a Firefox plugin, but I really don't have time for this. I finally found a way with Greasemonkey. It's a Firefox plugin which allow you to execute javascript code for websites you decide; perfect. You will find the very small file in attachment.

I agree that's not a very clever solution, because the script is starting after (and not before!) the web page is loaded. So the page is loaded, and if the the rule matches, it rewrites the url with the correct url; a new request is launch.
So it's useful if you are going to do some other stuff on the website and not reading the first page loaded. The aim of such a Firefox plugin would be to detect theses url before launching the first request to the server, and so rewrite the url before this.

Thursday, August 28 2008

Changing suexec root directory

Almost one year ago, I wrote an entry about using Apache2 with mod_fastcgi and suexec.
For some security reasons, suexec is using a root directory. By default it's set to /var/www/. To see the problem you can test the following command:

#/usr/lib/apache2/suexec -V
-D AP_DOC_ROOT="/var/www"
-D AP_GID_MIN=100
-D AP_HTTPD_USER="www-data"
-D AP_LOG_EXEC="/var/log/apache2/suexec.log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=100
-D AP_USERDIR_SUFFIX="public_html"

As you can see AP_DOC_ROOT is set to /var/www/. So if you don't have your files in this directory, you can not use suexec. Moreover, you are probably like me, you don't want to move all your files in this directory. The only way to resolve this problem is to recompile apache2 with the correct configuration. Below, an example on Debian 4.0.

#apt-get update
$mkdir /tmp/apache2
#cd /tmp/apache2
#apt-get source apache2
-> get the package's source of apache2
#apt-get build-dep apache2
-> get and install the packages required to rebuild the package apache2
#emacs apache2-2.2.3/debian/rules
-> replace the option --with-suexec-docroot with the correct path you want. Now we can actually rebuild the package. We perform a rebuild by using the debuild command. If you are not the maintainer of the package, you will need to add two flags to this, telling the building process not to sign the package. In most cases debuild -us -uc is what you wish to use.
#debuild -us -uc
-> Wait a bit, and if no error happens, you can install the new package.
#dpkg -i apache2_2.2.3-4+etch5_all.deb

Now the AP_DOC_ROOT should be set to the correct directory:

#/usr/lib/apache2/suexec -V
-D AP_DOC_ROOT="/home/myWebDir"
-D AP_GID_MIN=100
-D AP_HTTPD_USER="www-data"
-D AP_LOG_EXEC="/var/log/apache2/suexec.log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=100
-D AP_USERDIR_SUFFIX="public_html"

Perhaps I made mistakes, tell me if you have suggestions.

Thursday, August 7 2008

Pound per square inch out

Psi is one of the software I follow closely. For those who don't know, it's a jabber client.
I'm particularly interested in this software because I think it has one of the best jabber's specifications implementation since a long time. Moreover it's written with Qt, and I really care about cross-platform software.

And so, Psi 0.12 is now out. Try it!

psi-012.png

Friday, August 1 2008

2.0

Just before leaving the hotel for a new trip, I'm really pleased to announce the release of dotclear 2.0. Trust me, it's a good one!
Test it here.

[ Through dotclear.net ]

Sunday, July 20 2008

robotsTxt 0.1beta1 plugin for Dotclear2

I've just finished the first version of robotsTxt, my first plugin for Dotclear2.
This version is stamped 0.1-beta1. It allows you to generate a simple basic robots.txt file for your blog. It supports sitemap, User-Agent, Allow, Disallow keywords.

This plugin was a need for the users of this blog platform, and unfortunately I didn't take enough time to develop it well, so don't be afraid to see some quick and & dirty code somewhere ;-)

I probably will put it on dotaddict.org, the dotclear contributors platform, after I have used it long enough, to have a minimum of stability guaranteed.

Any suggestions, bugs reports, patches are welcome.

You can download it on the dedicated page of robotsTxt plugin.

- page 1 of 2