Pre-workshop checklist
Learning Objectives
You will be ready for the workshop!
Please read and try the following steps before arriving. For some of the steps the solution requires waiting for a day or so. So please try them before arriving and try to fix what ever does not work.
Follow this guide before arriving; we will not have time to help you with problems on these issues during the workshop. This means you will end up watching instead of participating.
This will be an interactive workshop, so you will need to bring a computer. There will be no machines for you to use in the room.
Follow all the steps using the computer you plan to bring, not your desktop or someone else’s computer.
If this is the first time you are bringing your laptop to CERN, you will have to register it before it can access the internet.
Please bring your power supply, as well as a plug adaptor to Swiss and European plugs.
Windows
In the following we assume you use Mac OS X or Linux. If you are running Windows, step 2 is replaced by a list of instructions given at the bottom of this page.
Try the following steps with the computer you will use at the workshop:
In your browser try and access the web-based book keeping. If you need help with your grid certificate there is the Grid certificate FAQ and you can ask questions on
lhcb-distributed-analysis@cern.ch
.From a terminal (
xterm
on Linux orTerminal
on Mac OS X) connect to lxplus withssh -X lxplus.cern.ch
. If your local username is different from yourlxplus
one usessh -X mylxplusname@lxplus.cern.ch
. Please try exactly this command even if you usually use an alias or other shortcut.If, just below the
Password:
line, you get a messageWarning: untrusted X11 forwarding setup failed: xauth key data not generated
:Once connected, check your grid certificate works by typing
lhcb-proxy-init
. If you need help with your grid certificate there is the Grid certificate FAQ and you can ask questions onproject-lcg-vo-lhcb-admin@cern.ch
.lhcb-proxy-init
will ask you for the password of your grid certificate and then print something like:
Generating proxy...
Enter Certificate password:
Added VOMS attribute /lhcb/Role=user
Uploading proxy for lhcb_user...
Uploading proxy for private_pilot...
Proxy generated:
subject : /DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=thead/CN=667505/CN=Timothy Daniel Head/CN=proxy/CN=proxy
issuer : /DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=thead/CN=667505/CN=Timothy Daniel Head/CN=proxy
identity : /DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=thead/CN=667505/CN=Timothy Daniel Head
timeleft : 23:53:59
DIRAC group : lhcb_user
path : /tmp/x509up_u25636
username : thead
properties : NormalUser
VOMS : True
VOMS fqan : ['/lhcb/Role=user']
Proxies uploaded:
DN | Group | Until (GMT)
/DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=thead/CN=667505/CN=Timothy Daniel Head | lhcb_user | 2015/08/25 08:05
/DC=ch/DC=cern/OU=Organic Units/OU=Users/CN=thead/CN=667505/CN=Timothy Daniel Head | private_pilot | 2015/08/25 08:05
Check that X11 forwarding works by typing
display
on lxplus. A wizard should appear in a new window.If you’re not connected to the CERN network at CERN, do not worry if the X11 forwarding is slow–this is normal.
If you can successfully execute all of the above steps, you are ready to go for the workshop!
Using Bash
The Bash shell will be used
throughout the workshop.
The default for new LHCb computing accounts is now Bash. If you have an older
account, the default used to be a shell called tcsh
(“tee-cee-shell”), which has subtly different ways of doing things
in comparison with Bash.
It is recommended to change your default shell to Bash if this is the case, which is much more
widely used than tcsh
and also supported by LHCb, by visiting the your
CERN account page, then clicking “Resources and
services”, then “List services”, “LXPLUS and Linux”, “Settings”, then change
“Unix shell” to /bin/bash
, and click “Save Selection”.
If you don’t want to change your default shell, just execute the bash
command when you login to lxplus.
Windows-specific Instructions
On Windows, some additional steps are required before you can connect via SSH.
Set up steps (you only have to perform this once):
Download the Xming installer.
Run the installer.
Download PuTTY.
The following steps have to be executed each time you want to connect:
Start PuTTY.
In the list on the left, unfold
Connection
andSSH
, then click theX11
item.In the window that appears, make sure the check box labeled
Enable X11 forwarding
is checked.Return to the previous window by selecting
Session
int he list on the left.In the text box labeled
Host Name (or IP address)
, typelxplus.cern.ch
.Make sure the
Port
text box contains the number22
.Click the
Open
button on the bottom of the screen.A window appears with the text
login as:
. Type your CERN username, followed by Enter.The window should say
Using keyboard-interactive authentication. Password:
. Type your password, again followed by Enter.You now have a remote SSH session at an lxplus server node!