Entries in System Administration (49)

Tuesday
Aug142007

A Fix for Slow Program Launch in Ubuntu

I have been happily using Ubuntu Linux on my laptop computer for over a year and a half now.  A couple of weeks ago I noticed that all programs were taking at least 10 seconds to launch.  A little Googling led to this Ubuntu bug report which indicated a hostname configuration problem as a possible cause.  I opened up the hosts file for editing with:

sudo emacs /etc/hosts

and changed the line:

127.0.0.1   localhost.localdomain   localhost

to read:

127.0.0.1   localhost.localdomain   localhost   mudkip

where mudkip is the host name of the computer.  And this fixed the problem.  Programs now open almost instantaneously.  I am not sure why the lack of the host name should cause a 10 second delay in program launching.  The discussion on the Ubuntu bug forum seems inconclusive.  However, in my case the problem might have been precipitated by me fiddling with the network settings when I was staying at my father's house.

Monday
Aug062007

Possible Mouse-Wheel Scroll Bug in Windows XP

Recently I have noticed that when I roll the mouse-wheel to scroll downwards in Windows XP the window occasionally scrolls upwards.  This is rather annoying as it makes window scrolling visually jerky.  I have seen it when using Firefox and when using Internet Explorer.  I have also seen it on more than one installation of Windows XP.  It would appear to be a bug.

Saturday
Jun162007

Does Not Inspire Confidence

From the ClamAV antivirus support page:

How do I upgrade ClamAV?
  • Visit our Wiki . The page can be edited by anyone. ...

I spy a weak link in their security chain!

Saturday
Jun022007

A Norton Problem and its Solution

A few days ago I installed Norton Internet Security 2007 on my Windows XP Professional PC.  I checked that it was working on both administrator and user accounts.  Within 24 hours it was no longer working on the user accounts.  Instead of the yellow Norton button appearing on the taskbar immediately after logon, the following three error messages were being displayed:

ccApp.exe  Application Error
The application failed to initialize properly (0xc0000022).  Click OK to terminate the application.

osCheck.exe  Application Error
The application failed to initialize properly (0xc0000022).  Click OK to terminate the application.

PIFSvc.exe  Application Error
The application failed to initialize properly (0xc0000022).  Click OK to terminate the application.

I tried uninstalling and reinstalling the Norton suite.  The problem was still there.

I emailed Symantec support who got back to me within a few minutes with instructions for how to do a more thorough uninstall using the Norton Removal Tool and a clean reboot of Windows.  I followed these instructions.  Again the problem was still there.

By then it was after midnight so I went to bed feeling rather frustrated. 

The following morning I searched the web and came across some reports which suggested it might be a DLL problem.  I downloaded and installed a copy of Dependency Walker, a tool that can be used to troubleshoot DLL problems.  This showed that all three of the above-named files had unresolved links to DWMAPI.DLL and osCheck.exe also had an unresolved link to CCL60U.DLL.  I downloaded a copy of DWMAPI.DLL from DLL-files.com and copied it into the c:\windows\system directory, but this did not fix the problem.  (Two copies of CCL60U.DLL file were already present in the Symantec directories, so I don't know why that was not being resolved.)

Some of the reports on the web suggested that the problem might be associated with the recent upgrade to Internet Explorer 7.  I uninstalled IE7.  The problem was still present.  However, Dependency Walker showed the were now showing unresolved links to MSJAVA.DLL and CCL60U.DLL instead of DWMAPI.DLL and CCL60U.DLL.  I reinstalled IE7 (from the Microsoft web-site).  The problem was still there.

I tried to do a Windows XP system restore  back to a date before I installed Norton, but System Restore refused to do it saying that no changes had been made.

I was making no headway with the DLL line of attack.  I sat down and had a think.  Maybe it could be a file permissions problem?  In Windows XP the file permissions are hidden by default, you have to explicitly enable the Security Tab of the Windows Explorer Properties window if you want to see them.  To do this you go into Tools -> Folder Options... -> View and untick the 'Use simple file sharing (recommended)' box.  I did this and looked at the DWMAPI.DLL permissions; they seemed to be OK: both read&execute and read were enabled for Users.

I needed to be able to see what exactly was failing when the above error messages were being generated.  I downloaded and installed a copy of Process Monitor from the Microsoft web-site.  Process Monitor provides a trace of registry accesses, file accesses and process events in real-time.  However, it won't run in user accounts so I tried to run it in an administrator account.  But the problem does not occur in administrator accounts!  Simple: instead of double-clicking on the EXE file icon to run it, right-click, chose Run As..., and enter a user account name and password.  I disabled all the Norton Internet Security features I could, started Process Monitor, and then ran osCheck.exe in user mode.  The osCheck.exe error message was displayed.  I stopped Process Monitor, re-enabled all the Norton features and then looked through the Process Monitor trace.  There were several entries mentioning osCheck.exe, one of which was a file ACCESS DENIED fault when attempting to read MSVCP71.DLL.  There were no other ACCESS DENIED faults in the trace.

I looked at the Security tab for MSVCP71.DLL: it had entries for Administrators, Power Users and System, but not Users.  I checked the Security tabs for MSVCP60.DLL and MSVCP50.DLL (presumably earlier versions of the same file): these both had entries for Users (as well as the others).  I added an entry for Users to the tab for MSVCP71.DLL (the required permissions were set up by default), logged out of the administrator account and logged in as a user.  Norton came up correctly, with no errors.  Problem fixed!

The problem was the security permissions of MSVCP71.DLL.  The DWMAPI.DLL problem signalled by Dependency Walker was just a red-herring.   I still do not understand how the MSVCP71.DLL permissions could have got into the state they did.

By now it was just before midnight.  I emailed Symantec support to say I had fixed the problem and then went to bed feeling rather pleased with myself.

Monday
May282007

McAfee Woes

The day before yesterday my Windows XP installation got into a state in which it was unable to start up.  It would get half way through startup and then reboot. 

Now the same thing had happened a few weeks ago and then I had somehow managed to fix it by starting Windows in safe mode, restoring the system configuration of a few days previously and reinstalling a USB driver and Mcafee Internet Security Suite.  At that time I could not tell which of these changes had fixed the problem, I was just glad it was fixed. 

When it occurred the second time, I did a system restore to a few days before but that didn't fix it.  Then I uninstalled McAffee and it went away!  After several hours of fiddling I discovered that it was McAfee Personal Firewall Plus that was causing the problem.  If that was installed the startups failed, if it was uninstalled they succeeded.  I started poking around in Windows XP error reporting and eventually found an option that switched on or off the automatic reboot on a system crash.  Disabling this showed that the error that was occuring during startup was a STOP 0x0000000A IRQL_NOT_LESS_OR_EQUAL, whatever that is.  I went to McAfee technical support, downloaded their Virtual Technician and ran it.  It reported several problems with my McAfee installation but could only fix a few of them.  However, I suspect that most of these problems were because Windows was running in safe mode.

By now it was past midnight and I had had enough of McAfee.  I have previously complained about how awkward it was to install on a multiuser PC.  Over the past few months I have been using a PC at work that has Norton Internet Security installed and it seemed much less awkward to use.  My subscription to McAfee only had another month or so to run.  Yesterday morning I walked down to Staples and bought a copy of Norton.  It installed without any problems and  is now running smoothly and unobtrusively.