Planeta Tchelinux

March 12, 2010

Alan Carvalho de Assis

Alessandro Faria (Cabelo)

Cabelo-face

Neste post, notifico que disponibilizei o projeto pam-face-authentication  em pacote RPM para as versões 32 e 64 bits na  distribuição openSUSE. Este pacote já contém as últimas atualizações, incluise a minha parametrização do índice da câmera. Maiores informações na comunidade  pt.opensuse.org e o  rpm no link ao lado.


by cabelovivaolinux at March 12, 2010 03:43 PM

March 11, 2010

Alessandro Faria (Cabelo)

cabelovivaolinux

Podemos dizer que a minha vida esta classificada nos períodos AA e DA (Antes do Android e Depois do Android). Agora nos meus post, surgirão dicas voltada para equipamentos voltados para este sistema operacional.O difícil  será lagar um  pouco o aparelho para trabalha, dormir e outros…  (coisas de nerd).


by cabelovivaolinux at March 11, 2010 09:32 PM

printScreen

Disponibilizo neste post, o resultado das pesquisas e desenvolvimento na NETi TECNOLOGIA utilizando o recurso FLARToolkit. Para quem não sabe,  FLARToolkit é um  port da biblioteca ARToolkit para a tecnologia Flash. Vale a pena mencionar que  os teste laboratoriais avançaram com velocidade graças a participação do Estevão (mestre do Action Script). Para  testar o resultado da  pesquisa, clique aqui para imprimir a  placa  e aqui para testar o recurso on line.


by cabelovivaolinux at March 11, 2010 09:18 PM

Alan Carvalho de Assis

acassis

I used this command to “mount” my initramfs file:

gzip -dc /boot/initrd-2.6.x | cpio -id

Source:
http://wiki.openvz.org/Modifying_initrd_image


by acassis at March 11, 2010 04:01 PM

Mauricio "netmask" Texeira

netmask

This is another one of my “quick and dirty” tutorials. This time I will show you how to build an email to SMS gateway.

Before we continue, bare in mind that I didn’t care to document details on system security (specially in what regards to spam filtering or SELinux configuration). The idea here is to show an overview on what needs to be done to have it working. I also won’t explain how to configure an MX entry in DNS, or how to make this integrate to your current email system. The details should be polished by whoever is going to implement, depending on their environment.

Tools I have used here:

  1. A regular PC
  2. Nokia phone running Symbian OS, connected to the USB port in “PC Suite” mode
  3. Fedora 12, with Postfix (personally, I don’t like Sendmail)
  4. SMS Server Tools 3 (installed from Fedora repository, using yum)

First thing I did was installing the SMS Server Tools application, Postfix and disabling Sendmail. I did that because I think Postfix is easier to configure and maintain. If you want to do this using Sendmail, and you find your way into it, please paste the necessary configuration lines on the comments below.

# service sendmail stop
# chkconfig sendmail off
# yum install smstools postfix

Now, just for the sake of better organization, I have created a user under which we will run the SMS system, and fixed the file permissions to match that user.

# useradd -r sms
# mkdir /var/run/smsd
# chown -R sms.sms /var/log/smsd.log /var/spool/sms /var/run/smsd

Then we need to configure smstools with the minimum parameters necessary for it to run.

# vi /etc/smsd.conf
+ loglevel = 5
+ user = sms
+ group = dialout
+ infofile = /var/run/smsd/smsd.pid
+ pidfile = /var/run/smsd/smsd.working
+ device = /dev/ttyACM0

Important notes here. The device ttyACM0 exists because when I connected the Nokia I selected the “PC Suite” mode. If you select anything different, it will create a different device, but none of them work for sending messages. If you are doing this on a different distribution other than Fedora, check which group is the owner of this device, and set it on the smstools config file, otherwise the application won’t be able to write to the device.

Great. Now we can start the application, and run a basic test. Remember the accepted phone number format: XXYY99999999, where XX is the country code, YY is the region code, and the rest is the real phone number.

# chkconfig smsd on
# service smsd start
# smssend 551199999999 "This is a short test."
# echo -e "To: 551199999999\n\nThis is a long test.\nWith multiple lines.\n" > /var/spool/sms/outgoing/test

At this point, you should have received two messages. If you don’t, read back and double check your settings (or look at the logs). If all works, keep reading.

The final part is to make Postfix receive the messages, and route via smstools. The script that converts from email to SMS is this:

# cp /usr/share/doc/smstools-*/email2sms /usr/local/bin/
# chmod +x /usr/local/bin/email2sms

And here is how we make Postfix deliver to the script:

# vi /etc/postfix/main.cf
+ inet_interfaces = all
# vi /etc/postfix/master.cf
+ smstools  unix  -       n       n       -       -       pipe
+  flags=DORhu user=sms argv=/usr/local/bin/email2sms
# chkconfig postfix on
# service postfix start

If you don’t set the inet_interfaces option, Postfix will only accept connections from localhost. If you need it to receive messages from anywhere in your network, better put something meaningful there.

Now we need to make Postfix understand what is considered to be a valid user on the server. For that, we keep the old /etc/aliases, and add our users:

# vi /etc/aliases
+ 551199999999: netmask
+ 551188888888: badnetmask
# newlaliases

Remember: for every SMS recipient there must be an entry in /etc/aliases. The name after the colon is mandatory because of the file format, but will make no difference to the delivery system, so just use something that will identify the user of that address.

At last, test it:

$ telnet smsgateway.example.com 25
Trying 10.1.1.100...
Connected to smsgateway.example.com (10.1.1.100).
Escape character is '^]'.
220 smsgateway.example.com ESMTP Postfix
helo netmask.example.com
250 smsgateway.gru.redhat.com
mail from: netmask@example.com
250 2.1.0 Ok
rcpt to: 551193278997@smsgateway.example.com
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
To: 551193278997@smsgateway.example.com
Subject: Test subject
Hello world!
.
250 2.0.0 Ok: queued as C52E620236

That’s it!

I hope this is useful for you. If you find any mistakes or you wish to suggest any different setup to our next readers, please feel free to comment below.

Have fun! :)


Tagged: fedora, howto, internet, linux, tutorial

by netmask at March 11, 2010 11:48 AM

March 10, 2010

Alan Carvalho de Assis

acassis

In this site you can find main internal chips used on many (old) cell phones:

http://www.expertsitm.com/ic/index.php


by acassis at March 10, 2010 09:34 PM

acassis

This guy (Cris Paget) ported OpenBTS to run on Android:

http://www.tombom.co.uk/blog/?p=144

I wish to have a USRP in order to test OpenBTS, but I think it still a little bit expansive.

BTW, great work Cris, great work!


by acassis at March 10, 2010 03:39 PM

March 09, 2010

Alan Carvalho de Assis

acassis

Como o Windows Funciona A Saga Completa (é velho, mas é muito bom):

http://www.youtube.com/watch?v=4eAeTPA8jvE&NR=1


by acassis at March 09, 2010 09:46 PM

acassis

This site compares git and other control systems:

http://whygitisbetterthanx.com


by acassis at March 09, 2010 09:03 PM

March 08, 2010

Alan Carvalho de Assis

acassis

I was not aware of GCC support for HC11/HC12 (read HCS12 as well):

gcc-m68hc1x – GNU C compiler for the Motorola 68HC11/12 processors

$ sudo apt-get install gcc-m68hc1x


by acassis at March 08, 2010 06:49 PM

Leslie "UrsoBranco"

lezz

Por acaso acabei descobrindo a extensão para o firefox ItsAllText (pacote debian xul-ext-itsalltext ;) que simplesmente pega a entrada de um text-area e abre no seu editor de textos favorito (e vc pode selecionar o editor de textos :P ).

Isso facilita um monte a edição de textos mais longos, como por exemplo uma entrada de blog ou mesmo um bug report.
Fica aqui a dica: https://addons.mozilla.org/en-US/firefox/addon/4125


by lezz at March 08, 2010 02:29 PM

Mauricio "netmask" Texeira

netmask

Vi essa mensagem no Twitter, e achei que poderia ser útil. Tenho outros métodos (amigos) para conseguir jogos, então não testei nenhum dos métodos sugeridos, mas achei interessante compartilhar. Quem sabe alguém precisa (ou eu mesmo preciso no futuro).

(…) Eu nunca fui de comprar online, então sempre fiquei bem pé atrás com as lojas virtuais, depois de pagar a comprar sempre ficava pensando “será que vem mesmo?”. Até hoje nunca tomei calote, eu sempre pesquisava antes de comprar, verificar o CNPJ no Procon e tudo mais. Foi pensando nisso que resolvi fazer esse post, aqui vou por as lojas que recomendo, tanto pelo preço, quanto pelo atendimento, também vou por as óbvias, afinal pesquisa de preço nunca faz mal, ainda mais quando você nem precisa sair de casa. (…)

Leia o post completo no blog original.


Tagged: games, playstation, xbox

by netmask at March 08, 2010 01:06 PM

March 07, 2010

Alessandro Faria (Cabelo)

cabelovivaolinux

Logo abaixo, um vídeo demonstrativo referente a versão beta do projeto cartão virtual utilizando a tecnologia de realidade aumentada com ARToolKit. Próximo passo é adicionar textos sobre o vídeo ao vivo para exibir mensagens personalizadas.


by cabelovivaolinux at March 07, 2010 07:03 AM

March 05, 2010

Francisco Alecrim

bossa conference 2010 - my personal scheduler

Next week we’re gonne have Bossa Conference. It’ll be a great opportunity to exchange knowledgement.

My personal scheduler

Sunday

14:00 - Welcome reception and I’ll be there. ;)

Monday

10:00 - Johan Hedberg “Bluetooth Audio in Linux - Desktop vs Embedded”

11:00 - Olivier Crête & Marco Barisione - “Building Collaborative Desktop and Mobile applications”

14:00 - Sjoerd Simons - “From RTP to Empathy”

15:00 - Tobias Mueller - “Security in Mobile Devices”

16:30 - Espen Riskedal - “Shipping mobile applications using Qt for Symbian”

Tuesday

10:00 - Lennart Poettering - “Audio Infrastructure in Mobile Devices”

11:00 - Rodrigo Belém - “Ubuntu Mobile Development”

14:00 - Fuad Abinader - “Simplified transition to mobile IPv6 networks with open-source tools”

15:00 - Alexis Menard - “KDE Plasma for mobile phone”

16:30 - Alexandra Leisse - “Managing the Unmanageable”

Wednesday

09:00 - Horácio Oliveira - “Applications and Development in Wireless Sensor Networks”

10:00 - Matti Airas - “Python in Maemo 6″

11:00 - Petri Launiainen - “Through the Hockey Stick - An Insider’s View on the Mobile Revolution”

See you there!

by Francisco Keppler Silva Alecrim at March 05, 2010 10:31 PM