Installation Log
- megonln01
- Install Fedora Core 1 in normal way.
- Network setting
- Add network setting with redhat-config-network-druid
- Edit /etc/modules.conf (3com501 → sk98lin)
- Edit /etc/sysconfig/network-scripts/ifcfg-eth0
DHCP_HOSTNAME=megonln01.psi.ch
- Disable iptable
- Video driver
- Change video driver to ATI Radeon 9200
- Install some applications.
- apt, cernlib, ROOT, MySQL, gv, w3m
- Environment variables
CERN /cern
CERN_LEVEL pro
ROOTSYS /cern/root
MIDAS_EXPT_NAME online
MIDAS_SERVER_HOST localhost
MIDAS_SRC_DIR ~/midas
CERNLIB_PACK /cern/2003/lib/libpacklib.a
LD_LIBRARY_PATH ${ROOTSYS}/lib:/usr/lib:/usr/X11R6/lib:/usr/local/lib:/var/lib:/lib
set path=($path $ROOTSYS/bin /usr/X11R6/bin/ $MIDAS_SRC_DIR/linux/bin/ ~/bin)
CVS_RSH ssh
- Kernel
- Download the kernel source 2.4.26 from www.kernel.org.
- Extract it at /usr/src
- mv linux-2.4.26 linux-2.4.26.bigphys
- ln -s linux-2.4.26.bigphys linux-2.4
- ln -s linux-2.4 linux
- Apply bigphysarea patch
- Download patch from here
and extract it.
- cd linux-2.4.26.bigphys
- patch -p1 < [somewhere]/bigphyspathc.diff
- Edit Makefile
EXTRAVERSION = -bigphys
- make menuconfig (configulation)
- make dep;make clean;make bzImage;make modules;make
modules_install;make install
- Edit /etc/grub.conf
default=saved
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.4.26-bigphys)
savedefault
root (hd0,0)
kernel /vmlinuz-2.4.26-bigphys ro root=LABEL=/ hdc=ide-scsi acpi=on apm=off rhgb bigphysarea=1024
initrd /initrd-2.4.26-bigphys.img
- Edit /etc/modules.conf
alias sound-slot-0 off
alias sound-card-0 off
alias sound-service-0-0 off
alias sound-service-0-1 off
alias sound-service-0-3 off
alias sound-service-0-8 off
alias sound-service-0-12 off
alias char-major-116 off
alias char-major-14 off
alias char-major-188 off
alias char-major-10-134 off
- NTP
- Edit /etc/ntp.conf
server pstime1.psi.ch
server pstime2.psi.ch
server pstime3.psi.ch
fudge 127.127.1.0 stratum 10
- MIDAS
- Download source via CVS.
- Extract it
- Add following lines
into mana.c,mlogger.c
#ifndef min
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
This bug was fixed. So, it is not necessary to do this again.
- Edit Makefile
OSFLAGS = -DOS_LINUX -fPIC -Wno-unused-function -DHAVE_CAMAC -DINCLUDE_FTPLIB
- make;make install;
- mserver set up
- Edit /etc/services
midas 1175/tcp # Midas server
- Make new file /etc/xinetd.d/midas
- Edit /etc/ld.so.conf.
/usr/lib/mysql
/usr/local/lib
- ldconfig as root.
- Make new file /etc/exptab
#
# Midas experiment list
online /home/muegamma/online muegamma
magnet2 /home/muegamma/magnet2 muegamma
- Write boot scripts /etc/init.d/{mserver,mhttpd}
- Make symbolic links of mserver
to /etc/rc1.d/K99mserver, /etc/rc2.d/K99mserver,
/etc/rc3.d/S99mserver, /etc/rc4.d/K99mserver,
/etc/rc5.d/S99mserver, /etc/rc1.d/K99mserver.
- Make symbolic links of mhttpd.
- Printer
- /etc/cups/client.conf
ServerName cups.psi.ch
- /etc/cups/cupsd.conf
BrowsePoll cups.psi.ch:631
- AFS
- Download rpm files from here.
- rpm -Uvh openafs-1.2.11-fc1.0.1.i386.rpm
openafs-kernel-1.2.11-fc1.0.1.i386.rpm
openafs-kernel-source-1.2.11-fc1.0.1.i386.rpm
openafs-compat-1.2.11-fc1.0.1.i386.rpm
openafs-client-1.2.11-fc1.0.1.i386.rpm
- cd /ussr/src/openafs-kernel-1.2.11/src
- ./configure; make;
- mv /usr/vice/etc /usr/vice/etc.org
- Copy directory /usr/vice/etc from llc.
- cp
/usr/src/openafs-kernel-1.2.11/src/MODLOAD-2.4.26-bigphys-MP/libafs-2.4.26-bigphys.mp.o
/usr/vice/etc/modload/
- cp
/usr/src/openafs-kernel-1.2.11/src/MODLOAD-2.4.26-bigphys-SP/libafs-2.4.26-bigphys.o
/usr/vice/etc/modload/
- cd /usr/vice/etc/modload/
- ../afsmodname -f SymTable -g libafs-2.4.26-bigphys.o
- ../afsmodname -f SymTable -g
libafs-2.4.26-bigphys.mp.o
- Copy /etc/pam.d/{gdm,kde,kscreensaver,login,ssh,sshd,su,xdm,xlock,xscreensaver}
from llc.
- Backup /etc/{passwd,group},/usr/vice/etc/CellServDB
- /etc/init.d/afs start
- /afs/psi.ch/sys/common/update_cells.pl
- /afs/psi.ch/sys/common/update_cellservdb.pl
- /afs/psi.ch/sys/common/update_user.pl
- Edit cp /afs/psi.ch/sys/common/CellServDB /usr/vice/etc/CellServDB
- Copy /etc/krb5.conf from llc.
- Edit /etc/ssh/sshd.conf UsePrivilegeSeparation no.
- VME driver for BT617
- Download source from here
(software 1003).
- mkdir
/home/muegamma/online/src/frontend/SBS;, and go there.
- mkdir 1003; cd 1003
- tar xvzf 1003.tar.gz
- Change some files (diff).
- mkdir /lib/modules/2.4.26-bigphys/modules.daq
- Edit sys/makefile
MOD_BASE=/lib/modules/2.4.26-bigphys/modules.daq/
- Edit sys/mkbtp
MOD_BASE=/lib/modules/2.4.26-bigphys/modules.daq/
- cd sys; make; cd ../src; make dumpmem;
- Copy sis4100.c to sis4100lp.c, bt617.c to bt617lp.c
from midas/driver/bus
- add lines to sis4100lp.c/bt617lp.c
#ifdef _MSC_VER
#define BT_NTDRIVER
#define BT_WINNT
#define BT973
#include "btapi.h"
#elif defined(OS_LINUX)
#define BT1003
#include "btapi.h"
#endif
- Make boot script /etc/init.d/btp
- make symbolic links at /etc/rc[1-6].d/
- CAMAC
- Download source from here.
- Extract it to /home/muegamma/online/src/frontend/
- cd camdrv/Linux2.4_CC77pci/
- Change USE_MODVERSIONS in Makefile from 1 to
0. (It was neccesary when I compiled)
- make
- make install
- ls -l /dev |grep camdrv then you see device
major number.
- Edit /etc/modules.conf
options camdrv camdrv_major=253
number(253) is the device major number.
- cp camdrv.o
to /lib/modules/2.4.26-bigphys/modules.daq
- Add following line to /lib/modules/2.2.26-bigphys/modules.dep
/lib/modules/2.4.26-bigphys/modules.daq/camdrv.o:
- Write boot script /erc/rc.d/init.d/camdrv
- Link it to /etc/rc[1-6].d
- Kernel remake in Mar/2005
Existing kernel was configured with DMA for ATI chip off. We re-maked
kernel.
- New
configuration by Shuei.
- Edit Makefile of kernel to change EXTRAVERSION =
-bigphys2
- make dep
- make clean
- make bzImage
- make modules
- make modules_install
- /sbin/install kernel 2.4.26-bigphys2
arch/i386/boot/bzImage Systemp.map
- Re-make and install AFS,camdrive,btp kernel modules.
- Kernel remake in Mar/2005
Newly install kernel(2.4.26-bigphys2) caused kernel panics. I changed
it to newer version of kernel(2.4.29)
- Download linux-2.4.29.tar.bz2 from www.kernel.org.
- Compile and install. (configuration)
- Edit dd/bt_param.c
#define USE_BIGPHYSAREA 0
- Recompile and install AFS,camdrive,btp
- megonln02
- Follow 1,4,5,6,7,8,9 of megonln01.
- megsc01
- Install Windows Xp.
- Windows Update.
- change prallel port mode to bi-direction in BIOS.
- Install McAfee virusscan, LabView 7 Express, Cygwin,
Cernlib, ROOT, Visual C++
- MIDAS
- Download Midas-1.9.3.zip
- Extract it and move it to C:\
- cvs update
- compile
- Set environment variables
Path C:\midas\nt\bin
MIDAS_EXPT_NAME meglp
MIDAS_SERVERHOST megonln01
CVS_RSH ssh
- copy Directio to C:\windows\system32\driver
- copy midas.dll and mscb.dll to C:\windows\system32
- Device manager → Show hidden items →
derect IO → driver → start → type BOOT
- setup of development environment for MSCB related software
you can find setup memo here.
R.Sawada
[Last Update: 14-Mar-2005]