Difference between revisions of "File transfer www"

From mn/bio/cees-bioinf
Jump to: navigation, search
 
Line 1: Line 1:
'''File transfer through bioinf3.titan.uio.no'''  
+
<span style="font-size:large;">'''NO LONGER USED'''</span>
 +
Use the norstore version instead.
  
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:
+
'''File transfer through bioinf3.titan.uio.no'''
  
[http://bioinf3.titan.uio.no/test/ http://bioinf3.titan.uio.no/test/]  
+
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/ 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:
  
u s e r n a m e &nbsp; &nbsp;test<br>p a s s w o r d &nbsp; &nbsp;the species name of atlantic cod (in small caps)
+
[http://bioinf3.titan.uio.no/test/ http://bioinf3.titan.uio.no/test/]
  
1) It's preferred to make a single tarball (compressed file of type .tar.gz or .tgz) of the files to be transferred:<br>
+
u s e r n a m e &nbsp; &nbsp;test<br/>p a s s w o r d &nbsp; &nbsp;the species name of atlantic cod (in small caps)
 +
 
 +
1) It's preferred to make a single tarball (compressed file of type .tar.gz or .tgz) of the files to be transferred:
 
<pre>cd folder_with_data
 
<pre>cd folder_with_data
tar -cvzf OUTFILE.tgz infile(s)</pre>  
+
tar -cvzf OUTFILE.tgz infile(s)</pre>
<br> 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  
+
<br/>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--<br>
+
3) Make sure that the access rights are at least r--r--r--
<pre>chmod a+r *</pre>  
+
<pre>chmod a+r *</pre>
''Please do not use rwx for 'others''', at most rwxrwxr--  
+
''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/  
+
4) choose a username, let's say user1; choose a password, for example using [http://strongpasswordgenerator.com/ http://strongpasswordgenerator.com/]
  
5) copy the .htaccess file from the test folder into the new folder:<br>
+
5) copy the .htaccess file from the test folder into the new folder:
 
<pre>cd newfolder
 
<pre>cd newfolder
cp ../test/.htaccess .</pre>  
+
cp ../test/.htaccess .</pre>
(note: .htaccess is a hidden file, and won't show up using ls. You can 'see' it when using ls -a or ls -la)  
+
(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):<br>
+
6) edit the .htaccess file in the new folder, replace 'user1' with the username you chose (do '''not''' change the rest):
 
<pre>AuthUserFile /projects/nscdata/www_docs/.htpasswd
 
<pre>AuthUserFile /projects/nscdata/www_docs/.htpasswd
 
AuthName "Please use the username and password as provided..."
 
AuthName "Please use the username and password as provided..."
Line 30: Line 33:
 
Options +Indexes
 
Options +Indexes
  
&lt;Limit GET&gt;
+
<Limit GET>
 
require user user1
 
require user user1
&lt;/Limit&gt;</pre>  
+
</Limit></pre>
NOTE you can have several users in the same file:  
+
NOTE you can have several users in the same file:
<pre>&lt;Limit GET&gt;
+
<pre><Limit GET>
 
require user user1 user2 user3
 
require user user1 user2 user3
&lt;/Limit&gt; </pre>  
+
</Limit> </pre>
7) add the password to the /projects/nscdata/www_docs/.htpasswd file<br>
+
7) add the password to the /projects/nscdata/www_docs/.htpasswd file
 
<pre>cd .. (or cd /projects/nscdata/www_docs)
 
<pre>cd .. (or cd /projects/nscdata/www_docs)
htpasswd .htpasswd user1</pre>  
+
htpasswd .htpasswd user1</pre>
You'll be asked to type the password twice  
+
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)  
+
8) try out: go to [http://bioinf3.titan.uio.no/folder 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<br>
+
9) Send an email to the recipient giving him the URL ([http://bioinf3.titan.uio.no/folder http://bioinf3.titan.uio.no/folder]) and username (user1). Send the password in a separate email

Latest revision as of 16:09, 26 February 2015

NO LONGER USED Use the norstore version instead.

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    the species name of atlantic cod (in small caps)

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