Fedora Planet

Syndicate content
Fedora People: http://planet.fedoraproject.org
Updated: 35 min 58 sec ago

Fedora Tunisia: Fedora 10 (Cambridge)

2 hours 25 min ago

Le projet Fedora est fier d'annoncer la disponibilité de la version
finale de Fedora 10. Vous pouvez l'obtenir dès maintenant sur
https://fedoraproject.org/get-fedora
A l'occasion de la disponibilité de cette nouvelle version, l'équipe de
Fedora-Tunisia organise le 13 décembre un événement à L'INSAT (Tunis) pour en découvrir toutes les nouveautés.
De plus, vous pourrez rejoindre à la communauté Fedora en amenant soit
votre ordinateur portable, afin d'y installer la nouvelle version, soit
une clé USB de grande capacité (au moins 1GB), afin de repartir avec
Fedora 10 dans votre poche, version utilisable partout, sur n'importe
quel ordinateur.
Au niveau des nouveautés de Fedora 10, rappelons:

  • Démarrage plus rapide et entièrement graphique grâce au
    remplacement de RHGB par Plymouth.
  • Nouveau NetworkManager avec partage de connexion WiFi.
  • Gestion des imprimantes facilitée.
  • Meilleure gestion des télécommandes et liaisons infrarouges.
  • Gestion facilitée et plus rapide des logiciels grâce à
    PackageKit et RPM 4.6.
  • Sectool, un framework d'audit et de sécurité.
  • Nouvelle version de PulseAudio plus réactive et consommant moins
    de ressources.
  • Intégration du thème graphique « Solar ».
    * Kernel 2.6.27.5 avec notamment un meilleur support WiFi et
    Webcam (plus de 250 nouveaux modèles sont supportés).
  • Gnome 2.24, KDE 4.1.2, NetBeans 6.1, Eclipse 3.4, OpenOffice.org
    3.0, GIMP 2.6 et de nombreuses autres nouveautés logicielles.
  • Ajout des environnements de bureau LXDE et SUGAR.

Une liste plus complète ainsi que le détail de chacune des nouveautés
citées est disponible sur
https://fedoraproject.org/wiki/Releases/10/FeatureList

Des captures d'écran et une vidéo de démarrage avec Plymouth sont
disponibles sur https://fedoraproject.org/wiki/Tours/Fedora10

Le text de l'annonce est basé sur la version de Fedora-fr qu'on remercie.

Categories: Distros

Yuan Yijun: Using Fedora 10

Thu, 12/04/2008 - 20:20
这周安装了 Fedora 10,又花了一天时间把系统恢复到用 Fedora 9 时的状态,包括安装软件包,恢复备份的个人设置,诸如此类。刚才跟李少杰说起来,才觉得应该写下来,不然这些感想丢掉了又很可惜。

最大的亮点,莫过于 codec 自动安装。FP,RPMFusion,gstreamer,RPM,PackageKit,PolicyKit 完美的合作!装好基本系统,安装 RPMFusion 仓库,把 ~/Music 指向 /mnt/data/Music Files,打开 Rhythmbox 播放器:接下来,播放器自动扫描 ~/Music 目录内容,一旦遇到 gstreamer 没法识别的文件格式,就交给 PackageKit 处理。PackageKit 就在仓库的 codec 里找,哪个 RPM 支持了这个格式?一旦找到就自动安装,期间会弹出对话框,提示输入 root 用户密码,来导入 RPM GPG key 或者安装某个包之类。输入 root 用户密码的动作,默认是每种操作只提示一次,之后就会记住。太棒了。

使用 Fedora 10,感觉是非常流畅。安装软件,网络设置,连接 windows 共享,通通都非常流畅。这次又改进了 codec 安装,那么播放任何格式的文件也都非常流畅了。使用一个系统,最重要的正是流畅,用户不会一头栽到奇怪的问题里,总是搞不定,就耽误了办正事和消遣。

Fedora 11 中,安装字体也会使用 PackageKit 来自动发现和安装缺失的字体(仍然是为了流畅!)。这一点对于使用稀奇古怪文字的老外可能有用。中文在 Fedora 10 中已经非常好了,默认安装了 uming 字体,我加装了 文泉驿 的 点阵,正黑和 unibit 三种字体。默认是正黑,终端默认是点阵,效果超级棒。输入法,我使用 ibus,安装了 ibus-pinyin 和 ibus-gtk,也安装了 im-chooser 和 imsettings:这样第一次进入系统,还是英文时,就可以打开输入法,也是非常流畅的。声音系统,默认是 pulseaudio,gstreamer 不需要设置,gnome 登录和使用中的音效需要安装 pulseaudio-esound-compat,而 realplay 需要使用 padsp 包装。flash 不需要设置。这些都与 Fedora 9 相同。专有软件跟不上自由和开源软件的步伐,所以指望 realplay “流畅地”使用 pulseaudio 还很难:打倒专有软件!凡是指望 nVidia 或者 ATI “官方显卡驱动”的用户都醒醒,跟我一起喊:打倒专有软件!凡是专有软件的用户,例如 windows 用户,无论正版还是绿色破解版,都醒醒……

感谢自由和开源软件的开发者。
Categories: Distros

Ignacio Vazquez-Abrams: One direction, only way to go...

Thu, 12/04/2008 - 20:18

Whew! I finally got Python 2.6 into Rawhide. I'd like to thank the following people for their invaluable help:

  • Jesse Keating
  • Toshio Kuratomi
  • Alex Lancaster
  • Panu Matilainen
  • Rex Dieter

And of course, every Fedora Contributor that maintains or uses a package in Fedora that uses Python in one fashion or another, since your kind assistance will be needed in order to complete the integration of this new version.

Categories: Distros

Fabian Affolter: Sugar-Abbild

Thu, 12/04/2008 - 18:37
Ein paar Impressionen der XO-LiveCD








Categories: Distros

Matt Domsch: Fedora Election Town Halls - Come one come all!

Thu, 12/04/2008 - 18:25

Fedora is gearing up for its next round of elections.  Three groups are electing members over the next several weeks:

  • Fedora Project Board is electing two members
  • Fedora Engineering Steering Committee (FESCo) is electing four members
  • Fedora Ambassadors Steering Committee (FAMSCo) is electing all eight members

As requested by several Fedora members, the candidates in these elections are participating in a series of Town Hall discussions on IRC.  This is your opportunity to ask them as a group anything you would like.  Want to hear what they think is Fedora’s biggest challenge, and how they will solve it?  Join us and ask!

Schedule is as follows:

  • Friday December 5, 2008 02:00 UTC (9pm US Eastern on Thursday) Fedora Board
  • Friday December 5, 2008 15:00 UTC (10am US Eastern) Fedora Board
  • Friday December 5, 2008 17:00 UTC (12pm US Eastern) FESCo
  • Saturday December 6, 2008 17:00 UTC (12pm US Eastern) FAMSCo

To attend, join the #fedora-townhall and #fedora-townhall-public rooms on irc.freenode.net.   A moderator will be on hand in both rooms to help the conversation flow.  Candidates may speak in #fedora-townhall, while everyone may ask questions in #fedora-townhall-public.  The moderator will copy questions from the -public room into the -townhall room.

Please use these opportunities to educate yourselves about the candidates for office, so that you may make an informed vote.

Voting begins on Sunday, December 7 and runs through Saturday, December 20.

Further details, including the list of candidates and their backgrounds, are available at http://fedoraproject.org/wiki/Elections.

Categories: Distros

Sebastien Bilbeau: Ubuntu : installer et utiliser KDE 4.2

Thu, 12/04/2008 - 18:03



Cet article explique comment installer et utiliser l’environnement KDE 4.2 sur une Ubuntu Intrepid Ibex (8.10). Attention, même si elle est assez stable, cette version est encore considérée comme une beta.

Pour l'installer, commencez par ajouter le dépôt suivant dans le fichier /etc/apt/sources.list :

deb http://ppa.launchpad.net/project-neon/ubuntu intrepid main

Puis lancez ces commandes pour démarrer l'installation :

sudo aptitude update
sudo aptitude install kde-nightly

Redémarrez ensuite le serveur X (Ctrl + Alt + Backspace) et ouvrez une nouvelle session en choisissant KDE Nightly Neon comme interface (menu option).



Personnellement, je n'ai jamais été trop fan de KDE et j'utilise régulièrement Gnome ou Fluxbox. Mais je dois avouer que les dernières versions ont beaucoup évolué. Et la 4.2 est assez impressionnante, surtout au niveau des effets graphiques. L'intégration native des widgets est également une très bonne idée et donne vraiment envie d'utiliser cet environnement graphique.

P.S : si vous souhaitez tout désinstaller ensuite, vous pouvez le faire avec cette commande :

sudo aptitude remove kde-nightly


Article original écrit par Sébastien Bilbeau et publié sur Tux-planet | ©Copyright - 2005 Toutes reproduction interdites.

Categories: Distros

David Cantrell: Fantastic Day For Fedora

Thu, 12/04/2008 - 17:34
Today is one of the most exciting development days for me ever on Fedora. Why?

libdhcp has been removed from the distribution.

It no longer exists. It's a dead.package. Likewise, libdhcp4client and libdhcp6client are gone since they only ever existed for libdhcp. It took too long to get rid of these, but whatever, they are gone now.

Any bugs opened against libdhcp will be marked as CLOSED WONTFIX (because we don't have CLOSED DONTCARE).

That is all.
Categories: Distros

Fedora Videos: Big Story: Fedora 10 Released, a Feature Roundup

Thu, 12/04/2008 - 16:54

Fedora 10 has been released! Chris goes over some of the top features of the new release, gives you a visual overview of some of the new improvments!.

This item belongs to: movies/bliptv.

This item has files of the following types: 512Kb MPEG4, Animated GIF, Flash, Metadata, Ogg Video, Quicktime, Thumbnail

Categories: Distros

Fedora Mexico: Arreglando Plymouth…

Thu, 12/04/2008 - 16:44


El video fue acelerado dramaticamente para reducir tiempo perdido.

Uno de los cambios significantes que Fedora 10 trajo es Plymouth. Plymouth es un nuevo sistema de arranque, que reemplaza el RHGB utilizado anteriormente. El problema de Plymouth, es que aun no existen controladores(drivers) de todo el hardware existente.

Si tu maquina arranca en modo texto, puedes cambiar el parametro del kernel para permitir que arranque en modo gráfico como se demuestra en el video de Youtube.

Realizar el cambio es bastante sencillo, y solo debes de seguir los pasos escritos en el Wiki. Como siempre, el wiki es para que todos lo editen, y eres bienvenido a mejorar el artículo.

Libera tus Bytes!
-Nushio

Articulos Similares:

Arreglando Plymouth… fue publicado en Fedora México

Categories: Distros

Roland Wolters: Playing the numbers game 2008: number of Linux installations world wide

Thu, 12/04/2008 - 16:35


The number of Linux users and installations is impossible to determine. But there are several different statistical information available which can be used to at least get a rough idea of the number of Linux installations world wide.

Merging different statistical data into one number is a tricky exercise and the result is questionable at best. Keep that in mind when you read the following information. The idea is not to get exact numbers but to get a rough idea of the dimension, nothing else.

Source #1: Fedora

One of the best statistical sources regarding Linux usage are the Fedora statistics. There the number of downloaded images as well as the number of unique IPs getting software updates is counted.
The data are difficult to interpret: no one knows if a downloaded image was only used to test the new system or to bun it onto a CD and distribute it to thousands of magazine readers or thousands of company computers. The second number is problematic because one new IP can mean a big NAT network or just a dial-in user who re-connected. So flaws everywhere, but it is a interesting coincidence that the IP numbers and the downloads are rather close.

There are also the smolt data. It tracks the users who opted in to a tracking system. Currently the smolt web server seems to be lacking behind. But there are current data available for older Fedora releases: these informations say that every month Fedora still gets more than 10k new Fedora 7 users - although there are already Fedora 8 and Fedora 9 available.

So the question is how to read all the data. One way was recently suggested by Paul Frields, Fedora’s project leader: he sums up the data to be around 11.5 million. Together with currently 2.5 million Red Hat subscriptions this would result in 13 million users. Focussing on Fedora alone and leaving the Fedora 6 users Fedora would still have a user base of 9.5 million users.

Source #2: relative statistics

There are hardly any other trustfully data from other Linux distributions available. Therefore, the Fedora number does say a lot about Fedora, but not that much about Linux in general. However, there are other statistics which measure the relative acceptance of Linux distributions.

One such source is the 2007 Linux Desktop Survey done by DesktopLinux.com. There the relative importance of Fedora/Red Hat is measured with 9%. Unfortunately there is no more recent survey available. I wonder why no one has picked up such a survey in 2008. Maybe I should start one on my own?

The result

Given that Fedora/Red Hat has roughly 10% and also roughly 10 million users together (which in fact seems like a at least slightly realistic data base, given the facts), the total number of Linux users world wide would sum up to 100 million Linux users. Nice.

That would leave Mac OS far behind, which is however not that surprising: Mac OS is hardly used in Offices or the government outside the US, and it is far easier to give Linux a try and keep it as a dual boot option besides a Windows installation. Also, the EU governments are pushing Linux quite a lot, and many companies and governments indeed switch to Linux right now or already switched over in the client space for some of the day-to-day workstations.

Still, last year I played the “numbers game” already (unfortunately with the same relativity source, btw.) and the result said something about 20 to 30 million users. I doubt that the number of Linux users spiked that much in the last year, but think that we can safely say the number of Linux users world wide is somewhere in the middle two digit million area, somewhere around 50 million installations worldwide.

Keep in mind that this counts mainly workstations - not traffic lights, shop information terminals or any other specialized hardware. Including all these devices would result in much, much larger numbers.

The problem: discrepancy

Most numbers available guessing the number of Linux users world wide say that there are not that many Linux installations out there, not at all. Most often it is said that, in percentage, Apple has a low one-digit number, while Linux has a dot before its first non-zero number.
The statistical backup for such numbers is most often created by browser strings aggregated from Web pages. This procedure has the flaw that these strings are often faked to make it easier to access specific pages. Also, the monitored pages are only a subset of the entire web, and surprisingly often focus on the US only which is not representative for the world at any rate.

Still, I do often wonder why such numbers and my estimates are different in the order of magnitudes. I welcome any comment on that issue!

      
Categories: Distros

Ben Williams: Mom Surgery and Fedora

Thu, 12/04/2008 - 15:31

The Monday of Thankgiving week my mother had Open Heart surgery (she is getting better every day thank you)

While sitting in the Lounge waiting for time to go back to see her (15 minutes every hour), I was sitting there with my laptop doing the ususal hanging out in the #fedora channel or IM my wife for had to work most of the week while i was off. One of the other family members saw the Fedora sticker on my laptop and started a conversation, He said he wanted to try fedora but at home he only really had dailup connection, I said thats no problem i pulled out a 1gb usb key, used livecd tools and made a liveusb.

I handed him the key and he fired it up in his laptop and was nicely impressed.

As the Scouts would say “Be Prepared” and you never will know when you will get a chance to help spread Fedora

      
Categories: Distros

Thomas Canniot: Rencontres Fedora ce week end à la Villette !

Thu, 12/04/2008 - 14:52

Vous ne le saviez pas encore ? Et pourtant, à l'occasion de la sortie de Fedora 10, sont organisées ce week-end (samedi ET dimanche) par le Carrefour Numériques de la Cité des Sciences, Fedora-fr et Parinux, les Rencontres Fedora.

Qu'allez-vous bien pouvoir faire lors de ces rencontres ?

  • Installer Fedora sur votre pc ;
  • Transformer votre clé usb en bureau mobile de poche ;
  • Vous tenir au courant, dans les conférences, des dernières avancées du Projet ;
  • Tâter de la Fedora en vous immisçant dans les ateliers ;


C'est tout ? Et bien non !

Qui dit Rencontres Fedora, dit également « communauté ». Communauté d'hommes, de femmes, de petits, de grands, de gentils, de pas gentils, de beaux, de pas beaux, tous, sans exception, comme vous et moi.

« Tu parles ! Encore plein d'informaticiens barbus ! »

Que nenni ! La communauté Fedora, c'est du gens comme toi et moi que l'on te propose de rencontrer. De l'architecte, qui compile du logiciel dans un coin de sa chambre, de l'étudiant au lycée, qui rédige sa documentation pendant ses cours d'informatique, du traducteur, qui en redemande le soir en rentrant chez lui... bref, toi, moi, nous, tous ensemble la communauté francophone de fedora, nous t'invitons dans la bonne humeur à venir nous rencontrer.

Tu pourras y poser toutes les questions, soulever tous les tabous, lancez les trolls les plus velus du monde. Tu y trouveras forcément ton compte. Alors viens, brave le froid, le vent, la pluie, les transports en commun ! Vient partager ce moment avec nous... toi et ta clef USB !

Car si Fedora 10 te plait, tu repartiras forcément avec dans ta poche. Et tu auras le choix du format, sur clé ou sur CD. Si tu ramènes ton PC, tu repartiras avec un système fonctionnel et personnalisé. Que demander de plus ? L'essayer avant de l'emporter ? Pas de problèmes les ateliers seront animés par les contributeurs les plus convaincus.

A samedi et / ou à dimanche alors !

Categories: Distros

Clint Savage: Looking for work is hard work

Thu, 12/04/2008 - 14:51

Recently, I was laid off from Guru Labs. While I still think of them as a great company, I must forge on, looking for a new job. I really appreciate the 2.5 years I worked and all the friendships I made.  I also enjoyed the work and it reinforced my desire to share my love of free software with the world.

While I am a pretty solid Linux Admin, what I really think I’d be good at, is Project Management.  The problem being that I’ve little to no paid experience for such a thing.  The reason, however, that I believe I’d be a good fit for something like this is the fact that I’ve been in charge of the Utah Open Source Conference and it’s successful rise to the largest community conference in Utah.

Last year, we had a successful conference after a year of planning.  This year’s conference was much less work thanks to all the great volunteers, but it was still a big success, and a lot of work.  I’m excited to say that this is my pride and joy, and why I think I would be a good fit for a Project Manager.

In addition, I’m looking into starting my own business, the only problem there is the timing.  I’d like to launch it soon, but I don’t have enough capital to really get going anywhere.  However, I may still do this as I think the ideas I have would work well and could really benefit an open source community as well as small/medium sized tech businesses.  In fact, I have a meeting set up for tomorrow morning with someone who’s believed in me from the beginning on this endeavor.  I’m excited to try my hand as an employer.

I do want to mention that while this isn’t a plea to help get me a job, but rather some thoughts I needed to scribble down, I am actively looking for work.  If you have anything that might fit, here’s the latest version of my resume (in pdf form).

Guess we’ll see where the world takes me on this fun, fun ride I’ve been on for 30-some-odd years now.  And I guess that’s the point, I’m really enjoying this ride called life and so while it’s a bit of a stressful time, I’m grateful to accept these challenges.  I love solving problems, and this is just another small problem.

Categories: Distros

David Nielsen: Engaged

Thu, 12/04/2008 - 13:09

On December 1st, late at night I asked my beautiful girlfriend to become my beautiful wife and to everyones surprise, she said yes.

      
Categories: Distros

Dave Jones: Portable storage.

Thu, 12/04/2008 - 13:07
Dilemma. I need some portable storage device, but all the USB/Firedire ones seem to be made of fail. But whilst searching, I found this thing which raised some questions.

  • The obvious one - what's up with the bamboo?

  • What the hell is Turbo USB?

    Asides from "25% faster than a USB 2.0 connection", it doesn't really say. So I poked around the interwebs a bit.
    The best I've been able to dig up so far, is buffalo claiming a 60% speed increase over USB2 (wait, 60% ? hmm), and this speculation
    that it's just a cache that sits between the host and the USB->SATA bridge. From a little searching, it seems that a whole
    bunch of vendors now implement this same gimmick, whatever it really is.

  • From reading the comments left by some customers on the amazon page linked above, the "auto-sensing power feature that turns the drive on and off with your computer" doesn't seem to actually work (and that's in those other OS's, good luck getting it work in Linux if it doesn't even work there). This doesn't really surprise me much. I've had many USB/Firewire drive enclosures over the years, and every single one of them has screwed this up. (Most of them make it impossible to use features like SMART too).
    The amusing thing is that of all the enclosures I've had, the electronic parts are nearly always identical.
    So they suffer all the same firmware bugs across vendors, just in different cases, with different flashing lights.


All of this just makes me wonder. Isn't it about time that USB storage died a long overdue death and we all just moved to eSATA?

  • It would be faster. No pointless protocol conversion. Transfers running the speed of the SATA link rather than the USB link.
  • It wouldn't suffer unfixable firmware dumb bugs in protocol conversion.
  • It would allow access to native features the drive is capable of like ALPM, SMART etc..
  • Given the addition of ALPM & spindown that works, it would end up using less power.


The only thing missing seems to be that hardly any laptops feature eSATA connectors yet.

update:Immediately after posting this, I stumbled across this which is as Kyle McMartin said "a lot of data to accidentally put through the wash". I had no idea they were making usb sticks that big now. I think a handful of these is probably a better option than any usb->ata convertor + rotating media right now.
Categories: Distros

James Laska: Creating a virtual test lab - part#1

Thu, 12/04/2008 - 13:01
It's been a while since my last post. One of the things keeping me busy since then has been investigating using existing tools to document a process/workflow that would make testing easier for me (and hopefully others). What I'm doing probably isn't new to many people, but I haven't seen it spelled out this way before. Outlining the steps will also help me identify the gaps ... and I invite others to do the same!

My goal is to document the installation, setup and workflow of creating a virtual test lab on a single system. For this post, I will focus on the installation and setup. Future posts will detail how I'm using (or planning) to use the test lab.

Requirements
  • Hardware capable of running kernel-based Virtualized machines (aka KVM)
  • Memory - My system has 8Gb of memory, although not required, the more the better
  • Disk space - Again, the more the merrier, I am reserving 10-15Gb for each KVM guest

Installation and Configuration

With Fedora 10 hot off the presses, start your download and start the installer. I'll note only the 3 key steps during the install. You are welcome to diverge to suite your needs, but pay closer attention to the following steps:
  1. Partitioning - Go ahead and have anaconda autopartition your disk(s). Be sure to select "Review and modify partitioning layout" at the bottom. You can always skip this and resize your '/' partition and logical volume later, but doing so here is easier.
    • At the partitioning details screen, I recommend you resize your '/' partition to leave room for your virtual guests. I like to use LVM logical volumes as the disk for my virtual guests as it's easier for me to re-install the host while leaving the the exists guests intact. For example ...

  2. Package Repository - Let's make it easier on ourselves after install ...
    • Select the Fedora 10 and Fedora 10 Updates package repositories. This will pull in any updates released since Fedora 10 was unleashed.
    • Select Customize now

  3. Package Selection - Go head and enable the Base -> Virtualization package group.

  4. Complete the install and reboot
  5. With your system installed and booted, let's get a few more packages installed ... Login as root, and type: # yum install cobbler snake koan syslinux


Congrats, your system is setup and installed. In my next post I'll outline how I'm configuring cobbler. Stay tuned ...
Categories: Distros

Tom Tromey: 7. Pretty printing, part 1

Thu, 12/04/2008 - 12:56

Consider this simple C++ program:

#include <string> std::string str = "hello world"; int main () {   return 0; }

Compile it and start it under gdb.  Look what happens when you print the string:

(gdb) print str $1 = {static npos = 4294967295,   _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x804a014 "hello world"}}

Crazy!  And worse, if you’ve done any debugging of a program using libstdc++, you’ll know this is one of the better cases — various clever implementation techniques in the library will send you scrambling to the gcc source tree, just to figure out how to print the contents of some container.  At least with string, you eventually got to see the contents.

Here’s how that looks in python-gdb:

(gdb) print str $1 = hello world

Aside from the missing quotes (oops on me), you can see this is much nicer.  And, if you really want to see the raw bits, you can use “print /r“.

So, how do we do this?  Python, of course!  More concretely, you can register a pretty-printer class by matching the name of a type; any time gdb tries to print a value whose type matches that regular expression, your printer will be used instead.

Here’s a quick implementation of the std::string printer (the real implementation is more complicated because it handles wide strings, and encodings — but those details would obscure more than they reveal):

class StdStringPrinter:     def __init__(self, val):         self.val = val     def to_string(self):         return self.val['_M_dataplus']['_M_p'].string() gdb.pretty_printers['^std::basic_string<char,.*>$'] = StdStringPrinter

The printer itself is easy to follow — an initializer that takes a value as an argument, and stores it for later; and a to_string method that returns the appropriate bit of the object.

This example also shows registration.  We associate a regular expression, matching the full type name, with the constructor.

One thing to note here is that the pretty-printer knows the details of the implementation of the class.  This means that, in the long term, printers must be maintained alongside the applications and libraries they work with.  (Right now, the libstdc++ printers are in archer.  But, that will change.)

Also, you can see how useful this will be with the auto-loading feature.  If your program uses libstdc++ — or uses a library that uses libstdc++ — the helpful pretty-printers will automatically be loaded, and by default you will see the contents of containers, not their implementation details.

See how we registered the printer in gdb.pretty_printers?  It turns out that this is second-best — it is nice for a demo or a quick hack, but in production code we want something more robust.

Why?  In the near future, gdb will be able to debug multiple processes at once.  In that case, you might have different processes using different versions of the same library.  But, since printers are registered by type name, and since different versions of the same library probably use the same type names, you need another way to differentiate printers.

Naturally, we’ve implemented this.  Each gdb.Objfile — the Python wrapper class for gdb’s internal objfile structure (which we briefly discussed in an earlier post) — has its own pretty_printers dictionary.  When the “-gdb.py” file is auto-loaded, gdb makes sure to set the “current objfile”, which you can retrieve with “gdb.get_current_objfile“.  Pulling it all together, your auto-loaded code could look something like:

import gdb.libstdcxx.v6.printers gdb.libstdcxx.v6.printers.register_libstdcxx_printers(gdb.get_current_objfile())

Where the latter is defined as:

def register_libstdcxx_printers(objfile): objfile.pretty_printers['^std::basic_string<char,.*>$'] = StdStringPrinter

When printing a value, gdb first searches the pretty_printers dictionaries associated with the program’s objfiles — and when gdb has multiple inferiors, it will restrict its search to the current one, which is exactly what you want.  A program using libstdc++.so.6 will print using the v6 printers, and (presumably) a program using libstdc++.so.7 will use the v7 printers.

As I mentioned in the previous post, we don’t currently have a good solution for statically-linked executables.  That is, we don’t have an automatic way to pick up the correct printers.  You can always write a custom auto-load file that imports the right library printers.  I think at the very least we’ll publish some guidelines for naming printer packages and registration functions, so that this could be automated by an IDE.

The above is just the simplest form of a pretty-printer.  We also have special support for pretty-printing containers.  We’ll learn about that, and about using pretty-printers with the MI interface, next time.

Categories: Distros

Rex Dieter: Fedora Classroom: KDE4 for KDE3 users

Thu, 12/04/2008 - 12:53
Clint tickled a memory... Oh yeah!  I (and Kevin Kofler, and any other fedora kde-sig'er who can spontaneously show) will hold a "KDE4 for KDE3 Users" irc classroom session this Saturday, 14:45 UTC.  Be there or be square.

That's just a tentative title for the session, we'll likely be open to discuss all things KDE4. Topics off the top of my head right now will include:
  • KDE4 for KDE3 users: Help answer anything of the form:  "In KDE3, I used to do XXX, how does KDE4 do XXX?"
  • An overview of KDE pillars: phonon, plasma, oxygen, solid, etc...
  • The future of KDE4.  The future's so bright, gotta wear shades
  • Are the cubs finally gonna make the world series?
  • I want ponies, where are the ponies?
Want a another specific topic or issue addressed? Please drop a comment here, and we'll do our best to cover it.


Categories: Distros

Cole Robinson: Fedora planet introduction

Thu, 12/04/2008 - 12:35
Hello Fedora land!

My name is Cole Robinson, I'm a developer at Red Hat working on some of the userland virt stack (virt-manager, virt-install, libvirt) for Fedora, RHEL, and upstream.

I'll be posting in an effort to make things a bit more transparent in virt land, keeping people updated on developments that are coming down the pipe, and hopefully solicit feedback on some of the user facing bits. I'm on IRC as 'crobinso', so feel free to ping me if you have questions or problems with any of the above packages.

Some info about me: I'm 23, live in Massachusetts, and spend most of my money on dance music (largely drum + bass these days, though I really don't discriminate). So hello everyone!
Categories: Distros

Bryan Clark: This bird can dance!

Thu, 12/04/2008 - 11:48

Thunderbird can finally do the Tango

For a long time Thunderbird has been using the same theme for Linux and Windows, resulting in an ugly and out of place Linux theme.  However now Magnus has a patch is up to create a gnomestripe theme space.  Magnus already moved Thunderbird menus over to using the gtk stock icons.

Here’s a screenshot (courtesy of Michael Monreal) of Thunderbird using the desktop icon spec.

Now we can start the move over to using the Tango icon set!

Categories: Distros