Difference between revisions of "DAQ test computer"

From GlueXWiki
Jump to: navigation, search
 
 
(35 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Instructions for setting up a DAQ test computer==
 
 
==Elliott Wolin, 20-Aug-2008==
 
 
 
 
Instructions for configuring a Hall D DAQ computer for stand-alone
 
Instructions for configuring a Hall D DAQ computer for stand-alone
 
operation, after installing RHEL5 from JLab CD using standard halld
 
operation, after installing RHEL5 from JLab CD using standard halld
 
passwords.  Instructions below assume host name moe.jlab.org and
 
passwords.  Instructions below assume host name moe.jlab.org and
VxWorks processor pmt1.jlab.org, and that daq system is on a private
+
VxWorks processor pmt1.jlab.org.
ethernet (eth1) and not on eth0.  
+
  
 +
Instructions also assume that the main (JLab) network connection
 +
is on eth0, and the daq system is on a private network eth1.
  
From the root account:
 
  
 +
Elliott Wolin, 20-Aug-2008
  
- create halld group gid=267
 
  
  
- create halld account id=500 with standard password, set halld as
+
'''From the root account:'''
  primary group
+
  
 +
* create halld group gid=267 using gui (if remote can get gui via: $ system-config-users)
  
- have computer center mount /group/halld and /group/da, or at least
 
  allow the computer to mount them.  If the latter:
 
  
 +
* create halld account id=500 with standard password and halld as primary group using gui
 +
 +
 +
* have computer center mount /group/halld and /group/da, or at least allow the computer to mount them.  If the latter:
 
       $ mkdir /group
 
       $ mkdir /group
 
       $ chmod a+rwx /group
 
       $ chmod a+rwx /group
Line 29: Line 26:
 
       $ ln -s /misc/halld /group/halld
 
       $ ln -s /misc/halld /group/halld
  
  Edit /etc/auto.misc and add:
+
 
 +
* Edit /etc/auto.misc and add:
 
       da              -rw            jlabgrp:/vol/vol1/da
 
       da              -rw            jlabgrp:/vol/vol1/da
 
       halld          -rw            jlabgrp:/vol/vol1/halld
 
       halld          -rw            jlabgrp:/vol/vol1/halld
  
  and finally:
+
* and finally:
 +
      $ /etc/init.d/autofs restart
  
      $ mount -a
 
  
 +
* yum install:
 +
**      minicom
 +
**      xinetd
 +
**      ant
 +
**      rsh-server
 +
**      some-java-version  (use yum search java) (e.g. java-1.6.0-ibm-devel.i386)
 +
**      scons.noarch
  
- yum install:
 
      minicom
 
      xinetd
 
      ant
 
      rsh-server
 
      some-java-version  (use yum search java)
 
  
 +
Also interesting for debugging network traffic are tcpdump, wireshark, and wireshark-gnome.
  
- enable rsh in /etc/xinetd.d/rsh:
+
 
 +
* enable rsh in /etc/xinetd.d/rsh on the local private network only:
 
       socket_type            = stream
 
       socket_type            = stream
 
       wait                    = no
 
       wait                    = no
Line 54: Line 55:
 
       server                  = /usr/sbin/in.rshd
 
       server                  = /usr/sbin/in.rshd
 
       disable                = no
 
       disable                = no
 +
      only_from              = 192.168.0.0/16
 +
      bind                    = 192.168.1.1
  
  
- confiture autostart of xinetd/rsh and ncsd:
+
* configure autostart of xinetd/rsh and ncsd:
 
       /sbin/chkconfig xinetd on
 
       /sbin/chkconfig xinetd on
 
       /sbin/chkconfig nscd  on
 
       /sbin/chkconfig nscd  on
  
  
- start xinetd and nscd:
+
* start xinetd and nscd:
 
       /sbin/service xinetd start
 
       /sbin/service xinetd start
 
       /sbin/service nscd  start
 
       /sbin/service nscd  start
 +
or
 +
      /etc/init.d/xinetd start
 +
      /etc/init.d/nscd  start
  
(or /etc/init.d/xinetd start, etc)
 
 
 
- edit /etc/hosts:
 
  
 +
* edit /etc/hosts:
 
       127.0.0.1      moe localhost localhost.localdomain moe.jlab.org
 
       127.0.0.1      moe localhost localhost.localdomain moe.jlab.org
 
       ::1            localhost.localdomain  localhost
 
       ::1            localhost.localdomain  localhost
 
       192.168.1.2    pmt1     
 
       192.168.1.2    pmt1     
  
 +
* note that cfengine may disable rsh, need to talk to Sherman White to get exemption for host computer
  
- configure eth1 for static routing, IP address 192.168.1.1 using gui
 
  
 +
* configure eth0 for DHCP on the JLab network
 +
* configure eth1 for static routing, IP 192.168.1.1, netMask 255.255.255.0 using gui (if remote can get gui via: $ system-config-network).
  
- edit network files:
 
  
      /etc/sysconfig/network-scripts/ifcfg-eth0
+
Edit network files:
  PEERDNS=yes
+
/etc/sysconfig/network-scripts/ifcfg-eth0
 +
      PEERDNS=yes
 +
      ONBOOT=yes
  
      /etc/sysconfig/network-scripts/ifcfg-eth1
+
/etc/sysconfig/network-scripts/ifcfg-eth1
  PEERDNS=no
+
      PEERDNS=no
 +
      ONBOOT=YES
  
      /etc/sysconfig/network
+
/etc/sysconfig/network
turned IPv6 off
+
** turn IPv6 off
set hostname to moe (was localhost)
+
** set hostname to moe
  
  
- activate eth1 (can also use gui):
+
* activate eth0 and eth1 (can also use gui):
 +
      /sbin/ifup eth0
 
       /sbin/ifup eth1
 
       /sbin/ifup eth1
  
  
- edit /etc/sudoers and add:
+
* edit /etc/sudoers and add:
 
       halld  ALL=(ALL)      ALL
 
       halld  ALL=(ALL)      ALL
  
  
- fix ttyS0 permisions for minicom.  May be needed after every reboot:
+
* fix ttyS0 permisions for minicom.  May be needed after every reboot:
 
+
 
       chmod a+rw /dev/ttyS0
 
       chmod a+rw /dev/ttyS0
  
  or from halld account:
+
*or from halld account:
 
+
 
       sudo chmod a+rw /dev/ttyS0
 
       sudo chmod a+rw /dev/ttyS0
  
  
  
These can be done from halld account:
+
'''From the halld account:'''
  
  
- copy files from /group/da/ejw/daq-config into halld home dir:
+
* copy files from /group/da/ejw/daq-config into halld home dir:
      .complete.tcsh
+
**      .complete.tcsh
      .emacs  
+
**      .emacs  
      .cshrc
+
**      .cshrc
      .alias   
+
**      .alias   
      .login  
+
**      .login  
  
  
- create /home/halld/.xemacs and copy from /group/da/ejw/daq-config:
+
* create directory /home/halld/.xemacs and copy in from /group/da/ejw/daq-config:
      init.el  
+
**      init.el  
      custom.el
+
**      custom.el
  
  
- create /home/halld/.rhosts:
+
* create /home/halld/.rhosts:
 
       192.168.1.2
 
       192.168.1.2
 
       pmt1.jlab.org
 
       pmt1.jlab.org
  
  
- set .rhost permissions:
+
* set .rhost permissions:
 
       chmod u=rw .rhosts
 
       chmod u=rw .rhosts
 +
      chmod go-rw .rhosts
 +
 +
 +
* reboot if something is not working properly.  Contact computer center if reboot doesn't help.
 +
 +
 +
* setting vxWorks boot parameters:
 +
 +
[VxWorks Boot]: p
 +
<br>
 +
boot device          : scsi=2,0
 +
processor number    : 0
 +
host name            : mizar
 +
file name            : /sd0/boot/vx2700_sd0
 +
inet on ethernet (e) : 129.57.14.20:fffffc00
 +
host inet (h)        : 129.57.14.33
 +
gateway inet (g)    : 129.57.12.1
 +
user (u)            : abbottd
 +
flags (f)            : 0x20
 +
target name (tn)    : davw10
 +
startup script (s)  : /sd0/drew/pem/pemv7.boot
 +
other (o)            : dc
 +
<br>
 +
  host name  -  Name of the Unix host
 +
  e  -  IP address of the board:subnet mask
 +
            (should be in /etc/hosts on unix as well)
 +
  h  -  Unix host IP address
 +
  g  -  IP gateway (this is optional - it can be cleared)
 +
  u  -  username on unix host
 +
  tn  -  name of VME board (should be in /etc/hosts on unix)
 +
  o  -  device name for the network interface (dc)
 +
 +
 +
* nfs mounts on vxWorks
 +
**nfsMount("host","file_system")
 +
 +
 +
* minicom settings
 +
** /dev/ttyS0
 +
** 9600 8N1
  
  
- reboot if something is not working properly.  Contact computer
+
* Future possibilities
  center if reboot doesn't help.
+
** snapshot using rsync

Latest revision as of 09:01, 26 September 2011

Instructions for configuring a Hall D DAQ computer for stand-alone operation, after installing RHEL5 from JLab CD using standard halld passwords. Instructions below assume host name moe.jlab.org and VxWorks processor pmt1.jlab.org.

Instructions also assume that the main (JLab) network connection is on eth0, and the daq system is on a private network eth1.


Elliott Wolin, 20-Aug-2008


From the root account:

  • create halld group gid=267 using gui (if remote can get gui via: $ system-config-users)


  • create halld account id=500 with standard password and halld as primary group using gui


  • have computer center mount /group/halld and /group/da, or at least allow the computer to mount them. If the latter:
     $ mkdir /group
     $ chmod a+rwx /group
     $ ln -s /misc/da /group/da
     $ ln -s /misc/halld /group/halld


  • Edit /etc/auto.misc and add:
     da              -rw             jlabgrp:/vol/vol1/da
     halld           -rw             jlabgrp:/vol/vol1/halld
  • and finally:
     $ /etc/init.d/autofs restart


  • yum install:
    • minicom
    • xinetd
    • ant
    • rsh-server
    • some-java-version (use yum search java) (e.g. java-1.6.0-ibm-devel.i386)
    • scons.noarch


Also interesting for debugging network traffic are tcpdump, wireshark, and wireshark-gnome.


  • enable rsh in /etc/xinetd.d/rsh on the local private network only:
     socket_type             = stream
     wait                    = no
     user                    = root
     log_on_success          += USERID
     log_on_failure          += USERID
     server                  = /usr/sbin/in.rshd
     disable                 = no
     only_from               = 192.168.0.0/16
     bind                    = 192.168.1.1


  • configure autostart of xinetd/rsh and ncsd:
     /sbin/chkconfig xinetd on
     /sbin/chkconfig nscd   on


  • start xinetd and nscd:
     /sbin/service xinetd start
     /sbin/service nscd   start

or

     /etc/init.d/xinetd start
     /etc/init.d/nscd   start


  • edit /etc/hosts:
     127.0.0.1       moe localhost localhost.localdomain moe.jlab.org
     ::1             localhost.localdomain   localhost
     192.168.1.2     pmt1    
  • note that cfengine may disable rsh, need to talk to Sherman White to get exemption for host computer


  • configure eth0 for DHCP on the JLab network
  • configure eth1 for static routing, IP 192.168.1.1, netMask 255.255.255.0 using gui (if remote can get gui via: $ system-config-network).


Edit network files:

  • /etc/sysconfig/network-scripts/ifcfg-eth0
     PEERDNS=yes
     ONBOOT=yes
  • /etc/sysconfig/network-scripts/ifcfg-eth1
     PEERDNS=no
     ONBOOT=YES
  • /etc/sysconfig/network
    • turn IPv6 off
    • set hostname to moe


  • activate eth0 and eth1 (can also use gui):
     /sbin/ifup eth0
     /sbin/ifup eth1


  • edit /etc/sudoers and add:
     halld   ALL=(ALL)       ALL


  • fix ttyS0 permisions for minicom. May be needed after every reboot:
     chmod a+rw /dev/ttyS0
  • or from halld account:
     sudo chmod a+rw /dev/ttyS0


From the halld account:


  • copy files from /group/da/ejw/daq-config into halld home dir:
    • .complete.tcsh
    • .emacs
    • .cshrc
    • .alias
    • .login


  • create directory /home/halld/.xemacs and copy in from /group/da/ejw/daq-config:
    • init.el
    • custom.el


  • create /home/halld/.rhosts:
     192.168.1.2
     pmt1.jlab.org


  • set .rhost permissions:
     chmod u=rw .rhosts
     chmod go-rw .rhosts


  • reboot if something is not working properly. Contact computer center if reboot doesn't help.


  • setting vxWorks boot parameters:
[VxWorks Boot]: p

boot device  : scsi=2,0 processor number  : 0 host name  : mizar file name  : /sd0/boot/vx2700_sd0 inet on ethernet (e) : 129.57.14.20:fffffc00 host inet (h)  : 129.57.14.33 gateway inet (g)  : 129.57.12.1 user (u)  : abbottd flags (f)  : 0x20 target name (tn)  : davw10 startup script (s)  : /sd0/drew/pem/pemv7.boot other (o)  : dc
host name - Name of the Unix host e - IP address of the board:subnet mask (should be in /etc/hosts on unix as well) h - Unix host IP address g - IP gateway (this is optional - it can be cleared) u - username on unix host tn - name of VME board (should be in /etc/hosts on unix) o - device name for the network interface (dc)


  • nfs mounts on vxWorks
    • nfsMount("host","file_system")


  • minicom settings
    • /dev/ttyS0
    • 9600 8N1


  • Future possibilities
    • snapshot using rsync