2019-07-11 15:25:19 +01:00
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" / >
< title > CUCC Expedition Handbook: Uploading files/photos< / title >
2021-04-29 15:21:31 +01:00
< link rel = "stylesheet" type = "text/css" href = "../../css/main2.css" / >
2019-07-11 15:25:19 +01:00
< / head >
< body >
< h2 id = "tophead" > CUCC Expedition Handbook< / h2 >
2021-04-29 15:21:31 +01:00
< h1 > Uploading Photos and files - Experts< / h1 >
2019-07-11 15:25:19 +01:00
< 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.
2020-01-10 01:49:11 +00:00
< 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-pair setup
2019-07-11 15:25:19 +01:00
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.
2020-01-10 01:49:11 +00:00
See < a href = "computing/keyexchange.html" > key-pair setup instructions< / a > for how to arrange with an admin for this to be done for your device.
2019-07-11 15:25:19 +01:00
2020-01-10 01:49:11 +00:00
< h3 > Using scp - requires key-pair setup for the device< / h3 >
2019-07-11 15:25:19 +01:00
< p > Works on Windows (using winscp), Linux (using scp), and no doubt
2020-04-10 13:09:12 +01:00
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 WSL< / a > , then you can use scp and don't need winscp.< / p >
2019-07-11 15:25:19 +01:00
< 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 >
2022-03-29 01:26:44 +01:00
< p > 'OpenSSH in Windows' includes ssh, scp and sftp command-line executables too. And for these the integration with the ssh key is good and well-documented.
2019-07-11 15:25:19 +01:00
< 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.
2021-04-29 15:21:31 +01:00
< li > Or if you are using an Android mobile phone, follow < a href = "uploading.html#android" > the andftp Android instructions< / a > .
2019-07-11 15:25:19 +01:00
< / ol >
< h3 > Expo laptops< / h3 >
2020-01-10 01:49:11 +00:00
< p > The < i > expo laptop< / i > has got the key-pair setup set up on it so it is configured for Filezilla to use sftp not ftp but this is invisible to normal use.
2019-07-11 15:25:19 +01:00
< 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 >
2020-04-10 13:09:12 +01:00
$ ./updatephotos
2019-07-11 15:25:19 +01:00
< / 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 >