Posts

"Fatal error, run database recovery" problem

If you encounter the following problem during install/update in Linux (In my case it is SuSE Linux 10.0), it is probably that you run BOTH "install new update" and "Update" at the same time. db_recover: DB_ENV->open: DB_RUNRECOVERY: Fatal error, run database recovery To resolve this problem, in command prompt, issue the following command: rpm --rebuilddb to rebuild the RPM db as it is already corrupted. Hope it helps.

New experience on using SpamAssassin - 2

My bad day today. Here is my solution (hope) on fixing the problem of Spamassassin about a question that spamassassin cannot identify a spam: At first, I try to identify the problem but no luck. The final decision I made was: uninstall the package. So, firstly I type: rpm –e spamassassin # success then I type: yum install spamassassin # success The above install script ONLY install the Fedora 4 version, at writing time is 3.0.6-1. However, in the official website the latest stable version is 3.1.3. Then I uninstall that old version. Reinstall the new version in tar.gz format. Since I am not very familiar with using tar.gz to install (Well, actually I did the following: perl –MCPAN –e cpan> cpan Mail::SpamAssassin make make install however no luck again), I just gave up using that method and using another rpm method: rpmbuild. Please alert that: rpmb...

New experience on using SpamAssassin

- To test if spamassassin worked, use: spamc -R /sample-spam.txt It will return the report which identified if the message passed in is a spam or not. - To use spamc in procmail for large size email: I have read several online document that to combine spamassassin and procmail, administrator should add the following line in /etc/procmailrc DROPPRIVS=yes :0fw | /usr/bin/spamc The above 2 lines pipe the message to spamc. To enable large email support, add the following: | /usr/bin/spamc -s 8000000 which, 8000000 is the size in KB of email. In other words, user can add suitable spamc switch of spamc which suit your needs. However, I still cannot find any solution on how to solve the 0/0 problem when, at first, when I run the spamc test, I just got 0/0. Then after run several "spamc" command, it works again... Strange...

My experience on using Darvas Box

This is my first blog about stocks. First of all, if you have already read the book written by Nicolas Darvas named "How I Made $2,000,000 in the Stock Market", you will know what this box is, and I won't explain it here. After 1 month more practise(using my real money and make some dummy decision), I found that there are several points worth notice. Before going on, reader should alert that this is my experience, and this doesn't consitute to any suggestions and the writer(that's me) won't take any responsibilities regarding to this. 1. What the book said: when the price rises higher than previous top price, even if how small the new price exceeds, we should buy the stock at once. My experiences: This is correct, PROVIDED THAT the price flow before the "sudden rise" is flat. For example, if stock A's price range is: $0.6 - $1, and this range is formed for quite a long time, say from Jan 01 - Jun/Jul 01, and suddenly the price rise with high v...

The solution of "DCOPserver" error

Scenario: on 10/5/2006, I normally start my linux using root account. Maybe my machine is too old (bought 10 years ago: Pentium 3 450, 384MB ram, 10G HD), when I opened firefox, Kate(a notepad-like text editor), Konqueor(with a java page loading at the same time) and Openoffice Calc(a M$ spreadsheet file), the system got hung up... Since I cannot press Ctrl-Alt-Del to reboot linux, I press the "reset" button on my computer (Cold reboot), and when the machine reboot and go to GRUB, it delayed for serveral seconds, then go to login page successfully. Once I type the root username and password, I got the following error: ... Cannot read network connection list: /root/.DOCPserver_linux__0 ...make sure your DCOPserver is running... Solution: At first, I reboot the machine but no luck. Then I google the phrase: network connection list, a user in a forum mentioned that people who got this problem should cleanup the /tmp folder under /. I did it immediately. BTW, although I cannot...

Sendmail relay config

To allow relay of certain host, add a new record in /etc/mail/access in sendmail server. For example, if you want your sendmail server to be used by an outsider who want to send email to another outsider(relay), add a record in /etc/mail/access file as follow: youcanrelaymyserver.com youcanalsorelaymyserver.net youcanrelaytoo.org

Sendmail config

I received an error about "mail loops back to me" in sendmail today. I found several solutions from Google below: - add your hostname in /etc/mail/local-host-name - DNS error - add your hostname in /etc/sendmail.cw (actually I cannot find this file, but the whole idea is, add your hostname to Cw file and everything will be ok). But none of the above work. It is also not caused by spamassassin(an anti-spam linux software from apache) as the correct answer is: Don't config the SMART_SMTP option in sendmail.mc After I add "dnl" before the above directive to disable this, I can send email from my company to Gmail, and from Gmail to my company account. That's it. Just log it in case I forgot.