-- AlexanderKhanov - 2019-10-17

Useful tricks for your cern connection

* Copy /etc/krb5.conf from lxplus to your local machine (drop anything not related to the cern.ch domain).

* To get around DNS round-robin aliases, in your local machine, create a file ~/.ssh/config with the following content:

HOST lxplus*
    GSSAPITrustDNS yes
    GSSAPIAuthentication yes
    GSSAPIDelegateCredentials yes

* Obtain a kerberos ticket (valid for 25 hours, repeat as needed):

kinit

* Verify that you can connect to lxplus:

ssh -Y lxplus.cern.ch

should take you to lxplus without asking for a password.

VNC is a desktop sharing system for remote computer access. Much faster than regular ssh connection if one needs to open windows (e.g. to run root)

* Make sure you have vnc installed at your local machine, if not, as a root, do

yum install vnc

* Connect to lxplus (currently only works for centos 6 machines):

ssh -Y lxplus6.cern.ch

* Note which machine you are on:

uname -n
lxplus625.cern.ch

* On remote machine, start the vnc server. It will ask you to set up a password, remember it.

  • you will need the password for this and all subsequent connections
  • if you ever forget it, delete the ~/.vnc directory to start over
  • 8 below is an (arbitrary) port number. If it is already in use, pick any other number

vncserver :8 -localhost -name mysession -geometry 1024x768

* On local machine, start the vns client:

vncviewer -via khanov@lxplus625.cern.ch :8

* After you are done, kill the server on remote machine:

vncserver -kill :8

* If setupATLAS alias is not defined, you can set it manually:

export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
alias setupATLAS='source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh'

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2019-10-17 - AlexanderKhanov
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback