CernLxplus: Difference between revisions

From T2B Wiki
Jump to navigation Jump to search
m (Created page with " == How to copy data from disk (eg. beo5) to you space at lxplus? == Use secure copy: scp <pre> scp 'uname'@lxpub3.iihe.ac.be:/beo5/somefile 'uname'@lxplus.cern.ch:/afs/...")
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:


== How to copy data from disk (eg. beo5) to you space at lxplus? ==
=== How to connect without password to lxplus ===
* The CERN wiki page is [http://linux.web.cern.ch/linux/docs/kerberos-access.shtml here]
* Install the necessary software:
<pre>ubuntu: sudo apt-get install krb5-user
fedora: sudo dnf install krb5-workstation krb5-libs</pre>
:* Copy to '''/etc/krb5.conf''' the config file taken from CERN [http://linux.web.cern.ch/linux/docs/krb5.conf here].
:* Do a '''kinit''' . It should ask you for you CERN password, specifying yourlogin@CERN.CH. If this is wrong, specify it yourself with '''kinit yourlogin@CERN.CH'''
::: This should give you a valid kerberos ticket lasting 25h, meaning you will be able to connect passwordlessly to lxplus as long as the kerberos ticket is valid.
::: To check if this worked, do a '''klist -f'''. Check the ''Flags'', there should be an '''F''', meaning you will have access to your /afs space.
:* Connect to lxplus using the following ssh options (replace ''MYLOGIN'' with the CERN login):
ssh -2 -oGSSAPIAuthentication=yes -oGSSAPIDelegateCredentials=yes -oGSSAPITrustDNS=yes -l MYLOGIN lxplus.cern.ch
 
<br> <br>
* From the UIs, you should simply do:
<pre>
kinit
ssh -2 -oGSSAPIAuthentication=yes -oGSSAPIDelegateCredentials=yes -oGSSAPITrustDNS=yes -oStrictHostKeyChecking=no -l $USER $(nslookup lxplus.cern.ch|grep Address|sed -n 2,2p|awk -F':' '{print $2}')
</pre>
 
=== How to copy data from disk (eg. beo5) to you space at lxplus? ===
Use secure copy: scp
Use secure copy: scp
  <pre>  
  <pre>  
Line 6: Line 25:
</pre>
</pre>


== How to print from lxplus when you're in building 40 ==
=== How to print from lxplus when you're in building 40 ===
Command to print  
Command to print  
  <pre>  
  <pre>  
Line 14: Line 33:
*[http://linux.web.cern.ch/linux/documentation/printing.shtml More] information.
*[http://linux.web.cern.ch/linux/documentation/printing.shtml More] information.
*[http://cerncourier.com/cws/article/cnl/26307 Article] on printing
*[http://cerncourier.com/cws/article/cnl/26307 Article] on printing
{{TracNotice|{{PAGENAME}}}}

Latest revision as of 09:39, 22 February 2023

How to connect without password to lxplus

  • The CERN wiki page is here
  • Install the necessary software:
ubuntu: sudo apt-get install krb5-user
fedora: sudo dnf install krb5-workstation krb5-libs
  • Copy to /etc/krb5.conf the config file taken from CERN here.
  • Do a kinit . It should ask you for you CERN password, specifying yourlogin@CERN.CH. If this is wrong, specify it yourself with kinit yourlogin@CERN.CH
This should give you a valid kerberos ticket lasting 25h, meaning you will be able to connect passwordlessly to lxplus as long as the kerberos ticket is valid.
To check if this worked, do a klist -f. Check the Flags, there should be an F, meaning you will have access to your /afs space.
  • Connect to lxplus using the following ssh options (replace MYLOGIN with the CERN login):
ssh -2 -oGSSAPIAuthentication=yes -oGSSAPIDelegateCredentials=yes -oGSSAPITrustDNS=yes -l MYLOGIN lxplus.cern.ch



  • From the UIs, you should simply do:
kinit
ssh -2 -oGSSAPIAuthentication=yes -oGSSAPIDelegateCredentials=yes -oGSSAPITrustDNS=yes -oStrictHostKeyChecking=no -l $USER $(nslookup lxplus.cern.ch|grep Address|sed -n 2,2p|awk -F':' '{print $2}')

How to copy data from disk (eg. beo5) to you space at lxplus?

Use secure copy: scp

 
scp  'uname'@lxpub3.iihe.ac.be:/beo5/somefile 'uname'@lxplus.cern.ch:/afs/cern.ch/user/m/me 

How to print from lxplus when you're in building 40

Command to print

 
lpr -P 40-4B-COR ....