1 production 1.1 /home/production/cvs/JSOC/doc/whattodo_dcs.txt 14Apr2010
2
3 --------------------------------------------------------
4 Summary of starting a dcs0 or dcs1 machine after a reboot
5 --------------------------------------------------------
6
7 NOTE:IMPORTANT: Please keep in mind that each data capture machine has its
8 own independent /home/production and is accessed via j0.
9 Note the SUMS database is jsocdc. This is a separate DB on each dcs.
10
11 dcs0 = AIA
12 dcs1 = HMI
13
14 1. Login as user postgres:
15
16 > ssh-agent | head -2 > /var/lib/pgsql/ssh-agent.env
17 > chmod 600 /var/lib/pgsql/ssh-agent.env
18 > source /var/lib/pgsql/ssh-agent.env
19 > ssh-add
20 (The password is written on my whiteboard (old production prod... passwd))
21
22 production 1.1 2. Login as user production:
23
24 > ssh-agent | head -2 > /var/tmp/ssh-agent.env
25 > chmod 600 /var/tmp/ssh-agent.env
26 > source /var/tmp/ssh-agent.env
27 > ssh-add
28 (The password is written on my whiteboard (old production prod... passwd))
29 NOTE: cron jobs use this /var/tmp/ssh-agent.env file
30
31 3. Start sum_svc and related programs:
32
33 > sum_start_dc
34
35 4. Start the vncserver:
36
|
37 production 1.2 > cd /home/production/cvs/JSOC/proj/datacapture
|
38 production 1.1 > vncserver -geometry 1280x1024
39
40 You will require a password to access your desktops.
41
42 Password: production password (basically no ....)
43 Verify:
44 Would you like to enter a view-only password (y/n)? n
45
46 New 'X' desktop is dcs0.Stanford.EDU:1
47
48 5. Login as production on j0:
49
50 > vncviewer
51
52 (answer what vncserver told you, e.g. dcs0.Stanford.EDU:1)
53
54 6. In the window that vncviewer opened do:
55
56 > cd /home/production/cvs/JSOC/proj/datacapture/scripts>
57 > ./socdc
58
59 production 1.1 All you would normally do is hit "Start Instances for HMI" or AIA for
60 what datacapture machine you are on.
61
|
62 production 1.2 =============================================================================
63
64 Stopping a dcs machine:
65 -----------------------
66
67 Hit the red "Exit" button on the VNC display of the socdc gui.
68 If you are not local ps and kill socdc.
69
|