Thursday, December 17, 2009
We are using MySQL, help save it
Sunday, December 6, 2009
How to change KDE 4 startup sound
1. Open KDE System Setting
2. Double click on the notifications to open it.
3. For Event source, select KDE System Notifications as below.
4. From the list, select Login and click browse button to change the sound file.
From here, there are lots of options for you to try. Have fun!
Friday, December 4, 2009
Google Chrome 64-bit for Linux
After searching for hours for Google Chrome 64-bit for Mandriva 2010, I found this one works great. Please expect some bugs. At least flash plugin works with the help of Mozilla's. This package may work for other distro too. You have to try it yourself.
Thursday, November 5, 2009
Mandriva Linux 2010 released
To know what this edition has to offer, read here.
What really attracts me is this:
Mandriva Linux 2010 includes Go-OO branch of the popular OpenOffice.org. That means more features, like SVG support, 3D transitions, VBA support, KDE 4 integration and Includes useful extensions.
So for those who *really* need these features of Go-OO, should consider use this edition of Mandriva Linux.
Have fun!
Saturday, October 3, 2009
how to solve urpmi or rpm database locked error?
Have fun!
Sunday, August 30, 2009
Slackware 13 is ready
More details about the release can be found in the release notes and in the changes and hints and packages text files.
Wednesday, August 5, 2009
KDE 4.3 released
More info can be read on kde.org
Tuesday, July 21, 2009
Maatkit: A great MySQL toolbox
You can use Maatkit to prove replication is working correctly, fix corrupted data, automate repetitive tasks, speed up your servers, and much, much more.
Maatkit is sponsored by Percona, who releases it under the GPL and offers paid support and sponsorship of new features. Maatkit is hosted on Google Code and free support is available in the Maatkit Discuss Google Group.
What can Maatkit do and more can be read on the website.
Jeremy Zawodny highlights a few of his favorite utilities here.
Wednesday, July 1, 2009
Mozilla Firefox 3.5 released
Release notes can be read here.
Download latest firefox here.
Wednesday, June 24, 2009
Getting IP address from computer name using samba
nmblookup -I computername
Have fun!
Wednesday, June 10, 2009
Permanently redirect your client to https using apache webserver
These 3 lines are needed to put in /etc/httpd/conf/httpd.conf :
RewriteEngine onSo now test it. Should be ok. If not, check the log and troubleshoot.
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
Where to put them? Search Directory directive in httpd.conf. Below is sample from httpd.conf
on Mandriva.
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
Options -Indexes FollowSymLinks MultiViews
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit Indexes
AllowOverride None
# Controls who can get stuff from this server.
Order allow,deny
Allow from all
After putting those 3 lines:
RewriteEngine On
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
Options -Indexes FollowSymLinks MultiViews
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit Indexes
AllowOverride None
# Controls who can get stuff from this server.
Order allow,deny
Allow from all
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
That's the whole ball of wax.
Thursday, May 28, 2009
Handling tif image produced by MS Office Document Scanning
image.tif: TIFF image data, little-endian
[zamri@triniton KINGSTON]# convert image.tif -quality 90 kpd.jpg
I got this error:
convert: image.tif: unknown field with tag 512 (0x200) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.
convert: image.tif: unknown field with tag 513 (0x201) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.
convert: image: unknown field with tag 514 (0x202) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.
convert: image.tif: unknown field with tag 37677 (0x932d) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.
convert: image.tif: unknown field with tag 37678 (0x932e) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.
convert: image.tif: unknown field with tag 37680 (0x9330) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/525.
convert: compression not supported `image.tif' @ tiff.c/ReadTIFFImage/811.
convert: missing an image filename `kpd.jpg' @ convert.c/ConvertImageCommand/2776.
foremost -i image.tif -o image
audit.txt jpg/ ole/
In directory jpg, I got :
00000000.jpg 00000703.jpg
The file named 00000000.jpg was the image file type jpeg that can be opened with any image viewer. The other one was the thumbnail.
Friday, May 15, 2009
Mounting Mac OS X partition from Linux
So I mounted one of the partitions where he saved his work with this:
sudo mount -t hfsplus /dev/hda5 /mnt (for Ubuntu)
(If you are using other distro and logged in as root, just omit the sudo from above command.)
where /dev/hda5 is the partition and /mnt is the mount point.
From now, insert usb drive and copy file to it. After this, he can wipe out all partitions and/or reinstall Mac OS X.
Thursday, May 14, 2009
KDE 4.3 Beta 1 released for testing
Some highlights of this beta release are:
1.Integration of PolicyKit and Geolocation services
2.More usable Run command pop-up (press alt+F2 to activate)
3. Many new and improved add-ons for plasma
4. Many bugfixes and improvements across all applications and more integration of features coming with the KDE 4 platform
5. New tree mode in System Settings
and many more. For a complete list of changes, you can browse subversion log.
Reference
http://kde.org/announcements/announce-4.3-beta1.php
Thursday, April 30, 2009
Mandriva Linux 2009 Spring released
You can take the 2009 Spring tour, read the Release notes and Errata, and of course, download.
Source
Tuesday, April 28, 2009
Firefox 3.0.10 fixes critical vulnerability
The Mozilla developers have announced the release of version 3.0.10 of their open source Firefox web browser. The security and stability release addresses a critical security vulnerability introduced in Firefox 3.0.9.
The vulnerability is a regression which in some cases caused frequent crashes. Users running the HTML Validator add-on were particularly affected, although other users also experienced the crashes. The problem was due to memory corruption, similar to problems identified as security vulnerabilities in the past.
More details about the release can be found in the release notes. Firefox 3.0.10 is available to download, or Firefox users can use the Firefox update service by selecting Help, then Check For Updates.
Saturday, April 25, 2009
Testing Red Alert 2 with wine
Audio Setting
Run winecfg to change audio setting for wine.
Graphics Settings
Now it's ready to be run. See screenshots below.
Monday, April 13, 2009
postfix can't connect to MySQL
Apr 13 17:34:53 webmail postfix/smtpd[6726]: warning: connect to mysql server localhost: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Apr 13 17:34:53 webmail postfix/smtpd[6726]: NOQUEUE: reject: RCPT from rv-out-0506.google.com[209.85.198.233]: 451 4.3.0: Temporary lookup failure; from= to= proto=ESMTP helo=
I got a reference to MySQL database in my main.cf which triggered the error:
local_recipient_maps = mysql:/etc/postfix/sql-recipients.cf
#service type private unpriv chroot wakeup maxproc command + args
smtp inet n - y - - smtpd
So I changed the line to:
#service type private unpriv chroot wakeup maxproc command + args
smtp inet n - n - - smtpd
Voila!. It worked. See log below:
Apr 13 18:03:02 webmail postfix/smtpd[7039]: connect from rv-out-0506.google.com[209.85.198.239]
Apr 13 18:03:03 webmail sqlgrey: grey: domain awl match: updating 209.85.198(209.85.198.239), gmail.com
Apr 13 18:03:03 webmail postfix/smtpd[7039]: B3246A3075: client=rv-out-0506.google.com[209.85.198.239]
Apr 13 18:03:04 webmail postfix/cleanup[7042]: B3246A3075: message-id=<23c8d5620904130314j7f4c619di57c7d8c0d217ed62@mail.gmail.com>
Apr 13 18:03:04 webmail postfix/qmgr[7033]: B3246A3075: from=, size=2277, nrcpt=1 (queue active)
Apr 13 18:03:05 webmail postfix/smtpd[7046]: connect from webmail.myfakedomain.net[127.0.0.1]
Apr 13 18:03:05 webmail postfix/smtpd[7046]: 26BBFA3076: client=rv-out-0506.google.com[209.85.198.239]
Apr 13 18:03:05 webmail postfix/cleanup[7042]: 26BBFA3076: message-id=<23c8d5620904130314j7f4c619di57c7d8c0d217ed62@mail.gmail.com>
Apr 13 18:03:05 webmail postfix/qmgr[7033]: 26BBFA3076: from=, size=2751, nrcpt=1 (queue active)
Apr 13 18:03:05 webmail postfix/smtpd[7046]: disconnect from webmail.myfakedomain.net[127.0.0.1]
Apr 13 18:03:05 webmail dbmail/lmtpd[20480]: Message:[serverchild] serverchild.c,PerformChildTask(+349): incoming connection from [127.0.0.1] by pid [20480]
Apr 13 18:03:05 webmail postfix/lmtp[7043]: B3246A3075: to=, relay=127.0.0.1[127.0.0.1]:10025, delay=2, delays=0.96/0.01/0/1, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=01032-05, from MTA([127.0.0.1]:10026): 250 2.0.0 Ok: queued as 26BBFA3076)
Apr 13 18:03:05 webmail postfix/qmgr[7033]: B3246A3075: removed
Wednesday, April 8, 2009
CUPS: Unable to open device and permission denied
Unable to open device "hal:///org/freedesktop/Hal/devices/usb_device_3f0_217_00SGKGB09615_if0_printer_noserial": Permission denied
These steps what I did to solve it:
1. cd /usr/lib/cups/backend
2. chmod 700 hal (previously 755)
3. chmod 700 usb (previously 755)
I hope this saves some people's time of head scratching.
Wednesday, April 1, 2009
clamav detects conficker
Taken from http://www.clamav.net/2009/01/29/conficker-aka-downadup/
Some of you may have heard of a current major outbreak of a virus known as Downadup that has been reported at http://news.bbc.co.uk/1/hi/technology/7842013.stm and http://news.bbc.co.uk/1/hi/technology/7832652.stm. It has been estimated that move than 9 million PCs are infected across the world.
ClamAV detects Downadup, also known as Conficker, as Worm.Downadup. Once on a system it downloads components that ClamAV detects as members of the Trojan.Downloader- family of signatures.
The virus primarily exploits MS08-067; it can also spread through USB sticks. Since the virus is not spread by email we don’t expect to see much activity in our core user-base, which tends to use ClamAV to scan emails. We are, nevertheless, keeping an eye out for it through freshclam’s statistics gathering system – we are yet to see any obvious spike of activity from it. If we hear anything we’ll let you know.
Saturday, March 14, 2009
Saving date and time to hardware clock manually
hwclock --systohc
and obviously, you have to run it as root.
dbmail and database default character set
In syslog before changing the character set:
Mar 14 13:01:54 webmail.fakedomain.com.my dbmail-imapd[13986]: Error:[sql] dbmysql.c,db_mysql_check_collations(+138): collation mismatch, your MySQL configuration specifies a different charset than the data currently in your DBMail database.
Mar 14 13:01:54 webmail.fakedomain.com.my dbmail-imapd[13986]: FATAL:[server] server.c,StartServer(+129): Unable to connect to database.
To change default character set of a dbmail database:
ALTER DATABASE dbmail DEFAULT CHARACTER SET utf8;
In syslog after changing database default character set:
Mar 15 13:20:29 webmail dbmail/imap4d[14107]: Message:[server] pool.c,child_register(+299): register child [14107]
Mar 15 13:20:29 webmail dbmail/imap4d[14109]: Message:[server] pool.c,child_register(+299): register child [14109]
Mar 15 13:20:29 webmail dbmail/imap4d[14111]: Message:[server] pool.c,child_register(+299): register child [14111]
Mar 15 13:20:29 webmail dbmail/imap4d[14113]: Message:[server] pool.c,child_register(+299): register child [14113]
Mar 15 13:20:29 webmail dbmail/imap4d[14101]: Message:[server] pool.c,scoreboard_state(+590): Scoreboard state:children [4/10], spares [4 (2 - 4)]
Thursday, February 26, 2009
packagekit and Mandriva Cooker
Let's see some screenshots of it.
Thursday, February 5, 2009
Login with admin privilege can make matters worse
A new analysis claims that over 90% of the Windows
BeyondTrust Corp. (BTC), a software
The report issued by BTC was prepared by assessing security vulnerability bulletins released by Microsoft in 2008, and identifying specific "mitigating factors" (those that could reduce or negate the risk of an attack) within the bulletin. If Microsoft reported that having fewer security privileges would negate or eliminate risk, BTC concluded that the vulnerability was admin-privilege related.
The result of the analysis of the 154 critical Microsoft vulnerabilities indicated that a full 92% could have been prevented if users were not logged into their systems with administrator status. BTC believes that restricting the number of users who can log in with these privileges will "close the window of opportunity" for attackers. This is particularly true for users of Internet Explorer and Microsoft Office. (Source: computerworld.com)
Microsoft has been relatively transparent in their revelation of security vulnerabilities, and has worked with organizations such as Cert.org to identify and address security concerns to the online community. (Source: cert.org)
While Microsoft is not denying the vulnerabilities present in its various Windows operating
I think Microsoft users should be told that using admin privilege accounts is a potential security risk. I found out that many of them don't want to use normal/limited account for their daily account.
Linux users always use ordinary account (non-root acount) to do tasks that do not require admin/root privileges. Ubuntu users for example used to sudo command to do admin tasks like installing packages, upgrade packages etc. Other Linux users are very familiar with su command to do the same tasks. Certain apps will warn you if you run them as admin (ie root). This way Linux users reduce the risks of being infected or attacked by viruses, worms and other types of malwares.
Thursday, January 22, 2009
How to setup a https server with apache
Saturday, January 10, 2009
Linux 2.6.28's five best features
While you were likely to be opening up Christmas presents, Linus Torvalds was giving Linux users around the world a special present: the release of the next major Linux kernel: Linux 2.6.28 [1].
We had some time to tinker with this latest and greatest Linux, and it's my kind of Christmas present: solid improvements to my favorite operating system. Here are the five features that I think most of us will appreciate the most as we move into the New Year.
1) Ext4
The next step up in Linux file systems, has finally arrived. Ext4 [2] improves, well, everything about hard drive storage. It gives you larger file-system and file sizes, faster I/O, better journaling, and it can defragment your drive on the fly.
In particular, its delayed allocation functionality greatly improves hard disk write performance. This won't help your PC hard drive that much, but if you're running a database server, you'll see significant improvements. How fast is 'significant?' In my informal tests with MySQL 5.0, I saw write-speed boosts of approximately 30% on a 400GB database. Try it yourself on your servers, you'll be impressed. In addition, since Ext4 can handle up to 1024 petabytes per volume. I expect Ext4 and Sun's ZFS are going to be fighting it out for top server file-system for the next ten-years.
2) GEM Memory Manager for Graphics
Linux is finally getting decent support from the major graphic vendors, like ATI [3] and NVIDIA [4]. That's great, if you have a high-end graphics card with its own memory and processor. But, say you're like the rest of us without much money and you're using the graphics that are built into your motherboard? Linux will run fine on your PC, but your graphics won't be that fast. Until now.
With Linux 2.6.28, GEM (Graphics Execution Manager [5]) Linux finally includes a graphics memory manager. This will matter your graphics memory whether it's on a dedicated card or part of your main memory. By providing a central, common memory manager, GEM enables even ordinary graphics, like the popular and cheap Intel 915 chipset, to run 50% faster [6]. That's a performance boost that anyone can see.
GEM is still very much a work in progress. At this time, only the 915 is fully supported. Other graphic chip developers though are already hard at work getting their drivers to work with GEM. This graphics memory manager will not only make their lives easier, it will also deliver much faster performance for both low-end and top-of-the-line desktop users. In short, GEM may not be much now, but it's going to be a win-win for everyone by this summer.
3) Disk Shock Protection
Ever drop a laptop? I have. So far, I've been lucky and I have smacked a hard drive silly. Laptop vendors know they can't count on everyone being lucky so they've been incorporating drop protection into their notebooks and netbooks.
This works by moving the hard drive read/write heads away from the disk if the laptop detects that it's moving quickly and is likely to be slamming on the floor in a few milliseconds. Until now, though, Linux didn't know a thing about this kind of protection. So, you could end up with Linux trying to get the drive heads to write while the drive firmware was trying to move the out of the way before laptop and concrete had a sudden, violent meeting. Now, Linux will work with most of these fumble-finger proof hard drives. Speaking for klutzes everywhere, I'd like to say thank-you.
4) Staging Drivers
Did you ever want to use a device for Linux where there was 'some' support for it, but it wasn't good enough to be in the main kernel? If you use a lot of new hardware, you've probably been there. As Jake Edge reports [7], "There has been an ongoing struggle between those who want to see drivers get included as quickly as possible versus those who want to see them approach or attain normal kernel quality levels first." He's got that right.
Greg Kroah-Hartman, who has been leading Linux hackers' efforts to create drivers [8], created the -staging tree for these, not quite ready for prime-time drivers. You don't have to use them, but they're available there if you need them. For example, I wanted access to USB/IP. This driver enables you to USB devices over a TCP/IP network. I'm using it to access printers that are attached to a Belkin Network USB Hub [9]. Is it perfect? No. But it does let me get to those printers so that's a win in my book.
5) Network improvements
The 2.6.28 kernel includes new support for UWB (Ultra Wide Band), Wireless USB, UWB-IP, and Nokia's mobile phone Phonet Network Protocol. That's all well and good, but unless you're one of the few who work with UWB or Phonet, I'm not sure how important that will be. I do think Wireless USB will end up being a big deal. That said, what I think is easily the neatest improvement in 2.6.28's improved networking is that it now supports the minstrel Wi-Fi rate control [10].
Chances are you haven't heard about minstrel. Once you have it on your Wi-Fi equipped computer though you'll wonder how you ever lived without it. Minstrel keeps a constant watch on which Wi-Fi AP (access points) in your area are delivering the fastest possible performance and automatically hook you up with it. With minstrel, you're pretty much guaranteed to always get the best Wi-Fi connection that's available. I like this. I like this a lot. Frankly, based on what I've been seeing while using it with my Linux-powered ThinkPad R61, I'd upgrade to 2.6.28 for this feature alone.
So, my advice to you, is that it any of this sounds good, you can either upgrade your PC to Linux 2.6.28 manually, which is what I did, or you can start encouraging your favorite Linux distribution group to move to 2.6.28 sooner rather than later. You'll be pleased you did.
http://blogs.computerworld.com/linux_2_6_28s_five_best_features
Links:
[1] http://lkml.org/lkml/2008/12/24/105
[2] http://ext4.wiki.kernel.org/index.php/Main_Page
[3] http://practical-tech.com/infrastructure/amd-partners-with-novell-to-open-source-ati-graphic-drivers
[4] http://www.nvidia.com/object/unix.html
[5] http://lwn.net/Articles/283793
[6] http://lwn.net/Articles/283798
[7] http://lwn.net/Articles/301192
[8] http://practical-tech.com/infrastructure/linux-hackers-offer-to-create-device-drivers-for-free
[9] http://www.belkin.com/networkusbhub
[10] http://wireless.kernel.org/en/developers/Documentation/mac80211/RateControl/minstrel
Renew letsencrypt ssl certificate for zimbra 8.8.15
Letsencrypt certs usually consists of these files: 1. cert.pem 2. chain.pem 3. fullchain.pem 4. privkey.pem I am not going to discuss about...
-
Linux bash history with Page up / Page down In linux you can configure the pgup/pgdown keys to navigate through commands you typed that...
-
I've installed latest squid (3.2.0.3) recently from source. I configured it with --with-icmp to enable incoming icmp request. After com...
-
postfix is my MTA of choice. I use it for my mailserver because its simplicity , security and sendmail-compatible (the widely used smtp in...