If installing Notes fails for the lack
of some required X libraries, as you wrote, it might be worth trying to
install Domino instead. While providing you with all required APIs to do
what you are after, Domino is capable of running headless, so it won't
need any X libraries to install.