The Blog

Author: admin

Bringing Win 8 back to Earth

Posted on

Remove metro all the way including all it’s apps:

In PowerShell

Get-AppxPackage –AllUsers
Get-AppxPackage -AllUsers | Remove-AppxPackage
Get-AppXProvisionedPackage -online | Remove-AppxProvisionedPackage –online

 

Add Start button:

http://www.classicshell.net/

Auto Logon:

http://www.howtogeek.com/112919/

Use Sysinternals to clean some more:

http://technet.microsoft.com/en-us/sysinternals/bb963902.aspx

Add some reg tweaks:

[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Copy To]
@="{C2FBB630-2971-11D1-A18C-00C04FD75D13}"

[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\Move To]
@="{C2FBB631-2971-11D1-A18C-00C04FD75D13}"

[HKEY_CURRENT_USER\Control Panel\Desktop]
"AutoEndTasks"="1"
"HungAppTimeout"="1000"
"MenuShowDelay"="8"
"WaitToKillAppTimeout"="2000"
"LowLevelHooksTimeout"="1000"

[HKEY_CURRENT_USER\Control Panel\Mouse]
"MouseHoverTime"="8"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoLowDiskSpaceChecks"=dword:00000001
"LinkResolveIgnoreLinkInfo"=dword:00000001
"NoResolveSearch"=dword:00000001
"NoResolveTrack"=dword:00000001
"NoInternetOpenWith"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control]
"WaitToKillServiceTimeout"="2000"

More of the same here:
http://www.askvg.com/master-tutorial-to-make-your-windows-8-super-fast/

Get your CD from M$

http://windows.microsoft.com/en-US/windows-8/upgrade-product-key-only

Posted in Uncategorized Leave a comment

Managing power plans on win 7 with task manager.

Posted on

You can use Task scheduler to run powercfg.exe

use a command window to run powercfg /? so you can see the various commands available

running powercfg /l lists the codes “GUIDs” for your power schemes

running powercfg -s sets the active scheme – this is the command you want to set up in Task scheduler & you’ll need to select the “Run with highest privileges” checkbox in task scheduler to run the command using admin rights [or a command line window opened with admin rights during testing]. All powercfg commands that do more than provide info will need admin rights.
I assume you are running Win7 [I think these items are the same in Vista but cannot check].

Posted in Uncategorized Leave a comment

SSHD slow on login

Posted on

Does the IP you’re connecting from have reverse DNS on it?

When you connect to SSH, By default it will try to do a DNS lookup on the IP connecting and if it can’t find a record it causes a long delay when logging in.

If you want you can disable sshd from doing a reverse lookup by setting

UseDNS no

In /etc/ssh/sshd_config and restarting sshd.

service sshd restart

Posted in Linux Leave a comment

Setting up pflogsumm on CentOS to run nightly on PLESK Postfix

Posted on

Here is a small post on how to setup pflogsumm on your CentOS mail server running Postfix.  It takes advantage of logrorate being called nightly by cron.

1. Install pflogsumm

# yum install postfix-pflogsumm

2. Run a test

# /usr/sbin/pflogsumm /var/log/maillog

3. Update /etc/logrotate.d/syslog.  Add the following:

 prerotate
    pflogsumm /usr/local/psa/var/log/maillog | mail -s "Postfix Log - `date`" [email protected]
 endscript

And little script to send you log hourly if you send over 100 emails per hour.
Make sure to add it to your hourly cron job.

 
#!/bin/sh

hour_now=$(date | awk '{print $2,"", $3, substr($4,0,2)}')
var1=$(grep "$hour_now" /usr/local/psa/var/log/maillog|pflogsumm)
if (( $(echo "$var1" | sed -n '/  delivered$/p' | tr -d '[:alpha:]') > 100 ));
then
echo $var1 | mail -s "Postfix Log - `date`" [email protected]
fi
Posted in PLESK 1 Comment
« Previous PageNext Page »