Saturday, 9 April 2016

Sharing resources between Windows and Linux computers

Since I have two main computers and one runs Windows while the other runs Linux, there are inevitably going to be some ways in which I will try to share resources between the two computers. Linux of course comes with Samba preinstalled to allow shared folders to be accessible to Windows. One of the key issues has been that the Canon download software for my cameras doesn't have a Linux edition so I have decided after a bit of experimentation that the Windows computer will be the one that has the download software on it and where the cameras will be connected to a USB cable for this purpose. There will be a full set of photos kept on this computer that will be synchronised automatically to the Linux computer for use there. That may change eventually to having the Windows computer keep the only set of the photos if I can figure out how to connect to it from Linux; so far I haven't been able to do this successfully.

Another issue is the backup which has also been running in the past from the Windows computer, which accessed the computer that is now running Linux over the network to back its files up. Since I can use Samba to set up file shares on the Linux computer then it should be possible to share all of my Home folder and then continue to use Cobian Backup on the Windows computer to do the backups just as I have been doing them already.

In other things: I have been able to get the latest version of Remmina installed and done a lot of remote access stuff with it. The clipboard seems to work better in the 1.2 release. I also had a look at antivirus software. Although it may not be necessary for Linux itself, it is useful to have when sharing stuff with Windows computers. After looking at a few options I settled on the free edition of Sophos Antivirus as being the best choice and have installed it.

UPDATE: Well after playing with the settings on the Windows computer I was able to get the Linux computer to connect to its shared pictures folder from Nemo, the Mint file manager. I am not sure if it was a case-sensitivity problem or with the Windows Live user account I tried to use first. When I capitalised all the letters of the Windows computer name and used a local account it worked.

The main issue is does it get put in as a local path? Well, in fact, it does. This is not immediately apparent. In fact, it will appear as /run/user/1000/gvfs/smb-share... where smb-share is followed by the path to the share. It turns out I can do most things with files accessed through that path, for example IrfanView running under Wine can scan and rename and so on. So at the moment the idea is to see how I go accessing my photos from the Windows computer over the network which will save from having to maintain two separate copies on two computers with synchronisation. Ideally it would be preferable if Nemo could map into something that was easier to remember but we will see how that goes for now. At least I have been able to get Wine to map that to a drive letter for IrfanView to make it easier to use in there.

So over the next few days I will be testing that out, and if that works, the Windows computer will hold all the photos and not the Linux computer, but it will be just as easy on the Linux computer to access them, even if it means I have to have two computers on for some of the time.