Showing posts with label network. Show all posts
Showing posts with label network. Show all posts

Saturday, October 10, 2009

Mixed Windows & Linux Network - Free Remote Desktop

Having some computers with Windows and others with Linux makes remote desktop access from one computer to another slightly more complicated. Here is what I found as a working solution.

  • From Windows to Windows connection - UltraVNC. It has viewer and server, 32 and 64-bit XP and Vista compatible. It works fine with hardware and virtual Windows machines and any edition (Microsoft remote desktop is not available for the cheapest versions as Home, Basic, Premium).

  • From Windows and Linux to Linux - NoMachine NX. They offer Windows and Linux viewers for free, Linux server is free as well. I used NX viewers and servers on hardware and virtual Linux boxes with KDE, on Debian and Ubuntu all work very good.

  • From Linux to Windows - I found Remote Desktop Connection (krdc) already installed on Mepis 8.0 and used UltraVNC server on Windows side. In krdc connection request: vnc:/IPAddress:0

VNC and SSH protocols should be enabled in firewalls on both server and client/viewer sides.
Read more...

Saturday, July 25, 2009

Windows XP and Vista - Map Network Drive with Batch file

For security reason it is a good practice to share specific folders on network with authorized access. Unfortunately Windows sharing has an unpleasant feature that if there is an established connection from one user to a network computer (sharing server), connection for another user from the same machine to the same server will be rejected. For instance if there are two shared folders: one for User1 and another for User2,- and User1 has already connected, in order to switch to User2 it is necessary to close the User1 network mapping first then reconnect as User2. Not a big deal to do it once in a while, just go to Windows Explorer's Tools\"Disconnect Network Drive" then "Map Network Drive", however switching back and forth becomes annoying very quickly. A possible solution is to use a batch file to automate the switching.

The command to handle that is "net use..." with different options. A description of the command can be found on Microsoft website: Net use .

The two batch files can do the job:
  1. User1.bat has the following lines:

    net use * /delete /yes
    net use x: \\NetServerName\SharedFolder *
    /user:NetServerName\User1

  2. User2.bat :

    net use * /delete /yes
    net use y: \\NetServerName\SharedFolder *
    /user:NetServerName\User2
The first command "net use * /delete /yes" in the both files deletes all existing connections. The key "/yes" is not documented in the official Microsoft description, but it works as a default response to the command prompt question [Y/N].

The second command sets up new mapping to the specified shared folder from the specified user. An asterisk (*) at the password key position makes the command ask for the password.

I put shortcuts to the batch files on the desktop and switching between these shared folders became trivial.
Read more...

Tuesday, July 21, 2009

Windows Filesharing Error - Not Enough Server Storage

Recently I bumped into a problem with file-sharing - an attempt to copy files from an XP machine to a Vista computer ended up with the error "Not enough server storage". Rebooting all the computers did not help to resolve the issue. As Microsoft suggests the problem is related to a small value for IRPStackSize parameter on the server side computer.

On the server computer
start Regedit.exe as Administrator, go to "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameter". From there change IRPStackSize to a value in range from 16 to 50. I made it 25 decimal (or 19 in hex). If the parameter IRPStackSize does not exit, create it as DWORD Value. Reboot the computer and check if it helps. If still not, you can try a bigger value, reboot and check again. I changed the value on all my network computers to 25 - since then the problem has not surfaced yet.
Read more...