Archive for the ‘windows’ Category

RDP redirection via Putty (Linux Server) for Windows Remote Desktop


2009
09.25

Tunnel and SSH SelectionsTunneling via Putty is quite well documented. In Putty (the link points to the lastest version), create a new session.

In the SSH section, make sure compression is enabled (for SSH v2 – you shouldn’t be using anything earlier, anyway).

In the SSH=>Tunnel section , set the Source port to 127.0.0.2:3389, and the target to SERVER:3389 (where SERVER corresponds to your upstream Windows Terminal Server).

Tunnel Information settingsOnce the connection has been created, and you’ve logged into the Putty session, connect to 127.0.0.2 on the local machine and you should be prompted by the remote machine.

This is all as a result of the “localhost” restriction in RDP sessions – however, there is a patch.

Simple as π :)

Trac and remote SVN servers


2009
09.17

Do the SVN server Trac relates to have to reside on the same as the Trac installation?

At present, alas it seems so. (If you’re new to Trac and need a one-stop-shop of commands, look here.)

http://trac.edgewall.org/ticket/2828 points to and abstracts http://trac.edgewall.org/ticket/493

Seems like Trac and remote SVN is not happening yet, though SVN replication is an option… There is also an obscure comment some two years ago about a remote plugin, which was at alpha, but the project seems to have since disappeared/moved…

Sigh…

phpDocumentor on Windows — but please, you knew that already


2009
09.02

So the below description will give you a step-by-step to run phpDocumentor (which replaces phpDoc):

Get it at www.phpdoc.org or install it via PEAR (much easier – 2MB download or so).

For Windows machines:

  • go-pear.bat (if you haven’t already — find it if you don’t know where it is) and pear install --alldeps phpdocumentor
  • Do a search for PEAR_ENV.reg on your machine.
  • Execute it.
  • Make sure you’ve got the Environment Variables set to point to include the PHP bin directory (
    set PATH=%PATH%;c:\path\to\php ) OR

    1. From the desktop, right-click My Computer and click properties.
    2. In the System Properties window, click on the Advanced tab.
    3. In the Advanced section, click the Environment Variables button.
    4. Finally, in the Environment Variables window, highlight the path variable in the Systems Variable section and click edit. Add or modify the path lines with the paths you wish the computer to access. Each different directory is separated with a semicolon as shown below.
    5. In Vista:
      • Open the the Control Panel, select the System and Maintenance link, and select the System link. Or, press the Windows key and the Pause / Break key at the same time.
      • Select the Advanced System settings link.
  • You can now call php and pear commands from the command line (you many need to restart for the changes to come into effect).
  • Verify by typing phpdoc -h
  • phpdoc -d "c:\projectDir" -o HTML:default:default -t "c:\projectDir\docs"
  • for PDF files, replace the output parameter (-o): -o PDF:default:default
  • Formatting in smarty (like PHP website etc): -o HTML:smarty:default
  • -t = target directory of generated documents
    -d = source directory of files to check
    -o output format as above.
    (more…)

Update for Microsoft Outlook / Outlook Express (KB910721)


2009
08.05

You’ve seen the mail, you’ve looked at the headers, you realise that mail from Microsoft typically does not route through a Brazilian ADSL line (times may be bad, but hey!)

You may be wondering why, even though you chose not to register with Microsoft when you booted up for the first time, even though you’re using an Ubuntu machine, you’re getting mail from Redmond asking you to upgrade.

Sophos calls it Troj/Spy-CU.

I call it a scammy, spammy, malware waste of bandwidth…

But you knew that already…

OpenVPN on Vista


2009
06.25

Quick step – just jotting it down as I keep forgetting:
route-method exe
route-delay 2

at the end of the ovpn file will do the trick (running as Administrator…)

But you knew that already! :)