-- 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

Don't forget to set proper permissions:

chmod 644 ~/.ssh/config

* 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 tips and tricks

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

yum install vnc

* Connect to lxplus:

ssh -Y yourusername@lxplus.cern.ch

Note which machine you are on:

uname -n
lxplus793.cern.ch

* At lxplus, start the vnc server. It will ask you to set up a password, remember it. You will need it for this and all subsequent connections. If you ever forget the password, delete the ~/.vnc directory to start over.

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

If :8 is already in use, pick any other number

* On your local machine, start the vns client:

vncviewer -via yourusername@lxplus793.cern.ch :8

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

vncserver -kill :8

* From mac's xterm, connect to lxplus:

ssh -Y yourusername@lxplus.cern.ch

Note which machine you are on:

uname -n
lxplus793.cern.ch

* At lxplus, start the vnc server. It will ask you to set up a password, remember it. You will need it for this and all subsequent connections. If you ever forget the password, delete the ~/.vnc directory to start over.

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

If :8 is already in use, pick any other number xx and modify the port number (59xx) below accordingly

* From mac's xterm, type

ssh yourusername@lxplus793.cern.ch -L 5908:localhost:5908

* On mac, start Finder, press Apple+k and connect to vnc://localhost:5908

* After you are done, kill the server at lxplus:

vncserver -kill :8

On Windows machine, you will need an ssh client (PuTTY) and a vnc client (TightVNC).

* Connect to lxplus:

ssh -Y yourusername@lxplus.cern.ch

Note which machine you are on:

uname -n
lxplus793.cern.ch

* Start the vnc server. It will ask you to set up a password, remember it. You will need it for this and all subsequent connections. If you ever forget the password, delete the ~/.vnc directory to start over.

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

If :8 is already in use, pick any other number xx and modify the port number (59xx) below accordingly

* From Windows command prompt, set up the ssh tunnel:

plink -ssh -L 5908:localhost:5908 yourusername@lxplus793.cern.ch

* From Windows, start the TightVNC client. When prompted for the host name, enter

localhost::5908

(note two colons after localhost)

* After you are done, kill the server at lxplus:

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: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r5 - 2020-03-20 - 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-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback