<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>LINICKX.com</title><link>https://www.linickx.com/</link><description></description><lastBuildDate>Fri, 30 Jun 2017 15:11:00 +0100</lastBuildDate><item><title>PowerShell: A simple script to GPG encrypt files</title><link>https://www.linickx.com/powershell-a-simple-script-to-gpg-encrypt-files</link><description>&lt;p&gt;Recently I've needed to backup some sensitive files to online storage; my requirement was simple: work on local files and when they change encrypt. As I'm working on a windows machine that means powershell, I could schedule a task but I'm just manually running this as and when I need... I'm sure there's a better way, but this will do for now!&lt;/p&gt;
&lt;p&gt;Before you start you need &lt;a href="https://www.gpg4win.org"&gt;GPG4Win&lt;/a&gt; as this script is just a wrapper for the pgp2.exe. If you've not used GPG4Win before you will need a key, in GPG4win land they call this &lt;a href="https://www.gpg4win.org/doc/en/gpg4win-compendium_12.html"&gt;Creating an OpenPGP Certificate&lt;/a&gt;... do that and take note of the email address you choose, it's important for the script.&lt;/p&gt;
&lt;p&gt;Next create &lt;code&gt;encrypt_these_files.ps1&lt;/code&gt; in the folder that you want to back up, with this content:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;# Variables, change these.
$gpg_r = &amp;quot;me@here.com&amp;quot;
$gpg_prog = &amp;quot;${env:ProgramFiles(x86)}&amp;quot; + &amp;quot;\GNU\GnuPG\pub\gpg2.exe&amp;quot;
$destination = &amp;quot;C:\Users\nick\DropOneDriveBox\encrypted\&amp;quot;

# simple gpg wrapper
function gpg_me {
  $in_file = $args[0]
  $out_file = $args[1]
  #Write-Host $in_file &amp;quot; | &amp;quot; $out_file
  &amp;amp; $gpg_prog --yes -e -r $gpg_r -o $out_file $in_file
}

# Loop thru current directory.
$items = Get-ChildItem -Path &amp;quot;.\&amp;quot;
foreach ($item in $items)
{
      # if the item is NOT a directory, then process it.
      if ($item.Attributes -ne &amp;quot;Directory&amp;quot;) {
        $thepath =  $destination + $item.Name + &amp;quot;.gpg&amp;quot;
          If (Test-Path $thepath){
            # // File exists
            $ThisDate = $item.LastWriteTime
            $OtherDate = (Get-ChildItem -Path $thepath).LastWriteTime
            #Write-Host $item.Name &amp;quot; - This:&amp;quot; $ThisDate &amp;quot;Other:&amp;quot; $OtherDate
            If ( $ThisDate -gt $OtherDate) {
              Write-Host $item.Name &amp;quot;Needs updating..&amp;quot;
              gpg_me $item.Name $thepath
            }
          }Else{
            # // File does not exist
            Write-Host &amp;quot;Encrypting New File &amp;quot;  $item.Name
            gpg_me $item.Name $thepath
          }

      }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;At the top of the file, change the &lt;code&gt;$gpg_r = "me@here.com"&lt;/code&gt; to your email address (used in the OpenPGP &lt;em&gt;Certificate&lt;/em&gt;) and change &lt;code&gt;$destination = "C:\Users\nick\DropOneDriveBox\encrypted\"&lt;/code&gt; to whatever folder you want.&lt;/p&gt;
&lt;p&gt;If you've not run any powershell scripts then don't forget to &lt;a href="https://stackoverflow.com/a/10638"&gt;set your execution policy&lt;/a&gt; before you &lt;a href="https://stackoverflow.com/a/2035209"&gt;execute the script&lt;/a&gt; &lt;code&gt;.\encrypt_these_files.ps1&lt;/code&gt; .&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nick Bettison</dc:creator><pubDate>Fri, 30 Jun 2017 15:11:00 +0100</pubDate><guid isPermaLink="false">tag:www.linickx.com,2017-06-30:powershell-a-simple-script-to-gpg-encrypt-files</guid><category>PowerShell</category><category>Windows</category><category>GnuPG</category><category>Encryption</category><category>Security</category></item><item><title>Apple Magic Mouse - Fixing Windows 10 scrolling</title><link>https://www.linickx.com/apple-magic-mouse---fixing-windows-10-scrolling</link><description>&lt;p&gt;If you're a fan of Apple's Magic Mouse you can use it on Windows, however after pairing via Blue Tooth (&lt;em&gt;the code is&lt;/em&gt; &lt;code&gt;0 0 0 0&lt;/code&gt;) you'll find that the touch scrolling doesn't work.&lt;/p&gt;
&lt;p&gt;It's easily fixed however, &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Download &lt;a href="https://support.apple.com/kb/dl1720?locale=en_US"&gt;Boot Camp Support Software&lt;/a&gt; and unzip, in my case that was unzipping BootCamp5.1.5621.zip. &lt;/li&gt;
&lt;li&gt;Open the folder &lt;code&gt;\BootCamp5.1.5621\BootCamp\Drivers\Apple\&lt;/code&gt; and install &lt;code&gt;AppleWirelessMouse64.exe&lt;/code&gt;. &lt;/li&gt;
&lt;li&gt;Switch the mouse off &amp;amp; on and you're done.&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="text-align:center"&gt;&lt;a href="/files/2016/10/AppleWirelessMouse64_exe.png"&gt;&lt;img src="/files/2016/10/AppleWirelessMouse64_exe.png" alt="iAppleWirelessMouse64" width="465px" height="254px" /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;p&gt;Happy Scrolling! &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nick Bettison</dc:creator><pubDate>Mon, 12 Dec 2016 13:54:00 +0000</pubDate><guid isPermaLink="false">tag:www.linickx.com,2016-12-12:apple-magic-mouse---fixing-windows-10-scrolling</guid><category>Apple</category><category>Windows</category><category>Broken</category><category>Magic Mouse</category></item><item><title>SSH Server on Windows, the Microsoft Way</title><link>https://www.linickx.com/ssh-server-on-windows-the-microsoft-way</link><description>&lt;p&gt;An SSH server for windows, it's the kind of thing only a Linux/OSX user would ask for. The current defacto standard is &lt;a href="https://www.cygwin.com"&gt;Cygwin&lt;/a&gt; but if you fancy something a bit more native, something a bit &lt;a href="https://blogs.msdn.microsoft.com/powershell/2015/10/19/openssh-for-windows-update/"&gt;backed by Microsoft&lt;/a&gt; then take a look at &lt;a href="https://github.com/PowerShell/Win32-OpenSSH"&gt;PowerShell/Win32-OpenSSH&lt;/a&gt; on github.&lt;/p&gt;
&lt;h3&gt;Installation is quite straight forward:&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Download the &lt;a href="https://github.com/PowerShell/Win32-OpenSSH/releases/latest/"&gt;latest release&lt;/a&gt; make sure you correctly select 32bit or 64bit&lt;/li&gt;
&lt;li&gt;Create a folder, &lt;code&gt;C:\Program Files\OpenSSH-Win32&lt;/code&gt; and extract the contents there.&lt;/li&gt;
&lt;li&gt;Start Powershell as Administrator - &lt;code&gt;cd 'C:\Program Files\OpenSSH-Win32'&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Setup SSH host keys (&lt;em&gt;this will generate all the 'host' keys that sshd expects when its starts&lt;/em&gt;) - &lt;code&gt;.\ssh-keygen.exe -A&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Enable key-based auth - &lt;code&gt;.\install-sshlsa.ps1&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Reboot (&lt;em&gt;well it is windows!&lt;/em&gt;)&lt;/li&gt;
&lt;li&gt;Start Powershell as Administrator again - &lt;code&gt;cd 'C:\Program Files\OpenSSH-Win32'&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Install and run daemon as NT Service running as Local System - &lt;code&gt;.\install-sshd.ps1&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Start the service - &lt;code&gt;Start-Service sshd&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Make the service start on boot - &lt;code&gt;Set-Service sshd -StartupType Automatic&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you have a problem running step &lt;strong&gt;5&lt;/strong&gt; you might need to run &lt;code&gt;Set-ExecutionPolicy Unrestricted&lt;/code&gt;; if you do disable this security, switch it back on when you're finished &lt;code&gt;Set-ExecutionPolicy RemoteSigned&lt;/code&gt; (&lt;em&gt;or whatever&lt;/em&gt;).&lt;/p&gt;
&lt;p&gt;Also, don't forget to allow &lt;code&gt;tcp/22&lt;/code&gt; through any firewalls, either network or host based.&lt;/p&gt;
&lt;h3&gt;You'll probably want to enable SFTP, the server that is.&lt;/h3&gt;
&lt;p&gt;Edit &lt;code&gt;C:\Program Files\OpenSSH-Win32\sshd_config&lt;/code&gt; in your favorite text editor and replace this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;# override default of no subsystems
#Subsystem  sftp    /usr/libexec/sftp-server
Subsystem   sftp    /win32openssh/bin/sftp-server.exe
Subsystem   scp /win32openssh/bin/scp.exe
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;with&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;# override default of no subsystems
#Subsystem  sftp    /usr/libexec/sftp-server
#Subsystem  sftp    /win32openssh/bin/sftp-server.exe
Subsystem   sftp    c:\PROGRA~1\OPENSS~1\sftp-server.exe
#Subsystem  scp /win32openssh/bin/scp.exe
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Notice for program files and openssh-win32 I'm using the short path, you can find those using &lt;code&gt;cmd.exe&lt;/code&gt; and using &lt;code&gt;dir /x&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;Your first login, from a Linux/OSX/nix machine&lt;/h3&gt;
&lt;p&gt;Ok, so this is where it gets a little odd. For your username you need &lt;code&gt;SamAccountName@fqdndomain&lt;/code&gt;, as there is an &lt;code&gt;@&lt;/code&gt; in there you need to use the &lt;code&gt;-l&lt;/code&gt; switch on &lt;code&gt;ssh&lt;/code&gt;. Which means you have to do something like &lt;code&gt;ssh -l nick.bettison@company.local mypc.company.local&lt;/code&gt; with a little luck that'll give you this...&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;linickx:~ $ ssh -l nick.bettison@company.local mypc.company.local
ssh -l nick.bettison@company.local@mypc.company.local's password: 
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

nick.bettison@company.local@MYPC C:\Users\nick.bettison\Documents&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If your PC is standalone (&lt;em&gt;workgroup&lt;/em&gt;) you can use normal ssh syntax, either &lt;code&gt;ssh user@pc.local&lt;/code&gt; or &lt;code&gt;ssh -l user pc.local&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;Connecting with SFTP&lt;/h3&gt;
&lt;p&gt;On a domain PC, SFTP probably won't work because there is no -l, as a workaround on my nix machine I added the following to my ~/.ssh/config file:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Host mypc
        Hostname mypc.company.local
        User nick.bettison@company.local
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Which should work like this...&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;linickx:~ $ sftp mypc
nick.bettison@company.local@mypc.company.local's password: 
Connected to mypc.
sftp&amp;gt; pwd
Remote working directory: /C:/Users/nick.bettison/Documents
sftp&amp;gt; 
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;To enable public key authentication&lt;/h3&gt;
&lt;p&gt;Edit &lt;code&gt;C:\Program Files\OpenSSH-Win32\sshd_config&lt;/code&gt; in your favorite text editor (again) and replace this...&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#RSAAuthentication yes
#PubkeyAuthentication yes
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;with&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;RSAAuthentication yes
PubkeyAuthentication yes
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;em&gt;NOTE:&lt;/em&gt; Public key auth doesn't seem to work with domain PCs.&lt;/p&gt;
&lt;p&gt;I tested on a standalone (&lt;em&gt;non-domain&lt;/em&gt;) windows7 PC and it worked fine, but on a domain PC at work it fails with the following server side error message.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Cannot logon using LSA package (err = 1300, ntStat = c0000041).
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href="https://github.com/PowerShell/Win32-OpenSSH/issues/87"&gt;Github Issue 87&lt;/a&gt; seems to imply that this is group policy related, if it is, as yet I haven't figured out which one.
The other reason this might not work is username interpretation, local users are "username" where as domains are "username@domain" so I wonder if the LSA .DLL is looking in the wrong place; I will update here if I find a solution.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nick Bettison</dc:creator><pubDate>Tue, 26 Apr 2016 12:32:00 +0100</pubDate><guid isPermaLink="false">tag:www.linickx.com,2016-04-26:ssh-server-on-windows-the-microsoft-way</guid><category>ssh</category><category>security</category><category>windows</category></item><item><title>Installing Paramiko (Python and PIP) on Windows</title><link>https://www.linickx.com/installing-paramiko-python-and-pip-on-windows</link><description>&lt;p&gt;Following the release of &lt;a href="https://github.com/linickx/crassh/"&gt;crassh&lt;/a&gt;;
the 1st FAQ was, great how do I make this work on windows?&lt;/p&gt;
&lt;p&gt;Steps as follows:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Download and install &lt;a href="http://download.microsoft.com/download/A/5/4/A54BADB6-9C3F-478D-8657-93B3FC9FE62D/vcsetup.exe"&gt;Visual Studio C++ 2008 Express
    Edition&lt;/a&gt;&lt;br /&gt;
    (&lt;em&gt;do not install SQL&lt;/em&gt;)&lt;/li&gt;
&lt;li&gt;Install &lt;a href="https://www.python.org/download/releases/2.7.8/"&gt;Python 2.7.8 - Select the correct
    MSI&lt;/a&gt; for your
    architecture&lt;/li&gt;
&lt;li&gt;Download &lt;a href="https://bootstrap.pypa.io/get-pip.py"&gt;get-pip.py&lt;/a&gt; (&lt;em&gt;Don't
    use Internet Explorer it will mangle the file; &lt;/em&gt;&lt;em&gt;use Firefox to
    download&lt;/em&gt;&lt;em&gt;.&lt;/em&gt;)&lt;/li&gt;
&lt;li&gt;Open an &lt;strong&gt;Administrator&lt;/strong&gt; command prompt and run
    "&lt;code&gt;c:\Python27\python.exe get-pip.py&lt;/code&gt;"&lt;/li&gt;
&lt;li&gt;From the same admin prompt, run
    "&lt;code&gt;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat&lt;/code&gt;"
    (&lt;em&gt;for 32bit machines... or for 64bit machines, run
    "&lt;code&gt;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\vsvars64.bat&lt;/code&gt;"&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;From the same admin prompt, run
    "&lt;code&gt;c:\Python27\Scripts\pip install paramiko&lt;/code&gt;"&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;And you're done!&lt;/p&gt;
&lt;p&gt;#REF:
&lt;a href="http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat"&gt;http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nick</dc:creator><pubDate>Fri, 15 Aug 2014 12:25:00 +0100</pubDate><guid isPermaLink="false">tag:www.linickx.com,2014-08-15:installing-paramiko-python-and-pip-on-windows</guid><category>Blog</category><category>crassh</category><category>paramiko</category><category>python</category><category>win7</category><category>Windows</category></item><item><title>RTFM: Aero in Virtualbox</title><link>https://www.linickx.com/rtfm-aero-in-virtualbox</link><description>&lt;p&gt;Yes there are loads of "how to enable Aero in Virtualbox" posts out
there, but they are all long too long ;)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Install VirtualBox &amp;gt; 4.1&lt;/li&gt;
&lt;li&gt;Install Windows 7&lt;/li&gt;
&lt;li&gt;Install Guest Additions&lt;ul&gt;
&lt;li&gt;DURING the install, manually select 3D Support&lt;/li&gt;
&lt;li&gt;Select Yes WDDM video driver&lt;/li&gt;
&lt;li&gt;Ignore the warning about safe mode and continue&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Reboot&lt;/li&gt;
&lt;li&gt;In Control Panel, Personalise re-select the Window7 Default Aero
    Theme.&lt;/li&gt;
&lt;li&gt;Done&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;References:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.virtualbox.org/manual/ch04.html#guestadd-video"&gt;http://www.virtualbox.org/manual/ch04.html#guestadd-video&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.howtogeek.com/75417/ask-htg-enabling-aero-in-virtualbox-raid-array-disk-overhead-and-raw-processing-without-photoshop/"&gt;http://www.howtogeek.com/75417/ask-htg-enabling-aero-in-virtualbox-raid-array-disk-overhead-and-raw-processing-without-photoshop/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nick</dc:creator><pubDate>Thu, 08 Mar 2012 07:48:00 +0000</pubDate><guid isPermaLink="false">tag:www.linickx.com,2012-03-08:rtfm-aero-in-virtualbox</guid><category>virtualbox</category><category>Windows</category></item><item><title>MacBook Pro UK Keyboard Layout for Windows</title><link>https://www.linickx.com/macbook-pro-uk-keyboard-layout</link><description>&lt;p&gt;I've imported my windows box into VirtualBox
(&lt;em&gt;&lt;a href="http://www.virtualbox.org/wiki/Migrate_Windows"&gt;howto&lt;/a&gt;&lt;/em&gt;) and noticed
that the keyboard layout is all screwed up.&lt;/p&gt;
&lt;p&gt;My Googling suggests that a
&lt;a href="http://www.miscdebris.net/blog/2009/04/17/apple-keyboard-keymap-german-for-windows-running-as-guest-on-mac-os-x-host-in-virtualbox/"&gt;German&lt;/a&gt;
and &lt;a href="http://www.virtualbox.org/ticket/1871#comment:11"&gt;Swedish&lt;/a&gt;
bloke/bird/person have fixed this issue but no-one in the UK.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.linickx.com/files/2010/01/English-UK-Apple-MacBook-Pro.zip"&gt;Attached is my UK Keyboard
layout&lt;/a&gt;,
also &lt;a href="https://www.linickx.com/files/2010/01/SOURCE-FILE-For-English-UK-Apple-MacBook-Pro-Keyboard-Layout.klc.zip"&gt;the source
file&lt;/a&gt;
so you can use &lt;a href="http://msdn.microsoft.com/en-us/goglobal/bb964665.aspx"&gt;microsoft keyboard layout
creator&lt;/a&gt; to make
your own.&lt;/p&gt;
&lt;p&gt;To use, simply unzip, run setup, and then in your keyboard settings
(&lt;em&gt;control panel&lt;/em&gt;) change to "&lt;strong&gt;English UK - Apple MacBook Pro&lt;/strong&gt;" ... you
may wish to remove the default UK keyboard to avoid confusion.&lt;/p&gt;
&lt;p&gt;This works well for me in VirtualBox, I would expect it to work in
VMWARE / Parallels but I've not tested it, as with everything I do YMMV
:)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nick</dc:creator><pubDate>Mon, 18 Jan 2010 15:28:00 +0000</pubDate><guid isPermaLink="false">tag:www.linickx.com,2010-01-18:macbook-pro-uk-keyboard-layout</guid><category>OS X</category><category>virtualbox</category><category>Windows</category></item><item><title>VBS Script to clean up old files when folder is x Mb</title><link>https://www.linickx.com/vbs-script-to-clean-up-old-files-when-folder-is-x-mb</link><description>&lt;p&gt;Security kit creates logs, aparently some people use something called
windows server instead of linux as their file &amp;amp; log servers :)&lt;/p&gt;
&lt;p&gt;Recently I had a requirement whereby if a folder was larger than 30Gb
(&lt;em&gt;approx 95% of a partition&lt;/em&gt;) then the oldest files should be deleted,
usually &lt;a href="http://en.wikipedia.org/wiki/Bash"&gt;bash&lt;/a&gt; would be the answer
but in this instance I needed to use a visual basic script.&lt;/p&gt;
&lt;p&gt;This is what I came up with, it's not neat (&lt;em&gt;cause I don't know vbs&lt;/em&gt;)
but it works, if you want to use it find and replace "&lt;code&gt;D:\Files&lt;/code&gt;" with
your directory then find &amp;amp; replace "&lt;code&gt;35000&lt;/code&gt;" with your required size in
Mb (&lt;em&gt;35000Mb is approx 35Gb&lt;/em&gt;) , save the &lt;a href="https://www.linickx.com/files/2009/09/vbs_script_disk_clean_up.txt"&gt;attached script .txt file
(vbs_script_disk_clean_up.txt)&lt;/a&gt;
as script.vbs, then use task scheduler to run everyday, job done!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nick</dc:creator><pubDate>Fri, 11 Sep 2009 18:25:00 +0100</pubDate><guid isPermaLink="false">tag:www.linickx.com,2009-09-11:vbs-script-to-clean-up-old-files-when-folder-is-x-mb</guid><category>Blog</category><category>script</category><category>vbs</category><category>win2k3</category><category>Windows</category></item><item><title>How to replace Vitsa's Defrag with JkDefrag</title><link>https://www.linickx.com/how-to-replace-vitsas-defrag-with-jkdefrag</link><description>&lt;p&gt;My work laptop is a Vista machine, a random conversation came up the day
about fragmenting (&lt;em&gt;Defraging&lt;/em&gt;) the hard drive; since switching to linux
at home "pc maintenance" hasn't really been on my mind, I know that
vista does "stuff" in the background and internal IT install a heap of
"stuff" that runs in the background that generally slows things down.&lt;/p&gt;
&lt;p&gt;The guys in the office recommended that I should run
&lt;a href="http://www.kessels.com/JkDefrag/index.html"&gt;JKDefrag&lt;/a&gt; to help
"optimize" things. I downloaded a copy, and read that you have a variety
of options to run the software including a screen-saver; my laptop is on
pretty much most of the time so I've decided that I would run JkDefrag
as a scheduled task over night.&lt;/p&gt;
&lt;p&gt;I've not scheduled anything on Vista before and in my investigation I
found that vista by default at 1am every wednesday defrags the hard
drive! :cool:&lt;/p&gt;
&lt;p&gt;This changed my plan, instead of scheduling JkDefrag to run, I would
replace the default defrag task.&lt;/p&gt;
&lt;p&gt;If you would like to do the same, download a copy of JkDefrag and unzip
it into a directory, take a note of where you unzip the files as you'll
need the directory path later.&lt;/p&gt;
&lt;p&gt;To get started open the &lt;a href="http://technet.microsoft.com/en-us/appcompat/aa906020.aspx"&gt;vista task
scheduler&lt;/a&gt;
(&lt;em&gt;it's in admin tools&lt;/em&gt;). From the tree in the left browse to:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Task Scheduler Library -&amp;gt; Microsoft -&amp;gt; Windows -&amp;gt; Defrag&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Next download the XML file attached to this post (&lt;em&gt;&lt;a href="https://www.linickx.com/files/2009/04/nicksscheduleddefrag.xml"&gt;Nicks Scheduled
Defrag&lt;/a&gt;&lt;/em&gt;)
and within the Task scheduler, click on "Import Task" from the action
bar on the right hand side... browse to and choose my file, once done
right click the old "Scheduled Defrag" task and disable it, you should
end up looking at a window like this...&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.linickx.com/files/2009/04/vista-task-scheduler.png"&gt;&lt;img alt="Vista Task
Scheduler" src="https://www.linickx.com/files/2009/04/vista-task-scheduler-300x208.png" title="Vista Task Scheduler" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Cool! You're nearly there, the task you've installed is a copy of the
default defrag task, with the date and action changed to suit my need,
&lt;strong&gt;you will need to do the same&lt;/strong&gt;! You remember you wrote down a
directory path earlier, well you need it now....&lt;/p&gt;
&lt;p&gt;My scheduled task runs Jkdefrag from a directory called
&lt;code&gt;C:\Users\nick.bettison\Software\JkDefrag-3.36\&lt;/code&gt;, I'm 99% sure you won't
have that directory ;)&lt;/p&gt;
&lt;p&gt;Right click on &lt;code&gt;NicksScheduledDefrag&lt;/code&gt; and select properties , click the
actions tab, select "&lt;code&gt;start a program&lt;/code&gt;" and click edit. Change the path
&lt;code&gt;C:\Users\nick.bettison\Software&lt;/code&gt; to where ever you have your JkDefrag,
you will need to make changes in both the "Program / Script" field, and
"Add arguments field"...&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.linickx.com/files/2009/04/edit-vista-task.png"&gt;&lt;img alt="Edit Vista
Task" src="https://www.linickx.com/files/2009/04/edit-vista-task-300x258.png" title="Edit Vista Task" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When done, click Ok. If you feel like it you can change when it runs
under the "triggers" tab, edit the "weekly" trigger to suit your needs.&lt;/p&gt;
&lt;p&gt;You can now choose to wait (&lt;em&gt;until 1am saturday night - or whatever you
changed it to&lt;/em&gt;), or click run; either way after the task has run in your
JkDefrag-3.36 directory you will hopefully have log.txt showing the
results of the defrag! :cool:&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nick</dc:creator><pubDate>Sat, 25 Apr 2009 11:17:00 +0100</pubDate><guid isPermaLink="false">tag:www.linickx.com,2009-04-25:how-to-replace-vitsas-defrag-with-jkdefrag</guid><category>howto</category><category>Vista</category><category>Windows</category></item><item><title>Tomboy on Windows</title><link>https://www.linickx.com/tomboy-on-windows</link><description>&lt;p&gt;Recently the &lt;a href="http://projects.gnome.org/tomboy/"&gt;Tomboy Notes&lt;/a&gt; has been
&lt;a href="http://lists.beatniksoftware.com/pipermail/tomboy-list-beatniksoftware.com/2009-January/000991.html"&gt;released for
windows&lt;/a&gt;.
This is great news, as my current work build is windows and I have a
shed load of notes stuck on my linux box at home.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Installing.&lt;/strong&gt;&lt;br /&gt;
I found this didn't work 1st time, so these are the steps.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Install GTK# for Windows from
    &lt;a href="http://medsphere.org/projects/gtksharp/"&gt;medsphere.org/projects/gtksharp&lt;/a&gt;,
    I used this &lt;a href="http://medsphere.org/projects/gtksharp/releases/2.10.4/gtksharp-sdk-2.10.4-3.msi"&gt;SDK
    .msi&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Reboot&lt;/li&gt;
&lt;li&gt;Now &lt;a href="http://lists.beatniksoftware.com/pipermail/tomboy-list-beatniksoftware.com/attachments/20080828/bb306111/attachment.obj%20"&gt;download
    this&lt;/a&gt;,
    and use it to replace (&lt;em&gt;over-write&lt;/em&gt;) C:\Program
    Files\Medsphere\Gtk# SDK\etc\gtk-2.0\gdk-pixbuf.loaders&lt;/li&gt;
&lt;li&gt;Open the new gdk-pixbuf.loaders, find "&lt;code&gt;Gtk# Runtime&lt;/code&gt;" &amp;amp; replace
    with "&lt;code&gt;Gtk# SDK&lt;/code&gt;"&lt;/li&gt;
&lt;li&gt;&lt;a href="http://download.gnome.org/binaries/win32/tomboy/0.13/Tomboy-0.13.3.msi"&gt;Install
    Tomboy&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You should now be able to run tomboy... it appears in your system tray.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Importing Notes.&lt;/strong&gt;&lt;br /&gt;
If like me you have a linux box with a load of notes you want to read,
then follow these steps.&lt;/p&gt;
&lt;p&gt;On your linux box:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;cd into \$HOME/.tomboy&lt;/li&gt;
&lt;li&gt;copy all .note files&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Transfer the .note files to your windows box.&lt;/p&gt;
&lt;p&gt;On your Windows box:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Exit tomboy&lt;/li&gt;
&lt;li&gt;cd into C:\Users\\&amp;lt;USERNAME&amp;gt;\AppData\Roaming\tomboy&lt;/li&gt;
&lt;li&gt;paste all your .note files&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Start Tomboy &amp;amp; Enjoy!&lt;/p&gt;
&lt;p&gt;References:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://lists.beatniksoftware.com/htdig.cgi/tomboy-list-beatniksoftware.com/2008-October/000875.html"&gt;[tomboy-list] Windows status,
    binaries&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://lists.beatniksoftware.com/pipermail/tomboy-list-beatniksoftware.com/2008-August/000802.html"&gt;[tomboy-list] Windows
    status&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nick</dc:creator><pubDate>Fri, 30 Jan 2009 12:24:00 +0000</pubDate><guid isPermaLink="false">tag:www.linickx.com,2009-01-30:tomboy-on-windows</guid><category>Linux</category><category>tomboy</category><category>Windows</category></item><item><title>Another Dropbox Link</title><link>https://www.linickx.com/another-dropbox-link</link><description>&lt;p&gt;After reading &lt;a href="http://ma.tt/2008/09/dropbox/"&gt;this from Ma.tt&lt;/a&gt;, I've
downloaded &lt;a href="http://www.getdropbox.com"&gt;dropbox&lt;/a&gt;, I've had it installed
for less than an hour, but I figure they're worth a post purely for the
kudos of releasing a true multi-platform application.&lt;/p&gt;
&lt;p&gt;Finding something that can sync between my home linux box and work
windohs machine is a real pain so I'm really hoping this will be the
answer I've been looking for; it's not that win-linux sync'ing is
impossible, it's just that it's usually restrictive or so complicated/
un-user-friendly that I never bother.&lt;/p&gt;
&lt;p&gt;The only thing the service needs is some WordPress to "public box"
integration and the solution is dam'ed near perfect ;)&lt;/p&gt;
&lt;p&gt;While I to keep my fingers crossed that dropbox is everything I want it
to be, why don't you try it out?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">nick</dc:creator><pubDate>Mon, 15 Sep 2008 10:35:00 +0100</pubDate><guid isPermaLink="false">tag:www.linickx.com,2008-09-15:another-dropbox-link</guid><category>dropbox</category><category>lifeblog</category><category>Linux</category><category>sync</category><category>Windows</category></item></channel></rss>