Archive for October, 2009

No sound via pulseaudio in gnome 2.28 Debian unstable after upgrade and a simple fix

Sunday, October 4th, 2009

I’ve upgraded to gnome 2.28 on my Debian unstable. I was not surprised
to find out that sound is not working again. After some general debugging and testing :).
I’ve found the solution. The solution is to simply delete .pulse and .pulse-cookie
rm -rf ~/.pulserm -rf ~./.pulse-cookieNow restart pulseaudio:
killall -HUP pulseaudio
Hopefully sound now should be flowing right through your speakers.
END—–

Xserver kill sequenze not working anymore via Dontzap option in Debian Unstable

Saturday, October 3rd, 2009

The Xkill sequence in Debian unstable is not working again
even though the:
Option “DontZap” “off”in my xorg.conf
Fix comes to adding to xorg.conf:
Option “DontZap” “off”
END—–

Fix to problems with torrents not downloading with transmission on Debian unstable and Ubuntu 9.04 Jaunty

Saturday, October 3rd, 2009

There is a problem on Ubuntu Jaunty and Debian unstable with torrents not downloading with
the default torrent downloader transmission. I’ve noticed in transmission’s configuration files
it’s configured to use a port for “Incoming Connections” with number 51413. Anyways my machine is
behind a router and has a local IP address and consequently is not accessible through
the outside world on that port. Therefore I had to configure my router to do
port redirect (port forwarding) of port 51413, that fixed my torrents download
issues on my Linux.
END—–

Configuring easy access and Internet keyboards on Linux (lineak)

Saturday, October 3rd, 2009

I’ve bough a media keyboard yesterday, since I ran Debian I needed
a way to configure my keyboard. After some research online I found lineak .
Lineak does have support already for many Linux keyboards key sets.
However my keboard Delux K5201 was not supported. Thus I’ll now
follow the documentation to make it fully work with my Debian Linux.
Anyways surely the project will be helpful for many whose keyboards
are supported on Linux through lineak.
Seems that most of the easy access keys on my Delux K5201 kbd are workingcorretcly. 70% out of all the easy access keys are working out of the box.The keys that don’t work and are most vital are the “Shutdown Button” andthe “Mail button”.END—–

Orthodox Prophecies about the End of The World and the Coming Antichrst, The Second coming of our Lord and Saviour Jesus Christ

Friday, October 2nd, 2009

Two days ago while I was looking for various Orthodox related writtings, I found some interesting
places containing many prophecies of saints concerning the rule of the antichrist and the coming end
time terrible days. What the saint prophets say is more than scary. Most of the signs described to be
seen in the end times are already present. I’ve mirrored the website of orthodoxheritage – a newsletter published by the Greek Orthodox Brotherhood of St. Poimen, a 501 here .
The link to the orthodox prophecies is located here . I’ve also mirrored many other pages I found online
on a custom user site in geocities .
Here is a link to the mirrored pages with orthodox prophecies concerning end times

Some of the mentioned things that struck me was:
1. People will be attached to their gadgets more than to their relatives ( already happening)2. People to be not having lack3. Will communicate everywhere freely like they’re in the same room ( already fulfilled)4. People will fly in the clouds and dive into the oceans (fulfilled)5. Many churches will be rebuild and made their cupola made wonderfully ornated (fulfilled – interesting to notethat old orthodox churches’s cupolas are not painted, Even I think it’s prohobited by the church rules to do so)6. Man will trust his gadget more than his first neighbor (on it’s way to be fulfilled)7. People will drive in rigs upon the moon and stars. (already happened)8. The whole world will be plagued by a strange disease and nobody will be able to find a cure; everybody will say I know, I know, because I am learned and smart, but nobody will know anything. (already fulfiller or partly fulfilled?)9. People will be lost and will become more and more senseless day by day. (currently fulfilling)10. Men will be born not knowing who was their grand-father and great grand-father. (partly fulfilled)11. It will not be possible to distinguish a man from a woman. Everybody will dress the same. (fulfilled)12. People will believe that their illusion is the real truth, although there will be no truth in their heads. (fulfilled)13. Men will build a box and within will be some kind of gadget with images.With the help of this image-gadget man will be able to see everything that is happening all over the world.14. After the Second Big War, all of that will be just a bitter illusion, because many will forget God and they will worship only their own human intelligence (fulfilled)15.. A world war III would burst out (not yet fulfilled)16. Great famine after World war 317. Many will worship the Antichrist and accept his evil system (and his number, the number of the beast)Most of the prophecies I publish are given to The Righteous Dimitri Tarabibicz (recorder around 1850s),
He was illiterate Serbian villager who lived an extremely pious manner in the mid 19th century.
This is small portion of all the Orthodox Prophecies we the Orthodox Christians has left as a heritageof the Holy Fathers.
END—–

Qmail’s Voodoo spells and magics ! Workarounds to some common problems, QMAIL HELL!

Friday, October 2nd, 2009

It's one of this days, when you'd wish to be dead and never born ever!

I experienced terrible problems with Qmail once AGAIN!

Most of the qmail administrators out there are probably aware, Everytime qmail stops working it's like

walking in a dark room without a light torch before you fix it up.

To fix a broken qmail your only friend could be patience. It's fucking insane seriously I more and more start hating qmail when it's broken.

I've experienced the following error messages today on our corporate qmail:

delivery xx: failure: Sorry._Although_I'm_listed_as_a_best-preference_MX_or_A_for_that_host,/it_isn't_in_my_control/locals_file,_so_I_don't_treat_it_as_local.
as well as:
delivery 232: deferral: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/

A lot of this junk filled the qmail logs. I still am not completely sure the exact reasons

what caused the problems. However I fixed the situation tweakening some of the common

qmail and vpopmail configuration files and respectively their cdb files.

Here is the list of files I got to rebuild and the things I've did to resolve the qmail issues:

cd /home/vpopmail/domains;
for i in *; do echo +$i-:$i:89:89:/home/vpopmail/domains/$i:-:: >>assign; done
# backup old assign file just in case something goes wrong
cp -rpf /var/qmail/users/assign /var/qmail/users/assign.bak
mv assign /var/qmail/users/assign
# backup virtualdomains list file
cp -rpf /var/qmail/control/virtualdomains /var/qmail/control/virtualdomains.bak
for i in *; do echo $i:$i >>virtualdomains; done
mv virtualdomains /var/qmail/control/
# Make sure your /var/qmail/control/rcpthosts contains all the vpopmail domains
# backup rcpthosts for laters
cp -rpf /var/qmail/control/rcpthosts /var/qmail/control/rcpthosts.bak
for i in *; do echo $i >>rcpthosts; done
cp -rpf rcpthosts /var/qmail/control/
# backup morercpthosts
cp -rpf morercpthosts /var/qmail/control/morercpthosts.bak
# overwrite the old morercpthosts
# in my case morercpthosts was missing all the vpopmail virtual domains
# thus the domains missing the file wasn't able to receive mail
cp -rpf rcpthosts /var/qmail/control/morercpthosts
# Another problem if you're using qmail check user patch might be in /var/qmail/users/recipients
# Thus rebuilding the recipients file is a good idea.
# Rebuilding it might be done through qmail-vpopmail2recipients script
# the script has a bug the last if statement, where two if's have to be commented to make it wokring
# Below I'll put a link to a working version of the qmail-vpopmail2-recipients script
# Another possible problem could be in /var/qmail/users/cdb
# Therefore it might be a good idea to rebuild it with
/var/qmail/bin/qmail-newu
# Another thing to do is to rebuild the /var/qmail/control/morercpthosts.cdb file with the command
/var/qmail/bin/qmail-newmrh
# Other things I did was
# to assure myself that /var/qmail/control/me contains my mail server host name
# /var/qmail/control/locals should contain "localhost" as well as the FQDN (Fully Qualified Domain Name) (e.g. your domain name)
# Also I checked my /etc/tcp.smtp and assured myself everything is correct there.
# After which I executed
qmailctl cdb
# That rebuilded my /etc/tcp.smtp.cdb file
# Well that was mostly what I did to fix my problems.
# Another think that might be a good idea is to try
cd /home/vpopmail/domains;
for i in *; do /home/vpopmail/bin/vdominfo $i; done
# If you observe some domain's domain info cannot be shown
# then that might be due to some problem with your vpopmail
# It might be a good idea to check your
/var/qmail/bin/qmail-showctl
# qmail-showctl is a handy diagnosis qmail tool
# While looking over the command output
# I had to make sure my cdb files are "Modified Recently"
# and my virtualdomains are all showing up
# THat's mostly what fixed qmail for me
# Next I executed
qmailctl stop; sleep 10; qmailctl start
# that restarted my qmail
# However qmail doesn't always start logging to /var/log/qmail directory right away
# after restart
# SOmetimes the qmail server needs a couple of restarts before it starts serving mail
# Thus restarting it is always full of uncertancies and a lot of broken nerves!

I love qmail it absolutely works brilliant as long as it works, quite often

if you do even minor changes that usually means a broken qmail and qmail hell again!

I truly hope this post could be helpful to somebody out there

Here is a link to a working version of qmail-vpopmail2-recipients

How to fix problems with encoding not showing umlauts in after import of sql data to MySQL

Thursday, October 1st, 2009

I’m restoring some websites from backups this days. One of the swiss websites had a serious problem with umlauts not showing up.
This happened right after I’ve used an old dump from a MySQL Server running version 4.x, the imported data was to MySQL server version 5. The problem consisted in that everywhere an umault was placed the shown content was ü.

You can imagine how annoying and ugly that looked, the whole text was crappy.
After some googling with a help of one of my colleagues (a programmer). I was pointed to this nice article Mysql Latin1 Utf8 Conversion .
What happens is that for some reason the dump I’ve made had latin1 character-set even though the data inside was in utf8.
Thus importing the dump would try to import the data as latin1 and make a crap out of it. The fix is as simple as substituting latin8 to utf8 in your mysql dump file and then reimporting it again.
In my case the browser displayed by default the website characters in iso8859 instead of utf8, so I had to specificly to change the browser encoding to UTF8 to realize all is okay.
Then it was necessery to modify all the templates to use UTF8 instead of the wrong character encoding. I have no clue how does it happened that the same umlaut encoding on the old server, what I suspect is there was something with the Apache’s default character encoding probably I have it set there by default set to utf8.
Well so far so good, let’s see how much trashy stuff I have to deal with today.
END—–

How to change stored password in Mozilla Thunderbird

Thursday, October 1st, 2009

Everytime I have to delete a wrong stored password in Thunderbird
I have to google in order to find the exact location of where
was the menu that allows me to delete the stupid wrongly typed
password. Therefore I decided to blog it just to make it easier
for me while looking for the dumb menu again and again.
Here is how to navigate to the stored password dialog:
Go to:Edit -> Preferences -> Privacy – Passwords -> Edit Saved PasswordsCheers!END—–