From fa64c485d726ab0083d497d2ca42d15329d60751 Mon Sep 17 00:00:00 2001 From: "Philip Sargent (muscogee)" Date: Sat, 28 Dec 2019 00:23:21 +0000 Subject: [PATCH] Setting up a WIndows laptop for expo use - unsolved configuration issues --- handbook/computing/fzlink.jpg | Bin 0 -> 11308 bytes handbook/computing/winlaptop.html | 114 ++++++++++++++++++++++++++--- handbook/computing/wsl.jpg | Bin 0 -> 5937 bytes handbook/computing/yourlaptop.html | 2 +- 4 files changed, 104 insertions(+), 12 deletions(-) create mode 100644 handbook/computing/fzlink.jpg create mode 100644 handbook/computing/wsl.jpg diff --git a/handbook/computing/fzlink.jpg b/handbook/computing/fzlink.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3941ae13624069ccf0620ad6f8369c34dc86a383 GIT binary patch literal 11308 zcmc(F2UJtr)^6xUK?p@aKoJlUiqb)PCqY_5uhOMA>7s%lMQTVu=`BEjfOL@FdoR+F zUV{n(ih@7q9*^g~ckln+`~UIYcspZc?6vnAbI-l!H|Lt`oAc+)&kq19s0u^{fQJVF z;9dRzKj#680AfNSVj@CfVj^M^5@J$vDspl%GICnVYgehR(=sqzr=_Q7V&S~Wbc3Cl zp8gi^E%rNHATWsWCf_|i?t7fvAnree;E|A!kdu~hnixpKMtfU8heS|b0q&7lF;2%WYU$|}j3^(2wbOG52`gDyhh&p-=7=aJw5?o9 zV!C_+KEXddq!IwO*(O!JL^ z5f?n*3cpl7dnpf2=J|Gis-gDgtoEklcwVLs$$&Wsy|#4w>w{O$aTxyV_Iy{H4+;`N zUD@F%cAn_@2Ovi%ZM;xYI}9k$z~vH{zLIR_kU?PE9xg^jN^(P2D$h4+K&Zg3r+&$v zb0BwfHK{fF2ND!9PX#|x8-e?HmM&y?w@skBe40{jpxT;ErJj6PsI06&r_3vaV72?z z*h3Qr8Y#WErYUrMs743sYC^qg<2QP( z%W`o+C`sr&Gm3y!iW7(Q#gqgsTk~?qTGiS;#M_K(G}ccK{h65DniIjqB-#lJ-{7~-W&we`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M#L5E4R_kQhevjQWD9 zVLRa+91$QX&Dq_d?)z{l4_^%;orjNR4zh19-!1m#8`Ga=Sc&p4T;%)`g>mr@5FQb+ zhwmj6JeaNN{jANR{wjSGcBaEngQknvAN0_)lxGKdaqzH_5El;@x6F=V4;Do^rzO3z z%ZZRZa0ln+1@|!g+LKVg0n{_5zi%OCq4tIR4j!G(OXOS9e)s$N&6@U>hJ-}awTys- zj3v90jJLDPiTsKug_LSZBP#K`Ygw4hCZ;|{*t33r1B<|*gOk19DMO{x<Lz zbEQKXsBNmnSe$Rq67lkjN91=tCd34%39H=G7ULWk}^`Gr2!mXv2bu_&{>UKuNi?;$&>WJ|%pR^|Yi=-#hqHKm3N z=VM*>*tX&1M4cKb11|UaCkc3)YsRY+;-f=P3ZLhYYS|Hze9>rM?-*z{&+W~~rM~3# zfE|w-n3(_HO>Sh(Pc6}%Xh`}eQ2IVnuaLlK!PT)iaTX8HkK7wBua;srf_l5;JKkMvFl zNY@dcIysl^Q=lvaxY{vdngH|8>q5=T}Bu8tdZve^YD@=t-Ark;&mwq8np3z zpsCB1^vdw>ae2ynXc3lmFrMAK@6Wrz>% literal 0 HcmV?d00001 diff --git a/handbook/computing/winlaptop.html b/handbook/computing/winlaptop.html index 6cfdbf18b..c1e0ad4fd 100644 --- a/handbook/computing/winlaptop.html +++ b/handbook/computing/winlaptop.html @@ -6,41 +6,133 @@ -

CUCC Expedition Handbook - Your Windows laptop

+

CUCC Expedition Handbook - Computers

Setting up an Expo laptop - using Microsoft Windows

A work in progress. -

It used to be quite simple - software equivalents existed for Windows for everything we needed. The new (since Spring 2018) requirement to make ssh keys obligatory has simply added an extra step for most things, but has made one thing (rsync) really quite hard to get working. +

It used to be quite simple: software equivalents existed for Windows for everything we needed. Since Spring 2018, we unfortunately have to use ssh keys. This has simply added an extra step for most things, but has made one thing (rsync) really quite hard to get working. +

What makes this all much more tiresome is that Microsoft are introducing some cool new ways of interacting with Linux systems but these are new and need some effort to get configured correctly. See the end of this page for more details.

  • Things that already work well with a Windows laptop
    - Editing the handbook webpages, typing up SVX files and transcribing the logbook,
    - Anything where the file-transfer to the expo surver is via the version control software (TortoiseHg or Git-for-Windows)
  • Things that cause problems
    -- filenames and unintentional duplication because hardlinks are not understood by Windows,
    +- filenames and unintentional duplication because links are not understood by Windows,
    - sFTP or scp for more than a handful of files
  • Things that are really, really hard
    - using rsync
    - large-scale updating of several folders at once on expofiles without overwriting other people's work (which means using rsync) +
  • Things for the bold
    +- using WSL and WSL2, Linux virtual machines and Docker containers

Things that already work well

-

Anytihng to +

Anything where the file upload and download is done via the verson control client software works really well. + +

Key management using PuTTy

+

Most Windows software that we recommend "just works" if you have set up PuTTy and have done the cryptographic key exchange and are running a local ssh agent (pagent) automatically at boot up on your laptop. +

Some software, such as the commercial (but free) GitKraken, requires that you click a checkbox to say that you are "using local SSH agent" rather than specifying ssh private keys explicitly (File->Preferences->Authentication in GitKraken). +

Some software (such as FIlezilla) defaults to using the local agent and it "just works". + +

Things that cause problems

-

Linux people like to use hard-links: where there is really only one file, but it is referred to by different names. The ones you are most likely to come across are that what looks like -/home/expo/expoweb is really just a link to /home/expo/repositories/hg/expoweb, and that -expoweb/essentials.gpx -is a link to /home/expo/expofiles/gpslogs/essentials/essentials2019.gpx +

Filenames

+

Linux allows characters in filenames which Windows doesn't. There are also apparently normal filenames which Windows rejects (such as "CON") for historical reasons. Linux filenames are case-senstitive and Windows filenames aren't: beware. + +

Symbolic links and sFTP

+

Linux people like to use links. This is where there is really only one file, but it is referred to by different names. This is particularly useful when a file is moved, but you want people who have got the old location to still be able to find it. This happens quite a lot when updating handbooks. +

+The links you are most likely to come across are that what looks like +/home/expo/expoweb is really just a link to the folder /home/expo/repositories/hg/expoweb,
+and that +expoweb/essentials.gpx +is a link to the file /home/expo/expofiles/gpslogs/essentials/essentials2019.gpx +

But that example is in the ::expoweb:: repository, so you won't be using sFTP to download it. Instead you will be using the version control software which handles it without problems. But we use it as an example of what to look out for when using sFTP. + +

+ +There are two types of linux links: hard links and symbolic links. Symbolic links are much the same thing as Window's "Shortcuts" but there is no equivalent on Windows to Linux soft links. Fortunately we don't seem to have any hard links anywhere. + + +

What really makes things unpleasant is that sFTP software won't tell you when it comes across a link and will just do something stupid. Our recommended sFTP software - Filezilla - is guilty of this. So what happens is that when you download a load of files onto your laptop using Filezilla it will simply turn every link it finds into a complete copy of the file. Then when you upload those files to the server, the copied file overwrites the link. So the server now has two files with the same content - which is a maintenance nightmare. This is painfully stupid because if it is a symbolic link there is no reason why Filezilla couldn't just create a Windows Shortcut which would do exactly the same thing. But it doesn't. + +

So the ordinary user won't notice any problems, but the nerds behind the scenes start to cuss and shout and generally carry-on in an expletive-heavy manner. + +

What is even more irritating is that Filezilla displays an link (essentials.gpx in the image) with a little arrow - it knows perfectly well that it is a symbolic link (although it does display it with a folder icon) - but it downloads it as a file copy. + +

Symbolic links: the solution for Windows

+
    +
  • When using the version control systems TortoiseHg or Git-for-Windows the download of a link works fine. But be careful not to edit the link file downloaded (it is just a text file holding the path of the file holding the actual contents) because then the version control client would upload it to the server and overwrite the link on the server with something that isn't a link. It also won't work as a Windows shortcut, but at least the default behaviour isn't actively dangerous. +
  • When using sFTP, manually check whether any files you are copying from the server are links - look at the symbol in Filezilla. +
  • Be careful not to copy any links using sFTP and instead recreate them manually on the Windows filesystem using right-click "Create shortcut". +
  • You will have to find out what to make the shortcut link to by logging in to the server (using a PuTTy ssh logon) and doing "ls -l" in the folder where the link is. +
  • But later, when re-uploading edited files from Windows to the server, Filezilla will see the Windows shortcut as a ".lnk" file which it will upload, but which will mean nothing to the linux server receiving it. So you would have to manually recreate the symbolic link by logging into the server using ssh and using the "ln -s" command. Yuk. +
    +
  • Even if you use scp instead of sFTP, it does the same stupid thing when copying from a linux filesystem to a Windows filesystem. The PuTTy package includes pscp.exe but even if you force it to use the scp protocol like this: + +pscp -scp expo@expo.survex.com:expoweb/essentials.gpx . + +it downloads a copy of the contents of essentials.gpx and not a link. +
  • A possible fix in the future might be to keep all your expo files in a separate partition of your hard disc which is formatted with a linux filesystem (such as ext4) and run the ext2ntfs driver to mount this fielsystem read-write from Windows. Probably not a good idea as the driver is a bit flaky in read-write mode and you could lose everything. + +

Things that are really, really hard

-

The core problem is integrating the PuTTy key management software (pagent.exe) with a terminal window. +

The core problem is integrating the PuTTy key management software (pagent.exe) with a terminal window. We need a terminal window to run rsync as none of the packaged software (Filezilla, PuTTY) includes an rsync client. +

We don't currently (December 2019) have a working recipe to set this up. Hopefully we will have it sorted in a month or two. + +

"Are you feeling lucky, punk"

+

So here is the current wild frontier. Currently these are the ways to get a terminal window which might work: +

    +
  • cmd window - the old faithful going all the way back to MS-DOS. But no path to an rsync.exe executable as standard. +
  • bash window - installed by default when you install gitforwindows. Unfortunately while this MINGW32 setup includes a comamnd-line git executable it doesn't include rsync. +
  • cygwin - a cmd terminal where you have downloaded and installed Cygwin. Yes, if you have selected the rsync package you will be able to run the rysnc executable, but it won't have access to the cyptographic key so it can't connect to the expo server. Please feel free to work out how to make this work. A more recent, grpahical variant is Swan. +
  • PowerShell terminal window - nope, no rsync. +
  • Windows Subsystem for Linux aka WSL1 available on all Windows10 machines since the November 2019 update. +
      +
    • Install it like this. This should do all we want. This should work, either by using the key generated by PuTTy or by using a key generated by its own version of ssh-keygen, but somehow it doesn't find the key. But fixing this is probably not a good use of time (though the fix may be trivial) because it will shortly be made obsolete by: +
    • WSL2 - the new wonderful system which will solve all our problems, make the tea and carry our gear up to topcamp. Allegedly. +
    • The 2019 WSL2 release includes a selection of complete Linux kernels. If you want to use this, then please do - and then write the handbook documentation too. But beware that it has two different modes which behave differently. +
    +
  • Canonical Multipass - a completely different alternative to WSL: more isolation, more understandable behaviour (?) +
  • A full virtual Linux machine running using a hypervisor such as VirtualBox which has its own virtual Linux filesystem. This setup has the advantage that you don't have to partitition your hard drive but the disadvantage that you can't get at any of the files from Windows itself except via a network protocol \\wsl$. Which may be no hardship. +
+ +

+WSL: the Windows Subsystem for Linux. The first release of this didn't do the ssh key exchange process easily: "fairly annoying because of how out-to-lunch SSH Agent is". +

WSL introduces a wonderful new problem of file permissions. Every file on the Windows filesystem NTFS has a set of permissions managed by the filesystem. Every NTFS file that WSL knows about (if mounted with -o metadata) acquires a completely parallel set of file permissions that "mirror" the NTFS permissions but can get out of sync. All sorts of fun results: "With network file systems, DrvFs does not set the correct Linux permissions bits on a file; instead, all files are reported with full access (0777) and the only way to determine if you can actually access the file is by attempting to open it." + + +

Links to useful articles to help you work this out for yourself: +

+ +

Scatch list of things that go wrong when trying to sort this out +file-system-improvements-to-the-windows-subsystem-for-linux/ +id-rsa-pub-file-ssh-error-invalid-format +key-load-public-invalid-format +ssh-error-loading-key-id-rsa-invalid-format +chmod-chown-wsl-improvements +mount-usb-drives-windows-subsystem-for-linux +VS Code and WSL +ssh command line + +

Installing and Configuring the rest of the software you need on Windows

+

Now return to the Your Laptop page to configure all the rest of the software you need. +


-

WSL: the Windows Subsystem for Linux. The first release of this didn't do the ssh key exchange process easily. The 2019 WSL2 release includes a complete Linux kernel. If you want to use this, then please do - and then write the handbook documentation too. But beware that it has two different modes which behave differently. -