Instalando pacotes através da web

Para quem está usando o Ubuntu 7.10 "Gutsy", a última versão disponível no momento, há como padrão o suporte ap protocolo apt:// no Firefox. Desta forma instalar pacotes e repositórios tornou-se ainda mais fácil. O projeto AptURL permite instalar pacotes dos repositórios configurados na máquina (por questões de segurança). Por exemplo, vamos instlar todos os codecs não-livres sudo apt-get install ubuntu-restricted-extras para aqueles que estão usando o Ubuntu 7.10 deveria ser tão simples quanto clicar no link e aceitar a instalação do pacote. Se não funcionar, tente instalar o pacote apturl. Aqueles que estiverem usando as versões anteriores, ou não tiverem o apturl instalado, devem continuar a usar a linha de comando. O AptURL funcionará sem nenhuma alteração no Firefox, para outros browsers : Opera Vá em Ferramentas -> Preferências -> Avançadas -> Programas, clique em Adicionar para instalar um novo protocolo, coloque apt no campo Protoclo e em Ação coloque /usr/bin/apturl. Konqueror Temos que criar um arquivo de protocolo no diretório /usr/share/services sudo gedit /usr/share/services/apt.protocol com o seguinte conteúdo:
[Protocol] exec=/usr/bin/apturl "%u" protocol=apt input=none output=none helper=true listing=false reading=false writing=false makedir=false deleting=false
Galeon Execute os seguintes comandos para criar as entradas correspondentes no gconf:
gconftool-2 -t string -s /desktop/gnome/url-handlers/apt/command "/usr/bin/apturl \"%s\"" gconftool-2 -t bool -s /desktop/gnome/url-handlers/apt/enabled true gconftool-2 -t bool -s /desktop/gnome/url-handlers/apt/needs_terminal false
Ob.s: Os softwares mais atuais para Ubuntu podem ser instalados utilizando o repositório online Apptr .
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Released a Object-Relational Mapping Library on MS codeplex.com

Some months ago we had an open source project called C# Data Object (CsDO) approved on codeplex.com . This project has been being carried on for more than one year now, but it had no forge hosting it.

C# Data Objects is a Object-Relational Mapping (ORM) library, which means that it maps your database tables to C# Objects and datacase fields to C# Object public properties. It has built-in features that allows: Data Mapping, Primary Key searches, Foreign Key (1-1, 1-n), Identities and Autoincrement Fields, and much more.

It is really easy to use and requires no xml descriptor or tricky implementations. The only things you have to do is inherit your class for our CsDO.Lib.DataObject class and make properties for all  the columns you want to persist. The class has to be named after the table you want to map and the properties after its columns. If for any reason you don't want to have it with these names you can use Attributes to override the default behaviour of the library.

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Sucessful SATA (Intel PXII/CHR) configuration on Ubuntu

Today I was called to fix a problem that Ubuntu Dapper (6.06) was complaining about on a client. They had three machines using SATA hard-drives and ATA CD-ROMs. Although the machines were recently installed and had all updates available applied, they were logging these issue a lot of times per second. It was really annoying for it made the console impossible to use and in a few minutes filled up /var/log/messages and /var/log/syslog with hundred megabytes of messages. One of the machines had more and one GiB of logs. This is the infamous message:

ata1: translated ATA stat/err 0x51/20 to SCSI SK/ASC/ASCQ 0x3/11/04

After some googling around I found that the machines were using Intel ICH 5  SATA chipset  and that a lot of people had this problem with the kernel support for these chipset enabled. This issue seems to be solved on kernel 2.16 series, but Dapper uses 2.15 series, unfortunately.

It took two kernel compilations, a bunch of apt-gets and a couple reboots to find out that no googled solution worked out on the machines. Well out of nowhere I thought of getting on the BIOS settings and poking around there (ok, I was bored about getting no solution for them). It seems that the problem was that there was a setting on "Auto" that tried to map SATA devices to IDE devices, when I tried to map SATA Port0 to Port0 instead of mapping it to Primary IDE device the messages stopped.

Really amazing ... a solution much simpler than everything that I had tried out before today.

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Pacote Ubuntu para o Freedom ERP

Como eu comentei anteriormente, eu estava criando alguns pacotes no Ubuntu para facilitar a vida de meus clientes. Até agora eu tive sucesso com alguns pacotes privados para dois clientes e um pacote público. O pacote público é de um ERP feito em Java para micro e pequenas empresas brasileiras, chamado Freedom ERP.

Você poderá encontrar mais informações sobre o Freedom ERP em:

Agora o Freedom pode ser instalado em /opt/freedom usando meus repositórios, para isto siga estas instruções:

Adicione isto ao arquivo /etc/apt/sources.list

  deb http://http://apt-get.p4tecnologia.com dapper public
deb-src http://apt-get.p4tecnologia.com dapper public

Então execute estes dois comandos no terminal:

  gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 5B35250137384794
gpg --armor --export 5B35250137384794 | sudo apt-key add -

Atualize as suas fontes:

  apt-get update

e pegue o pacote freedom-client :

  apt-get install  freedom-client
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

My first ubuntu packages

Tired of installing additional software on every machine people ask me to put Ubuntu I have created some packages that do all the tricks. There are some settings to do (such as enabling new apt-get sources and updating) so that install these packages will be the only thing I'll have to do on new machines.

They are:

  • apt-sources package
      To enable skype repository and dapper universe and multiverse repositories
  • desktop package
      Installs my dear tomboy, mono (I can't live without .NET anymore even on Linux), and much more desktop applications
  • multimedia package
      Installs codecs and multimedia applications that I use for default
  • network package
      FTP client, IRC client, skype, avahi (zeroconf or rendevouz protocol) and much more
  • laptop package
      Enable acpi, cpu frequency control applet, wi-fi applications, avahi, bcm43xx utilities to make Broadcom chipsets work - this package was built primarily for Acer Aspire 3003
  • development package
      .NET developing tools (monodevelop, monodoc, xsp), Eclipse (with Java, python, C and C++ development add-ons)

Soon I'll publish them here ... as soon as I can make the apt-sources package actually do something ( hehehe, for now it's only a dummy package)

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Hail subversion - A package with some contributions of Mine

I have found today an Ubuntu package with some scripts of mine (nautilus scritps for subversion) it is called nautilus-script-collection-svn. I love subversion and missed a lot TortoiseSVN features on gnome nautilus, thus I helped Marius Scurtescu on his nautilus scripts.

Thanks to Lukas Fittl for packaging our scripts and putting it on Ubuntu Universe repository

Of course, it is far from beign some kind of TortoiseSVN for Linux, but it does help a lot and is the most we could archeive with nautilus scripts. To do more, we would need to develop nautilus plugins, but I have never done it before ... maybe someday I'll give it a try.

If you use Ubuntu Dapper (6.06) or Ubuntu Edgy and would like to try it try this:

  1. Enable universe repository
  2. Type :
    sudo apt-get install nautilus-script-collection-svn
  3. Type :
    nautilus-script-manager enable Subversion
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Ubuntu packges release / Freedom - ERP

As I have stated on my last post I was creating some ubuntu packages to make the lives of my clients easier. So far I have succesfully done some private packages to them and one public package. The public one is packaging an enterprise resource planning (ERP) solution to brazilian small companies.

This software is called Freedom ERP and can be found at:

Now it can be installed on /opt/freedom using my repositories, to do it follow these instructions:

Add this to your /etc/apt/sources.list

  deb http://http://apt-get.p4tecnologia.com dapper public
deb-src http://apt-get.p4tecnologia.com dapper public

Then run this two commands on terminal:

  gpg --keyserver wwwkeys.eu.pgp.net --recv-keys 5B35250137384794
gpg --armor --export 5B35250137384794 | sudo apt-key add -

Update your sources:

  apt-get update

Get the freedom-client packages :

  apt-get install  freedom-client
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
Twitter