• warning: array_filter() [function.array-filter]: The first argument should be an array in /var/vhosts/www.inuits.be/htdocs/sites/all/modules/location/contrib/location_cck/location_cck.module on line 385.
  • warning: array_keys() [function.array-keys]: The first argument should be an array in /var/vhosts/www.inuits.be/htdocs/sites/all/modules/location/contrib/location_cck/location_cck.module on line 385.
  • warning: Invalid argument supplied for foreach() in /var/vhosts/www.inuits.be/htdocs/sites/all/modules/location/location.module on line 1440.

Planet Inuits

Pidgin and OAUth

Kris Buytaert - Wed, 2010-09-01 20:53

So earlier today the nice folks over at twitter figured it was a good time to change all the authentication to oauth ... they might have announced it all over the place .. but it never catched my attention

The onlything that did catch my attention was that after not having ued pidgin for about 2 weeks I didn't have access to twitter anymore.

I`m using the purple-microblog plugin and the default version of that plugin in Fedora 12 wasn't really up2date. The plugin supports OAuth as of 3.0 which was released ages ago.

The version in fedora-updates-testing however was already recent enough ..

So enabling that repo and running
yum  update  purple-microblog
quickly solved my proble .. till I disabled twitter in my pidgin again as there was way to much talk about some weird fruit ...

Technorati Tags: Share with Shareomatic! --> Trackback URL for this post: http://www.krisbuytaert.be/blog/trackback/1016
Categories: Planet Inuits

Windows 7 and Samba

Frederic Descamps - Fri, 2010-08-20 21:39

Today I tried to put in production an update of Samba 3 (3.5.4) to allow Windope 7 clients to join the domain.

After having performed what's on the samba wiki page about this topic [here], I could join the machine to the domain but I was not able to login !? :(

In the log :

[2010/08/20 16:55:20.682477, 0] rpc_server/srv_netlog_nt.c:714(_netr_ServerAuthenticate3) _netr_ServerAuthenticate3: netlogon_creds_server_check failed. Rejecting auth request from client RO-BACKUP machine account RO-BACKUP$ [2010/08/20 16:55:30.993850, 0] lib/util_sock.c:474(read_fd_with_timeout) [2010/08/20 16:55:30.993958, 0] lib/util_sock.c:1432(get_peer_addr_internal) getpeername failed. Error was Transport endpoint is not connected read_fd_with_timeout: client 0.0.0.0 read error = Connection reset by peer.

The problem was easy to solve but not easy to find : the two machines had not the same time (30 secs delay !)

Fixing the time sync fixed the problem (and I'm not using kerberos and AD)

Categories: Planet Inuits

Mollom and Views

Kris Buytaert - Wed, 2010-08-04 00:06

You might have noticed that this blog stopped accepting comments about a month ago.. well. stopped accepting is a big word.. I was still accepting comments, only they were never submitted to the database and after entering a comment to my blog people ended up on a white page.

So upon returning from holliday I set out to debug the issue together with one of our Inuits Drupal geeks and quickly ran into the following error.

  1. PHP Fatal error: Call to a member function has_more_records() on a non-object in /somepath/modules/views/plugins/views_plugin_display.inc on line 1992, referer: http://www.krisbuytaert.be/blog/comment/reply/1014

So apparently my veasion of views 6.x-3.0-alpha3 didn't really like to play with Mollom,
I downgraded views again to 6.x-2.11 and Mollom started showing its Captcha's etc again .

So apart from wondering how I ended up installing that alpha3 version (I`m sure Drush didn't do that), all is back to normal. and you should be able to comment on this blog again

Technorati Tags: Share with Shareomatic! --> Trackback URL for this post: http://www.krisbuytaert.be/blog/trackback/1015
Categories: Planet Inuits

yum install mariadb

Kris Buytaert - Mon, 2010-07-19 20:55

I`m not the biggest fan of openSUSE but this weeks post by Colin Charles makes me happy ..

openSUSE users can now do a mariadb install from their default repositories.

With all the fuzz about Snoracle and MySQL's future last year to me it became clear that we would end up having different MySQL based distributions, probably with different names, and that it would be up to the Linux distributions to provide the users with what they preferred, working with those Linux distributions
therefore would be very important for the MySQL distributions.

Sadly my Fedora box doesn't allow me to do a yum install mariadb yet ... but I`m sure that's only a matter of time ..

Technorati Tags: Share with Shareomatic! --> Trackback URL for this post: http://www.krisbuytaert.be/blog/trackback/1014
Categories: Planet Inuits

the culprit is always... SELinux :)

Frederic Descamps - Sat, 2010-07-10 23:16

After having setup squid and dansguardian (using clamd) on Centos 5, I wasn't able to use it :(

I had always the following error, even if the dansguardian user was the same as clamd (clamav) :

2010.7.9 12:22:41 - 10.0.200.6 http://www.eicar.org/anti_virus_test_file.htm *INFECTED* *DENIED* /tmp/tfIlR1j6: lstat() failed: Permission denied. ERROR GET 15590 0 Content scanning 1 403 text/html

I just realize after having searched too long that SELinux (I know life is too short for it) was the culprit.
It was my mistake as I completely forgot that this machine had selinux enabled :-S

So in /var/log/audit/audit.log I had :

type=AVC msg=audit(1278673113.470:3489): avc: denied { getattr } for pid=32164 comm="clamd" path="/tmp/tfCSCirx" dev=dm-3 ino=17 scontext=user_u:system_r:clamd_t:s0 tcontext=user_u:object_r:initrc_tmp_t:s0 tclass=file type=SYSCALL msg=audit(1278673113.470:3489): arch=c000003e syscall=6 success=no exit=-13 a0=8cce370 a1=421f2dc0 a2=421f2dc0 a3=8 items=0 ppid=1 pid=32164 auid=1004 uid=102 gid=114 euid=102 suid=102 fsuid=102 egid=114 sgid=114 fsgid=114 tty=(none) ses=437 comm="clamd" exe="/usr/sbin/clamd" subj=user_u:system_r:clamd_t:s0 key=(null)

Note to myself: Never forget to check in audit.log !

To create the selinux policies, I used the following commands, which are quiet easy:

audit2allow -a -m dansguardian > dansguardian.te checkmodule -M -m dansguardian.te checkmodule -M -m dansguardian.te -o dansguardian.mod semodule_package -o dansguardian.pp -m dansguardian.mod semodule -i dansguardian.pp

Et voilà ! Dansguardian is running and I didn't disable selinux :-)

Categories: Planet Inuits

Get rid of the touchpad while using the mouse

Frederic Descamps - Thu, 2010-06-24 09:52

I've been fighting several weeks (and making a huge number of typo's due to that) with the touchpad of my macbook pro on Fedora/Gnome.

I've tested several solutions :

- disable it in Gpointing Device Settings --> fail (it always comes back after a short moment)
- use synclient TouchpadOff=1 --> fail
- creating udev rules : --> fail

ACTION=="add", SUBSYSTEM=="input", ENV{ID_CLASS}="mouse", RUN+="/usr/bin/synclient TouchpadOff=1" ACTION=="remove", SUBSYSTEM=="input", ENV{ID_CLASS}="mouse", RUN+="/usr/bin/synclient TouchpadOff=0

So the best solution I've found (one that works) is : rmmod bcm5974

Now I'll try to add it into the udev rules too.

Categories: Planet Inuits

A parallel universe

Kris Buytaert - Mon, 2010-06-21 21:19

What happens when you mention Open Office and Firewall in once sentence, in public ?

People start actually building it (French Article)

Then add to that list that there's also people out there that think that running MySQL over NFS is providing them High Availability, or that using DNS Round Robin will provide them a scalable setup,

So yes .. apparently there is indeed a parallel universe out there.

And no .. I don't want to see Webmin in any Appliance .. that is a joke..., or rather a rant ..

Technorati Tags: Share with Shareomatic! --> Trackback URL for this post: http://www.krisbuytaert.be/blog/trackback/1013
Categories: Planet Inuits

Inuits Day

Kris Buytaert - Mon, 2010-06-21 21:14

Couple of Fridays ago we had one of our @Inuits days again. Rather than having some people give talks and presentations about what they have been doing for the past couple of months this time we set out to research, test, and build stuff.

We split up in 3 different groups, one focusing on CI and testing freshly build stuff with cucumber, a second one setup and tested Galera

We setup a 3 node Galera cluster , not really as smooth as we'd like to ..

Our first bump was that the installation of the package on CentOS is hell, it needs manual interaction such as replacing packages. Deploying this from a repository is probably not going to be a straight forward option.

Galera only takes care of replicating data, just as with MySQL MM replication there still is a need for an external tool to define where to access the database, and implement monitoring in such a way that you are connecting to an up to date database.

Karl started wondering about Galera's locking, turns out the locks aren't cluster wide, locks within the same node work fine.. so if galera is solely used for HA with 1 active node and X failover nodes, it will work (so all transactions happening on 1 node).

We also ran into some issues when trying to start a node which couldn't contact the wsrep_cluster_address point (which is a node it will sync from at startup if specified in the wsrep.cnf file) , it just didn't want to start. This means that when the referenced node (configured in wsrep_cluster_address)is down, you will need to comment it out before you are able to start the mysql server.

The fact that Galera replicates everythying brought us to the discussion if we really wanted that , or if we wanted more finegrained control over which databases or even tables we want to replicate and which ones we didn't want to replicate. A minority of people wanted to replicate everything, the majority of our group wanted finere grained control over what is being replicated to another node.

I`m sure Lefred will shortly be writing about the progress his group made on Banquise

The day ended as it should .. with BBQ and plenty of drinks

Technorati Tags: Share with Shareomatic! --> Trackback URL for this post: http://www.krisbuytaert.be/blog/trackback/1012
Categories: Planet Inuits

HTC Hero Upgrade

Kris Buytaert - Fri, 2010-06-18 22:50

This morning my HTC Hero told me it had an upgrade available.
It wasn't really the moment to do the upgrade.

So when tonight I wanted to perform the upgrade I couldn't really find out how to initiate it again .

Apparently the trick is to put the date of your phone one month forward and you get the update request again.

So my phone has been updated ... so let's hope this indeed was the preparation for a real upgrade ..

Oh and don't forget to put it back to the original date :)

Technorati Tags: Share with Shareomatic! --> Trackback URL for this post: http://www.krisbuytaert.be/blog/trackback/1011
Categories: Planet Inuits

Married and a new job!

Jeroen Budts - Fri, 2010-06-18 19:18
As you might have read on my Twitter, I got married two weeks ago. My wife – it still feels strange to say – is the most wonderful girl on this planet, and far beyond. Our marriage really was a day which i will remember for the rest of my life. Everything was perfect. [...]
Categories: Planet Inuits

Giving Devs a Dev platform

Kris Buytaert - Mon, 2010-06-14 22:51

It's a typical situation, the developers develop on their own boxen, they only start to integrate their code on on the production platform 3 hours before the deadline. And then the problems start, the typical "But it works on my system" , "its your problem now" is something nobody really likes to hear .

So how do you tackle this problem ? As Christian already mentions Talking is the first step of the solution,

But one of the most satisfying approaches to solve this problem is to provide your development teams with a standard platform that you support, and a platform they can play with , if you can't provide them with a fully defined platform, give them a set of guide lines on what they can expect. Things like library versions, database types , memory availability and storage availability are key components of such guidelines.

My platform of choice for this kind of projects today is to for an Enterprise Level distro, a distro that stays stable for a longer period, not one that is bleeding edge and changes every other week. So a CentOS or a Debian based distro is probably going to be the platform of choice. But a stable standard platform also means that all the latest nice features a developer wants to have from the bleeding edge libraries he is using aren't going to be available .

Sometimes your devs really need those features, sometimes its just a nice to have. On the other hand you as an ops guy don't want to be packaging and configurating every single tool they dream off. As usual in a Devops environment the key can be found in communication ... Talking with the devs will teach you what features they really need and how they might solve things in a different, more standardized way

We've learned that by giving them a default platform and keeping an open conversation helps, some developers take longer to understand the process others jump in right away .. but in the long term you really need to talk to your devs as soon as possible when they think of implementing a new project that has to run on your platorms.

Lets you sleep at night ..

Technorati Tags: Share with Shareomatic! --> Trackback URL for this post: http://www.krisbuytaert.be/blog/trackback/1010
Categories: Planet Inuits

@Beaker on #Devops

Kris Buytaert - Tue, 2010-06-01 23:10

Yesterday @beaker posted his ideas on the #devops movement ...

Apparently we haven't been stressing enough on the fact that it isn't just about Devs and Ops,
So let me repeat it's not just about Devs and Ops, it's about breaking silo's , about being good at our jobs, about getting conversation started, about talking to different stakeholders in the processes . We are absolutely trying to include all groups, not exclude some.

@beaker also seems to have seen many presentations where developers are shown to have evolved in practice and methodology, but operators (of all kinds) are described as being stuck in the dark ages. , is that a different point of view on another continent \, on this side of the Atlantic, it's mostly the Ops people that are already using agile methods spreading the word and it isn't about Devs talking about Deopvs yet. It's actually mostly the ops spreading the word because they feel most of the pain .

Hoff also wonders about routers switches firewall and all the other boxen where we aren't running puppet or chef on , the boxes that are left out of our fully automated environments .
Indeed, Puppetcamp Europe once again woke up the discussion on how to tackle these boxen, the lack of use of existing standards was covered .. and some mentioned that CIM and family are pretty much death or irrelevant for real life usage , both the Puppet and Chef communities are working on manifest, modules and recipes to solve the issues.

But the good thing is that we now have the security people involved too, maybe they'll figure out how to survive longer than 6 months in a CSO position if they talk to the others and come out of their Ivory towers :)

Technorati Tags: Share with Shareomatic! --> Trackback URL for this post: http://www.krisbuytaert.be/blog/trackback/1008
Categories: Planet Inuits

PuppetCamp Europe 2010

Kris Buytaert - Tue, 2010-06-01 21:59

Last week was pretty heavy on conferences for me. On wednesday I had to give my Building Virtual Appliances talk at the at the Sizing Server event on Advanced Virtualization and Hybrid Cloud Computing , but the most important part of the week was the first edition of Puppetcamp Europe.

When the first ideas about PuppetCamp Europe started I asked Luke when and where it'd be held. He replied that I should know as I was supposed to organise it... I thanked for the honour , he went on to ask Patrick , he accepted ... I hope I helped him out enough :) I even handed out a personal invitation to some of the most famous configuration mgmt people on this planet and Inuits sponsored the event too

Luke started with the opening talk, talking about the future and past of puppet , about version numbers, 2.6 does sound familiar and stable doesn't it, about forge.puppetlabs.com
During @puppetmasterd 's talk @kartar played Bugmaster which was great and almost realtime

The real fun started with the Open Spaces ... after everybody presented themselves, a mix of usual suspects, first timers and oldskoolers from irc #puppet that finally got faces, different sessions were proposed, ranging from Puppet 101, Alternative Puppet Architectures, Puppet HA, MultiMaster Puppet to Dating for PuppetMasters

Over the 2 days spread the open space different ideas came up on e.g how to scale puppet. Different people are letting their puppetclients run from cron in batches, but probably the weirdest idea I heard was to run Puppet in Jruby in order to speed it up.

Lots of talk on certificates and how to solve the pains with them .. e.g like in a HA setup .. you need to create an authority chain .. there was also talk about having a
--trust-my-network feature that would disable certificates, Luke was open to accepting such a patch, or a patch that would make the whole certificate setup more pluggable
That would for sure be a feature a lot of people would want to use ..

The thurday evening conference dinner was "Stoofvlees met Frieten" for most of us .. but for me it was a London Devops Curry in Gent, with @unixdaemon @ripienaar and some others ;)

But with lots of interesting chatter, free beer and free icecream there's for sure going to be another similar event in Europe next year ..

Technorati Tags: Share with Shareomatic! --> Trackback URL for this post: http://www.krisbuytaert.be/blog/trackback/1007
Categories: Planet Inuits

Call For Abstracts : NLUUG Fall Conference on Security

Kris Buytaert - Tue, 2010-06-01 19:53

For all the security experts : the NLUUG has published it's Call For Abstracts for it's Fall conference.. as you might have guessed the topic is Security, we welcome all abstracts tackling security in a broad sense.

Possible topics include:

* cloud security
* online privacy
* rfid hacking
* secure programming
* programma-analysis-tools
* web services security
* web browser security
* embedded hardware hacking
* incident response and forensics
* malware and rootkits
* responsible disclosure
* legal response
* fighting spam
* patch policies
* identity management
* central point of administration
* DNSsec
* VPN based WANs
* etc.

The NLUUG fall conference is scheduled on 11 November 2010 in De Reehorst in Ede, the Netherlands.

Hint.. maybe a talk on secdevops would be welcomed too :)

Disclaimer : I`m on the program committee

Technorati Tags: Share with Shareomatic! --> Trackback URL for this post: http://www.krisbuytaert.be/blog/trackback/1006
Categories: Planet Inuits

Conferences

Tom De Cooman - Tue, 2010-06-01 07:45

It’s been a while …

A little late to report on some things, but still, here we go.

Loadays
Was only able to make it one day, Saturday, but it was good!
Really enjoyed it. Rather ’small’ conf ( guess bigger then expected though with even some international speakers!
Devops! Talks on system deployment, config management ( we had ‘em all, cfengine, chef and puppet), monitoring …

NLUUG Spring conference
Kris, Kenny and I drove to Holland to attend this anual conference. Main line through this conf was systems administration. Although we spotted some interesting topics, we found them to be not enough in depth.
Eg: the asterisk talk was more like a story about the fact that the speaker and his company implemented asterisk at a client, but didn’t really cover asterisk itself, the part we were interested in …

Puppetcamp
And the last one in row.
Two days on just 1 topic … isn’t that too much?
Well apparently: no it isn’t! Maybe a bit short?
Only attended the first day.
Day schema: talks before noon and open spaces during the after noon.
I really liked Luke’s talk (http://www.slideshare.net/lkanies/portable-infrastructure-with-puppet), the first one of the day.
First part was about upcoming versions, new features etc.
Second part about why puppet exists.
Although Luke mentioned having slept only for 2 hours, he managed to give an interesting and entertaining talk!
The afternoon was filled with openspace slots across the different rooms.
I’ve never ‘openspaced’ before, so I admit: the idea of people walking in and out of rooms, prolly making their point and then just leave … I wasn’t sure this would go somewhere.
But in the end it all turns out very well
Went to the puppet 101 openspace. This ended in a public-driven hands-on overview. Great!

Categories: Planet Inuits

Fedora 13 on mac book pro 13"

Frederic Descamps - Sat, 2010-05-29 13:15

I used preupgrade to updgrade Fedora from 12 to 13.

After the process, I had to resync the partition in refit to be able to boot Linux.

I rebuilded the needed packages for nvidia and the broadcom wireless card.

I needed also to do some modifications to be able to use the integrated iSight webcam:

1. download the apple firmware :

wget http://www.i-nz.net/files/projects/linux-kernel/isight/against-revision-...

then extract it (using the Fedora 12 package isight-firmware-tools) :

[root@delvaux ~]# su -c "ift-extract --apple-driver AppleUSBVideoSupport"

after this operation it should be working for most of the macbook pro, but not for this model, another change is needed.

first find the idProduct number:

[fred@delvaux Desktop]$ lsusb -v | grep iSight -B 3 | grep idProduct idProduct 0x8507

and mofify the file /etc/udev/rules.d/isight.rules with the returned value :

[root@delvaux rules.d]# cat isight.rules ACTION=="add", SYSFS{idVendor}=="05ac", SYSFS{idProduct}=="8507", RUN+="/usr/lib64/udev/ift-load --firmware /lib/firmware/isight.fw" AttachmentSize kmod-wl-2.6.33.4-95.fc13.x86_64-5.10.91.9.3-3.fc13.11.x86_64.rpm540.61 KB kmod-wl-5.10.91.9.3-3.fc13.11.x86_64.rpm6.91 KB kmod-nvidia-2.6.33.4-95.fc13.x86_64-195.36.24-1.fc13.5.x86_64.rpm3.39 MB kmod-nvidia-195.36.24-1.fc13.5.x86_64.rpm29.6 KB
Categories: Planet Inuits

Building Virtual Appliances

Kris Buytaert - Thu, 2010-05-27 10:03

Johan from Sizing Servers asked me if I could talk about my experiences on building (virtual) appliances at their Advanced Virtualization and Hybrid Cloud seminar . Off course I said yes ..

Slides are below ... Enjoy ..

Building appliances View more presentations from Kris Buytaert. Technorati Tags: Share with Shareomatic! --> Trackback URL for this post: http://www.krisbuytaert.be/blog/trackback/1005
Categories: Planet Inuits

Over 2 years of #mollom satisfaction

Kris Buytaert - Sat, 2010-05-22 20:53

Following up on Wim's example

Technorati Tags: Share with Shareomatic! --> Trackback URL for this post: http://www.krisbuytaert.be/blog/trackback/1004
Categories: Planet Inuits

Redmine strange issue

Laurent Bigonville - Wed, 2010-05-12 16:46

I'm currently deploying redmine for a customer, and today we ran into a strange issue.

People were able to login, but for certain operations some of them get an "Invalid form authenticity token" error. Moreover redmine was setting more that one cookie with different values and paths in firefox. After some time I figure out that RAILS_RELATIVE_URL_ROOT was set in the apache configuration but was empty. It looks like firefox and IE behave differently if the path of the cookie is empty, firefox considers that the path is the current directory and IE thinks it's '/' Now everything seems working.

I will try to blog a little more about what I'm doing at work

Categories: Planet Inuits

Adding Local Folders in Thunderbird

Johan Huysmans - Sat, 2009-12-05 16:18

Thunderbird has something called “Local Folders”.
What Local Folders are is described here: http://kb.mozillazine.org/Local_Folders

This webpage however doesn’t explain how to add an extra set of Local Folders.
This is how you can create them.

Open prefs.js with your favorite editor. This file is located inside the profile directory in you thunderbird hidden directory.
Don’t change this file when thunderbird is running.
the serverX and accountX must be unique and could be different on your system

Search for the section defining the existing “Local Folders”, this looks something like this:
user_pref("mail.server.server3.directory", "/home/johan/.thunderbird/pd19vach.default/Mail/Local Folders");
user_pref("mail.server.server3.directory-rel", "[ProfD]Mail/Local Folders”);
user_pref(”mail.server.server3.hostname”, “Local Folders”);
user_pref(”mail.server.server3.name”, “Local Folders”);
user_pref(”mail.server.server3.type”, “none”);
user_pref(”mail.server.server3.userName”, “nobody”);

Copy those lines and edit them to your needs:
user_pref("mail.server.server4.directory", "/home/johan/.thunderbird/pd19vach.default/Mail/new_local_folders");
user_pref("mail.server.server4.directory-rel", "[ProfD]Mail/new_local_folders”);
user_pref(”mail.server.server4.hostname”, “New Local Folders”);
user_pref(”mail.server.server4.name”, “New Local Folders”);
user_pref(”mail.server.server4.type”, “none”);
user_pref(”mail.server.server4.userName”, “nobody”);

Also add following line:
user_pref("mail.account.account4.server", "server4");

And edit following line:
user_pref("mail.accountmanager.accounts", "account1,account2,account3,account4");

When the changes are made in the prefs.js you can create the new defined local folders. A subdirectory has to be created otherwise it won’t show up in Thunderbird.
mkdir /home/johan/.thunderbird/pd19vach.default/Mail/new_local_folders
mkdir /home/johan/.thunderbird/pd19vach.default/Mail/new_local_folders/Inbox
touch /home/johan/.thunderbird/pd19vach.default/Mail/new_local_folders/Inbox.msf

If everything goes well the new defined local folders directory appears when you open thunderbird.

Categories: Planet Inuits