Login or Sign Up to become a member!

EXPERTS, INFORMATION, IDEAS & KNOWLEDGE

Social bookmarker Add this

Your profile

Search

November 2008
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

XML Feeds

Tags: linux

All the LessThanDot Journals

Mono 2.0 Has Been Released

by SQLDenis


Permalink 06 Oct 2008 20:05 , Categories: Web Design, Graphics & Styling Tags: .net, linux, mono, open source

Mono 2.0 Has Been Released

Mono 2.0 is a portable and open source implementation of the .NET framework for Unix, Windows, MacOS and other operating systems.

Some Details:

Microsoft Compatible APIs
ADO.NET 2.0 API for accessing databases.
ASP.NET 2.0 API for developing Web-based applications.
Windows.Forms 2.0 API to create desktop applications.
System.XML 2.0: An API to manipulate XML documents.
System.Core: Provides support for the Language Integrated Query (LINQ).
System.Xml.Linq: Provides a LINQ provider for XML.
System.Drawing 2.0 API: A portable graphics rendering API.

Mono APIs
Gtk# 2.12: A binding to the Gtk+ 2.12 and GNOME libraries for creating desktop applications on Linux, Windows and MacOS X.
Mono.Cecil: A library to manipulate ECMA CLI files (the native format used for executables and libraries).
Mono.Cairo: A binding to the Cairo Graphics library to produce 2D graphics and render them into a variety of forms (images, windows, postscript and PDF).
Mono’s SQLite support: a library to create and consume databases created with SQLite.
Mono.Posix: a library to access Linux and Unix specific functionality from your managed application. With both a low-level interface as well as higher level interfaces.

Download Mono 2.0 here: http://www.go-mono.com/mono-downloads/download.html

Leave a comment »Send a trackback » 283 views

CentOS, Postfix, MySQL and a Typo

by damber


Permalink 05 Sep 2008 16:06 , Categories: Linux, RHEL Tags: centos, linux, mail server, mysql, postfix, typo

A little lesson in typo-trauma

Today I finally got round to doing some admin on my primary home server, which (amongst many things) is my main mail server. After dusting a few cobwebs away, checking nobody had broken any of the furniture and such, I decided to run yum to get the latest updates (it had been almost a month since the last time I checked 88| but still, at least now it was about to be updated to all the shiny sparkly new things that CentOS had released for me…

And it did, it came up with about 5 or 6 updates, including an update to postfix. Great. So, it finished in about a minute or two and I went on about my evening. All was happy in the land of the ignorant.

Ignorant, that is, until I decided to send an email to my dear old mum to give her an update on the list of laptops I was recommending for her (I know, I’m so thoughtful :D). At which point my squirrelmail (webmail) froze.. you see, I’m currently re-decorating my study, so have moved my main workstation into another room, and as such it’s not in use.. and my other non-work laptop is, er, recovering from, er, how do you say it? A little ‘rinse’ in the bath… so, work laptop it is, and webmail access only…

I thought maybe it was my damn windows wifi connection at first because it has been such a problem the last few days.. (I can’t wait to get back to my linux environments, this windows only stuff is giving me a serious heart condition.) Anyway, after a prod and a poke it seemed that it might be the mail server…

Determining the problem

So, I checked the mail server logs and discovered…

  1. [root@phantom ~]# tail /var/log/maillog
  2. phantom postfix/smtpd[8736]: fatal: unsupported dictionary type: mysql

mmmm… now, that looks familiar.. wasn’t that a problem I faced when setting up this mail server? The problem that centos repositories only provide the standard postfix rpm which doesn’t have mysql support compiled in? But, it has been working for ages.. why is it failing now ? Hold on.. let me check what exactly was updated again recently…

  1. [root@phantom ~]# tail /var/log/yum.log
  2. Updated: postfix - 2:2.3.3-2.1.el5_2.i386

Ahhhh… bugger.:'(

Path of enlightenment

OK… now I’m thinking that some stupid numpty has released the wrong rpm in the wrong repository, because I know that I set things up originally to exclude the main repositories for postfix updates and only get it from the centosplus repository. Of course I did. I’m sure. I think. mmmmm… ok, let me check…

  1. [root@phantom ~]# vi /etc/yum.repos.d/CentOS-Base.repo
  2. #released updates
  3. [updates]
  4. name=CentOS-$releasever - Updates
  5. mirrorlist=http://mirrorlist.centos.org/?release=$releasever&amp;arch=$basearch&amp;repo=updates
  6. #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
  7. gpgcheck=1
  8. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
  9. priority=1
  10. exclude=kernel* posfix*   <<<<<<——looky at what we have here..
  11. [centosplus]
  12. name=CentOS-$releasever - Plus
  13. mirrorlist=http://mirrorlist.centos.org/?release=$releasever&amp;arch=$basearch&amp;repo=centosplus
  14. #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
  15. gpgcheck=1
  16. enabled=1
  17. gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
  18. priority=2
  19. includepkgs=kernel* postfix*

Ooops. Can you spot it? :yes: Yep, exactly - every entry apart from the updates was excluding “postfix", whilst the updates were excluding “posfix".. :no:

Fixing the shame..

That, my friend, is the scourge of bugs everywhere.. the humble typo. ah well. Lesson learnt.. now just to download the previous centosplus package for postfix with mysql built in and re-install it (and fix that damn typo):

  1. [root@phantom ~]# wget http://www.mirrorservice.org/sites/mirror.centos.org/5.2/centosplus/i386/RPMS/postfix-2.3.3-2.el5.centos.mysql_pgsql.i386.rpm
  2. [root@phantom ~]# rpm -Uvh —-replacepkgs —-force postfix-2.3.3-2.el5.centos.mysql_pgsql.i386.rpm
  3. [root@phantom ~]# sed -i ’s/posfix/postfix/g’ /etc/yum.repos.d/CentOS-Base.repo

phew… mail server back up and working again. I thought for a brief second that it was going to be a major problem, but, thankfully, a download + install to rollback and a correction of a typo later.. and I’m back up and running :-) A lesson in scrutiny of important configuration data has been learnt..:lalala: until the next time.. ;D

6 comments »Send a trackback » 1003 views