Spring cleaning

Lately I spent lots of time cleaning up lscube related stuff, mostly trying to hack together lighttpd features inside feng. I’m getting ready for the Internet Governance Forum meeting that we will webcast.

My laptops (both G4, one titanium and one aluminium) got their fan broken in a quite unpleasant way and I’m still wandering looking for replacement, maybe it’s time to buy something else =_=
Lately I tried to look around and found some more or less nice laptops and even started thinking about getting a phenom system for home…

In the other news Seems that something would appear soonish at least as desktop… so maybe I could stay x86 free for a bit more ^^;

lu

Gentoo in Jail (and alike) thanks to openrc

Uberlord fixed the main issue I had in order to get gentoo/freebsd work in a jail: stop-start-daemon accessing /dev/mem and /dev/kmem

Now you can prepare your stage3, install openrc, dummify net and be happy in your nice jail =)

I must say that there are lots of issue here and ther in using FreeBSD with or w/out gentoo, but at least I’m getting a nice environment and got some issues fixed in the way.

ejabbed in Gentoo seems working almost fine while on FreeBSD there are weird issues that I couldn’t understand at all, still diversity is the root of evolution.

freebsd vs ejabberd vs me, 1 0 0

A moral prize to the people that could guess what’s wrong

relevant part of the config

  {5222, ejabberd_c2s, [

                        %%
                        %% If TLS is compiled and you installed a SSL
                        %% certificate, put the correct path to the
                        %% file and uncomment this line:
                        %%
                        {certfile, "/usr/local/etc/ejabberd/ssl.pem"}, starttls,

                        {access, c2s},
                        {shaper, c2s_shaper},
                        {max_stanza_size, 65536}
                       ]},

relevant log message when you try to login

**      Data  == {state,#Port<0.367>,<0.374.0>,gen_tcp,"2667452897",
                        {sasl_state,"jabber","jabber.stuff",[],
                                    #Fun<ejabberd_c2s.1.132950982>,
                                    #Fun<ejabberd_c2s.2.53796002>,undefined,
                                    undefined},
                        c2s,c2s_shaper,false,true,false,false,
                        [{certfile,"/usr/local/etc/ejabberd/ssl.pem"}],
                        false,undefined,[],"jabber.bofh-land.net",[],
                        undefined,
                        {0,nil},
                        {0,nil},
                        {0,nil},
                        {0,nil},
                        undefined,undefined,undefined,false,none,[]}
** Reason for termination = 
** {{badmatch,{error,"SSL_CTX_use_certificate_file failed: error:02001002:system library:fopen:No such file or directory"}},
    [{ejabberd_c2s,wait_for_feature_request,2},
     {gen_fsm,handle_msg,7},
     {proc_lib,init_p,5}]}

relevant file that surprisingly doesn’t seem to exist.

ls -al /usr/local/etc/ejabberd/ssl.pem
-rwxrwxrwx  1 ejabberd  wheel  1956 Feb  8 14:21 /usr/local/etc/ejabberd/ssl.pem

ejabberd vs freebsd vs me

I started setting up some stuff on a jail I’m sharing with some friend, freebsd-6.2

– installing ejabberd is quite painless through the port (good)
– configuring it was alike gentoo (nice)
– having ejabberdctl working needed some tweaking (and learning what a cookie means for erl)

now, time to test the beast

– web stuff working as should
– connecting doesn’t using tls ?!
— trying on gentoo shown the same issue -> solution on gentoo: set proper perms to the ssl.pem and using absolute paths.
— on freebsd that isn’t working for unknown reason.

Time to play with gentoo on freebsd in a chroot inside a jail.

humor me plenty!

Some random updates

First of all I’m eventually snapshotting a newer ffmpeg, I’ll need some help to get it play nice with all the other applications. The new ffmpeg has lots of improvements but it changes its api slightly so every application should update accordingly, time has passed so I hope upstream caught up with the change.

Once it will be unmasked I’ll hopefully put the next release of feng in portage, currently I’m studying lighttpd internals in order to

  • Have feng using the same lighttpd syntax for configuration
  • Improve its behavior as server

So far I started importing lighttpd datatypes and lemon based parser directly in a separate branch and reshaping a bit feng in order to make it more rational. First thing learnt from lighttpd: keep everything in instance variables.

In the other news my alubook got its fan broken (and the tibook is in the same sorry shape), if you know where to find replacement parts for it please tell me (bonus if they aren’t that pricey).