The last post for 2008

Merry Christmas and Happy New Year to all readers of this blog!

This is my last post for this year and I could say I am pretty happy with the results achieved. There are 42 posts and 311 comments on them. Hopefully some of the posts helped someone, which is the main goal of this blog.
So, next year I hope they will be at least 1.5 times more. (at least I am thinking for stable growth) :).

Ok, the main reason for this post is completed, now it’s time to show you what brought me Santa Claus … a second monitor as well as good Video Card with 2 outputs, so now I am working on dual monitor machine. Here is the picture of my new work place:

Dual screen

Adding second screen on Ubuntu is really piece of cake – I was ready to go after 15 min including the HW mounting :) Hopefully this addition will increase my productivity :)

That’s all folks. See ya next year! Happy New Year to everyone!

Share it:
  • Facebook
  • Twitter
  • Digg
  • StumbleUpon
  • del.icio.us
  • Google Bookmarks
  • Yahoo! Buzz
  • Add to favorites
  • Identi.ca

Powered with Ubuntu 8.10

Today I’ve upgraded my desktop machine with the last version of Ubuntu 8.10 Intrepid and I am quite happy from the installation. Wow, it’s been two years and a half since I switched from Windows. It is like it was yesterday. :)

First things which I personally notice are:

  • Shut Down is separated from Login and Switch user.
  • The weather forecast is integrated in the time “widget” into panel, where it’s possible to add more than one location – very convenient for mobile users.
  • Default terminal application /gnome-terminal/ supporting tabs. Which in fact is not new /I’ve checked my laptop where I am still using 8.04 and this feature exist as well/, but I just noticed this. Anyway, I am using terminator rather than gnome-terminal :)
  • The installation script remove some of my favorite games, especially Kasteroids, anyway re installation was quite easy.

This is my first time when I just upgrade instead of total wipe out and clean install. Apart from this – so far so good, everything run smoothly and nicely. Ubuntu rocks!

Share it:
  • Facebook
  • Twitter
  • Digg
  • StumbleUpon
  • del.icio.us
  • Google Bookmarks
  • Yahoo! Buzz
  • Add to favorites
  • Identi.ca

UPS shutdown script

No, this is not CakePHP code snippet! :)

So, I had experience with an UPS Inform GUARD Standby SERIES 1500AP recently. It took me a while to understand that this is not the right model for the server ups solution, but anyway, this give me opportunity to understand something for this part of the hardware which I haven’t had change to touch.

The whole problem is that this ups doesn’t have Auto restart functionality, so if the power is down I can shutdown it, but on the power-on it doesn’t start up automatically, so the next power crash the server is doomed.

According with this I couldn’t manage to find single package which could work properly with this UPS. The nut package clam to support it, but in fact the driver recommended as working was not working at all.

Finally I managed to get signals from the ups with powstatd which is quite low level software. Ok, there are some additional files, but they cannot work with the upstart in Ubuntu. What I managed to get from it was status change in a file with following states: OK, FAIL and LOW.

So, in order to turn these states in actions I just wrote a small bash script, which doing different things on each state change.
Continue reading

Share it:
  • Facebook
  • Twitter
  • Digg
  • StumbleUpon
  • del.icio.us
  • Google Bookmarks
  • Yahoo! Buzz
  • Add to favorites
  • Identi.ca

Postfix – SMTP – PAM – MYSQL Server Troubles

Hey guys,

I had few days fight with a mail server. I am trying to configure my dedicated server and mail server is an important part in this setup. It was hard, because I am not SysAdmin and I didn’t have any clue at all.

Anyway finally I managed and I am very proud with this installation.
I am not going to describe the whole process, because there are many how-tos. These are the articles which I followed during the install:

http://flurdy.com/docs/postfix/ – this one I followed
https://help.ubuntu.com/community/Postfix
http://postfix.wiki.xs4all.nl/index.php?title=Virtual_Users_and_Domains_with_Courier-IMAP_and_MySQL

Everything was fine except that I couldn’t send mails through authenticated smtp. :(

Following these articles the problem wasn’t sorted and I start digging over the net about the solution.

The error in the SquirrelMail was:
Authentication failed
535 5.7.8 Error: authentication failed: authentication failure

Which meant that the passwords doesn’t match, but in fact I didn’t have a clue what could cause the error. When I test the login with telnet I had the following response:

#telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 my.server.com ESMTP Postfix (Ubuntu)
250-my.server.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH NTLM CRAM-MD5 DIGEST-MD5 LOGIN PLAIN --Note this row
250-AUTH=NTLM CRAM-MD5 DIGEST-MD5 LOGIN PLAIN --Note this row
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

I’ve read in a forum /unfortunately I can’t remember where it was because I visited probably 10000 pages and tutorials/ that in the /etc/postfix/mail.conf instead of:

smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2

The variable should be:

smtpd_sasl_path = smtpd

after changing this authentication start working as a charm. I’ve removed this setting completely and the system still works perfectly. What was the difference? When I test with telnet I’ve seen:

#telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 my.server.com ESMTP Postfix (Ubuntu)
250-my.server.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN --Note this row
250-AUTH=LOGIN PLAIN --Note this row
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

So, the difference is that auth method is different. The problem was exactly in that setting and by removing it everything start working. So the advise: don’t set this variable – it cause troubles!

Update: this article is really straight forward and making smtp authentication really easy!

Hopefully this will hope someone!

Share it:
  • Facebook
  • Twitter
  • Digg
  • StumbleUpon
  • del.icio.us
  • Google Bookmarks
  • Yahoo! Buzz
  • Add to favorites
  • Identi.ca

My experience with Windows Vista

Linux vs. WindowsWhen I started my new job as I mentioned earlier, I got brand new laptop – Lenovo 3000 n200. The machine is quite powerful, but unfortunately it show a defect in the beginning – halted unexpected on OS start and because I throw the wrapping box, the supplier refused to change the machine with new and they suggest to repair it /In fact this is the second reason why I was so quiet last month ;)/.

Quite strange practice – to keep the wrapping box. Imagine what we should do with other desktops, printers, servers and even a rack, if we need to keep all these boxes in the office!!!

So, I had to return it and now I am using a spare machine with Windows Vista Home Edition installed on it. Well, during these almost three weeks I decided to write about my experience with Windows after almost 2 years on Ubuntu Linux.
Continue reading

Share it:
  • Facebook
  • Twitter
  • Digg
  • StumbleUpon
  • del.icio.us
  • Google Bookmarks
  • Yahoo! Buzz
  • Add to favorites
  • Identi.ca

Ubuntu 7.10 – available

Today is the official release of Ubuntu – version 7.10 (code name Gutsy Gibbon).

What is Ubuntu: Ubuntu is a community developed, Linux-based operating system that is perfect for laptops, desktops and servers. It contains all the applications you need – a web browser, presentation, document and spreadsheet software, instant messaging and much more. Ubuntu is free software.

I am using Ubuntu from one year and a half /summer of 2006/ and I could say that nothing could bring me back to Microsoft Windows. It was “strange” in first 2-3 months and I had spontaneous wishes to turn it off, but after that you get used to it and become quite nice. I didn’t log-in in my Windows from at least 6-7 months.
Continue reading

Share it:
  • Facebook
  • Twitter
  • Digg
  • StumbleUpon
  • del.icio.us
  • Google Bookmarks
  • Yahoo! Buzz
  • Add to favorites
  • Identi.ca

Komodo – My editor in Ubuntu

since I start using Ubuntu from version 6.06 I had problems finding the proper editor fitting my needs and having similar features like UltraEdit. So I tried all provided by default from standart Ubuntu installation: Ajunta, BlueFish, Screem, but no one match my requirements and I start using gEdit. not bad for simple operations, fast, but macros are applied only to file type: for example if you want to add HTML macro printing directly basic html structure of the document to a *.php file – you cant. It’s only for HTML files. Also suporting function sintax is not the first thing, which you can run on gEdit, but this was the reality – this editor suited me best.

Well a year ago I saw the Komodo Edit and I love it! it looking 99% the same as UltraEdit and also support Macros, there are Syntax Check etc.
Language integration is suported very well and there are hints about functions and their attributes.

What I miss is Code Inteligence API for CakePHP, because I am using that Flamework for building my latest projects. Let’s hope somebody will make cix file for it.

Probably in other posts I will mention about my projects. For now – that’s it

Share it:
  • Facebook
  • Twitter
  • Digg
  • StumbleUpon
  • del.icio.us
  • Google Bookmarks
  • Yahoo! Buzz
  • Add to favorites
  • Identi.ca

How to run Toad under Ubuntu using Wine

Original Article is located here but unfortunately is in Spanish.

So let’s translate original article and I will put additional comments on it:

Step 1.) Installing wine
Wine is application which allow you to execute windows files on Unix enviroment. Because this article is for Ubuntu (my current version is 7.04) I assume that it’s installed, but if not, run the following command:
Continue reading

Share it:
  • Facebook
  • Twitter
  • Digg
  • StumbleUpon
  • del.icio.us
  • Google Bookmarks
  • Yahoo! Buzz
  • Add to favorites
  • Identi.ca