Arquivo da categoria: Gentoo-dev

A Wiki for Gentoo

A long long time ago I voiced about the need for a wiki in the Gentoo project. In those days Gentoo-Wiki was starting up.
For some reason or other people inside the project felt that having the users producing documentation was a bad idea. For some other reasons that I never understood the gentoo-wiki.com becamed a banned issue, and Gentoo developers were advised not to mention, and not to link to him. I wrote an extensive article about Gentoo on the Efika board that got some raised eyebrows because it was written on the Wiki.

Now Gentoo Wiki has been down for a few days. And according to the backup page it does not seem a fix is going to happen soon.

If we had taken this project under an umbrella a long time ago our users would not be missing on this very important resource.

Struts 2 under IntelliJ IDEA 8.0M1

If you like IDEA and use Struts 2 you can be happy to know that 8.0 release comes with a new Struts 2 plugin. There is a small tutorial on how to use it but it has some errors.
First the Action class should extend ActionSupport hand have proper setter methods:

package hello;
import com.opensymphony.xwork2.ActionSupport;
public class HelloWorld extends ActionSupport {
    private String username;
    private String message;
    public String getMessage(){
        return message;
    }
    public String execute(){
        message = "Hello, " + username + ".";
        return SUCCESS;
    }
    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
}

Second the JSP file can have a proper action:

< %@ page contentType="text/html;charset=UTF-8" language="java" %>
< %@ taglib prefix="s" uri="/struts-tags" %>
<html>
  <head><title>Simple jsp page</title></head>
  <body>
		Struts 2 Message: <s :property value="message" default="Guest." />
		<s :form method="GET" action="HelloWorld">
			Enter your name:<s :textfield name="username" />
			<s :submit value="Submit" />
		</s>
  </body>
</html>

And finally struts.xml can have the Action declared without the ugly unRESTFUL .action:

< ?xml version="1.0" encoding="UTF-8"?>
 
< !DOCTYPE struts PUBLIC
  "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
  "http://struts.apache.org/dtds/struts-2.0.dtd">
 
<struts>
    <package name="/" extends="struts-default">
		<action name="HelloWorld" class="hello.HelloWorld">
			<result name="success">/index.jsp</result>
		</action>
	</package>
</struts>

I really like IDEA when it comes to Java codding, and I can live with the quirks of the Struts 2 support. But one thing that makes me steam is the fact that I have to un-deploy and deploy the application for each change I make. That steals me hours every week.

Skype + Video

For some days now Skype has released a new public release that has video support. Since day 0 the Gentoo users that were running the testing version could have an upgrade. A few more weeks and if no strange bugs pop up it will be marked as stable software.

So if you are still running the old skype and want to use the new one:

emerge --sync
echo "net-im/skype" >> /etc/portage/package.keywords
emerge skype

Skype + Video now in Linux

Skype just released the first beta version of their Linux client with video support. I already added it to the Gentoo Portage, but as it is a Beta release you’ll have to package.unmask it:


emerge --sync
echo net-im/skype >> /etc/portage/package.unmask
echo "net-im/skype **" >>/etc/portage/package.keywords
emerge -av skype

As Skype beta tester I’ve been using these releases for some time and must say that I’m quite happy with the result, just a few quirks with some webcams, but nothing to serious, and maybe now there will be a good motive to pressure for nice drivers.

If you have any problems fell free to bug me and I’ll try to give you a hand. My Skype name is gustavofelisberto

Wildfire 3.2.0

Today wildfire 3.2.0 got released and you can read the official announce here. But is my opinion that this is a premature release. If not lets see, in december 17 to manage SSL certificates under wildfire is considered a problem. They even comment on the fact that Jabber Software Foundation (JSF) has become a Intermediate Certification Authority and that this will increase the number of servers and users using SSL in the Jabber network. And what happens in the 3.2.0 RC2 release: SSL is partially broken when using JSF certificates. The fix seems to be….. to remove the certificates and use self signed ones.

Proper use of SSL/TLS with good certificates needs to be standard in the XMPP Federation network. This is why this step in releasing the final version of wildfire was a premature one.

Pre built packages for the Efika

There is now a PORTAGE_BINHOST for the EFIKA, just add:
PORTAGE_BINHOST=http://tinderbox.dev.gentoo.org/default-linux/ppc-efika/
to your /etc/make.conf and start using it. This repository will contain the system and some extra packages built with:
CFLAGS="-O2 -mcpu=603e -pipe"
CHOST="powerpc-unknown-linux-gnu"
CXXFLAGS="${CFLAGS}"

Remember that in order to use these packages you have to do emerge -g or emerge -G.

Dead Efika

It seems that I have received a dead Efika. But the “gang” at genesis are really nice and have offered to send me another one as well as returning the money I’ve paid to the Portuguese customs.

It is always refreshing to work with company’s with excellent support.

In any case when the next one arrives I already have the serial < -> usb adapter, the null modem cable, the video card and the usb keyboard just waiting for the little baby :).

Gentoo GNU/Linux on the Efika

Ok. So i started hacking the efika today, after paying the Portuguese customs 82€ for a gift!

But the board now sits on top the nice card board where it came with a nice PSU already attached, some switches for the power/reset and a power led that I ripped from an old system ( I’m using the HDD led for the power because the power led on the efika is two pins and the one on the box where the leds where taken was 3 pins with the middle one empty ).

When turned on the PSU fan starts spinning and the led turns on. If I turn I press the power button for a few seconds it will turn off.

So what do I need for further testing (this is a mental note to self):

  1. USB Keyboard
  2. Serial Console Cable
  3. USB to Serial Converter for the PC
  4. PCI or AGP (Low Profile) Video Card
  5. 2.5″ Hard Drive (anything with more than a few Gbytes should do the trick.)

I’ll keep reporting on the progress. As soon as I have a running Gentoo you’ll be the first to know 🙂

The Efika is almost here

I received a call from a FedEx representative in Portugal about a package from Genesis 🙂 . It seems the Portuguese customs will release it tomorrow. So the Efika will be here really really soon.

I already searched some info and it seems simple to boot Linux there. All I’m missing right now is a 2.5″ hard drive, a USB keyboard and a serial console cable….

From what I have read about a Debian installation on the Efika the simplest Gentoo install will be to put a drive in a USB craddle and unpack a Gentoo PPC stage3 there. After that copy the pre-compiled kernel and modules to the disk and put it in the efika. After that it should be possible to power it and use the OpenFirmware to boot the kernel.

If all goes ok I’ll setup a page with more info.

Wildfire

Today I was a bit tired of the Ruby codding I was doing (a Mobile IP network simulator for a class project) and considering that I had to start the GUI part and needed to read the QTRuby tutorial AND I have never used/played with QT I resolved to update Wildfire to the 3.1.1 version and close a pending bug.

I also found out that Wildfire comes with built in transports for some old services. I already had PyMSN-t installed so in my server I just activated the others.

If you are interested in jabber in Gentoo you can always use my server, or contact me at xmpp:humpback@jabber.felisberto.net

Digium is making me mad

A couple of days ago I received two digium TDM-400P cards each with two fxo ports and 2 fxs. I tried one and got some really strange messages in dmesg. Detailled info can be found in my post to the asterisk-users list: http://lists.digium.com/pipermail/asterisk-users/2006-November/172459.html as well as the pastbin link in the message.

I tried the cards in another machine and the problems subsisted. So it is either driver related or it is two cards with the same hardware problem. If the latter is correct that means that Digium really needs to improve it’s QA. I hope it is just me doing something wrong.

Orphaned packages

Due to my work for the next two semesters being increased I’m going to have to drop my maintainer status for some of the packages I handle. I’ll still keep a small number of packages that I really don’t want to let go.
Also, due to the fact that I’ll no longer be running ~amd64 but am going the stable way it is possible I’ll give a greater help there.

The list of orphans is:

app-crypt/qca
app-crypt/qca-tls
net-ftp/pure-ftpd
net-ftp/pureadmin
net-ftp/proftpd
net-im/jit
net-im/jud
net-im/mercury-bin
net-im/pymsn-t
net-im/psi
net-im/aim-transport
net-im/mu-conference
net-im/yahoo-transport
net-im/msn-transport
net-im/gabber
net-im/jabberd
net-im/gg-transport
net-mail/sendEmail
net-misc/blogtk
sci-misc/netlogo-bin
x11-themes/gkrellm-themes
x11-themes/zinf-themes
x11-themes/gdm-themes

I’ll update the metadata.xml to maintainer-needed during the next days.

Bugzilla and UTF-8

I have a bugzilla instalation that uses a Postgres backend. The database is using unicode, so all hell went loose when users entered characters like “á à ã” because bugzilla was assuming ISO and not UTF.

I did some changes to the Gentoo ebuild to install the 2.22rc1 bugzilla. This release seems very stable and the setup screens much more organized. That is the way to go Mozilla gang.

If any one wants the ebuild drop a note here.

Gentoo developers World Map

In the last two days I’ve been playing with xplanet to make some maps with all the Gentoo developers.
The result can be found on my dev page. The images will be updated as the info used to create them is updated. For background i used an image from the Nasa earth observatory.
If you want to play here is what i used
xplanet -config ./default -geometry 1280x640 -window -pango -fontsize 9 -output dev-map.png -num_times 1 -projection rectangular
xplanet -config ./default -geometry 1280x640 -window -pango -fontsize 9 -output dev-euro-map.png -num_times 1 -latitude 55 -longitude 15 -fov 0,2
xplanet -config ./default -geometry 1280x640 -window -pango -fontsize 9 -output dev-na-map.png -num_times 1 -latitude 40 -longitude -95 -fov 0,2

The default file is a modified xplanet config file, you can download mine.