Difference between revisions of "DAQ test computer"

From GlueXWiki
Jump to: navigation, search
m
m
Line 49: Line 49:
  
  
- 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
Line 61: Line 61:
  
  
- 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     
  
 +
* configure eth1 for static routing, IP address 192.168.1.1 using gui
  
- configure eth1 for static routing, IP address 192.168.1.1 using gui
+
* edit network files:
 
+
 
+
- edit network files:
+
  
 
       /etc/sysconfig/network-scripts/ifcfg-eth0
 
       /etc/sysconfig/network-scripts/ifcfg-eth0
Line 84: Line 81:
  
  
- activate eth1 (can also use gui):
+
* activate eth1 (can also use gui):
 
       /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
Line 102: Line 99:
  
  
These can be done from halld account:
+
'''These can be done from 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 /home/halld/.xemacs and copy 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
  
  
- reboot if something is not working properly.  Contact computer
+
* reboot if something is not working properly.  Contact computer center if reboot doesn't help.
  center if reboot doesn't help.
+

Revision as of 16:56, 25 August 2008

Instructions for setting up a DAQ test computer

Elliott Wolin, 20-Aug-2008

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, and that daq system is on a private ethernet (eth1) and not on eth0.


From the root account:


  • create halld group gid=267
  • create halld account id=500 with standard password, set halld as primary group
  • 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:
     $ mount -a
  • yum install:
    • minicom
    • xinetd
    • ant
    • rsh-server
    • some-java-version (use yum search java)


  • enable rsh in /etc/xinetd.d/rsh:
     socket_type             = stream
     wait                    = no
     user                    = root
     log_on_success          += USERID
     log_on_failure          += USERID
     server                  = /usr/sbin/in.rshd
     disable                 = no


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


  • edit /etc/hosts:
     127.0.0.1       moe localhost localhost.localdomain moe.jlab.org
     ::1             localhost.localdomain   localhost
     192.168.1.2     pmt1    
  • configure eth1 for static routing, IP address 192.168.1.1 using gui
  • edit network files:
     /etc/sysconfig/network-scripts/ifcfg-eth0

PEERDNS=yes

     /etc/sysconfig/network-scripts/ifcfg-eth1

PEERDNS=no

     /etc/sysconfig/network

turned IPv6 off set hostname to moe (was localhost)


  • activate eth1 (can also use gui):
     /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


These can be done from halld account:


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


  • create /home/halld/.xemacs and copy 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


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