Originally Posted by shayan2k13
There is no way that I can connect them physically through a cable.
I think you mean the actual connection is through the internet, but you want software to act as if the connection were through a LAN.
So one type of software you probably want is a "VPN". There are a few different freeware VPN systems available. I haven't used any of those myself. A google search for Linux VPN
gives a lot of info on VPNs that include Linux support (almost any VPN includes Windows support).
The main goals are file sharing
A Samba server on Linux lets you expose Linux directories as "Windows shares". On a Windows system you can access a share directly or map it as a drive letter (some Windows programs work correctly with a share only when it is mapped as a drive letter. Others work either way).
A Samba client on Linux lets you mount a Windows share (on a different computer) as a Linux directory.
There is plenty of documentation available for Samba
, that should be easy to find either in your own Linux distribution or online.
and remote administration.
Which way? I expect you mean a Linux client for Windows remote desktop (Linux RDP
), so you can administer a windows system from Linux. That software and documentation should be easy to find.
Remote admin of a Linux system from Windows has a lot more choices. The simplest is command line only (non GUI) using ssh (using putty
or other ssh client program on Windows).
GUI remote admin of Linux from Windows using VNC
is also possible.
I've given you the keywords that should be the starting points for google searches to get all the rest of your answers.