Posts

Showing posts from June, 2005

Delete print jobs in cups - cupsd

To delete print jobs in cups in a Linux system you should use this command:

# lprm

Or, to cancel all jobs:

# lprm -

list print jobs in cups or cupsd

To list print jobs in cups, issue:

# lpq -a

tdb(/var/cache/samba/printing.tdb): rec_free_read bad magic 0x0 at offset=21104

[2005/06/15 20:33:36, 0] tdb/tdbutil.c:tdb_log(531) tdb(/var/cache/samba/printing.tdb): rec_free_read bad magic 0x0 at offset=21104

If you find something like this in your logs, and you can't print, just remove the file and restart samba.

Visit my sponsors if you find this information and their ads useful hehe.

Jun 8 14:57:50 rinetd[21939]: accept(0): Socket operation on non-socket

For the record.

Jun 8 14:57:50 rinetd[21939]: accept(0): Socket operation on non-socket

I had this syslog message filling my hard disk due to a configuration problem of rinetd.

I was setting it to list in a IP address which was not set to the network interfaces. I usually setup many IP's for external interfaces in a host. I had disabled a certain IP for some time (ip addr del ..) and rinetd got crazy.

Fix: check what IP it is trying to listen in.
# /etc/init.d/rinetd stop

# tail -f /var/log/syslog |less

in another screen:

# /etc/init.d/rinetd start

You will see:

Jun 8 14:57:48 rinetd[21939]: couldn't bind to address port (Cannot assign requested address)
Jun 8 14:57:48 rinetd[21939]: Starting redirections...

Then just go and remove that reference in rinetd.conf and you're done.

PF-Graph - Solução para análise de logs do Postfix

Image
Estou desenvolvendo uma ferramenta para análise de logs do Postfix. O PF-Graph, além de gerar relatórios com base em remetentes ou destinatários (incluíndo busca por domínios), cria gráficos coloridos sobre o status do serviço.

Veja abaixo algumas screenshots:

PF-Graph, mostrando o sumário de gráficos.



Resultado de busca

Entre os recursos do PF-Graph, incluem-se:

- Capacidade de auditar todas as mensagens recebidas e enviadas em um ou mais servidor de e-mail, em tempo real.

- Um daemon/agente rodando nos servidores de e-mail é responsável por coletar as informações em tempo real, e atualizar o banco de dados.

- Capacidade de mostrar total de bytes trafegados para um usuário, domínio ou qualquer termo de busca(exige Amavisd-new ou Suriproxy).

- Escrita em Perl, com integração nativa para MySQL, mas possível de se adaptar para outros bancos de dados, conforme a necessidade.


Assim que eu der uma "limpada" no código do PF-Graph, o mesmo será disponibilizado sob a licença GPL. Caso estej…

004 dk.eos.net.FtpError: Login incorrect.

If you get this error in blogger, even if you are using blogspot.com, not FTP:

004 dk.eos.net.FtpError: Login incorrect.

You can fix it by cleaning your browser cache, or just using a different browser temporarily (ie <-> firefox).

How to crack Windows Terminal Services 3 month trial

HOW TO RESET WINDOWS TERMINAL SERVICES 3 MONTH TRIAL
Warning: greyhat content.

Thanks to a Microsoft article, I've found out that it is very easy to extend your Windows Terminal Services 3-month trial or experience time. It's so easy that I'm sure many administrators have done this in their own systems, while waiting for their managers or financial staff to buy the definitive licenses (not being hypocrite here).

Following these instructions, you don't have to crack any program. You won't mess with your system. The magic is to only delete the licenses databases both in the server and the clients, and let windows re-create them for you.


----

Make sure you've installed "Terminal Services Licensing". By the way, this method only makes sense if you need to use Terminal Services in Application Mode, which is the one that requires licensing.

The idea is quite simple.

First, disconnect all users from the terminal. If you need to do this remotely, you can also discon…

New home: cetico.org

Great. As GoDaddy's prices are so low, I've decided to pay for a web hosting (so cheap!) and host this blog there.

Unfortunately I've lost my old site's layout, so I'll have to start that from stratch. Argh. It's so painful to draw web sites. I'll see if Macromedia can give me hand (Fireworks, Dreamweaver, etc).