Qmail Log Analysis and Report tools

There have been many posts asking about email statistics, so here's a little report on the tools I've tried. All of the following are relatively simple schemes (no programming skills required) which readily produce email stats from Plesk's existing Qmail logs.

Note: The paths shown are for Plesk 8.3 with CentOS 5. For other systems there may be some variation in paths.

First a couple of simple, reliable approaches... these are my favorites:

1) This first scheme uses awk for filtering and qmailanalog (http://cr.yp.to/qmailanalog.html) for the log analysis.

Note: When compiling qmailanalog on CentOS 5, it was necessary to first apply the 0.70-errno.patch, see for example http://www.qmailrocks.org/qmailanalog.htm

Note: If using qmailanalog results in an error message such as 'sort: open failed: +2: No such file or directory', then you'll need to edit the three files zdeferrals, zfailures and zsuccesses in /usr/local/qmailanalog/bin, replacing 'sort +2' with 'sort -k 3', in zrhosts and zrecipients replace 'sort +4' with 'sort -k 5', and in zsuids replace 'sort -n +7' with 'sort -n -k 8'. See 'info sort' for more information about the sort problem (clue: the old sort used zero based numbering). To make these changes to the qmailanalog source before compiling, use the patch file at http://www.korsten.org/misc/qmailanalog-sort.patch .

To see a text report from the current log:

cat /usr/local/psa/var/log/maillog | awk '/qmail:/ {$1="";$2="";$3="";$4="";$5="";print} ' | /usr/local/qmailanalog/bin/matchup | /usr/local/qmailanalog/bin/zoverall | more

To see an overall report from a zipped log:

gunzip -c /usr/local/psa/var/log/maillog.processed.1.gz | awk '/qmail:/ {$1="";$2="";$3="";$4="";$5="";print} ' | /usr/local/qmailanalog/bin/matchup 5>/dev/null | /usr/local/qmailanalog/bin/zoverall | more

To see percentage distribution of delays:

gunzip -c /usr/local/psa/var/log/maillog.processed.1.gz | awk '/qmail:/ {$1="";$2="";$3="";$4="";$5="";print} ' | /usr/local/qmailanalog/bin/matchup | /usr/local/qmailanalog/bin/zddist | less

To see delivery delay to each recipient:

gunzip -c /usr/local/psa/var/log/maillog.processed.1.gz | awk '/qmail:/ {$1="";$2="";$3="";$4="";$5="";print} ' | /usr/local/qmailanalog/bin/matchup | /usr/local/qmailanalog/bin/zrxdelay | less

There do not seem to be any features included in qmailanalog to automatically capture the fragments of messages which begin in one log and are resolved in the following log. Nonetheless, the various different qmailanalog reports are quite useful, and the number of missed emails at log rotation should typically be small compared to the daily total.

2) If you just want to run a quick sanity check, to get an idea if anything in the email system has gone berserk, here's a quick way using awk. This scheme might be used, for example, in a simple script which decides to send an email to an admin if the number of emails suddenly exceeds some reasonably expected threshold. (remember that unless the logs happen to be changed at precisely midnight, the log file will only include a portion of the first day and a portion of the last day of that log)

To see the total number of successes and failures included in the log:

gunzip -c /usr/local/psa/var/log/maillog.processed.1.gz | awk '/qmail:.*success:/ {s++} /qmail:.*failure:/ {f++} END {print s, "successes\n", f, "failures"} ' | more

Or, to see the number of qmail successes for each of the individual days which are included in the log:

outgoing success:

gunzip -c /usr/local/psa/var/log/maillog.processed.1.gz | awk '/qmail:.*success:.*accepted_message/ {print "qmail outgoing success on", $1, $2} ' | uniq -c | more

incoming and outgoing, success and failure:

gunzip -c /usr/local/psa/var/log/maillog.processed.1.gz | awk '/qmail:.*success:.*accepted_message/ {print "qmail outgoing success on", $1, $2} /qmail:.*success: did_/ {print "qmail incoming success on", $1, $2} /qmail:.*failure: Unknown_R/ {print "qmail incoming failure on", $1, $2} /qmail:.*failure:.*Remote_host_/ {print "qmail outgoing failure on", $1, $2}' | sort | uniq -c | more

Next, here are a couple of approaches that I've ended up abandoning.

3) I've also experimented with isoqlog http://www.enderunix.org/isoqlog/. The output is html, and provides only the most basic information about number of messages sent and received. Isoqlog is easy to install, especially using the instructions at http://www.qmailrocks.org/extra/isoqlog.htm

The html reports produced by isoqlog are very limited, showing only sent, received and total for each day. And worse yet, while isoqlog apparently works fine for some Plesk users, even with a cron call every hour on my system isoqlog is only counting about 10% of my server's actual mail. So... perhaps it may work for you, or perhaps not. Personally, I've given up on isoqlog.

4) Another scheme uses the lire (http://logreport.org/dl.html) routines for both the filtering and the log analysis. The log analysis package called lire-2.0.3 happily accepts the Plesk qmail log file.

Lire can create reports in many formats including text, HTML and PDF. If you install lire with Ploticus, the HTML will even include plots. The reports are quite detailed with regard to number of messages to/from various domains and various users, and also include some simple statistics such as delay.

Lire includes support for saving the log analysis in an xml Dlf Store so that various reports can be made, including merging analyses for weekly, monthly and yearly reports.

However the poor documentation, tedious setup, cryptic error messages, and the fact that there has not been any further development work on lire since 2004 have all led me to abandon further use of lire.

Typical usage to view a command-line text report:

gunzip -c /usr/local/psa/var/log/maillog.processed.1.gz | /usr/local/bin/lr_desyslog qmail | /usr/local/bin/lr_log2report qmail | less

Some other email log analysis options to consider:

5) It would be nice if somebody would offer a simple and efficient package to get graphics as detailed and nice looking as shown in the article at http://forums.cacti.net/post-145427.html#145427 ... very nice apearance, a lot of info in a compact presentation.

6) Awstats provides detailed information about the number of emails being sent and received by the server, as well as the senders and recipients. However, the majority of the stats lump all of the incoming mail and outgoing mail together, simply calling it "sent mail", which makes the whole report rather useless. That's a pity, it would be quite uesful to see separate graphs of incoming and outgoing mail.

Unfortunately, Awstats does not provide any information at all about message delays, which are very important when trying to understand queue and delivery issues. Another unfortunate situation is that the plesk maillog does not contain any information about the number of spam rejects or the queue size, both of which would be nice to be able to keep an eye on. Nonetheless, since it's already installed, awstats does provide a convenient way to get some very basic email stats.

You can see a sample of a typical awstats email report at http://awstats.sourceforge.net/awstats.mail.html .

Configure Squid proxy to redirect to Parent Proxy if direct Internet fails


Here is the config to configure Squid proxy to redirect to parent proxy.

http_port 8080
acl manager proto cache_object
acl localhost src
acl to_localhost dst
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 443 # https

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all

icp_access deny all
htcp_access deny all

cache_peer parent 3128 0 name=prod default

prefer_direct on
cache_peer_access prod allow all

hierarchy_stoplist cgi-bin ?
cache_mem 4000 MB
maximum_object_size_in_memory 5000 KB
cache_dir ufs /var/cache/squid 100000 64 512
maximum_object_size 40960 KB
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
pid_filename /var/log/squid/squid.pid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern (cgi-bin|\?) 0 0% 0
refresh_pattern . 0 20% 4320
icp_port 0
coredump_dir /var/cache

Playing DVD Movies in Ubuntu

Playing DVDs

In order to play DVDs you must install some additional software. Unfortunately, DVD support cannot be provided by default in Ubuntu due to legal restrictions in some countries.

Read about restricted formats before following the instructions below. There are some legal issues that you should be aware of.


Install the libdvdnav4, libdvdread3 and gstreamer0.10-plugins-ugly packages.

If you would like to play encrypted DVDs, press Applications → Accessories → Terminal and type the following into the screen which appears, followed by the Enter key:

sudo /usr/share/doc/libdvdread3/install-css.sh


Enter your password if prompted. The libdvdcss2 package will be downloaded and installed from a website.

Insert a DVD into your drive. It should open automatically in the Movie Player.

Where have the menus on my DVDs gone?

DVD menus are not currently supported by the default Movie Player. To be able to use the menus on a disc, you must install an alternative movie player such as gxine or VLC.

To make DVDs automatically play in the alternative movie player when inserted, open Places → Home Folder, click Edit → Preferences and then click the Media tab. Select the alternative player from the DVD Video list.
How can I get my videos to play?

Some video formats, such as Flash, QuickTime, and Windows Media Video, are proprietary and so support for them cannot be included in Ubuntu by default. You must install some extra software to allow playback.

In order to play the most common proprietary formats in the Totem movie player or Firefox web browser, install the ubuntu-restricted-extras package (see Restricted Software for more information).
Video files

(e.g. QuickTime, Windows Media)

If you try to play an unsupported video file, you will be asked if you would like to search for a suitable codec. Click Search and, when the Install multimedia codecs window appears, select one of the codecs displayed in the list and click Install.

If you are asked to confirm installation of restricted software, the codec required to play your video may have some legal restrictions which you should be aware of. If you think that the restrictions do not apply to you, press Confirm to continue with the installation.

Once installation is complete, the video should begin to play. If not, try closing and then re-opening the video.
Flash videos

(e.g. Youtube, iPlayer)

When you first try to play a Flash video in the Firefox web browser, a bar will appear at the top of the window saying that additional plugins are required. Press the Install Missing Plugins button and follow the instructions on-screen to install a Flash player.

You will be offered the choice of several players. The Adobe Flash Player is the official plugin, which should offer the best support for videos. Unfortunately, it is proprietary software and so cannot be supported directly by Ubuntu. The Swfdec and Gnash players are not proprietary and so are supported. You may also find them to be more stable (cause fewer problems) than the official player.
Streaming video

(e.g. RealVideo)

The most reliable way of playing RealVideo-format videos is to install the official RealPlayer software. See Installing and configuring RealPlayer for full instructions.

Support for most other types of streaming video can be added by following the instructions for video files or Flash videos. If you are having difficulties getting a video to stream in your web browser, right-click the video and select Open with "Movie Player" if that option is available.
Videos that are otherwise unsupported

If none of the other instructions in this section work with a particular video, try using a different media player. VLC and MPlayer support a wide range of formats; it is recommended that you try one of these.
Installing and configuring RealPlayer

RealPlayer is a proprietary application, and so is not installed in the usual way.


Download a suitable Linux installer from the RealPlayer website and save it in your Home folder.

Open a Terminal (Applications → Accessories → Terminal) and type the following, pressing Enter at the end of each line and typing your password when prompted:

sudo chmod a+x RealPlayer*
sudo ./RealPlayer*


You should see the text Extracting files for Helix installation on the screen if the installer has started properly. When asked a question by the installer, press Enter to accept the default.

When the installer has finished copying files, press Applications → Sound & Video → RealPlayer 11 and follow the instructions on the screen to complete set-up.

Install Ubuntu Intrepid Ibex 8.10 on the Acer Aspire One

Note: There is also a new page, AspireOne110L, targeted at the Aspire One 110L (the version with an 8GB SSD) and Intrepid Ibex, using much of the information below.

Note Kernel 2.6.27-11 breaks the wired ethernet interface. Bug 313866 has been verified: https://bugs.launchpad.net/ubuntu/+bug/313866 Add to the information to help. Revert to an earlier kernel to fix the wired interface for now.

Note Reports have been made that after returning from suspend WiFi quits working as does Gnome-Power Manager. If you are having a problem with either of these, please start a discussion and looks for fixes. [Seems to be fixed by workaround, see below]

Status: Currently installing ( 1.6Ghz, 120GB harddrive )

Install Ubuntu

As the Acer Aspire One doesn't have a CD drive you must install with an USB drive or an external CD-ROM drive.

Shut down your Aspire One and insert the external USB CD-ROM or the USB stick that we just used. Turn it on and tap F12 to bring up the boot menu.

With a CD-ROM, choose the USB CD-ROM option. With the bootable USB stick created, choose the USB HDD option. This will boot you to the USB CD-ROM/LiveUSB stick, and allow you to install Ubuntu. Install it like normal if you have the hard disk Aspire One. If you have the SDD Aspire One, for good performance and to increase the life of the SSD use a non-journaled filesystem like EXT2.


Note: If you have already installed with EXT3 then follow this post: http://www.aspireoneuser.com/forum/viewtopic.php?f=5&t=164&st=0&sk=t&sd=a&start=10#p1177 to convert to EXT2.

Installation (file copy) will take a LONG time (hour +). If you are not currently connected to the internet on a wired connection, you may get an error about setting up a mirror. You can safely ignore that error - it's non-fatal.

Fully functional:

* Suspend / Resume [ works out of box ]
* Video (with desktop effects)[ works out of box ]
* Wireless Networking [ ath_pci loads by default instead of ath5k, but the fix is easy (see below)]
* wifi power saving [ works out of box ]
* Wired Networking [ works out of box ]
* Webcam [ works out of box ]
* USB [ works out of box ]
* Silent Fan [ fan works, silent?? needs scripts ]
* Audio [ semi-working (output only), internal mic DOES NOT WORK on 2.6.27*; mic can be fixed by updating alsa; audio output over speakers broken since kernel; ]
* Card Reader power saving [ not tested ]

Partial Function:

* wifi kill switch [ working, but no notification ]
* Card Readers, Bios 3109 [ Work out of the box, but write errors after suspend and on SDHC cards]
* Card Readers, Bios 3305 [ Pre Only right card reader works after setpci described above; no SDHC support]
* Card Readers, Bios 3305 [ Both card readers work again after setpci described above; no SDHC support, but at least the insertion of cards is automatically detected.]

Not Functional:

* Hibernate on A110L [ Seems to work for for some if there is a swap partition that is big enough so we can suspend to it. Test carefully before using!. ]

Wireless module


There has been some confusion as to which wireless driver provides the best performance and reliability. I have found the following:
o madwifi from kernel (ath_pci) - does not attach to hardware.
o ath5k from intrepid backports (ath5k) - connects to hardware, but experiences disconnects on medium to heavy wireless activity, and can not communicate with some AP's using WPA2 PSK.

madwifi-hal from http://snapshots.madwifi-project.org/ (ath_pci) - Everything works.

I recommend using the most recent snapshot of madwifi-hal from http://snapshots.madwifi-project.org/

wget http://snapshots.madwifi-project.org/madwifi-hal-
sudo apt-get install build-essential linux-headers-$(uname -r)
tar -xzf madwifi-hal-
cd madwifi-hal-*/
sudo make install
modprobe ath_pci


You may have to append ath_pci to /etc/modules:

# /etc/modules: kernel modules to load at boot time.
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.



This driver should work under all conditions. I have tested the driver under heavy load (3MB/s sustained for 2 hours, no hangup), tested for correct suspend/resume functionality, and verified it communicates correctly with WEP, WPA, WPA2, against recent Linksys, Dlink, and Cisco hardware.

Now you should create a script to restart the interface on awake from suspend mode, as it will otherwise hang. As root, create /etc/pm/sleep.d/00wireless:

# Restart WiFi interface after suspension

case "$1" in
/sbin/ifconfig wifi0 down
/sbin/ifconfig wifi0 up

exit $?

Don't forget to make it executable:

sudo chmod u+x /etc/pm/sleep.d/00wireless

Wireless LEDs

* the wireless leds need an entry in /proc
* with wireless on/off works, but there is no notification in Gui

"To get your wireless led to blink for you based on traffic, put these lines at the end of /etc/sysctl.conf."


Then either reboot or do sysctl -p

The led on the front will now do the association blink, as well as blink based on wireless traffic.


* Output works, Volume Ok. Audio switches from speakers to headphone

Internal microphone not working, http://git.alsa-project.org/?p=alsa-kernel.git;a=commitdiff;h=8ef355da64ff087b6f26c4c28a14753861e83e4b hopefully fixed this (available in 2.6.28-rc2); probably need to try to get this as a 2.6.27 -stable backport, into 8.10 already (or some ubuntu module backports package).
* Microphone worked for me out of the box on Acer Aspire One 150. I installed Skype and it worked fine!

There appears to be a mono/stereo incompatibility, see http://lkml.org/lkml/2008/11/22/155
* Maybe sound stops working after suspending and then resuming if this happens to you, add the following to the end of /etc/modprobe.d/options

# enable sound after suspend on Aspire One LP#249961
options snd-hda-intel model=acer


After installation of Intrepid on Aspire One Model NO:ZG5 (chip 82801G, from lspci) audio worked fine, but microphone did not. There were an input device, however gnome-sound-recorder hanged on recording and pacat produced noise, that had no relation to real sounds. Upgrading alsa to 1.0.18a fixed all microphone issues: gnome-sound-recorder started to produce quite a clear record of sounds. External mic has also been tested, results are positive. To upgrade alsa, download alsa-driver-1.0.18a.tar.bz2 (or later, 1.0.18a tested on 19 Jan 2009) from http://alsa-project.org/, unpack the archive, open terminal, cd into a newely-created folder and run the following commands:

sudo apt-get install build-essential linux-headers-$(uname -r)
./configure --with-cards=all
sudo make install

These commands will build new alsa drivers and copy them to a proper location. After rebooting, adjust microphone volume, that is set to zero by default and test microphone with gnome-sound-recorder.

Add the following to the end of /etc/modprobe.d/options after installing alsa this way:

options snd-hda-intel model=acer-aspire

Not simply "model=acer"!

External Video

* external video connector works with external monitor

Set Correct Font Size

(copied from Debian Acer Aspire One Help) When running under X, the native/optimum resolution is 1024x600 (standard widescreen ratio). The default X11 configuration will give you fonts that are too large for this resolution - You can add the following line to the "Monitor" section of your "/etc/X11/xorg.conf" file:


DisplaySize 195 113

And add the line:

* Option "NoDDC"

to the "Device" section.

That sets the resolution to the correct 96 DPI.

Note: This worked fine for me in kubuntu as the fonts were big. ubuntu seems to have better font sizes.

Setup fan controll as described above

rc.local may not be executable so
sudo chmod a+x /etc/rc.local
comment out the line /usr/sbin/set-usb-persist 0951 1606 on

Install NetBook Remix


1: Disable Visual effects


2: Set WorkSpaces to 1x1

( right click workspaces --> preferences )
3: add the Repo for netbook-remix

Add source:
deb http://ppa.launchpad.net/netbook-remix-team/ubuntu intrepid main
deb-src http://ppa.launchpad.net/netbook-remix-team/ubuntu intrepid main

Or In a terminal type:
sudo gedit /etc/apt/sources.list

This will bring up your source list. then add these two lines to the end of your source list:
deb http://ppa.launchpad.net/netbook-remix-team/ubuntu intrepid main
deb-src http://ppa.launchpad.net/netbook-remix-team/ubuntu intrepid main
In a terminal type:
sudo apt-get update
To update your source lists.

1. Install the Netbook remix packages

In a terminal type:
sudo apt-get install go-home-applet human-netbook-theme maximus netbook-launcher window-picker-applet

You also need to set maximus and ume-launcher startup programs
add /usr/bin/netbook-launcher
add /usr/bin/maximus

logout/login, or restart if that doesn't work

Note: VLC does not play well with maximus. If you are going to use VLC I suggest you disable maximus

1. Maximize your work area

To maximize your workspace area, you might want to remove the bottom pane, by right clicking the bottom panel and selecting the "Delete this Panel" option.

logout/login, or restart if that doesn't work

1. Configure the Top Panel

To get the most from your top panel you will want to add functions to your top panel. Right click the top panel and select the "Add to the Panel" option.Some suggestions include: GoHomeApplet, WindowPickerApplet, NotificationArea, and VolumeControl.

Install Ubuntu Hardy Heron (8.04.1) on the Acer Aspire One

Fully functional:

* Suspend / Resume
* Video (with desktop effects)
* Wireless Networking
* Wired Networking
* Webcam
* Silent FanSIG
* Card Readers

Partial Function:

* Audio - there is sound, issues detailed below

Not Functional:

* Hibernate on A110L
* Card Reader power saving
* wifi power saving
* wifi kill switch

Step 1: Install Ubuntu

As the Acer Aspire One doesn't have a CD drive you must install with an USB drive or an external CD-ROM drive.

(NOTE: It is also possible to install directly from network, which makes USB devices unneeded. You will still need a network cable and another computer. See: Installation/Netboot or Netinstall via Windows)

Shut down your Aspire One and insert the external USB CD-ROM or the USB stick that we just used. Turn it on and tap F12 to bring up the boot menu.

With a CD-ROM, choose the USB CD-ROM option. With the bootable USB stick created, choose the USB HDD option. This will boot you to the USB CD-ROM/LiveUSB stick, and allow you to install Ubuntu. Install it like normal if you have the hard disk Aspire One. If you have the SDD Aspire One, for good performance and to increase the life of the SSD use a non-journaled filesystem like EXT2.


Note: If you have already installed with EXT3 then follow this post: http://www.aspireoneuser.com/forum/viewtopic.php?f=5&t=164&st=0&sk=t&sd=a&start=10#p1177 to convert to EXT2. Installation (file copy) will take a LONG time (hour +). If you are not currently connected to the internet on a wired connection, you may get an error about setting up a mirror. You can safely ignore that error - it's non-fatal.

Step 2: Tweak / Fix

So now we should have an installed Ubuntu system. At this point, if you have not already done, so connect your Aspire One to the internet using a wired connection. First and immediate task is to update, since the wireless driver needs to be reinstalled after every kernel update. Open a terminal (Applications -> Accessories -> Terminal). Perform the updates:

sudo apt-get update
sudo apt-get upgrade


There are two different ways of configuring the wifi hardware, using either madwifi drivers, or wrapping Windows drivers with ndiswrapper. If you have troubles with one method, try the other.


Now we need to disable the hardware drivers that Ubuntu tries to use before the ones we make will function. So go to System -> Administration -> Hardware Drivers and uncheck everything. It should prompt us to reboot, so lets do it now.

We need to grab the wireless driver, and the things we need to build it, from a terminal:

mkdir source
cd source
wget http://snapshots.madwifi-project.org/madwifi-hal-
tar -xzvf madwifi-hal-
cd madwifi-hal-
sudo apt-get install build-essential linux-headers-$(uname -r)

And we build and install:

sudo make install
sudo modprobe ath_pci

In order to have the wireless work after reboot, add the following line to /etc/modules ("sudo gedit /etc/modules") to automatically load the module when booting:


You should now have working wireless. However you may want to do the following to prevent problems (the symbol mismatch) when the module is loaded:

Add ath_hal to the DISABLED_MODULES= stanza in /etc/default/linux-restricted-modules-common

(i.e. 'DISABLED_MODULES="ath_hal"')

Every time there is a kernel update you will need to perform the following steps to make the wireless work. Go to the directory (madwifi-hal- and run:

make clean
sudo make install


If the above madwifi instructions didn't work for you, using ndiswrapper is an alternative that is known to work, but uses Windows drivers.

Download drivers for your wireless card from: http://download2.dvd-driver.cz/atheros/drivers/ar5008/xp32-

Unzip those drivers.

Install ndiswrapper, and launch the installer:

sudo aptitude install ndisgtk
sudo ndisgtk

Find the net5416.inf file, and install it.

If you have tried madwifi, unload it with:


Restart your AA1, and everything should work.


To get your awesome wireless led to blink for you based on traffic, put these lines in /etc/rc.local, just above the string exit 0 (below doesn't work).

* Note: The 2.6.27 kernel does not appear to have these options anymore (earlier kernels do).

sysctl -w dev.wifi0.ledpin=3
sysctl -w dev.wifi0.softled=1

The led on the front will now do the association blink, as well as blink based on wireless traffic.

rc.local may not be executable so

sudo chmod a+x /etc/rc.local

The wifi kill switch uses these keycodes (also to use in rc.local):

/usr/bin/setkeycodes e055 159
/usr/bin/setkeycodes e056 158


Install luvcview - USB Video Class grabber

apt-get install luvcview

You may confirm it is recognized

dmesg |grep -i "uvc"

And this is the repply

[ 29.601485] uvcvideo: Found UVC 1.00 device USB 2.0 Camera (0c45:62c0)
[ 29.617301] usbcore: registered new interface driver uvcvideo

Say hello to yourself with this command ;)

luvcview -f yuv


Note: there are problems with the card readers: DO NOT SUSPEND your Aspire One with an SD Card inserted. I lost all my data on it!

If you want the card readers to be hot-pluggable, you'll need to work through the following modified instructions from http://wiki.debian.org/DebianAcerOne.

Create a file /etc/modprobe.d/aspireone with the following content:

# Module options for the Acer AspireOne
# Enable USB card reader
options pciehp pciehp_force=1
install sdhci for i in 2381 2382 2383 2384; do /usr/bin/setpci -d 197b:$i AE=47; done; /sbin/modprobe --ignore-install sdhci

Add the following line to the end of you existing /etc/modules file:


You need to reboot to the get the files /etc/modules and /etc/modprobe.d/aspireone read properly. Inserting a SD card should then result in HAL finding the card and placing icon on the desktop automagically.

Note there are still a few problems with this setup:

* If you first insert a card in the left card reader, both card readers will be hot pluggable. However, if you first insert a card in the right card reader, the left card reader will not be available until reboot.

MemorySticks wouldn't work for me in the right multi-card reader. I think this is a kernel module limitation.

A script to poll the card reader for power events (AC unplugged, etc.) is included on the recovery DVD shipped with the machine within the "hdc1._.tar.bz2" archive as /usr/sbin/jmb38x_d3e.sh. This script runs once every 5 minutes and adjusts the power level depending on the system power state.

The script is also available from the petaramesh site. Download it, make it executable and copy it to /usr/local/sbin with:

wget http://petaramesh.org/public/arc/projects/AcerOne_Ubuntu/jmb38x_d3e.sh
sudo chmod 754 jmb38x_d3e.sh
sudo mv jmb38x_d3e.sh /usr/local/sbin/

To use the script add a line like:

/usr/local/sbin/jmb38x_d3e.sh &>/var/log/jmb38x_d3e.log &

to rc.local before exit 0. Next time you reboot this script will be running (or you can execute it in a terminal now as root).

The script generates lots of harmless warning messages, so we send the output messages to a log file.

The card readers are identified as /dev/mmcblk0 and /dev/mmcblk1. Partitions on them are labeled, for example /dev/mmcblk0p1.


(Do this step only if you get an error inserting a USB stick)

If you insert a memory key, you may notice an error and that it cannot be mounted. This is due to the CD-ROM entry in the fstab. Since we don't have an optical drive on the One we will comment that out. From a terminal again:

sudo gedit /etc/fstab

You should see a line that looks like:

/dev/sdb /media/cdrom0 udf,iso9660 user,noauto,exec 0 0

add a hash in front:

#/dev/sdb /media/cdrom0 udf,iso9660 user,noauto,exec 0 0

Reboot, and automount should work.


Aspire One by default commonly doesn't manage Fan speed correctly, resulting in a very noisy AA0.

Note: On A150X with a 160gb hd and 6 cell battery the perl script returns 0ºC every time, because the thermal control is not working. This causes the fan to shutdown. It could DAMAGE your system severely. Please check that the script is returning the correct values manually before applying the daemon.


* Ensure you have dmidecode installed, so acerfand can detect which bios version you have. It's probably installed by default already. If not, execute:

sudo aptitude install dmidecode


Download the acer_ec.pl script (Direct download).

Download the acerfand daemon script (Direct download). (New version (2008-12-20) adding support for BIOS 3309 which is also now selected as default so should work with new bioses until the registers actually change again.)
* (You can check whether the scripts shows a reasonable cpu temperature (in hex) as follows:)

perl acer_ec.pl ?= 58

* Execute these lines in a terminal in the directory you downloaded the above scripts:

chmod a+x acerfand
sudo cp acer_ec.pl acerfand /usr/local/bin/

* To run it straight away:

sudo acerfand

* Note, you need the correct bios for this to work correctly. To see if the acerfand script is working, you can check the system log after you have run the *sudo acerfand* command:

#sudo tail -f /var/log/syslog
Oct 9 02:04:36 lilput acerfand: acerfand 0.03 starting
Oct 9 02:04:36 lilput acerfand: Detected bios version v0.3301
Oct 9 02:04:36 lilput acerfand: Unsupported bios version v0.3301 found. Aborting.


There is information about updating your bios here: http://macles.blogspot.com/2008/08/acer-aspire-one-bios-v3304.html

* To run it at boot:

sudo gedit /etc/rc.local

Insert the following line above the exit 0 at the bottom:


The fan is not completely disabled. When the FANAUTO temperature is reached (70ºC), fan works again. According to Intel, the Atom chip could work until 99ºC.

Optional: Above instructions will work fine, but if you want to define another temperature:

* Create an /etc/acerfand.conf file. The file is just a shell script that sets up to three values. eg:


Those are the default values, if the /etc/acerfand.conf file isn't found.

INTERVAL is the polling interval in seconds

FANOFF is the temperature (in Celsius Degrees) at or below which to turn the fan off, if it's currently on auto

FANAUTO is the temperature (in Celsius Degrees) at or above which to turn the fan to auto, if it's currently off

More information from the original source, AspireOne Wiki.



Note: (Skip this step if you have the hard disk Acer Aspire One)

The performance of the SSD drive can be significantly improved by a few tweaks described in an article by Jason Perlow (But ignore Tweak #1, which does not apply.). The most important of these are described here.

Change the file system mount options on SSDs to “noatime”

Edit /etc/fstab (sudo gedit /etc/fstab) and change the the option “relatime” to “noatime”. The line for the root partition should then be something like:

UUID=f0ae2c59-83d2-42e7-81c4-2e870b6b255d / ext2 noatime,errors=remount-ro 0 1

Use the “noop” I/O scheduler

Edit /boot/grub/menu.lst using your favorite editor, and add "elevator=noop" as an option. The default kernel configuration, found in the last part of the file should be something like:

title Ubuntu 8.04.1, kernel 2.6.24-19-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=f0ae2c59-83d2-42e7-81c4-2e870b6b255d ro quiet splash elevator=noop
initrd /boot/initrd.img-2.6.24-19-generic

In order for the changes to remain when updating the kernel, also in menu.lst, find the line

# defoptions=quiet splash

and add "elevator=noop" as an option:

# defoptions=elevator=noop quiet splash



Note: (Skip this step if you have the hard disk Acer Aspire One)

Frequent writes to the SSD will cause failure eventually. We can reduce the number of writes to the SSD by moving our logs to a temporary filesystem in RAM that gets destroyed at ever reboot. Now this means your logs will not be persistent across reboots making debugging difficult in some cases. This step is optional of course, so if you need the logs for an extended period of time do not follow these steps.

Open your fstab again, and add the following lines:

sudo gedit /etc/fstab
tmpfs /var/log tmpfs defaults 0 0
tmpfs /tmp tmpfs defaults 0 0
tmpfs /var/tmp tmpfs defaults 0 0

There is currently a bug in sysklogd where it cannot handle booting with an empty /var/log directory (bug #290127). This can be fixed by modifying /etc/init.d/sysklogd:

Find this function:

for l in `syslogd-listfiles -a`
chown ${USER}:adm $l

..and replace it with this:

for l in `syslogd-listfiles -a --news`
# Create directory for logfile if required
ldir=$(echo ${l} | sed 's/[^\/]*$//g')
if [ ! -e $ldir ] ; then
mkdir -p $ldir
# Touch logfile and chown
touch $l && chown ${USER}:adm $l

Warning: this will cause some packages to fail mysteriously when they cannot access the log directories that were installed with the packages and then disappeared at reboot.

To rebuild the rest of the directory structure inside /var/log on each reboot, add these lines to /etc/rc.local above the 'exit 0' line:

for dir in apparmor apt cups dist-upgrade fsck gdm installer samba unattended-upgrades ; do
if [ ! -e /var/log/$dir ] ; then
mkdir /var/log/$dir

Note: discovered ATA 40-wire cable misdetection after resume (currently 2.6.27), causing hdparm down from 40MB/s to 25MB/s: filed http://bugzilla.kernel.org/show_bug.cgi?id=11879 for this issue -AndiM


(Skip this step if you have the hard disk Acer Aspire One)

ScrollKeeper is a cataloging system for documentation on open systems. Hardly anyone ever uses it and on the AAO's slow SSD it takes ages every time you install anything. Disable it and your installs will fly! Finally add a diversion to stop dpkg from overwriting your changes.

sudo mv /usr/bin/scrollkeeper-update /usr/bin/scrollkeeper-update.real
sudo ln -s /bin/true /usr/bin/scrollkeeper-update
sudo find /var/lib/scrollkeeper/ -name \*.xml -type f -exec rm -f '{}' \;
sudo dpkg-divert --local --divert /usr/bin/scrollkeeper-update.real --add /usr/bin/scrollkeeper-update


Out of the box, the graphic card Intel GMA 950, is well detected, however you can tweak /etc/X11/xorg.conf to achieve better graphic card performance:

Section "Device"
Option "MonitorLayout" "LVDS,VGA"
Option "Clone" "true"
Option "AccelMethod" "EXA"
Option "MigrationHeuristic" "greedy"
VideoRam 229376
Option "CacheLines" "1980"

The Option Clone is especially usefull, if you want to capture video or photos. Without it you will get a black screen on applications like cheese.

Also add this to your /etc/profile:

export INTEL_BATCH=1

Note: 'export INTEL_BATCH=1' appears to causes graphics faults (artifacts) within 'ume-launcher' (even with Compiz fully disabled).

Reboot and you will have a more responsive system, with better 3D FPS, and improved video performance.


Out of the box there are various issues with the sound. These range from headphone detection not functioning correctly, to the internal MIC not working. There are solutions to these problems. Currently, however, there is no known way to get everything working at once. All of the steps begin the same way, rebuilding ALSA:

sudo apt-get install module-assistant
sudo m-a update
sudo m-a prepare
sudo m-a a-i alsa
sudo alsa force-unload
sudo depmod -ae
sudo modprobe snd-hda-intel

Add the following line to the end of /etc/modules in order to ensure that the module is loaded during bootup:


Now we need to make a choice. To have the internal MIC non-functional (external works), but sound working after suspend and resume, we edit /etc/modprobe.d/alsa-base (sudo gedit /etc/modprobe.d/alsa-base) and add the following line to the bottom:

options snd-hda-intel model=toshiba

Reboot for that to take effect.

To have the internal MIC function correctly, but no sound after suspending and resuming the computer add or change the following to the /etc/modprobe.d/alsa-base as before:

options snd-hda-intel model=auto

Again, reboot for this to take effect.

For some unknown reason some people don't hear any sound with either option. If you experience this problem you might want to use the option in /etc/modprobe.d/alsa-base as before to the following to resolve this problem:

options snd-hda-intel model=acer

For A150L, model=basic seems to work fine with alsa 1.018rc3 (internal mic and sound work after suspend; plugging headphone in does turn the speakers off)

options snd-hda-intel model=basic

According to the ArchWiki alsa version 1.018 and up contains a new dedicated audio model option for the Acer aspire one that can be used instead:

options snd-hda-intel model=acer-aspire

If you experience crackling sound after rebooting, insert the following line in /etc/modprobe.d/blacklist:

blacklist snd_pcsp

Optional: The default sound level is low. Open a terminal and type alsamixer to adjust volume.

Alsa needs to be version 1.0.17.

Alternative Method for upgrading ALSA and settings

There is a script available at http://ubuntuforums.org/showthread.php?t=962695 This will currently upgrade ALSA to 1.0.17 or 1.0.18final (IBEX comes with version 1.0.17 by default) Tweak the configuration as suggested above

options snd-hda-intel model=acer

Why do it this way? because it works it fetches the required tools and source builds and installs it all in one step leaving you with just the configuration steps needed specifically for the Aspire One. Why not do it this way? It can overwrite system settings and files without giving you any choice in the matter. See the link for details and this is not recommended practice. Your Aspire One, your choice.

Note The script at the beginning of the thread given by the Link appears to be broken, on page 2 is another version for 1.0.18 by the same author which may work, however also on that page is a link for a script which will install 1.0.18r3 http://ubuntuforums.org/showpost.php?p=6090951&postcount=16 That does work fine.
Retaining Mixer Settings

There is an issue with retaining the audio settings in Hardy You configure the mixer so sound input is internal mic, on reboot it is reset to mic. The desktop applet doesn't have a save settings option. so use it to configure your audio then open a terminal and type

sudo alsactl store

however on reboot you will find your settings are gone again

sudo alsactl restore

will retrieve your settings. (this section is incomplete and needs details for restoring the alsa settings automatically on boot) http://ubuntuforums.org/showthread.php?t=962695 is currently at version 1.15 and can be downloaded here

http://ubuntuforums.org/attachment.php?attachmentid=96599&d=1229445232 there are a couple of options how to use the script with intrepid running with the options -di should work, for older kernel versions 2.6.24.x there is a compilation error but snapshots work so sudo ./AlsaUpgrade-1.0.x-rev-1.15.sh -d sudo ./AlsaUpgrade-1.0.x-rev-1.15.sh -snap (2.6.24.x kernels e.g hardy) sudo ./AlsaUpgrade-1.0.x-rev-1.15.sh -i

using model=acer-aspire seems to give good results and use of the above script ensures mixer settings are restored after a reboot.

Screen Tweaks


There are various methods that will help you make better use of the Aspire One's small screen. One of the most important is being able to move windows that are too large to fit on the screen at once. To move a hidden part of the window into view, click and drag with the left mouse button on any part of the window while holding down the ALT key. However, you won't be able to drag windows so the top of the window is above the top of the screen. To fix that, enter the following in a terminal window:

gconftool-2 --set /apps/compiz/plugins/move/allscreens/options/constrain_y --type bool 0

Since the Aspire One's screen has almost twice as much resolution horizontally as vertically, having panels on both the top and bottom is not ideal. You may want to remove the top or bottom panels, make them smaller, or move them so that they are vertical, on the left and right side, instead of horizontal on top and bottom.


The AAO touchpad is quite easy to bump whilst typing. The best fix is to disable all scroll and tap commands for 1 second after each keystroke.

Go to Preferences and select "Sessions". Click the add button and add an entry:

Name: Syndaemon
Command: syndaemon -d -t -i 1
Comment: Disable trackpad while typing

The '1' can be changed to any decimal number, and defines the amount of time to lock the trackpad after each keystroke. See the Syndaemon man page for full details.


In some set-ups, using hibernate has been reported to cause file corruption.


To decrease boot time, activate concurrency bootup: sudo gedit /etc/init.d/rc and replace the line:





Add the following to the /etc/rc.local file:

# Economize the SSD
sysctl -w vm.swappiness=1 # Strongly discourage swapping
sysctl -w vm.vfs_cache_pressure=50 # Don't shrink the inode cache aggressively

# As in the rc.last.ctrl of Linpus
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate_max > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate

echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
echo 20 > /proc/sys/vm/dirty_ratio
echo 10 > /proc/sys/vm/dirty_background_ratio

echo 1 > /sys/devices/system/cpu/sched_smt_power_savings
echo 10 > /sys/module/snd_hda_intel/parameters/power_save
echo 5 > /proc/sys/vm/laptop_mode

#Decrease power usage of USB while idle
[ -w /sys/bus/usb/devices/1-5/power/level ] && echo auto > /sys/bus/usb/devices/1-5/power/level
[ -w /sys/bus/usb/devices/5-5/power/level ] && echo auto > /sys/bus/usb/devices/5-5/power/level


UPDATE: An Ubuntu Netbook Remix (UNR) installer image with the LPIA kernel is now available. Such image can be installed as-is on an Aspire One and most of the steps described are not necessary. Of particular interest, wifi, suspend/resume, webcam and fan control (once BIOS has been upgraded) work out-of-the-box. Card readers have the same issues.

WARNING ABOUT UNR: The UNR installer image currently wants to format your entire hard disk. If you want to dual boot XP Home and Ubuntu your best bet is to use GPARTD from a live linux such as systemrescuecd to resize the windows partition and create partitions for your Ubuntu install. Recommended one main partition labeled / and formatted and a 1-2 gb swap partition.

To install Ubuntu Netbook remix -

In Intrepid, the netbook remix packages are already in the universe repository. For Hardy, you'll need to add the netbook remix PPA to your sources.list.

* Insert the following into /etc/apt/sources.list (not required for Intrepid):

deb http://ppa.launchpad.net/netbook-remix-team/ubuntu hardy main
deb-src http://ppa.launchpad.net/netbook-remix-team/ubuntu hardy main

* then execute

In Hardy:

sudo apt-get update
sudo apt-get install go-home-applet human-netbook-theme maximus ume-launcher window-picker-applet

In Intrepid (ume-launcher has been renamed to netbook-launcher):

sudo apt-get install go-home-applet human-netbook-theme maximus netbook-launcher window-picker-applet


Add maximus as startup program (system > preferences > sessions > startup programs)

Change the desktop theme to Human-Netbook (system > preferences > appearance > theme)
* Delete the bottom panel
* Reconfigure the top panel to contain the following items -
o Go Home Applet
o Window Picker Applet
o Notification Area
o Mixer Applet
o Clock
* There is a bug in the ume-launcher after resuming from suspend. To work around this place the following in /etc/pm/sleep.d/01UMELauncher -

# Copyright 2008 Matteo Collina
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.

export DISPLAY=:0.0


case "$1" in
rm -rf $TMPFILE
echo "Removed resume-notify file"
touch $TMPFILE
echo "Created resume-notify file"

exit $?

* Make the above file executable -

sudo chmod +x /etc/pm/sleep.d/01UMELauncher

You should also disable desktop effects as these cause issues with netbook remix.

Maximizing screen real estate in Firefox:

To take your screen saving netbook remix to the next level, you can do the following to maximise screen real estate in everyone's most used app - Firefox -

* Install the following addons
o Stop or Reload Button
o Personal Menu

AutoHideStatusBar (https://addons.mozilla.org/en-US/firefox/addon/1530)
* Install the following theme -
o Classic Compact
* Configure Personal Menu to include all the standard menus except History and Bookmarks (they get their own buttons)
* Disable the menu toolbar. You can always get it back by pressing Alt

Use the top-bar icon tabs instead of firefox tabs. (options are in edit > preferences > tabs )

Drastically speed up Firefox

Make firefox store its cache in the /tmp directory --- which when we we have moved it to a tmpfs according to this wiki is *fast*.

* Firefox 3.x uses a sqlite db that creates many write accesses, so this can reduce it:
1. In Firefox go to (type as url) "about:config", right click, add new string „browser.cache.disk.parent_directory“ with value "/tmp/firefox"
2. In Firefox change options/security/ and disable phishing if you dare. - Your firefox will run even faster then but won't warn you about phishing any more so take care!

Alternatively, to speed up Firefox further, enter "about:config" (without the quotes) as an url in Firefox, then change the following settings:

// disable disk and offline cache
set browser.cache.disk.enabled: false
set browser.cache.disk.capacity: 0
set browser.cache.offline.enable: false
set browser.cache.offline.capacity: 0
// just as a precaution
add browser.cache.disk.parent_directory: /tmp
// apparently safebrowsing slows things down - disable at your own risk!
set browser.safebrowsing.malware.enabled: false
set browser.safebrowsing.enabled: false
set network.prefetch-next: false
// don't show suggestions in the search bar
browser.search.suggest.enabled: false
// don't spellcheck as I type
layout.spellcheckDefault: 0

Flash 10 RC or upper (Optional, recommended for 512M of RAM):

Ubuntu Hardy installs flash version 9.0.115, this version needs a lot of memory to work and makes 'AspireOne' slower than it is. A good option is to download the latest Flash player plugin 10, which delivers improved performance and less memory requirements. This package is the flashplugin-nonfree, which is available on hardy-backports repository, or by download in the following link:


Verifying Flash player 10 installed correctly

Once you've installed Flash 10, verify that it installed correctly by visiting here. In the version information box, verify it says version "10,0,12,36" or newer installed.

If version 9 is still installed in Firefox then you will need to do it manually by following these directions.

Uninstalling the Flash 9 plugin from Firefox

Open a terminal window (Applications>Accessories>Terminal) and type:

cd ~/.mozilla
rm flashplayer.xpt libflashplayer.so

Installing the Flash 10 RC plugin into Firefox

Visit the Adobe website and select from "Select version to download..." drop down menu the "tar.gz for Linux" option. Save the file to your Desktop.

Close all open Firefox windows before proceeding.

Open a terminal window (Applications>Accessories>Terminal) and type:

cd Desktop
tar -zxvf install_flash_player_10_linux.tar.gz
cd install_flash_player_10_linux

Press ENTER to install. Answer y to proceed. Answer n to not perform another installation.

Open the Firefox browser and type about:plugins in the address bar and hit ENTER.

You should see:

Filename libflashplayer.so
Shockwaveflash 10.0 b218

Or a newer version listed.

Under MIME Type the following should be listed:

application/x-shockwave-flash Shockwave Flash
application/futuresplash Futuresplash player

Upgrade from Hardy Heron (8.04.1) to Intrepid Ibex (8.10)

(Originally written by khaeru. Last updated 24 November 2008: Made the wlan work again.


$ update-manager -d

after following the first section of this guide. Following the above notes and some trial and error, the following configuration files work.

Note that shell commands preceded by "#" should be run as root (i.e. using sudo); commands preceded by "$ " should be run as a normal user.


Changing the default options:


## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=elevator=noop quiet splash


Rather than editing the boot lines directly and risking an unbootable system, run the following to automagically update all boot lines:

# update-grub


add the following line:


Seems not to be necessary for all, this line, but does never harm; snd_hda_intel driver is loaded automatically.

Since the ath5k driver is not installed by default (see below)

* Enable the backports repositories in /etc/apt/sources.list (remove the # signs in front of them)
* Install "linux-backports-modules-intrepid" e.G. using synaptics


Rather than modify the other files in this directory, create a new file just for Aspire One settings. It will be processed along with the rest on boot.

# Module options for the Acer AspireOne
# Enable USB card reader
options pciehp pciehp_force=1



ath_hal and ath_pci don't need to be blacklisted if they are disabled if they are disabled using system/administration/hardware drivers


2008-10-20 00:19:20

pciehp added per jsgoncalves

This file may no longer be needed as of 19 October 2008 -- khaeru 2008-10-20 00:19:20
o See above note about ath_hal and ath_pci

options snd-hda-intel model=toshiba is no longer necessary; sound works

recording does not work in a default install as of 26 October 2008 (attempting recording produces nothing but fuzz in output file, no matter alsa volume levels) (dsm-iv-tr)

options usbcore autosuspend=1 has been the default in Ubuntu for some time (https://bugs.launchpad.net/ubuntu/+source/powertop/+bug/136549)


The file /etc/sysctl.d/README states, "End-users can use 60-*.conf and above," so we do this instead of fiddling with sysctl.conf itself or calling "sysctl -w" from rc.local:

# Settings for the Acer Aspire One
# No swapping whatsoever
vm.swappiness = 0
# As suggested by PowerTOP
vm.dirty_writeback_centisecs = 1500
# Suggested by https://help.ubuntu.com/community/AspireOne
vm.vfs_cache_pressure = 0
vm.dirty_ratio = 20
vm.dirty_background_ratio = 10
vm.laptop_mode = 5

Note: Swappiness may be set to zero for an Aspire One with 1.5 GiB of RAM and no swap partition. You may wish to use another value (e.g. 10 as suggested above).


Here we include only settings that cannot be placed in the above files.

# rc.local
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# In order to enable or disable this script just change the execution
# bits.
# By default this script does nothing.

# https://help.ubuntu.com/community/AspireOne
# Wireless disable/enable key
/usr/bin/setkeycodes e055 159
/usr/bin/setkeycodes e056 158
# Decrease power usage of USB while idle
[ -x /sys/bus/usb/devices/1-5/power/level ] && echo auto > /sys/bus/usb/devices/1-5/power/level
[ -x /sys/bus/usb/devices/5-5/power/level ] && echo auto > /sys/bus/usb/devices/5-5/power/level
# Disable Wake-On-LAN feature of Ethernet port
ethtool -s eth0 wol d
# As in the rc.last.ctrl of Linpus
echo 1 > /sys/devices/system/cpu/sched_smt_power_savings
# Fan control

exit 0



As noted elsewhere, the wireless kill switch on the front of the case works, but there is no visual notification. Search around the Network Manager project and notice references to "rfkill" and "KillSwitch", neither of which is implement in NM yet.
* The wireless LEDs don't work; the "dev.wifi0" settings aren't included because they only generate errors.
* ethtool is not installed by default in Intrepid (as of RC1). This will cause rc.local to fail unless it is installed.


To improve boot speed, as noted above.

CONCURRENCY=shell # https://help.ubuntu.com/community/AspireOne


In Intrepid, the following no longer causes the artifacts mentioned above for Hardy.

umask 022

# https://help.ubuntu.com/community/AspireOne
export INTEL_BATCH=1


As noted above.


Section "Device"
Identifier "Configured Video Device"
# https://help.ubuntu.com/community/AspireOne
Option "MonitorLayout" "LVDS,VGA"
Option "Clone" "True"
Option "AccelMethod" "EXA"
Option "MigrationHeuristic" "greedy"
VideoRam 229376
Option "CacheLines" "1980"



Howto Setup Postfix to login to Your Email Account and deliver mails

Unless you're a sysadmin you don't generally have to worry that much about getting email delivered, you just hookup your GUI email client to your external email account and you're done. But what if your system tries to deliver mail, for example from cron? Normally, this just goes to root or perhaps some designated user on your system, but what if you'd like it to get delivered to your external email account?

The obvious answer is you setup your system to forward root's email to your external email account, eg change this line in /etc/aliases:

root:   you


root:   you@example.com

or you can change root's .forward file to accomplish the same thing.

So, what's the problem? The problem comes when your IP address (or your ISP's IP address) someday gets blacklisted and all of a sudden you're not getting any system mail anymore. This problem can also arise if you have scripts which deliver mail to somebody: at some point their email server may refuse to talk to your system because it thinks you're a spammer or something.

In these cases, assuming your email provider allows you to have SMTP access, one solution is to have your system deliver email to your email provider and let your email provider deliver it to the final destination. Your email provider is probably (hopefully) more likely to stay on top of problems related to their IP addresses and blacklists so your email has a higher probability of getting delivered (in the case of cron it's already at its destination).

Getting your system to deliver mail to an external email account, ie getting your system to relay mail via another server requires a bit of configuration. Few, if any, email providers allow their servers to be used as open relays, an open relay being an email relay that anyone can use. So one of the first things you have to do is tell your system how to login to your email account so that it can relay email. Furthermore you may also have to, or want to, configure your system to use TLS/SSL when it logs in so that your username and password are protected.

In this example, I'll show you how I set up my system to deliver mail to my fastmail account. I use openSUSE and therefore my system uses postfix to deliver email. If you use another Linux distro these steps may require modification, and if you use exim or some other system for email delivery this won't help at all.

First, if it's not already installed and running, install the SASL authentication daemon saslauthd and start it. Next edit the file /etc/postfix/sasl_passwd and add this line to the bottom of the file:

mail.messagingengine.com   USERNAME:PASSWORD

The values in this file determine the username and password that SASL uses when logging in to a particular server. Obviously, change these values for your external email account. You should be able to find the server name on your email provider's web site, although it usually takes some digging.

Now run postmap to convert the text password file to a .db file:

postmap sasl_passwd

Next edit the file /etc/postfix/master.cf and uncomment the tlsmgr line:

tlsmgr  unix  -   -   n   1000?  1  tlsmgr

Now edit the file /etc/postfix/main.cf and add the following lines to the bottom of the file:

smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_type = cyrus
smtp_sasl_mechanism_filter = PLAIN, LOGIN

smtp_tls_security_level = verify
smtp_tls_mandatory_ciphers = high
smtp_tls_verify_cert_match = nexthop
smtp_sasl_tls_security_options = noanonymous

relayhost = [mail.messagingengine.com]:587

#debug_peer_list = mail.messagingengine.com

These options tell postfix to use SASL authentication when doing SMTP (ie delivering mail) and they also tell it to use TLS security when logging in. The relayhost option tells postfix the default server to use when relaying email, the :XXX value is the port number to use (another value you'll have to dig out of your email provider's help pages). The last option, the commented out one, debug_peer_list allows you tell postfix to show TLS related debug information on a per server basis. This is often useful when trying to diagnose TLS connection problems. In this case it turned out to be useful because postfix did not recognize the CA (certificate authority) that issued Fastmail's SSL certificate (Entrust). (Actually, I don't know if postfix recognizes any CA's out of the box.)

After some groping around on the Entrust site my SSL memory came back to me and I did a search for "root certificates" and got to a page where I could download a copy of Entrust's root certificate (you may need to start here).

Once you've downloaded the certificate, save a copy in /etc/postfix and remove group/other read/write access. Then add the following line to /etc/postfix/main.cf:

smtp_tls_CAfile = /etc/postfix/entrust_ssl_ca.cer

Restart postfix:

$ /etc/init.d/postfix restart

Now send a test email from the command line:

$ mail -s test you@example.com <<

And hopefully it will arrive in your external email account.

Cloning Vmware Image from Template error " A File not found"

VMware VirtualCenter

When cloning a virtual machine, if the Edit Virtual Hardware check box in the Clone wizard is selected, the VMDK file location of the cloned virtual machine points to the VMDK file location of the source virtual machine when:
  • Changes are made to the settings of VDISK in the Virtual Machines Property page
  • Changes are made to the disk size in the Virtual Machines Property page

Note: If changes are made to the disk size and the cloned virtual machine is deleted from the disk, the content in the virtual disk of the source virtual machine is also deleted.

To create a virtual machine clone with a disk mode or disk size different from that of the source virtual machine, change the disk mode or disk size of the virtual machine clone after the clone is created.
Do not use the Virtual Machine Properties page in the Clone wizard to change the disk mode, or the disk size.

Product Versions
VMware VirtualCenter 2.5.x

How would I use yum to update or install packages from a ISO of Red Hat Enterprise Linux version 5


In order to use yum to install or update packages from an iso file, follow the steps below: -

  1. Create directories to mount the iso file.

    #mkdir -p /cdrom/iso

  2. Mount the iso as loopback device.

    #mount -o loop /cdrom/iso

    Replace with the iso file.

  3. Create a repository. The createrepo package needs to be installed on the system in order to run the following commands. createrepo is an optional package and is not installed by default.

    #cd /cdrom
    #createrepo .
    #yum clean all

  4. Create a file /etc/yum.repos.d/file.repo as follows:

    #cat /etc/yum.repos.d/file.repo
    [RHEL 5 Repository]

Running yum should now work with the iso file as the source.

How do I configure the yum local repository to be able to access a DVD ISO via HTTP


  1. Copy Red Hat Enterprise Linux 5 DVD ISO RHEL5-Client-20070208.0-i386-DVD.iso from Red Hat Network and create a local repository on the local Repository server.

    #mkdir -p /var/www/html/cdrom/iso
    #mount -o loop /RHEL5-Client-20070208.0-i386-DVD.iso
    #cd /var/www/html/cdrom
    #createrepo .
    #yum clean all
    Created a file /etc/yum.repos.d/file.repo as follows:

    #cat /etc/yum.repos.d/file.repo
    [RHEL 5 Repository]

  2. Share with httpd:

    # vi /etc/httpd/conf/httpd.conf
    ServerAdmin root@
    DocumentRoot /var/www/html

    (Where is the local Repository server)

    # httpd -t
    # service httpd start

  3. Client side configuration:

    vi /etc/yum.repos.d/my.repo
    name= RHEL 5.1 Server Repository

  4. Verify from client:

    # yum list
    Loading "installonlyn" plugin
    Setting up repositories
    Reading repository metadata in from local files
    Available Packages
    Deployment_Guide-as-IN.noarch 5.0.0-19
    RH51-Server Deployment_Guide-bn-IN.noarch
    5.0.0-19 RH51-Server
    Deployment_Guide-de-DE.noarch 5.0.0-19
    RH51-Server Deployment_Guide-en-US.noarch
    5.0.0-19 RH51-Server
    Deployment_Guide-es-ES.noarch 5.0.0-19
    RH51-Server Deployment_Guide-fr-FR.noarch
    5.0.0-19 RH51-Server ========
    # yum update

    The package version used on the Repository server:

    httpd-2.2.3-11.el5yum-3.0.1-5.el5createrepo-0.4.4-2.fc6The package version used on the client side: