Friday, February 20, 2015

Multiple RDP (Remote Desktop) sessions on Windows 8

Windows 8.1 (as well as all previous Windows client OS version) allows only one concurrent user session. This means you can't connect via Remote Desktop if local user is already logged on. Normally it's not a problem on a client machine, but in some cases you may want ability to login concurrently. A good example is a Media Centre PC when somebody watches a movie and you want to access the machine without interrupting the movie.


To have multiple RDP sessions working you normally need server version of termsrv.dll file or modify/patch an existing version.


You can download the patched termsrv.dll from here.


You can also do this yourself using any HEX editor by replacing flowing string in your existing termsrv.dll:


39 81 3C 06 00 00 0F 84 D3 1E 02 00


with


B8 00 01 00 00 89 81 38 06 00 00 90


In case you screw something up, original unpatched termsrv.dll v6.3.9600.17415 can be downloaded from here.


Additionaly you may need to change these registry settings:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]

"fSingleSessionPerUser"=dword:00000000
"fDenyTSConnections"=dword:00000000

Running Synology Storage inside a VM

Running your own storage is cool... 

You may choose among FreeNAS, Windows Server, or several others Linux / BSD distros (UnRAID, OpenFiler, OpenMediaVault). 
They offer plugins to enhance your storage funcionality level, such as ownCloud, plex, torrent (transmission), even automatic torrent download can be achieved using CouchPotato.

However, commercial products has some interesting higher 'quality'. It may offer scheduled tasks for replication or transcoding. Cloud integration, or even commercial plugins for example Antivirus or ready-to-use packages like WordPress, phpBB, etc.

Or you just don't care at all, and all you want is to run Synology for fun, or to evaluate it before make up your mind.

Why Synology? Take a look all features it offers: https://www.synology.com/en-us/dsm/5.1/features

Let's emulate this appliance using free VMware Player and the firmware provided by an european hacker.

All packages you will need are available from http://www.xpenology.nl/.
But I will describe below how to get it up and running.

1 - Get the Synology DSM 5.1 software for the DS3615xs appliance model from http://www.xpenology.nl/xpenology-software/. The required file is: DSM 5.1-5022 and its Update: DSM 5.1-5022 Update 2

2 - Download the Synology virtual hard disk (.vmdk) for x64 systems from http://www.xpenology.nl/boot-images/. The required file is: XPEnoboot_DS3615xs_5.1-5022.2


3 - Install the VMware Player 7, create a virtual machine using 2GB ram and specify Linux 64bit with 2.6.x kernel, and select the .vmdk from previous step as a system virtual Hard Drive, and create one (or two or more) additional hard drive for data.

If you are using ESXi, you may follow this tutorial with images: http://www.xpenology.nl/vmware-esxi-installatie/

4 - Download the Synology Assistant 5.0 from http://www.xpenology.nl/dsm-software-download/?myvar=1312.

5 - Power it up, and select Install / Upgrade. Now install the Synology Assistant and locate this 'storage' which will be showing in state 'Not Installed'. Select it and launch the installation.

When asked for the pattern file (firmware), provide the dsm 5.1-5022.pat file downloaded in step 1.

6 - After the installation completes, reboot it, and sign in using username 'admin' and blank password.

Now, configure your storage, update it using the downloaded patch, and create some shares and install the additional packages.

Have fun!

Original tutorial in swedden from: http://www.xpenology.nl/installation-dsm-5-1/