Primal Cortex’s Weblog

Amnesia sets in…

Archive for June, 2008

Evolution on Kubuntu – Spell checking

Posted by primalcortex on June 29, 2008

How to enable spell checking on the Evolution mail client on Kubuntu:

Install the aspell package (normally is installed) and the aspell language files for your idiom. In my case aspell-pt-pt. Then you also need to install the gnome-spell package so Evolution can access the dictionary files.

Go to the evolution client and select Edit->Preferences->Composer Preferences and finally spell checking. The installed dictionaries should be available.

Now ant time you write a message, if a word is underlined by a curly red line, just right click, and at the middle of the menu it should appear the languages to be used to spell check the word.

Posted in Linux | Tagged: , | Leave a Comment »

Kubuntu behind a proxy server

Posted by primalcortex on June 28, 2008

I’m moving my work computer to Kubuntu, and hit a snag right away… My corporate network has, of course, a proxy server to access the internet. Well setting up on the Network preferences of KDE the network proxy doesn’t work for alot, and I mean alot, of applications, like Adept Manager, Kopet at least. (Well it seems also that kopet doesn’t work through proxys, so I’m using pidgin, and that one has it’s own proxy configuration)

I had to go to a shell session, set up the http_proxy and ftp_proxy variables and start up those applications through command line. C’mon guys! Can we get at least this so simple issue to work????

Posted in Linux | Tagged: , | Leave a Comment »

FireFox 3.0 is here!

Posted by primalcortex on June 18, 2008

Get it here: http://www.mozilla.com/en-US/firefox/

So far only the Switchproxy addon didn’t work, but a solution is here

And also it seems that the Portuguese dictionary is not (yet) compatible.

Posted in Geral, Linux | Tagged: | Leave a Comment »

Wireless down the drain…

Posted by primalcortex on June 18, 2008

I had to move my home computer from a location where it was connect through ethernet to the SMC 7904WBRA router to a location that made me use the wireless connection through the EZ Usb dongle… To make a long story short, to have a stable connection I had to configure the router to use the B protocol (11MBps) instead of the 54MBps protocol. Then it would connect when it wanted, and some times, not even by praying!!, the damn thing would connect or work. That’s it. I’ll use wireless sporadic for my work laptop…

What I’ve done was to buy a Powerline kit NetGear XETB1001 with two powerline XE103 devices. After some configuration it worked out of the box directly without any issues, after they are connected directly to the wall socket, not through a power cord extension!!!! Between the router and my PC I have a rock stead 35MBps connection (not the 85MBps, but I did know that…) and it works, works, works.

So bye bye wireless!

Note: Wireless is become enven in my work office unstable, and it is a security risk. It doesn’t worth the trouble.

Posted in Geral | Tagged: , , , | Leave a Comment »

SMC 7904WBRA e Vodafone Duplex Casa – Parte III

Posted by primalcortex on June 15, 2008

Bem decidamente o problema deste router com a Vodafone Duplex Casa, é definitivamente o firmware e algo do lado da Vodafone…

Devido a mudanças em casa, tive de passar a usar Wireless no PC em vez de uma ligação por cabo, e claro, montes de problemas… Ligação instável, quedas, etc. etc.  Tudo porque aparentemente o nível de sinal a 54MBPs flutava muito, e então a ligação estava sempre a regulara a velocidade entre os 54MBps e os 2MBps !!!

Desisti, e meti o router a modo B ou seja a 11MBps. Foi da noite para o dia, teve dores de dentes no início, mas agora parece-me estável… De qualquer forma parece-me que a instabilidade também tem a haver com o número de malta para aqui anda com sistemas Wireless. É por isso que vou calçar os patins ao Wireless mas os problemas de segurança associados, e mudar para PLC, pelo menos para o PC de casa.

Em relação à Vodafone, com os problemas de wireless deu mais uma hipótese ao firmware 0.55… Má ideia. Embora não tivesse os problemas que tive quando experimentei anteriormente, este em termos de ligação ADSL perdia o IP de hora em hora !!! ou seja a quando do renew do IP no DHCP da Vodafone. Nem mesmo mantendo tráfego activo o IP mantinha-se ou seja, downloads com mais de uma hora eram todos interrompidos…. O firmware 0.53 não sofre deste problema, ou seja enquanto haja tráfego o IP mantém-se, o que permite que não haja quebras de ligação.

A treta é que aparentemente não há firmwares alternativos para este router, para tentar esmiuçar a coisa, mas enfim, tenho um NSLU2 com firmware Openslug, e vou fazer um script a pingar o server DHCP da vodafone…

Posted in Geral | Tagged: , , | 4 Comments »

Ubuntu: The perfect mail gateway server

Posted by primalcortex on June 6, 2008

I’m setting up a new firewall, email gateway server using Ubuntu 8.04LTS. As in a previous post, I’m following (not always by the book) the Howtoforge to setting up a email/spam gateway Ubuntu mail gateway.

Three things didn’t go quite as expected, and so here they are engraved for ever in the internet stone:

1st) General: In the Webmin Others->Server and System Status, the Apache server monitoring reports apache as always down. The solution is to go to Servers->Apache Webserver and select on the top the link Module Config. At the bottom the option Path to Apache PID file is set to Automatic. Change it to point to /var/run/apache2.pid and save. The webmin monitor now for apache should show the apache status as OK.

2nd) Mail: I really like Mailscanner and it’s partner Mailwatch. One of the issues that I was having was that the messages that where in quarantine, Mailwatch didn’t show any option to delete or release the messages for them. The issue was lack of folder permissions. Mailwatch couldn’t access the quarantine directory. So executing the command chown -R postfix:www-data /var/spool/MailScanner and chown -R postfix:www-data /var/lib/MailScanner/ did the trick, and I can now delete and release quarantine messages.

3rd) Mail relay: After setting up postfix, all incoming messages where refused on the external interface because postfix denied relaying. Please note that I’m using this server to receive mail from the internet, to see if a mail is safe, no virus, no spam, no phishing, and so on, and then forward it to our internal mail servers. So I have a relay_domains file that describes our domains, and a transport file that specifies where are the “real” mail servers, but even with this, postfix was always refusing the mails.

The solution for this issue is on the empty mydestinations option. Setting up this option with mydestination = hash:/etc/postfix/relay_domains and stoping and restarting postfix, did the trick.

Regarding the howtoforge manual, I skiped some of the things, like fuzzyocr, and removed Bind9 from the server.

As I progress in setting up and configuring the the server, if anything worth mention, I’ll post it here.

Posted in Linux | Tagged: , , , , | 2 Comments »

IBM WebSphere interserver authentication: LTPA and SSL

Posted by primalcortex on June 5, 2008

On some applications, if you have a two layer deployment, one server for the web layer and another server for the business logic layer, you may need to enable global security and then to allow the communication between servers you need to setup LTPA between servers. On version 5.x and 6.0 just by moving the LTPA key from the business server to the application server and setting up the authentication method does the deal, and it has no need of intermediate steps to allow communication between servers.

On 6.1 version is not quite that simple, because RMI between servers runs now over SSL, and guess what if an SSL session can’t be established, the comunication is not possible.

The error message might be something like:  CAUGHT_EXCEPTION_WHILE_CONFIGURING_SSL_CLIENT_SOCKET: JSSL0080E: javax.net.ssl.SSLHandshakeException – The client and server could not negotiate the desired level of security. Reason: com.ibm.jsse2.util.h: No trusted certificate found vmcid: IBM minor code: E07 completed: No]

The key lead here is the “No trusted certificate found”, which means that an SSL session could not be established do too the missing of a server certificate.

The solution: On the IBM Websphere server that needs to comunicate (in this case the server running the the web layer), execute the following steps:

1) Logon into the WAS console.

2) Goto Security -> SSL and Key Management

3) Select the NodeDefaultTrustStore and then Signer Certificates

4) Define your parameters, where the main issue is that the host must be the server you which to connect and the port is 9043.

5) Just give an alias name and press the button “Retrieve Signer Certificate”

6) Press apply and OK, and you’re done.

Try connecting again. It should work now.

Posted in Geral | Tagged: , , , , , , , | 1 Comment »

O anestésico

Posted by primalcortex on June 1, 2008

Infelizmente abriu (ou não está sempre aberta…) mais uma época de futebol… o Europeu… Há maneiras mais inteligentes de desperdiçar 90 minutos numa vida do que a ver um jogo de futebol, mas parece que pertenço a uma minoria… Adiante. Um pequeno desabafo:

O caso específico da Selecção Nacional (independente do seu mérito), não passa de mais um anestésico que é tal maná que cai do céu, e que muitos agradecem tendo em conta a situação actual do país… Enquanto a malta se vai entretendo com o esférico, a vida continua mas mais subtilmente, como direi, um bocado anestesiados.. É o autocarro, o avião, o jogos, sei lá mais o quê. O que interessa é empalhar… Meia hora dos tele-jornais vão nesta treta, o resto é rodapé…

O facto de termos uma Selecção Nacional tem uma grande vantagem do ponto de vista psicológico sobre o país: mesmo que não passem dos preliminares sempre é fácil todos culparem alguém que está perfeitamente identificado: o treinador, o guarda redes, os jogadores, o arbitro, a Federação, percebem a ideia, certo?

É sempre mais fácil de que nos culpar-mos a nós próprios… quando estamos conscientes…

Enquanto falhamos como país democrático, com pseudo-elites, clientelas, sem leis anti-corrupção paradas logo na sua infância, com necessidades absoluta de decidirmos o que se tem de fazer para melhorar o nível de vida de todos nós mas antes a decidi-se pela forma e não pelo conteúdo, pela a educação, saúde, apoio aos mais novos e aos mais velhos, um estado eficiente, etc, aí já temos de nos culpar todos nós porque quem queiramos quer não somos nós que elegemos que ocupa os cargos da nação…

Temos de nos culpar todos nós, não a Selecção, ou treinador, os jogadores, e aí doi muito mais…

Temos de nos culpar pelo facto de que votamos para quem se auto-intitula político e/ou se encontra organizado politicamente chegue ao poder seja local, central ou global, mas não tem de facto espírito de missão para salvar o país, ou salvar o quer quer que seja mas sim somente a salvar-se a si próprio assim que as coisas apertam. Basta ver a “circulação” de cargos…

Neste caso é sempre mais complicado nos culparmos a nós próprios do que a Selecção, o treinador, pois neste caso somos nós que os escolhemos para ocupar os cargos da nação… Como eu percebo agora o que o José Saramago dizia numas eleições de que deviamos votar todos em branco…

Encontra-se assim activo um escape psicológico para toda esta miséria e podridão latente, qual Aspirina, na participação da Selecção no Europeu…

Mas a doença corre fundo e mal o Futebol acabe, mal acabe a euforia temporária, a realidade vincará com mais força o verdadeiro estado da nação, mas por enquanto estamos anestesiados pelo menos durante um mês (e há quem respire de alívio pela folga…)

PS: Espero que a selecção ganhe alguma coisa, mas só meto bandeirinha na janela, quando sairmos da cauda da Europa numa série de factores. Até lá, o futebol é só um jogo… e divirtam-se!

Posted in Geral | Tagged: , , | Leave a Comment »