<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>Advogato blog for gdvieira</title>
    <link>http://www.advogato.org/person/gdvieira/</link>
    <description>Advogato blog for gdvieira</description>
    <language>en-us</language>
    <generator>mod_virgule</generator>
    <pubDate>Tue, 21 May 2013 09:25:00 GMT</pubDate>
    <item>
      <pubDate>Tue, 26 Mar 2013 17:05:44 GMT</pubDate>
      <title>HP Laptops with Blank Screen on Linux Boot</title>
      <link>http://www.advogato.org/person/gdvieira/diary.html?start=39</link>
      <guid>http://www.sagui.org/~gustavo/blog/software/HP-laptops-blank-screen-on-boot.html</guid>
      <description>&lt;p&gt;It appears many HP laptops (including my dm4-2035br) boot Linux
kernels with KMS enabled with the screen backlight set to zero. The
screen appears blank, but you can see the image if you shine a
flashlight on the screen.&lt;/p&gt;

&lt;p&gt;If you have the this problem, you can workaround it by adding the
following kernel command line:
&lt;/p&gt;&lt;pre&gt;video.use_bios_initial_backlight=0&lt;/pre&gt;
How to do it varies from distribution to distribution, but on Fedora
you can hit TAB on the installer screen and type it after the other
options.

&lt;p&gt;If this solves the problem for you, it might be a good idea to file
a bug in &lt;a href="https://bugzilla.kernel.org" &gt;Kernel Bug Tracker&lt;/a&gt;
(under ACPI product).&lt;/p&gt;</description>
    </item>
    <item>
      <pubDate>Sat, 23 Jul 2011 02:03:03 GMT</pubDate>
      <title>Read-only Bind Mount</title>
      <link>http://www.advogato.org/person/gdvieira/diary.html?start=38</link>
      <guid>http://www.sagui.org/~gustavo/blog/fedora/read-only-bind-mount.html</guid>
      <description>&lt;p&gt;If you need to bind mount some directory in read-only mode (to
securely access a backup dir, for example) it is necessary to first
bind mount and then &lt;a href="http://lwn.net/Articles/281157/" &gt;remount
in read-only mode&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt; At least on Fedora, you can perform these two steps 
automatically using &lt;tt&gt;/etc/fstab&lt;/tt&gt;. Just create a pair of entries
like these:&lt;/p&gt;
&lt;pre&gt;
/source/dir            /destination/dir    none  bind            0 0
/source/dir            /destination/dir    none  remount,bind,ro 0 0
&lt;/pre&gt;

&lt;p&gt;I've tested this in a Fedora 14 box. YMMV.&lt;/p&gt;</description>
    </item>
    <item>
      <pubDate>Tue, 31 May 2011 20:02:55 GMT</pubDate>
      <title>World IPv6 Day</title>
      <link>http://www.advogato.org/person/gdvieira/diary.html?start=37</link>
      <guid>http://www.sagui.org/~gustavo/blog/software/world-ipv6-day.html</guid>
      <description>&lt;p&gt;&lt;a href="http://en.wikipedia.org/wiki/World_IPv6_day" &gt;World IPv6
Day&lt;/a&gt; is upon us! Here is a &lt;a href="http://www.networkworld.com/community/node/74382" &gt;very good
article&lt;/a&gt; about preparing for it and for the unavoidable IPv6
future.&lt;/p&gt;</description>
    </item>
    <item>
      <pubDate>Tue, 8 Jun 2010 02:05:02 GMT</pubDate>
      <title>Complete Guide to Tap-to-Click in GNOME</title>
      <link>http://www.advogato.org/person/gdvieira/diary.html?start=36</link>
      <guid>http://www.sagui.org/~gustavo/blog/software/complete-guide-to-tap-to-click-in-GNOME.html</guid>
      <description>
&lt;p&gt;Want to know everything that matters about tap-to-click and other
touchpad configurations in GNOME. Look no further, &lt;a
href="http://who-t.blogspot.com/2010/05/how-to-enable-tapping-tap-to-click-on.html"&gt;go
straight to the source&lt;/a&gt;.&lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Sat, 31 Oct 2009 19:13:54 GMT</pubDate>
      <title>Boot an Expert 1.1 in OpenMSX</title>
      <link>http://www.advogato.org/person/gdvieira/diary.html?start=35</link>
      <guid>http://www.sagui.org/~gustavo/blog/virtualization/boot-an-expert-1.1-in-openmsx.html</guid>
      <description>
&lt;p&gt;Someone asked me recently how to run the Expert 1.1 with DDX-3.0
floppy in &lt;a href="http://openmsx.sourceforge.net/" &gt;OpenMSX&lt;/a&gt;, as I
described in &lt;a
href="http://www.sagui.org/~gustavo/blog/virtualization/openmsx-rocks.html"&gt;this
post&lt;/a&gt;.&lt;/p&gt;
 
&lt;p&gt;It is very simple actually, as the configuration of a proper
machine is already included in the OpenMSX distribution. If you are
curious, look for these files:
&lt;tt&gt;machines/Gradiente_Expert_1.1/hardwareconfig.xml&lt;/tt&gt; and
&lt;tt&gt;extensions/DDX_3.0/hardwareconfig.xml&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt; All that remains to do is to find the correct ROMs and use the
correct command line options. Finding the ROMs is quite easy: ask
Google. Put the ROMs in &lt;tt&gt;~/.openMSX/share/systemroms/&lt;/tt&gt;. The
final command line should be something like:&lt;/p&gt;

&lt;pre&gt;
$ openmsx -machine Gradiente_Expert_1.1 -ext DDX_3.0
&lt;/pre&gt;
</description>
    </item>
    <item>
      <pubDate>Wed, 4 Mar 2009 14:06:34 GMT</pubDate>
      <title>GTalk TLS Handshake Bug</title>
      <link>http://www.advogato.org/person/gdvieira/diary.html?start=34</link>
      <guid>http://www.sagui.org/~gustavo/blog/software/GTalk-TLS-handshake-bug.html</guid>
      <description>
&lt;p&gt;Since late February I stopped seeing my GTalk friends in my IM
client. I use a personal Jabber server (&lt;a
href="http://jabberd2.xiaoka.com/"&gt;jabberd2&lt;/a&gt;) and all its
connections to the GTalk servers were being dropped. After some
investigation in the web, I found that Google:

&lt;ul&gt;
  &lt;li&gt;Uses a buggy TLS implementation.&lt;/li&gt;
  &lt;li&gt;Has activated encryption for s2s connections starting in
  February.&lt;/li&gt;
&lt;/ul&gt;

The end result was that my server could not establish an encrypted
connection with GTalk servers. Here is a &lt;a
href="http://twistedmatrix.com/trac/ticket/3463"&gt;very informative bug
report&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;As GTalk connectivity is very important for any open Jabber server,
many servers have published workarounds for the problem. Here is &lt;a
href="http://jabberd2.xiaoka.com/ticket/256"&gt;a patch for
jabberd2&lt;/a&gt;. A &lt;a
href="http://ftp.xiaoka.com/jabberd2/releases/jabberd-2.2.7.1.tar.bz2"&gt;new
release (2.2.7.1)&lt;/a&gt; of jabberd2 was also made to address the
issue.&lt;/p&gt;

&lt;p&gt;I have jabberd2 2.2.4 in my server. For some reason, I could not
make 2.2.7.1 work because of some problems with the Berkeley DB back
end. I ended up applying &lt;a
href="http://jabberd2.xiaoka.com/ticket/256"&gt;this patch&lt;/a&gt; to 2.2.4
and it fixed the problem. I also created a &lt;a
href="https://bugzilla.redhat.com/show_bug.cgi?id=488456"&gt;bug
report&lt;/a&gt; in the Fedora Bugzilla, so maybe a fixed package will be
pushed as an update.&lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 25 Aug 2008 23:07:06 GMT</pubDate>
      <title>Fedora 9</title>
      <link>http://www.advogato.org/person/gdvieira/diary.html?start=33</link>
      <guid>http://www.sagui.org/~gustavo/blog/fedora/fedora-9.html</guid>
      <description>
&lt;p&gt;The Fedora train never stops! I've just upgraded my machines
(including this server) to Fedora 9 and I'm very pleased (as usual)
with this new release. The polish of the desktop is
fantastic. PackageKit is really simple to use (I love its "queue for
backend operations" interface philosophy). NetworkManager has
matured. The PulseAudio integration, that bothered me a lot in Fedora
8, seems to be complete (the sound daemon is always started and Ekiga
won't crash anymore).&lt;/p&gt;

&lt;p&gt;As usual, there are some sore spots. And I seemed to attract a lot
of bugs this time. For example, among &lt;a
href="http://fedoraproject.org/wiki/Bugs/F9Common"&gt;the most common
bugs in F9&lt;/a&gt;, I got two: &lt;a
href="http://bugzilla.redhat.com/439386"&gt;"Synaptics touchpad touching
to tap doesn't work"&lt;/a&gt; and &lt;a
href="https://bugzilla.redhat.com/show_bug.cgi?id=442457"&gt;"Samsung
hard disks crash the installer"&lt;/a&gt;. The last one was a real problem
and I ended up upgrading using YUM, which I don't recommend if you
have a lot of installed packages and have to suffer ridiculous
Brazilian "broadband" speeds.&lt;/p&gt;

&lt;p&gt;But it gets better. I was hit by more obscure stuff: While
installing Fedora on the university cluster I discovered that &lt;a
href="https://bugzilla.redhat.com/show_bug.cgi?id=392021"&gt;Anaconda
doesn't work right now with static IPs&lt;/a&gt;. I ended up setting a DHCP
server just for installing Fedora.  Also, due to a rewrite &lt;a
href="https://bugzilla.redhat.com/show_bug.cgi?id=446224"&gt;GDM XDMCP
support is broken&lt;/a&gt;. I must be one of the two guys who still use
XDMCP to power an old terminal and share the (relatively) powerful
desktop. I worked around it by enabling KDM instead of GDM.&lt;/p&gt;

&lt;p&gt;The annoying thing about these bugs is that most of them were
found on the beta testing period of F9, and none were corrected for
the final release. At least, I don't have to feel guilt for never
trying one of the preview releases. ;)&lt;/p&gt;

&lt;p&gt;Finally, this isn't a bug proper, but I hope I can help someone
with the same problem. If your numeric keypad stops working
mysteriously, go to the "Assistive technology" preferences and disable
the "Mouse keys". It was enabled magically during the upgrade and took
me bit of time to figure it out.&lt;/p&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 24 Jun 2008 21:09:23 GMT</pubDate>
      <title>IPv6 on Fedora (Redux)</title>
      <link>http://www.advogato.org/person/gdvieira/diary.html?start=32</link>
      <guid>http://www.sagui.org/~gustavo/blog/fedora/ipv6-on-fedora-redux.html</guid>
      <description>
&lt;p&gt;A little improvement on my &lt;a
href="http://www.sagui.org/~gustavo/blog/fedora/ipv6-on-fedora.html"&gt;IPv6
setup&lt;/a&gt;. I discovered a handy configuration parameter for RADV that
makes it unnecessary to update the configuration file in the rare
occasion my IP address changes.  The improved &lt;tt&gt;/etc/radvd.conf&lt;/tt&gt;
looks like this:&lt;/p&gt;
&lt;pre&gt;
interface eth0
{
        AdvSendAdvert on;
        MinRtrAdvInterval 30;
        MaxRtrAdvInterval 100;
        prefix 0:0:0:1::/64
        {
                AdvOnLink on;
                AdvAutonomous on;
                AdvRouterAddr off;
                Base6to4Interface eth1;
        };

};
&lt;/pre&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 25 Feb 2008 23:10:59 GMT</pubDate>
      <title>IPv6 on Fedora</title>
      <link>http://www.advogato.org/person/gdvieira/diary.html?start=31</link>
      <guid>http://www.sagui.org/~gustavo/blog/fedora/ipv6-on-fedora.html</guid>
      <description>
&lt;p&gt;After hearing about the &lt;a
href="http://arstechnica.com/news.ars/post/20080102-icann-to-add-ipv6-addresses-for-root-dns-servers.html"&gt;activation
of IPv6 (AAAA) records for four of the root DNS servers&lt;/a&gt; I got very
curious about IPv6 and its current state of adoption. Well, it turns
out IPv6 &lt;a
href="http://www.nanog.org/mtg-0710/presentations/Bush-v6-op-reality.pdf"&gt;may
not be the solutions to all Internet woes but we will have to learn to
live with it anyway&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;And so I did. Like 99.999% percent of Internet users I don't have a
native IPv6 connection, but enabling a IPv6 tunnel on Fedora is very,
very easy. I decided for the simplest type of tunnel, called &lt;a
href="http://en.wikipedia.org/wiki/6to4"&gt;6to4&lt;/a&gt;. This type of tunnel
is very convenient as I don't need to register it anywhere nor do I
need to ask permission to anyone. It is based on the kindness of
people that run 6to4 routers in the IPv4 Internet at the 192.88.99.1
anycast address. Usually people disregard this type of tunnel as being
slow, but routing from Brazil to the world is already so slow I found
the performance acceptable. Besides, there isn't much yet to do in the
current IPv6 Internet.&lt;/p&gt;

&lt;p&gt;Enabling a 6to4 tunnel on Fedora is ridiculously simple. First put
the following lines in &lt;tt&gt;/etc/sysconfig/network&lt;/tt&gt;:&lt;/p&gt;
&lt;pre&gt;
NETWORKING_IPV6=yes
IPV6_DEFAULTDEV=tun6to4
IPV6FORWARDING=yes
&lt;/pre&gt;

&lt;p&gt;The last line is only required if you are going to share the IPv6
connection with a local network. The rest of this recipe assumes you
are. Now find the configuration file for the interface connected to
the Internet. If it is &lt;tt&gt;eth1&lt;/tt&gt; the file should be
&lt;tt&gt;/etc/sysconfig/networking/devices/ifcfg-eth1&lt;/tt&gt;. Put the
following lines there:&lt;p&gt;
&lt;pre&gt;
  IPV6INIT=yes
  IPV6TO4INIT=yes
  IPV6_CONTROL_RADVD=yes
  IPV6TO4_ROUTING="eth0-:1::1/64 wlan0-:2::1/64"
&lt;/pre&gt;

&lt;p&gt;Once again, the last two lines are only required if you have a local
network you want to provide with IPv6 connectivity. If not, remove the
extra lines and you are set. Restart the interface and you are
connected to the IPv6 Internet! When using 6to4, probably due to the
performance concerns, Fedora prefers IPv4 addresses. So, go to a IPv6
only site (like &lt;a
href="http://www.ipv6.bieringer.de/"&gt;http://www.ipv6.bieringer.de/&lt;/a&gt;)
to test it. And remember to define a IPv6 firewall. Your current
iptables firewall only covers IPv4, use ip6tables to create a IPv6
one.&lt;/p&gt;

&lt;p&gt;A nice thing about this setup is that a 6to4 tunnel gives me a
whole /48 netblock based on my IPv4 address. So, no NAT in my local
IPv6 network! The last two lines
lines above allow the networking scripts to control the RADV daemon
and to create IPv6 addresses to other interfaces (besides the one you
are actually configuring). Just treat the /48 of your 6to4 address as
a prefix and create a /64 netblock for each interface. Create a
&lt;tt&gt;/etc/radvd.conf&lt;/tt&gt; file with an entry like this for each
interface:&lt;/p&gt;
&lt;pre&gt;
interface eth0
{
        AdvSendAdvert on;
        MinRtrAdvInterval 30;
        MaxRtrAdvInterval 100;
        prefix 2002:XXXX:XXXX:1::/64
        {
                AdvOnLink on;
                AdvAutonomous on;
                AdvRouterAddr off;
        };

};
&lt;/pre&gt;

&lt;p&gt;Where &lt;tt&gt;2002:XXXX:XXXX&lt;/tt&gt; is your automatically configured 6to4
adress. Start RADV daemon and the hosts in you internal network should
receive an automatically generated address.&lt;/p&gt;

&lt;p&gt;For me, the next step would be to do the same to this site and add
a little bit more content to the IPv6 Internet. Unfortunately, the Xen
kernel used by my VPS provider doesn't support stateful iptables
support for IPv6. I though IPv6 support on Linux was a done deal, but
this critical functionality was only added about and year ago in
kernel 2.6.20. It seems IPv6 may be a bit farther in the future than I
expected. But it was surely fun to set it up anyway.&lt;/p&gt;

</description>
    </item>
    <item>
      <pubDate>Tue, 22 Jan 2008 01:05:03 GMT</pubDate>
      <title>Fedora 8</title>
      <link>http://www.advogato.org/person/gdvieira/diary.html?start=30</link>
      <guid>http://www.sagui.org/~gustavo/blog/fedora/fedora-8.html</guid>
      <description>
&lt;p&gt;I've been running Fedora 8 for the last couple of weeks. If nothing
else, using Fedora is a constant source of fun. Always new toys to
play with, old bugs fixed, new bugs created. And obviously, new tricks
to be learned.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.pulseaudio.org/" &gt;PulseAudio&lt;/a&gt; is one of the
great features introduced in Fedora 8. I really enjoyed the good work
that went into integrating PulseAudio and Fedora. It really is
seamless, except for the &lt;a
href="https://bugzilla.redhat.com/show_bug.cgi?id=303951"&gt;odd bug in
alsa&lt;/a&gt; and &lt;a
href="http://www.pulseaudio.org/wiki/PerfectSetup#Skype"&gt;proprietary
applications&lt;/a&gt;. Here are two things I discovered regarding pulse
audio. &lt;/p&gt;

&lt;p&gt;First: PulseAudio shows a simplified but functional interface to
control sound, and to support Alsa applications transparently, it
appears as the default virtual device hiding you hardware
device. Problem is, if the hardware device is muted or has the volume
set too low, there is nothing you can do through the PulseAudio
interface to make sound work. Obvious as it seems, you have to first
enable and adjust the volume of the relevant inputs in the hardware
device, and then be able to enjoy PulseAudio. You can use the
&lt;tt&gt;alsamixer -c [0...7]&lt;/tt&gt; command, changing the &lt;tt&gt;-c&lt;/tt&gt;
argument until you find your hardware device, set it up, and you are
ready to go. The good news is that, once it is done, applications
(such as Skype) won't be messing with your hardware device as
PulseAudio hides it.&lt;/p&gt;

&lt;p&gt;Second: to enable the PulseAudio daemon in you GNOME session, you
need to go to System|Preferences|Hardware|Sound and &lt;b&gt;enable
ESD&lt;/b&gt;. That's really stupid, they should have changed the label, but
this control really creates an instance of the PulseAudio daemon. If
it isn't running, sound won't work. I discovered this because ESD gave
me a lot of problems in the past and have been deactivated in my GNOME
preferences for a long time. It never occurred to me to enable it to
fix Alsa applications that suddenly stopped working. But, again, once
you discover that, everything just works.&lt;/p&gt;
</description>
    </item>
  </channel>
</rss>
