mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2024-12-01 14:21:56 +00:00
80 lines
3.5 KiB
HTML
80 lines
3.5 KiB
HTML
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>CUCC Expedition Handbook: Uploading files/photos</title>
|
|
<link rel="stylesheet" type="text/css" href="../css/main2.css" />
|
|
</head>
|
|
<body>
|
|
<h2 id="tophead">CUCC Expedition Handbook</h2>
|
|
<h1>Uploading Photos and files - Expert Use</h1>
|
|
|
|
<h2>Experts only</h2>
|
|
<p>If you have been using FTP since the last century or are particularly keen on doing everything using the command-line, read on.
|
|
|
|
<p>With the new server in 2019 it is harder to configure scp or sftp (or ssh or rsync) because the server needs a key exchange
|
|
setting up first. So while scp (once working) is now
|
|
more secure than it was, we are forced to allow ordinary ftp to allow experienced but non-key-exchanged expoers' laptops or phones to upload photos
|
|
to the server. This is worse than it was as the password is now sent in clear.
|
|
|
|
<p>So it is important that the ordinary ftp access is restricted to the /uploads/ folder tree.
|
|
|
|
See <a href="computing/keyexchange.html">key exchange instructions</a> for how to arrange with an admin for this to be done for your device.
|
|
|
|
|
|
<h3>Using scp - requires key exchange for the device</h3>
|
|
|
|
<p>Works on Windows (using winscp), Linux (using scp), and no doubt
|
|
mac and android with other tools. If you have Windows 10 and <a href="https://msdn.microsoft.com/en-gb/commandline/wsl/about">have installed bash</a>, then you can use scp.</p>
|
|
|
|
<p>If you don't have winscp installed you can get it from here:
|
|
<a href="http://winscp.net/eng/index.php">http://winscp.net/eng/</a>.</p>
|
|
|
|
<p>quick start guide:
|
|
<a href="http://winscp.net/eng/docs/getting_started">http://winscp.net/eng/docs/getting_started</a></p>
|
|
|
|
<p>screenshots:
|
|
<a href="http://winscp.net/eng/docs/screenshots">http://winscp.net/eng/docs/screenshots</a></p>
|
|
|
|
<!-- WedDAV no longer works because the effective user is "apache" and the permissions
|
|
for the folder /uploads/ no longer allow it to write anything because we had to change it to allow Filezilla
|
|
to work.Philip & Wookey 11 August 2018
|
|
|
|
<h3>Using WebDAV - cadaver</h3>
|
|
<p>Command-line people can use the 'cadaver' client which is even
|
|
available for windows too:
|
|
<a href="http://www.phtagr.org/2009/04/01/cadaver-for-windows/">www.phtagr.org/2009/04/01/cadaver-for-windows/</a></p>
|
|
-->
|
|
|
|
<p>scp gives you an 'explorer-like' interface (although winscp can
|
|
give you a norton-commander-style 2-pane UI as well).</p>
|
|
|
|
|
|
<p>rewite this bit...
|
|
<ol>
|
|
<li>Download and install <b>Filezilla</b>.
|
|
<li>Or learn to use <b><a href="https://www.computerhope.com/unix/scp.htm">scp</a></b>.
|
|
<li>Or on a Windows machine try Winscp.
|
|
<li>Or if you are using an Android mobile phone, follow <a href="computing/ftpusage.html">Radost's instructions</a> which also cover Winscp briefly.
|
|
</ol>
|
|
|
|
|
|
<h3>Expo laptops</h3>
|
|
<p>The <i>expo laptop</i> has got the key exchange set up on it so it is configured for Filezilla to use sftp not ftp but this is invisible to normal use.
|
|
|
|
<h3>Using WebDAV</h3>
|
|
This no longer works as we had to change the folder permissions for /uploads/. Sorry.
|
|
|
|
<h3>Using rsync</h3>
|
|
<p>No, don't use rsync for this. Really don't. It's too liable to delete everything or to overwrite files which are not changed at all because of the incompatibilities between Linux and Windows filename conventions (uppercase and lowercase are automagically converted and rsync gets it wrong).
|
|
|
|
<h3>Regenerating photos albums</h3>
|
|
<p>ssh in to the server, cd to /expofiles/ and
|
|
<pre>
|
|
make photos
|
|
</pre>
|
|
will regenerate it all using the installation of bins on the server
|
|
using the config in /home/expo/config/bins/binsrc
|
|
|
|
<hr />
|
|
</body>
|
|
</html> |