BOFH :: There can be only one

•January 27, 2012 • Leave a Comment

Okay, the Boss always has funding he doesn’t know/understand what to do with, but this time it’s different. The company has decided to allocate out “Professional Development” funds to key areas of the business to permit a staff member to receive advanced training – with a view to the company becoming a leading edge 21st century business.

>yawn<

Ordinarily the prospect of free training has about the same enthusiasm attached to it as the 13th pint at the end of a long night; however my careful reading of the proposal has uncovered some fine print indicating that the funding is approved to cover not only the training but also all incidental expenses.

A fact the PFY mustn’t find out about as it might trigger interoffice rivalry given the Highlander nature of the Development fund.

A fact the PFY does find out about, triggering interoffice rivalry once the “can be only one” nature of the fund is determined.

Bugger.

So now the PFY and myself are pitted against each other in a battle of wills – and I can see all the top-flight meals and accommodation, room service and “study aids” disappearing from view should I fail.

I cannot have my incidentals stolen by the PFY in the bid to develop my professionalism by “Divining the working habits of highly successful IT Professionals” – a two-week tour of IT workplaces, with nightly networking.

Id est: two solid weeks of drinking.

Of course, threatening the Boss might work in getting him to see things my way, but if carried too far, the Boss will be in no state to approve the expenditure by the 21st – the purely arbitrary date set by the company. So it’s softly-softly approach for now.

“Just thought I’d drop you off your cup of tea,” I say to the Boss, popping into his office, exuding subservience from every pore.

“Got one,” he says, indicating the tea and two choccy biccies at his elbow. “Your assistant was here before you.”

“Of course he was!” I respond, not breaking my mental stride. “I’d asked him to drop it off but then I remembered that he tops off any spillage with saliva, so I thought I’d bring you a fresh one.”

“I. Ah… Yes well, fresh is probably better,” he nods.

“And I see you’ve got new monitors?”

“Yes, your assistant bought them in a few moments ago. He said he’d got them for me yesterday.”

“Did he?” I say, recognising the monitors in question as the new 30inch ultraclean monitors that actually did arrive yesterday and were, the last time I saw, attached to my desktop machine. “So what did you do to upset him?”

“Upset him?”

“Yeah. I mean for him to put them in your office. Did you.. I dunno.. steal something of his? A carpark, his lunch, the new girl in promotions and advertising?”

“I… No. But why would giving me new monitors mean that?”

“Well they’re the recalls, aren’t they?” I say, wandering over the Boss’s desk, moving the teacups aside and tapping on the front of the monitor carefully. “Hear that?”

“They’re recalls?”

“Yeah, you know, the ones that use depleted uranium pins – for strength. There was a whole documentary about it last week.”

“Really?”

“Yeah. About how the US dumps nuclear waste into Tank-Buster shells to expend on countries that don’t let them steal all their assets. So they can steal all their assets. Anyway now that avenue is running out they’re using the waste to make super-hard components for various appliances – your monitor included. We tried the monitors for a while but it didn’t work out.”

“Why?”

“The headaches. Do you get the headaches?”

“What headaches?”

“I get such bad headaches. You know, at night when you’re driving a car? I don’t know, something to do with the headlights.”

“I…”

“He didn’t try and give you a chair did he?”

“No, why?”

“Some of the chairs we got last week were found to have a depleted uranium rod in the pneumatic plunger instead of the normal stainless steel kind – chucking about a kilotoken of radbars per cubit – not at all safe – although saying that they have remarkable results with prostate cancer. There’s about 10 of them in the basement, safely behind a few inches of concrete until we can get the hazardous materials people in.”

“I…”

Our talk is interrupted by the PFY’s arrival – with a new chair.

MY new chair, as it happens, with the plastic I removed this morning reinstalled on it.

I take a few strategic steps back to add cred to the “radiation threat” idea, while the PFY blunders on oblivious.

“You probably don’t want to sit on that,” I caution the Boss.

“Why not? There’s nothing wrong with it!” the PFY snaps back.

“No, no, of course there’s not,” I say, nodding meaningfully at the Boss. “Just like there’s nothing in your cup of tea but tea.”

“There’s not!” the PFY says grabbing the cup of tea he made for the Boss and chucking it down.

A few short minutes of argument later and the experimental super strength diuretic in the cup of tea (which must have accidentally got shuffled onto the choccy biccy plate during the monitor tapping incident) takes effect.

Oh, if only in my haste to help the PFY in his hour of need I hadn’t snapped the door handle off the inside of the boss’s office…

Still, the PFY will have two weeks to shampoo the carpets while I investigate the professionalism of others. Perhaps I’ll bring him back some souvenir coasters.

Courtesy of The Mighty BOFH

How To Impress A Client

•January 25, 2012 • 6 Comments

I was in the airport VIP lounge en route to Cape Town a couple of weeks ago. While in there, I noticed Mark Shuttleworth sitting comfortably in the corner, enjoying a drink.

I was meeting a very important client who was also flying to Cape Town, but she was running a little bit late.

Well, being a straightforward kind of guy, I approached the Ubuntu Project founder, introduced myself, and said, “Mr. Shuttleworth, I wonder if you would do me a favour.”

“Yes?”

“I’m sitting right over there,” pointing to my seat at the bar, “and I’m waiting on a very important client. Would you be so kind when she arrives as to come walk by and just say, “Hi, Abner,’?”

“Sure.”

I shook his hand and thanked him and went back to my seat.

About ten minutes later, my client showed up. We ordered a drink and started to talk business.

A couple of minutes later, I felt a tap on my shoulder. It was Mark Shuttleworth.

“Hi, Abner,” he said.

I replied, “Fuck off, Shuttleworth, I’m in a meeting.” !!

Fully Uninstall Sophos

•January 23, 2012 • Leave a Comment

This script will help if you have uninstalled the Sophos Management Console before uninstalling the client application.

Save this in Notepad and save as a .bat file on your C:\ drive

Edit the content accordingly

Open Command prompt and cd c:\

Then run the .bat file

 

REM -===- VERSION 1.01 -===-


@ECHO OFF
ECHO ================================================== ==================
ECHO Sophos Anti-Virus 5.x / Sophos Anti-Virus 6.x — Removal Script
ECHO.
ECHO NOTE: Please make a full backup of the computer before you continue.
Echo.
ECHO Press any key to continue, or press Ctrl-C to Cancel.
ECHO ================================================== ==================
ECHO.
Pause.
CLS

ver|find “Windows XP” > NUL
if errorlevel 1 goto 2K
ECHO Windows XP Detected.
TASKKILL /F /IM “Almon.exe” >NUL 2>NUL
REM === Checks to ensure EM Lib, Console or PM are not installed ===
if exist “%PROGRAMFILES%\sophos\enterprise console\cac.pem” GOTO ERR
if exist “%PROGRAMFILES%\sophos\enterprise manager\library\cac.pem” GOTO ERR
if exist “%PROGRAMFILES%\Sophos\PureMessage\bin\puremessage .msc” (GOTO ERR) ELSE (GOTO PASS)

:Vista
ver|find “Windows Vista” >NUL
if errorlevel 1 goto 2k3
ECHO Windows 2000 Detected.
REM === Checks to ensure EM Lib, Console or PM are not installed ===
if exist “%PROGRAMFILES%\sophos\enterprise console\cac.pem” GOTO ERR
if exist “%PROGRAMFILES%\sophos\enterprise manager\library\cac.pem” GOTO ERR
if exist “%PROGRAMFILES%\Sophos\PureMessage\bin\puremessage .msc” (GOTO ERR) ELSE (GOTO PASS)

:7
ver|find “Windows 7″ >NUL
if errorlevel 1 goto ERR
ECHO Windows 2003 Detected.
TASKKILL /F /IM “Almon.exe” >NUL 2>NUL
REM === Checks to ensure EM Lib, Console or PM are not installed ===
if exist “%PROGRAMFILES%\sophos\enterprise console\cac.pem” GOTO ERR
if exist “%PROGRAMFILES%\sophos\enterprise manager\library\cac.pem” GOTO ERR
if exist “%PROGRAMFILES%\Sophos\PureMessage\bin\puremessage .msc” (GOTO ERR) ELSE (GOTO PASS)

:P ASS

ECHO.
ECHO Performing regular MSI based removal…
MSIEXEC /X {15C418EB-7675-42be-B2B3-281952DA014D} /qn /l*v c:\sau2_unist.txt 2> NUL
MSIEXEC /X {C12953C2-4F15-4A6C-91BC-511B96AE2775} /qn /l*v c:\sau_unist.txt 2> NUL
MSIEXEC /X {09C6BF52-6DBA-4A97-9939-B6C24E4738BF} REBOOT=SUPPRESS /qn /l*v c:\sav_unist.txt 2> NUL
MSIEXEC /X {FF11005D-CBC8-45D5-A288-25C7BB304121} /qn /l*v c:\rms_unist.txt 2> NUL
ECHO Completed.

ECHO.
ECHO Performing MSI Cleanup (if available)…
“%PROGRAMFILES%\Windows Installer Clean Up\MSIZAP.EXE” tw {15C418EB-7675-42be-B2B3-281952DA014D} > C:\sop_msiclnup.txt
ECHO -===- END OF SAU2 -===- >> C:\sop_msiclnup.txt

“%PROGRAMFILES%\Windows Installer Clean Up\MSIZAP.EXE” tw {09C6BF52-6DBA-4A97-9939-B6C24E4738BF} >> C:\sop_msiclnup.txt
ECHO -===- END OF SAV -===- >> C:\sop_msiclnup.txt

“%PROGRAMFILES%\Windows Installer Clean Up\MSIZAP.EXE” tw {C12953C2-4F15-4A6C-91BC-511B96AE2775} >> C:\sop_msiclnup.txt
ECHO -===- END OF SAU -===- >> C:\sop_msiclnup.txt

“%PROGRAMFILES%\Windows Installer Clean Up\MSIZAP.EXE” tw {FF11005D-CBC8-45D5-A288-25C7BB304121} >> C:\sop_msiclnup.txt
ECHO -===- END OF RMS -===- >> C:\sop_msiclnup.txt
Echo Completed.

ECHO.
ECHO Constructing Registry Keys for removal…
ECHO Completed.

ECHO REGEDIT4 > %TEMP%\SOTMP.REG
ECHO. >> %TEMP%\SOTMP.REG

REM ====** Registry Keys marked for Removal **================================================ =====================

REM === MSI Installer GUIDs ===
ECHO [-HKEY_CLASSES_ROOT\Installer\Products\25FB6C90ABD67 9A499936B2CE47483FB] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_CLASSES_ROOT\Installer\Products\BE814C515767e b242B3B829125AD10D4] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_CLASSES_ROOT\Installer\Products\2C35921C51F4C 6A419CB15B169EA7257] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_CLASSES_ROOT\Installer\Products\D50011FF8CBC5 D542A88527CBB031412] >> %TEMP%\SOTMP.REG

ECHO [-HKEY_CLASSES_ROOT\Installer\Features\25FB6C90ABD67 9A499936B2CE47483FB] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_CLASSES_ROOT\Installer\Features\BE814C515767e b242B3B829125AD10D4] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_CLASSES_ROOT\Installer\Features\2C35921C51F4C 6A419CB15B169EA7257] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_CLASSES_ROOT\Installer\Features\D50011FF8CBC5 D542A88527CBB031412] >> %TEMP%\SOTMP.REG

ECHO [-HKEY_CLASSES_ROOT\Installer\UpgradeCodes\E932B7952 303A1943A2218777329E5A8] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_CLASSES_ROOT\Installer\UpgradeCodesD6888B32 A8929940ACA98A3DEBB94B4] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_CLASSES_ROOT\Installer\UpgradeCodes\A2ECF5789 F971654CBB5476964870E94] >> %TEMP%\SOTMP.REG

ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Feat ures\25FB6C90ABD679A499936B2CE47483FB] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Feat ures\BE814C515767eb242B3B829125AD10D4] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Feat ures\2C35921C51F4C6A419CB15B169EA7257] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Feat ures\D50011FF8CBC5D542A88527CBB031412] >> %TEMP%\SOTMP.REG

ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Prod ucts\25FB6C90ABD679A499936B2CE47483FB] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Prod ucts\BE814C515767eb242B3B829125AD10D4] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Prod ucts\2C35921C51F4C6A419CB15B169EA7257] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Prod ucts\D50011FF8CBC5D542A88527CBB031412] >> %TEMP%\SOTMP.REG

ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Upgr adeCodes\E932B7952303A1943A2218777329E5A8] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Upgr adeCodesD6888B32A8929940ACA98A3DEBB94B4] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Upgr adeCodes\A2ECF5789F971654CBB5476964870E94] >> %TEMP%\SOTMP.REG

ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Installer\UpgradeCodes\E932B7952303A194 3A2218777329E5A8] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Installer\UpgradeCodesD6888B32A892994 0ACA98A3DEBB94B4] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Installer\UpgradeCodes\A2ECF5789F971654 CBB5476964870E94] >> %TEMP%\SOTMP.REG

ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Installer\UserData\S-1-5-18\Products\25FB6C90ABD679A499936B2CE47483FB] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Installer\UserData\S-1-5-18\Products\BE814C515767eb242B3B829125AD10D4] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Installer\UserData\S-1-5-18\Products\2C35921C51F4C6A419CB15B169EA7257] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Installer\UserData\S-1-5-18\Products\D50011FF8CBC5D542A88527CBB031412] >> %TEMP%\SOTMP.REG

REM === Sophos Application Settings ===
ECHO [-HKEY_CURRENT_USER\Software\Sophos] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\Software\Sophos] >> %TEMP%\SOTMP.REG

REM === Sophos Uninstall Keys ===
ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\{09C6BF52-6DBA-4A97-9939-B6C24E4738BF}] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\{15C418EB-7675-42be-B2B3-281952DA014D}] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\{C12953C2-4F15-4A6C-91BC-511B96AE2775}] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\{FF11005D-CBC8-45D5-A288-25C7BB304121}] >> %TEMP%\SOTMP.REG

REM === Sophos Legacy Services Set01 ===
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\ LEGACY_SAVADMINSERVICE] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\ LEGACY_SAVONACCESS_CONTROL] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\ LEGACY_SAVONACCESS_FILTER] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\ LEGACY_SAVSERVICE] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\ LEGACY_SOPHOS_AGENT] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\ LEGACY_SOPHOS_AUTOUPDATE_AGENT] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\ LEGACY_SOPHOS_AUTOUPDATE_SERVICE] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\Root\ LEGACY_SOPHOS_MESSAGE_ROUTER] >> %TEMP%\SOTMP.REG

REM === Sophos Event Log Registration Set01 ===
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\E ventlog\Application\SophosAntiVirus] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\E ventlog\System\SAVOnAccess Control] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\E ventlog\System\SAVOnAccess Filter] >> %TEMP%\SOTMP.REG

REM === Sophos Services Set01 ===
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\S AVAdminService] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\S AVOnAccess Control] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\S AVOnAccess Filter] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\S AVService] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\S ophos Agent] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\S ophos AutoUpdate Agent] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\S ophos AutoUpdate Service] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\S ophos Message Router] >> %TEMP%\SOTMP.REG

REM === Sophos Legacy Services Current===
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\LEGACY_SAVADMINSERVICE] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\LEGACY_SAVONACCESS_CONTROL] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\LEGACY_SAVONACCESS_FILTER] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\LEGACY_SOPHOS_AGENT] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\LEGACY_SAVSERVICE] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\LEGACY_SOPHOS_AUTOUPDATE_AGENT] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\LEGACY_SOPHOS_AUTOUPDATE_SERVICE] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\R oot\LEGACY_SOPHOS_MESSAGE_ROUTER] >> %TEMP%\SOTMP.REG

REM === Sophos Event Log Registration Current ===
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Eventlog\Application\SophosAntiVirus] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Eventlog\System\SAVOnAccess Control] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Eventlog\System\SAVOnAccess Filter] >> %TEMP%\SOTMP.REG

REM === Sophos Services Current ===
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\SAVAdminService] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\SAVOnAccess Control] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\SAVOnAccess Filter] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\SAVService] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Sophos Agent] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Sophos AutoUpdate Agent] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Sophos AutoUpdate Service] >> %TEMP%\SOTMP.REG
ECHO [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Sophos Message Router] >> %TEMP%\SOTMP.REG

REM ================================================== ================================================== ==========

ECHO.
ECHO Stopping Sophos Anti-Virus Services…
net stop “Sophos Agent” 2> NUL
net stop “Sophos Anti-Virus” 2> NUL
net stop “Sophos Anti-Virus status reporter” 2> NUL
net stop “Sophos AutoUpdate Service” 2> NUL
net stop “Sophos Message Router” 2> NUL
ECHO Completed.

GOTO SERXP

:RESUME
ECHO.
ECHO Unregistering DLLs…

REM === Sophos Anti-Virus DLLs ===
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\backgroundscanning.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\componentmanager.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\configuration.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\desktopmessaging.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\driveprocessor.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\eeconsumer.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\filterprocessors.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\fsdecomposer.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\icadapter.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\icmanagement.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\icprocessors.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\legacyconsumers.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\localisation.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\logging.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\persistance.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\SAVI0.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\SAVMSCM.DLL”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\savshellext.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\scaneditexports.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\scaneditfacade.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\scanmanagement.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\security.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\sophtaineradapter.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\systeminformation.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\threatdetection.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\threatmanagement.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\translators.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\Sophos Anti-Virus\virusdetection.dll”

REM === Sophos AutoUpdate DLLs ===
regsvr32 /u /s “%PROGRAMFILES%\Sophos\AutoUpdate\cidsync.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\AutoUpdate\config.dll”
regsvr32 /u /s “%PROGRAMFILES%\Sophos\AutoUpdate\inetconn.dll “
regsvr32 /u /s “%PROGRAMFILES%\Sophos\AutoUpdate\InstlMgr.dll “
regsvr32 /u /s “%PROGRAMFILES%\Sophos\AutoUpdate\ispsheet.dll “
regsvr32 /u /s “%PROGRAMFILES%\Sophos\AutoUpdate\logger.dll”
ECHO Completed.

ECHO.
ECHO Removing the Sophos Installation Files…

REM === Emtpies the temporary files folders, folders are recreated if they are empty ===
RD /s /Q %TEMP% 2> NUL
MD %TEMP% 2> NUL
RD /s /Q %WINDIR%\TEMP\ 2> NUL
MD %WINDIR%\Temp 2> NUL

REM === Remove Sophos created folders and files ===
RD /S /Q “%PROGRAMFILES%\SOPHOS\AutoUpdate” 2> NUL
RD /S /Q “%PROGRAMFILES%\SOPHOS\Sophos Anti-Virus” 2> NUL
RD /S /Q “%PROGRAMFILES%\SOPHOS\Remote Management System” 2> NUL
RD /S /Q “%PROGRAMFILES%\SOPHOS\” 2> NUL
RD /S /Q “C:\SAVXPSA” 2> NUL
RD /s /Q “%ALLUSERSPROFILE%\Start Menu\Programs\Sophos” 2> NUL
RD /S /Q “%ALLUSERSPROFILE%\Application Data\Sophos” 2> NUL
RD /S /Q “%USERPROFILE%\Application Data\Sophos” 2> NUL
DEL /Q “%ALLUSERSPROFILE%\Start Menu\Programs\Startup\AutoUpdate Monitor.lnk” 2> NUL
RD /S /Q “%WINDIR%\Installer\{09C6BF52-6DBA-4A97-9939-B6C24E4738BF}” 2> NUL
RD /S /Q “%WINDIR%\Installer\{15C418EB-7675-42be-B2B3-281952DA014D}” 2> NUL
RD /S /Q “%WINDIR%\Installer\{C12953C2-4F15-4A6C-91BC-511B96AE2775}” 2> NUL
RD /S /Q “%WINDIR%\Installer\{FF11005D-CBC8-45D5-A288-25C7BB304121}” 2> NUL
DEL /Q “%WINDIR%\System32\Drivers\savonaccesscontrol. sys” 2> NUL
DEL /Q “%WINDIR%\System32\Drivers\savonaccessfilter.s ys” 2> NUL
ECHO Completed.

REM === Remove the typical Sophos account/groups for Sophos AutoUpdate ===
ECHO.
ECHO Deleting Sophos Accounts and Sophos Groups…
Net user SophosSAU%COMPUTERNAME%0 /DELETE 2> NUL
Net user SophosSAU%COMPUTERNAME%1 /DELETE 2> NUL
Net user SophosSAU%COMPUTERNAME%2 /DELETE 2> NUL
Net user SophosSAU%COMPUTERNAME%3 /DELETE 2> NUL

Net localgroup SophosAdministrator /DELETE 2> NUL
Net localgroup SophosOnAccess /DELETE 2> NUL
Net localgroup SophosPowerUser /DELETE 2> NUL
Net localgroup SophosUser /DELETE 2> NUL
ECHO Completed.

GOTO END

:SERXP
ver|find “Windows XP” > NUL
if errorlevel 1 goto SER2K3
ECHO.
ECHO (XP) Deleting Sophos Services…
sc delete SAVService > NUL
sc delete SAVAdminService > NUL
sc delete “Sophos Agent” > NUL
sc delete “Sophos AutoUpdate Agent” > NUL
sc delete “Sophos AutoUpdate Service” > NUL
sc delete “Sophos Message Router” > NUL
ECHO Completed.
ECHO.
ECHO Removing the Sophos Registry Keys…
SC create SopReg binpath= “cmd /K START /WAIT REGEDIT /S %TEMP%\SOTMP.REG” type= own type= interact
sc start “SopReg” > NUL
sc delete “SopReg”
ECHO Completed.
GOTO RESUME

:SER2K3
ver|find “Version 5.2″ >NUL
if errorlevel 1 goto SER2K
ECHO.
ECHO (2K3) Deleting Sophos Services…
sc delete SAVService > NUL
sc delete SAVAdminService > NUL
sc delete “Sophos Agent” > NUL
sc delete “Sophos AutoUpdate Agent” > NUL
sc delete “Sophos AutoUpdate Service” > NUL
sc delete “Sophos Message Router” > NUL
ECHO Completed.
ECHO.
ECHO Removing the Sophos Registry Keys…
SC create SopReg binpath= “cmd /K START /WAIT REGEDIT /S %TEMP%\SOTMP.REG” type= own type= interact
sc start “SopReg” > NUL
sc delete “SopReg”
ECHO Completed.
GOTO RESUME

:SER2K
ver|find “Windows 2000″ >NUL
if errorlevel 1 goto END
ECHO.
ECHO Removing the Sophos Registry Keys…
REGEDIT /S %TEMP%\SOTMP.REG
ECHO Completed.
GOTO RESUME

:END
ECHO.
ECHO ================================================== ==
ECHO Please reboot the computer and run this script again
ECHO If you have not already done so.
ECHO ================================================== ==
Echo.
Pause
EXIT

:ERR
ECHO.
ECHO ================================================== ============
ECHO Script has terminated because either your O.S is Windows 9x/NT
ECHO OR Puremessage/Enterprise Console/EM Library was found.
ECHO ================================================== ============
Pause
EXIT

12 Things Successful People Do Differently

•January 23, 2012 • Leave a Comment

I’ve always been fascinated by people who are consistently successful at what they do; especially those who experience repeated success in many areas of their life throughout their lifetime.  In entertainment, I think of Clint Eastwood and Oprah Winfrey.  In business, I think of Steve Jobs and Warren Buffett.  We all have our own examples of super successful people like these who we admire.  But how do they do it?

Over the years I’ve studied the lives of numerous successful people.  I’ve read their books, watched their interviews, researched them online, etc.  And I’ve learned that most of them were not born into success; they simply did, and continue to do, things that help them realize their full potential.  Here are twelve things they do differently that the rest of us can easily emulate.

1.  They create and pursue S.M.A.R.T. goals.

Successful people are objective.  They have realistic targets in mind.  They know what they are looking for and why they are fighting for it.  Successful people create and pursue S.M.A.R.T. goals.

S.M.A.R.T. goals are Specific, Measurable, Attainable, Relevant, and Timely.  Let’s briefly review each:

  • Specific – A general goal would be, “Get in shape.” But a related specific goal would be, “Join a health club and workout 3 days a week for the next52 weeks.”  A specific goal has a far greater chance of being accomplished because it has defined parameters and constraints.
  • Measurable – There must be a logical system for measuring the progress of a goal.  To determine if your goal is measurable, ask yourself questions like:  How much time? How many total?  How will I know when the goal is accomplished? etc.  When you measure your progress, you stay on track, reach your target dates, and experience the exhilaration of achievement that spurs you on to continued efforts required to reach your goal.
  • Attainable – To be attainable, a goal must represent an objective toward which you are both willing and able to work.  In other words, the goal must be realistic.  The big question here is:  How can the goal be accomplished?
  • Relevant – Relevance stresses the importance of choosing goals that matter.  For example, an internet entrepreneur’s goal to “Make 75 tuna sandwiches by 2:00PM.” may be Specific, Measurable, Attainable, and Timely, but lacks Relevance to an entrepreneurs overarching objective of building a profitable online business.
  • Timely – A goal must be grounded within a time frame, giving the goal a target date.  A commitment to a deadline helps you focus your efforts on the completion of the goal on or before the due date.  This part of the S.M.A.R.T. goal criteria is intended to prevent goals from being overtaken by daily distractions.

When you identify S.M.A.R.T. goals that are truly important to you, you become motivated to figure out ways to attain them.  You develop the necessary attitude, abilities, and skills.  You can achieve almost any goal you set if you plan your steps wisely and establish a time frame that allows you to carry out those steps.  Goals that once seemed far away and out of reach eventually move closer and become attainable, not because your goals shrink, but because you grow and expand to match them.

2.  They take decisive and immediate action.

Sadly, very few people ever live to become the success story they dream about.  And there’s one simple reason why:

They never take action!

The acquisition of knowledge doesn’t mean you’re growing.  Growing happens when what you know changes how you live.   So many people live in a complete daze.  Actually, they don’t ‘live.’  They simply ‘get by’ because they never take the necessary action to make things happen – to seek their dreams.

It doesn’t matter if you have a genius IQ and a PhD in Quantum Physics, you can’t change anything or make any sort of real-world progress without taking action.  There’s a huge difference between knowing how to do something and actually doing it.  Knowledge and intelligence are both useless without action.  It’s as simple as that.

Success hinges on the simple act of making a decision to live – to absorb yourself in the process of going after your dreams and goals.  So make that decision.  And take action.  For some practical guidance on taking action I highly recommend Getting Things Done.

3.  They focus on being productive, not being busy.

In his book, The 4-Hour Workweek, Tim Ferris says, “Slow down and remember this:  Most things make no difference.  Being busy is often a form of mental laziness – lazy thinking and indiscriminate action.”  This is Ferris’ way of saying “work smarter, not harder,” which happens to be one of the most prevalent modern day personal development clichés.  But like most clichés, there’s a great deal of truth to it, and few people actually adhere to it.

Just take a quick look around.  The busy outnumber the productive by a wide margin.

Busy people are rushing all over the place, and running late half of the time.  They’re heading to work, conferences, meetings, social engagements, etc.  They barely have enough free time for family get-togethers and they rarely get enough sleep.  Yet, business emails are shooting out of their smart phones like machine gun bullets, and their daily planner is jammed to the brim with obligations.

Their busy schedule gives them an elevated sense of importance.  But it’s all an illusion.  They’re like hamsters running on a wheel.

The solution:  Slow down.  Breathe.  Review your commitments and goals.  Put first things first.  Do one thing at a time.  Start now.  Take a short break in two hours.  Repeat.

And always remember, results are more important than the time it takes to achieve them.

4.  They make logical, informed decisions.

Sometimes we do things that are permanently foolish simply because we are temporarily upset or excited.

Although emotional ‘gut instincts’ are effective in certain fleeting situations, when it comes to generating long-term, sustained growth in any area of life, emotional decisions often lead a person astray.  Decisions driven by heavy emotion typically contain minimal amounts of conscious thought, and are primarily based on momentary feelings instead of mindful awareness.

The best advice here is simple:  Don’t let your emotions trump your intelligence.  Slow down and think things through before you make any life-changing decisions.

5.  They avoid the trap of trying to make things perfect.

Many of us are perfectionists in our own right.  I know I am at times.  We set high bars for ourselves and put our best foot forward.  We dedicate copious amounts of time and attention to our work to maintain our high personal standards.  Our passion for excellence drives us to run the extra mile, never stopping, never relenting.  And this dedication towards perfection undoubtedly helps us achieve results…  So long as we don’t get carried away.

But what happens when we do get carried away with perfectionism?

We become disgruntled and discouraged when we fail to meet the (impossibly high) standards we set for ourselves, making us reluctant to take on new challenges or even finish tasks we’ve already started.  Our insistence on dotting every ‘I’ and crossing every ‘T’ breeds inefficiency, causing major delays, stress overload and subpar results.

True perfectionists have a hard time starting things and an even harder time finishing them, always.  I have a friend who has wanted to start a graphic design business for several years.  But she hasn’t yet.  Why?  When you sift through her extensive list of excuses it comes down to one simple problem:  She is a perfectionist.  Which means she doesn’t, and never will, think she’s good enough at graphic design to own and operate her own graphic design business.

Remember, the real world doesn’t reward perfectionists.  It rewards people who get things done.  And the only way to get things done is to be imperfect 99% of the time.  Only by wading through years of practice and imperfection can we begin to achieve momentary glimpses of the perfection.  So make a decision.  Take action, learn from the outcome, and repeat this method over and over again in all walks of life.  Also, check out Too Perfect.  It’s an excellent read on conquering perfectionism.

6.  They work outside of their comfort zone.

The number one thing I persistently see holding smart people back is their own reluctance to accept an opportunity simply because they don’t think they’re ready.  In other words, they feel uncomfortable and believe they require additional knowledge, skill, experience, etc. before they can aptly partake in the opportunity.  Sadly, this is the kind of thinking that stifles personal growth and success.

The truth is nobody ever feels 100% ready when an opportunity arises.  Because most great opportunities in life force us to grow emotionally and intellectually.  They force us to stretch ourselves and our comfort zones, which means we won’t feel totally comfortable at first.  And when we don’t feel comfortable, we don’t feel ready.

Significant moments of opportunity for personal growth and success will come and go throughout your lifetime.  If you are looking to make positive changes and new breakthroughs in your life, you will need to embrace these moments of opportunity even though you will never feel 100% ready for them.

7.  They keep things simple.

Leonardo da Vinci once said, “Simplicity is the ultimate sophistication.”  Nothing could be closer to the truth.  Here in the 21st century, where information moves at the speed of light and opportunities for innovation seem endless, we have an abundant array of choices when it comes to designing our lives and careers.  But sadly, an abundance of choice often leads to complication, confusion and inaction.

Several business and marketing studies have shown that the more product choices a consumer is faced with, the less products they typically buy.  After all, narrowing down the best product from a pool of three choices is certainly a lot easier than narrowing down the best product from a pool of three hundred choices.  If the purchasing decision is tough to make, most people will just give up.  Likewise, if you complicate your life by inundating yourself with too many choices, your subconscious mind will give up.

The solution is to simplify.  If you’re selling a product line, keep it simple.  And if you’re trying to make a decision about something in your life, don’t waste all your time evaluating every last detail of every possible option.  Choose something that you think will work and give it a shot.  If it doesn’t work out, learn what you can from the experience, choose something else and keep pressing forward.

8.  They focus on making small, continuous improvements.

Henry Ford once said, “Nothing is particularly hard if you divide it into small pieces.” The same concept configured as a question:  How do you eat an elephant?  Answer: One bite at a time.  This philosophy holds true for achieving your biggest goals.  Making small, positive changes – eating a little healthier, exercising a little, creating some small productive habits, for example – is an amazing way to get excited about life and slowly reach the level of success you aspire to.

And if you start small, you don’t need a lot of motivation to get started either.  The simple act of getting started and doing something will give you the momentum you need, and soon you’ll find yourself in a positive spiral of changes – one building on the other.  When I started doing this in my life, I was so excited I had to start this blog to share it with the world.

Start with just one activity, and make a plan for how you will deal with troubles when they arise.  For instance, if you’re trying to lose weight, come up with a list of healthy snacks you can eat when you get the craving for snacks.  It will be hard in the beginning, but it will get easier.  And that’s the whole point.  As your strength grows, you can take on bigger challenges.

9.  They measure and track their progress.

Successful people are not only working in their job/business, they are also working on it.  They step back and assess their progress regularly.  They track themselves against their goals and clearly know what needs to be done to excel and accelerate.

You can’t control what you don’t properly measure.  If you track the wrong things you’ll be completely blind to potential opportunities as they appear over the horizon.  Imagine if, while running a small business, you made it a point to keep track of how many pencils and paperclips you used.  Would that make any sense?  No!  Because pencils and paperclips are not a measure of what’s important for a business.  Pencils and paperclips have no bearing on income, customer satisfaction, market growth, etc.

The proper approach is to figure out what your number one goal is and then track the things that directly relate to achieving that goal.  I recommend that you take some time right now to identify your number one goal, identify the most important things for you to keep track of, and then begin tracking them immediately.  On a weekly basis, plug the numbers into a spreadsheet and use the data to create weekly or monthly trend graphs so you can visualize your progress.  Then fine-tune your actions to get those trends to grow in your favor.

10.  They maintain a positive outlook as they learn from their mistakes.

Successful people concentrate on the positives – they look for the silver lining in every situation.  They know that it is their positivity that will take them to greatness.  If you want to be successful, you need to have a positive outlook toward life.  Life will test you again and again.  If you give in to internal negativity, you will never be able to achieve the marks you have targeted.

Remember, every mistake you make is progress.  Mistakes teach you important lessons.  Every time you make one, you’re one step closer to your goal.  The only mistake that can truly hurt you is choosing to do nothing simply because you’re too scared to make a mistake.

So don’t hesitate – don’t doubt yourself!  Don’t let your own negativity sabotage you.  Learn what you can and press forward.

11.  They spend time with the right people.

Successful people associate with people who are likeminded, focused, and supportive.  They socialize with people who create energy when they enter the room versus those who create energy when they leave.  They reach out to connected, influential individuals who are right for their dreams and goals.

You are the sum of the people you spend the most time with.  If you hang with the wrong people, they will negatively affect you.  But if you hang with the right people, you will become far more capable and successful than you ever could have been alone.  Find your tribe and work together to make a difference in all of your lives.  Tribes by Seth Godin is a great read on this topic.

12.  They maintain balance in their life.

If you ask most people to summarize what they want out of life they’ll shout out a list of things like: ‘fall in love,’ ‘make money,’ ‘spend time with family,’ ‘find happiness,’ ‘achieve goals,’ etc.  But sadly, a lot of people don’t balance their life properly to achieve these things.  Typically they’ll achieve one or two of them while completely neglecting the rest.  Let me give you two examples:

  • I know an extremely savvy businesswoman who made almost a million dollars online last year. Based on the success of her business, every entrepreneur I know looks up to her.  But guess what?  A few days ago, out of the blue, she told me that she’s depressed.  Why?  “I’m burnt out and lonely.  I just haven’t taken enough time for myself lately, and I feel like something is missing in my life,” she said.  “Wow!” I thought.  “One of the most successful people I know doesn’t feel successful because she isn’t happy with how she has balanced her life.”
  • I also know a surfer who surfs all day, every day on the beach in front of our condo complex in San Diego.  He’s one of the most lighthearted, optimistic guys I’ve ever met – usually smiling from ear to ear.  But he sleeps in a rusty van he co-owns with another surfer, and they both frequently panhandle tourists for money.  He has admitted to me that the stress of making enough money to eat often keeps him up at night.  So while I can’t deny that this man seems happy most of the time, I wouldn’t classify his life as a success story.

These are just two simple examples of imbalanced lifestyles that are holding people back from their full potential.  When you let your work life (or social life, family life, etc.) consume you, and all your energy is focused in that area, it’s extremely easy to lose your balance.  While drive and focus are important, if you’re going to get things done right, and be truly successful, you need to balance the various dimensions of your life.  Completely neglecting one dimension for another only leads to long-term frustration and stress.  For some practical guidance on balancing your life, I recommend Zen and the Art of Happiness.

Courtesy of Marc

vmstat :: Detect Problems That Can Adversely Affect System Performance

•January 20, 2012 • Leave a Comment

Just using a lot of swap space doesn’t necessarily mean that you need more memory. Here’s how to tell when Linux is happy with the available memory and when it needs more.

Linux novices often find virtual memory mysterious, but with a grasp of the fundamental concepts, it’s easy to understand. With this knowledge, you can monitor your system’s memory utilization using vmstat and detect problems that can adversely affect system performance.

How Virtual Memory Works

Physical memory—the actual RAM installed—is a finite resource on any system. The Linux memory handler manages the allocation of that limited resource by freeing portions of physical memory when possible.

All processes use memory, of course, but each process doesn’t need all its allocated memory all the time. Taking advantage of this fact, the kernel frees up physical memory by writing some or all of a process’ memory to disk until it’s needed again.

The kernel uses paging and swapping to perform this memory management. Paging refers to writing portions, termed pages, of a process’ memory to disk. Swapping, strictly speaking, refers to writing the entire process, not just part, to disk. In Linux, true swapping is exceedingly rare, but the terms paging and swapping often are used interchangeably.

When pages are written to disk, the event is called a page-out, and when pages are returned to physical memory, the event is called a page-in. A page fault occurs when the kernel needs a page, finds it doesn’t exist in physical memory because it has been paged-out, and re-reads it in from disk.

Page-ins are common, normal and are not a cause for concern. For example, when an application first starts up, its executable image and data are paged-in. This is normal behavior.

Page-outs, however, can be a sign of trouble. When the kernel detects that memory is running low, it attempts to free up memory by paging out. Though this may happen briefly from time to time, if page-outs are plentiful and constant, the kernel can reach a point where it’s actually spending more time managing paging activity than running the applications, and system performance suffers. This woeful state is referred to as thrashing.

Using swap space is not inherently bad. Rather, it’s intense paging activity that’s problematic. For instance, if your most-memory-intensive application is idle, it’s fine for portions of it to be set aside when another large job is active. Memory pages belonging to an idle application are better set aside so the kernel can use physical memory for disk buffering.

Using vmstat

vmstat, as its name suggests, reports virtual memory statistics. It shows how much virtual memory there is, how much is free and paging activity. Most important, you can observe page-ins and page-outs as they happen. This is extremely useful.

To monitor the virtual memory activity on your system, it’s best to use vmstat with a delay. A delay is the number of seconds between updates. If you don’t supply a delay, vmstat reports the averages since the last boot and quit. Five seconds is the recommended delay interval.

To run vmstat with a five-second delay, type:

vmstat 5

You also can specify a count, which indicates how many updates you want to see before vmstat quits. If you don’t specify a count, the count defaults to infinity, but you can stop output with Ctrl-C.

To run vmstat with ten updates, five seconds apart, type:

vmstat 5 10

Here’s an example of a system free of paging activity:

  procs memory swap io system cpu r b w swpd free buff cache si so bi bo in cs us sy id 0 0 0 29232 116972 4524 244900 0 0 0 0 0 0 0 0 0 0 0 0 29232 116972 4524 244900 0 0 0 0 2560 6 0 1 99 0 0 0 29232 116972 4524 244900 0 0 0 0 2574 10 0 2 98

All fields are explained in the vmstat man page, but the most important columns for this article are free, si and so. The free column shows the amount of free memory, si shows page-ins and so shows page-outs. In this example, the so column is zero consistently, indicating there are no page-outs.

The abbreviations so and si are used instead of the more accurate po and pi for historical reasons.

Here’s an example of a system with paging activity:

  procs memory swap io system cpu r b w swpd free buff cache si so bi bo in cs us sy id . . . 1 0 0 13344 1444 1308 19692 0 168 129 42 1505 713 20 11 69 1 0 0 13856 1640 1308 18524 64 516 379 129 4341 646 24 34 42 3 0 0 13856 1084 1308 18316 56 64 14 0 320 1022 84 9 8

Notice the nonzero so values indicating there is not enough physical memory and the kernel is paging out. You can use top and ps to identify the processes that are using the most memory.

You also can use top to show memory and swap statistics. Here is an example of the uppermost portion of a typical top report:

14:23:19 up 348 days, 3:02, 1 user, load average: 0.00, 0.00, 0.00 55 processes: 54 sleeping, 1 running, 0 zombie, 0 stopped CPU states: 0.0% user, 2.4% system, 0.0% nice, 97.6% idle Mem: 481076K total, 367508K used, 113568K free, 4712K buffers Swap: 1004052K total, 29852K used, 974200K free, 244396K cached

Conclusion

It isn’t necessarily bad for your system to be using some of its swap space. But if you discover your system is often running low on physical memory and paging is causing performance to suffer, add more memory. If you can’t add more memory, run memory-intensive jobs at different times of the day, avoid running nonessential jobs when memory demand is high or distribute jobs across multiple systems if possible.

Courtesy of Brian K. Tanaka

Truth Be Told, Never Say Never

•January 9, 2012 • 2 Comments

Looking back at how you have dealt with what life’s circumstances throw at you, you come to realize that there is so much you looked at and thought ‘Never’…”I will never do that or I will never be in that situation”. Then what happened…why did it eventually happen to you regardless of your adamant stance a few months/years ago? I like to think that ‘never’ isn’t a word…it’s a truth that should not be misused else it bites!

Sitting in a pub some many moons ago, a close friend of mine proclaimed ‘Never’ to give in to the thought of one woman for life…a year later he was tying the knot with his newly found love. We were happy for him, but then again joked at how quickly we forget. How often have we heard or better yet said the words “I will never drink like that again!”, only to find ourselves with the same hungover a week later?

I believe that we sometimes let our current situation or emotions speak for us and it never really registers in our mind what we really mean. That way when it happens again, it’s never a realization that “oh shit”, I did what I vowed never to do.

The lesson here is, however much human we are and are not perfect, we need to learn to make conscious decisions and “live without regret”. We need to know that whatever decisions we make, they eventually have a ripple effect for a long time to come and we should be ready to live with that. Just never say NEVER!

It’s All About How You Get Back Up

•December 15, 2011 • 3 Comments

The one thing that surely gets drilled into our minds from a very young age is that ‘life is not easy’! But why do we forget this only to get a harsh reminder from time to time? We often forget to cherish the good times, the close friends, the loving partner…only to be hit with a harsh reality check when it all falls away.

Long time ago I read a Buddhist saying that really changed the way I approach anything in life. Many ask me why I’m always so composed even when the chips are down, why they have never seen me stress about something. Well it’s all because of the saying “A mind like water”.

Picture a pond of water on a calm early morning. The stillness of the water disguising it’s actual depth yet making it possible for you to see your reflection like you were looking in a mirror. Now imagine that stillness being disturbed by you throwing a pebble into the water…the ripples it causes spreading out to the edges as the pebble finds it’s way slowly to the bottom of the pond. That disturbance only gets to last a few seconds, but as much as it seemed to have disrupted the pond’s calm state, that state is quickly restored.

A mind of water states that whatever disturbance you encounter in life, you always need to find a way to get back your state of normality, your calmness. Life’s origins are in whatever we see around us…nature. Einstein broke down levels of intelligence as Clever, Smart, Brilliant, Genius, and SIMPLE.

We tend to complicate our lives for no reason…look for the most complex solutions to issues like my computer is on but my monitor isn’t working, when all that needs to be done is to plug it in and turn the power on.

Most of the problems we encounter are results of a simple thing we were too lazy to accomplish. We procrastinate on things to be done like paying your TV licence, or even car licence only to get fined and end up paying three times the original amount. 90% of what we struggle with in life is usually caused by us…our neglect to complete ‘simple’ tasks.

Life is harsh and unforgiving towards silly slip-ups! We all know we shouldn’t drink and drive but find ourselves in the driving seat after a hectic binge. So who are we to blame when we get into an accident?

“Live without regret is my policy. Do things right the first time, and since we are all human and are expected to make mistakes once in a while, let’s learn from them and not get into the same situations again. And never to forget the age-old saying of do unto others as you would like done unto you.

Love life and live it to the full!!

Licence to grill … stupid users

•November 24, 2011 • 1 Comment

“Hello, You’re speaking with Simon – or rather, Version 3.1 recurring”

“Sorry?” my user asks.

“Version 3.1 recurring. Speaking.”

“Can’t you just give me Office 2003 back?” he whines.

“Sorry, Office 2003 is ancient history – like calculator watches, white jeans for men and the expression ‘snazzy’.”

“Why?”

“It was superseded by ‘cool’ I suppose.”

“No, I meant why is Office 2003 history?”

“Because there’s a revenue stream to protect.”

“A revenue stream?”

“Yeah, you know, give a man a fish and he’s fed for a day, sell a man a fishing rod and he’s fed for a week – till you release fishing rod 2.0 which doesn’t snap with fish heavier than a pound, then he’s fed for another week – till you release fishing rod 3.0, which doesn’t snap on fish heavier that 1.25 pounds, and he’s fed for another week, and so on. You keep paying.”

“But in the end you’ll run out of versions.”

“Weren’t you listening earlier? We’ll never run out of versions! Version 4 has what we’ll call ‘lightning wire’ technology to make it reel faster or some other crap. All designed by the savant team who studied penguin fish catching techniques in between treatments.”

“But penguins don’t use f…”

“Version 5 will come with a nanite-structure filament or some other bollocks which won’t work on older rods – although we’ll sell you a compatibility winder that will almost work – so long as you don’t want to reel fish in after you catch them. And we just keep doing that until you start to realise that rod version 3 would probably have been OK for the fishing you want to do, instead of paying for the enhancements to rod features that you’ve never used.”

“I don’t think…”

“Okay, How many times have you created a table of contents?”

“I…”

“I’ll give you the benefit of the doubt and say twice. A bibliography or cross-reference – outside of when you were at university?”

“I…”

“Never, though you’ve heard of people who do. If I suggested the vast percentage of your Word experience would be typing, spelling & grammar checking and the occasional Styles and Formatting attempt that you end up regretting, would I be wrong?”

“…”

“I didn’t think so. And so you’ll realise that you don’t want to upgrade to the latest rod because this one catches fish just fine.”

“I…”

“But what you don’t know is that we’ve designed new fish which won’t work with the old rods – though we know that even these changes won’t work forever, so we start implying that we never sold you the rod in the first place – we just leased it to you.”

“I…”

“And then we realise that a rod is actually a bunch of components: a rod, a reel, line, hooks, swivels, etc – so we hint that your rod is the base rental and that all that other stuff was just addons. VERSION 9 clarifies all this and that you can lease the additional features if you want, otherwise we want the rod back and you’ll have to use openrod, which is only really used by hippies, small children and mental patients.”

“But that’s extortion!”

“If by extortion you mean the world of licensing, then yes. A base rod licence will permit you to fish without reel, line, sinkers etc. On dry land, into dirt. You can buy the equipment addons, the streams and rivers addon, the salt water addon which, if purchased with the streams and rivers addon permits you to fish from land into the sea, but not from on a boat into the sea – because that requires the open water licence addon.”

“Why would I buy a salt water licence by itself then?”

“Because you might want to fill your tub with salt water and fish in it. We don’t know why you’d want to, but we’re sure people do that, and this permits them to do so. Oh, and fishing is a trademark of ours now, as is saltwater, salt, water, streams, rivers, any wavy sign that doesn’t look like that of a popular carbonated beverage, etc.”

“But…”

“Of course if you want to keep the fish you catch you’ll need a fish acquisition licence, and we have four different levels of this: Personal, Home, Fishing boat and Fishing Company.”

“What’s the…”

“It’s based on the average daily requirement, so a Fishing Company might be permitted several boatloads, a fishing boat would be permitted a boatload, a home maybe three fish and a personal user ½ a fish”

“½ a fish?”

“Yes, the recommended fish intake for a person says two fish meals a week, so that works out to one every three days or which is ⅓ of a fish a day. We rounded up to ½ because we care.”

“So I’d only be licensed to catch a fish every couple days?”

“No, you’d be licensed to catch ½ a fish a day. Catching a whole fish would be a violation of your licence.”

“So to be within the licence terms I’d have to buy the Home licence.”

“If that’s the way you wish to fish yes. But we like to give you options.”

“So I’m licensed to catch and keep fish then?”

“Absolutely. We have an annual fish consumption licence as well – if you’re planning on eating them.”

“What else would you do with them?”

“Apart from stuffing them through the mail slot in the main office door of a licensing company three days after you caught them? No idea. Anyway, the consumption licence is very reasonable – about 10 per cent of the acquisition licence per annum.”

“I wouldn’t pay.”

“You would, because the small print in the Version 9 permits us to recover the rod and features if you fail to renew your licence – plus an administration fee. We already have enough money so we’ll be taking the fee in testicles. Perhaps you’d like to speak to our licensing officer?”

>bip< >bip< >bip< >bip<

“Hello Stephen 4.1-Alpha speaking”

“I… was talking about licens… >SLAM!<”

>ring ring<

“Hello Stephen 4.1-Alpha speaking. If you have any problems with the reliability of this version ple >SLAM!<

>ring ring<

“Hello Stephen 4.1 RC2 speaking. We have determined that you are running an unlicensed version of our user support. This facility will now disconnect”

>click<

Installing Windows 7 on A Netbook

•November 24, 2011 • Leave a Comment

Installing Windows on a machine without a CD/DVD drive has always been a bit tricky, and you’d think that “geared towards netbooks” would imply that Microsoft made this process a little easier. Well, they didn’t, so you’ll still have to resort to some tedious work before you can actually start the installation. It’s hard to screw this up, but it’s still tedious work, and shouldn’t really be necessary in this day and age. The instructions below are taken from garyshort.org.

Get yourself a nice USB drive, at least 4GB in size (2GB is too small, and I’m not sure if 3GB drives exist), and plug it in your computer. Then, load up a command prompt with administrative privileges (right click, “Run as administrator…”), and enter the following commands to properly format the USB drive:

 diskpart [launches diskpart]

list disk [lists the currently mounted disks, and assigns them a number]
select disk # [selects the USB drive, replace # with your disk's number]
clean [removes any MBR and partition information]
create partition primary [creates primary partition]
select partition 1 [selects the just-created partition]
active [marks the partition as active]
format fs=NTFS [formats the partition as NTFS]
assign [mounts the partition and assigns a drive letter]
exit [terminates diskpart]

The next step is to prepare the bootsector of the USB drive so that it is capable of catapulting the Windows 7 installation routine. To do this, put the Windows 7 DVD in your drive (or mount the .iso image using your tool of choice), and navigate to the /boot directory using a command prompt with administrative privileges. For some weird reason, the prompt I still had running after ceating/formatting the partition on the USB drive no longer had administrative privileges, so I had to load another. Once you’re in the boot directory, execute the following command:

bootsect /nt60 # [prepares the boot sector, replace # with your USB drive's drive letter]

The rest is pretty easy. Copy the contents of the Windows 7 DVD/.iso image onto the USB drive. You can do this via drag/drop in Explorer. Once the copy process is complete, you can boot from the USB drive straight into the Windows 7 installation routine as if was a regular bootable DVD. On the Aspire One, this means hitting F12 during boot, invoking the boot menu, and selecting the USB drive as the boot device. Make sure that as soon as the installation routine starts rebooting, that you do not re-launch the installation routine.

That’s all there is to it. Tedious, but if you’re reading OSNews, this shouldn’t pose any problems.

And now what…?

So, how does Windows 7 run on my netbook? My Aspire One is not a stock model, as I made some heavy modifications to it. Not only did I upgrade the RAM from 512MB ot 1.5GB, I also tore out the dreadfully slow SSD, and replaced it with a 1.8″ 30GB iPod hard drive (those are the cheapest drives that come with the necessary ZIF connector). I had to cut a lot of plastic struts away inside the casing, but the drive fit. I cut a bed for the drive out of sheets of thin rubber, and secured the drive with patches of double-sided tape. The result is a drive that is cushioned securely in rubber, which is a comforting thought for such a portable device.

In any case, this means that even Windows Vista ran without any problems on my Aspire One. I didn’t have to turn anything off for Vista to run fine, so I already knew that Windos 7 wouldn’t pose any problems when it comes to performance. Aero ran fine on Vista, and runs just as well on Windows 7.

Windows 7′s new taskbar actually works remarkably well for screen-estate constrained devices. When you set the icon size to “small”, it actually takes up a little less pixels vertically than the Vista tskbar, and it obviously has a lot more room horizontally to store running applications and launchers because of the lack of text labels. The cleaned-up system tray also helps in this regard.

The Protection of State Information Bill – Secrecy bill

•November 22, 2011 • Leave a Comment

(Campaigners) against the bill have presented a threat to the rights of the grassroots poor as one to the media

IF WE want to protect our freedoms, we need to make sure they are not seen as the concern of only a few. The Protection of State Information Bill, which comes before Parliament today, is a threat to the freedom of many of us. But those who have campaigned against it have misread both its intent and its likely effect. In the process, they have revealed how the battle for freedom in this society is still the preserve of only some of us.

That the bill is being tabled over their protests may show the weakness of a defence of libertyrestricted to the middle classes.

To begin with the intent. Contrary to widespread belief, this bill is not aimed at closing down media coverage of government corruption and incompetence. If it was, it would not say information cannot be classified if it reveals wrongdoing or ineptitude in the government.

Nor would changes have been introduced that seek to ensure that only security information is secret. Rather, it is an attempt by the security establishment, particularly the intelligence services, to ensure that it operates in secrecy.

The bill began life, ironically, as an exercise in replacing apartheid-era law — it was meant to replace a restrictive statute passed by the old regime with one in tune with the democratic values of our constitution. But the attempt to further free up information law must have run aground on the obsessive demand for security, which is the stock-in-trade of intelligence agencies.

The spies and their political allies seem to have stepped in to insist that too much openness threatens our safety.

Government defenders of the bill, from State Security Minister Siyabonga Cwele down, harp on about our vulnerability to foreign spies — without saying who our enemies are and why we would be threatened if foreigners know what our security agencies do. This shows the influence of the intelligence operatives on government thinking.

Why would politicians want to end reporting on corruption? Political insiders know that most of what we hear or read about government wrongdoing comes from politicians fighting their battles by fingering other politicians: they are not about to close down an essential weapon in their armoury. The real problem is the growing influence of the security establishment over the current administration. President Jacob Zuma has staffed the security cluster with trusted allies and this is why their desire to operate in the dark carries so much weight.

Failure to see this has distorted the campaign against the bill. Thus, some campaigners have argued that it is legitimate to protect state secrets but not to deter reporting of corruption. This shuts out a vital debate — on how legitimate it is to allow intelligence agencies to keep secrets from us. All over the world, security and intelligence establishments try to keep information secret which the public should know. Here, repeated revelations that government intelligence is used to fight political battles, not to protect us from threat, should cause us to challenge the spies’ demand that we keep our nose out of their affairs. We need to challenge their insistence on secrecy — the misdiagnosis of the problem has prevented us from doing this.

What about the effect?

What bills are meant to do, of course, is not always what they really do.

It is here that another misdiagnosis shows the elite bias behind the way our mainstream debate sees freedom.

We are told repeatedly that this law will close down investigative journalism and prevent the media from reporting on government wrongdoing.

This ignores the point made earlier — that it contains clauses insisting that it cannot be used in this way. Officials who want to protect themselves will no doubt ignore them. But there is no reason why the media should.

Journalists are presumably entitled to take the law at its word and to continue reporting all those government failures the law says they can reveal. If they are prosecuted, they will hire lawyers who will point out that they were protected by the law. As long as our courts remain competent and independent, no journalist reporting on government misbehaviour can be convicted.

And so, if the government does try to use this law against the media, it is likely to find that the effort is futile.

The clause is unlikely to offer the same protection to a group of township or shack settlement residents who want to know where the money for their development projects went. If municipal officials use the bill to protect themselves, the activists are unlikely to be able to afford a lawyer to help them fight the prohibition.

If we add the reality that media organisations have far more of the resources needed to get hold of documents that officials and politicians do not want us to see, it is clear that the real losers will not be the media but grassroots citizens.

Trying to get the government to serve citizens has always been more difficult for the poor than for the middle classes and the affluent. This bill will make it even harder.

Those who have campaigned against the bill have, therefore, presented a threat to the rights of the grassroots poor as one to the media. As usual, rights and freedoms are those of the middle class and the affluent, not the poor. If this does not change, freedom could be in serious trouble.

Since 1994, freedom has been preserved here largely because the suburban elite that dominates business and the professions has been strong enough to dissuade a government they distrust from tampering with their liberties. This does not mean that a desire for freedom is restricted to the suburbs — the evidence suggests that it is shared by many at the grassroots. But it is the affluent who have the resources and the connections to make themselves heard. And the government knows that there are economic costs to ignoring them.

This has benefited the entire society — the poor need freedom at least as much as the better off. While they have often been denied it by local power realities that do not affect the suburbs, poor people would be even worse off if our freedoms go. But for how long can a freedom preserved by only a fraction of the society endure?

We may not yet have reached a pass at which freedom will be in dire peril if its only advocates are the suburban middle classes. But we are sure to reach it sooner or later.

In a limited way, perhaps we already have — would the bill have survived if it had faced the sustained resistance of the grassroots, who stand most to lose from it?

The fact that the bill is now before Parliament should serve as a warning.

If our mainstream debate remains obsessed with the freedom of the few and ignores that of the many, that freedom will remain fragile.

If, however, we understand that the chief victims of unrestrained official power remain the poor and that poor people must play a key role in protecting all our freedoms, we may yet ensure that we not only hold onto the freedoms we have but ensure that more and more of us enjoy them.

Article by Steven Friedman for BusinessDay

• Friedman is director of the Centre for the Study of Democracy.

 
Follow

Get every new post delivered to your Inbox.

Join 203 other followers