Difference between revisions of "File transfer www"
(Created page with "'''File transfer through bioinf3.titan.uio.no''' 1) the way this works is that you send a link to the person who you want to send one or more files to, with a user name and pas...") |
|||
Line 3: | Line 3: | ||
1) the way this works is that you send a link to the person who you want to send one or more files to, with a user name and password. They download the data through a web browser.<br>The link will start with http://bioinf3.titan.uio.no/. Bioinf3 is a server that was bought for the 454 platform back when we got the machine. You put the files in a folder on titan. You can try it out yourself: | 1) the way this works is that you send a link to the person who you want to send one or more files to, with a user name and password. They download the data through a web browser.<br>The link will start with http://bioinf3.titan.uio.no/. Bioinf3 is a server that was bought for the 454 platform back when we got the machine. You put the files in a folder on titan. You can try it out yourself: | ||
− | + | [http://bioinf3.titan.uio.no/test/ http://bioinf3.titan.uio.no/test/] | |
+ | |||
+ | u s e r n a m e test<br>p a s s w o r d morhua | ||
1) It's preferred to make a single tarball (compressed file of type .tar.gz or .tgz) of the files to be transferred:<br> | 1) It's preferred to make a single tarball (compressed file of type .tar.gz or .tgz) of the files to be transferred:<br> |
Revision as of 16:38, 24 March 2014
File transfer through bioinf3.titan.uio.no
1) the way this works is that you send a link to the person who you want to send one or more files to, with a user name and password. They download the data through a web browser.
The link will start with http://bioinf3.titan.uio.no/. Bioinf3 is a server that was bought for the 454 platform back when we got the machine. You put the files in a folder on titan. You can try it out yourself:
http://bioinf3.titan.uio.no/test/
u s e r n a m e test
p a s s w o r d morhua
1) It's preferred to make a single tarball (compressed file of type .tar.gz or .tgz) of the files to be transferred:
cd folder_with_data tar -cvzf OUTFILE.tgz infile(s)
2) log in to bioinf3.titan.uio.no (NOT cod node or Abel), go to /projects/nscdata/www_docs, make a new folder, put the tarball in there
3) Make sure that the access rights are at least r--r--r--
chmod a+r *
Please do not use rwx for 'others', at most rwxrwxr--
4) choose a username, let's say user1; choose a password, for example using http://strongpasswordgenerator.com/
5) copy the .htaccess file from the test folder into the new folder:
cd newfolder cp ../test/.htaccess .
(note: .htaccess is a hidden file, and won't show up using ls. You can 'see' it when using ls -a or ls -la)
6) edit the .htaccess file in the new folder, replace 'user1' with the username you chose (do not change the rest):
AuthUserFile /projects/nscdata/www_docs/.htpasswd AuthName "Please use the username and password as provided..." AuthType Basic Options +Indexes <Limit GET> require user user1 </Limit>
NOTE you can have several users in the same file:
<Limit GET> require user user1 user2 user3 </Limit>
7) add the password to the /projects/nscdata/www_docs/.htpasswd file
cd .. (or cd /projects/nscdata/www_docs) htpasswd .htpasswd user1
You'll be asked to type the password twice
8) try out: go to http://bioinf3.titan.uio.no/folder, enter username (user1) and password, check that you can download the file(s)
9) Send an email to the recipient giving him the URL (http://bioinf3.titan.uio.no/folder) and username (user1). Send the password in a separate email