|
Size: 2757
Comment:
|
Size: 7585
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| = Steps to install control = Edit /etc/defaults/useradd such that the following variables are set and that rest can remain the same. |
= How to configure the a new server for CONTROL. = == Installing the OS == Please follow the ["Installing Fedora5"] instructions for Fedora installations. Note that it duplicates several essential parts of the following steps, but they remain here for reference. == Configuring the OS == === Creating the control group === Create the following group {{{ # groupadd -g 3232 control }}} === Create and configure the ccc user === Create user ccc {{{ # adduser -g control ccc # passwd ccc }}} Edit the {{{~ccc/.bash_profile}}} to the following: {{{ CUST=`uname -n` export CUST export PS1='${PWD}!>' . /u/cc/usr/common.sh ccusers }}} Setup the VNC password {{{ # mkdir ~ccc/.vnc # vncpasswd ~ccc/.vnc/passwd }}} Create the {{{~ccc/.vnc/xstartup}}} file used by Xvnc. It should read: {{{ #!/bin/sh export NODEID="vnc$DISPLAY" sleep 5 exec fvwm }}} Make {{{~ccc/.vnc/xstartup}}} executable. {{{ chmod +x ~ccc/.vnc/xstartup }}} Transfer ownership of files to ccc {{{ # chown -R ccc:control ~ccc/.vnc }}} === Setup user defaults === Edit {{{/etc/defaults/useradd}}} such that the following variables are set and that rest can remain the same. |
| Line 8: | Line 59: |
| Create the following group {{{ # groupadd -g 3232 control }}} Create ccc {{{ # adduser ccc # passwd ccc }}} Replace the contents of /etc/skel/.bash_profile with the following |
Replace the contents of {{{/etc/skel/.bash_profile}}} with the following |
| Line 30: | Line 70: |
| Long list of commands | Copy the {{{~ccc/.vnc/}}} folder to {{{/etc/skel/}}} {{{ # cp -r ~ccc/.vnc /etc/skel/ # chown root:root /etc/skel/.vnc }}} === Copy CONTROL === Package control programs on sam {{{ export CONTROL_FILES=" /u/cc/std/binl /u/cc/std/utbinl /u/cc/std/binx11 /u/cc/std/utbinx11 /u/cc/adm /u/cc/blank /u/cc/standard /u/cc/pixmap /u/cc/lib /u/cc/binl /u/cc/binx11 " tar cvzf control.tgz $CONTROL_FILES }}} Setup /u/cc/ directory |
| Line 43: | Line 108: |
| ln -s ~ccc /u/cc/usr/ccc | |
| Line 54: | Line 120: |
| mv /u/cc/adm.store/ /u/cc/adm }}} Copying latest "stable" from sam. {{{ scp -r user@sam.crecom.com.au:/u/cc/adm /u/cc/adm scp -r user@sam.crecom.com.au:/u/ccdev/standard.adm /u/cc/adm scp -r user@sam.crecom.com.au:/u/cc/std/binl /u/cc/std/binl scp -r user@sam.crecom.com.au:/u/cc/std/binx11 /u/cc/std/binx11 scp -r user@sam.crecom.com.au:/u/cc/std/utbinl /u/cc/std/utbinl scp -r user@sam.crecom.com.au:/u/cc/std/utbinx11 /u/cc/std/binx11 copy DEMO9 company/data copy new QT libraries copy common.sh |
scp -r <user>@sam.crecom.com.au:/u/ccdev/standard.adm /u/cc/adm scp -r <user>@sam.crecom.com.au:/u/ccdev/DEMO9 /u/cc/DEMO scp <user>@sam.crecom.com.au:/u/ccdev/usr/common.linux /u/cc/usr/common.sh }}} == Operating System configuration == === SELinux === SELinux has been known to cause problems. To turn it off, change {{{ /etc/selinux/config }}} to read {{{ SELINUX=disabled}}} N.B. The changes will not take effect until the machine reboots. === Samba and PAM === Setup PAM to synchronise the Samba passwords. [:SambaPasswordSync:SambaPasswordSync.] The link is currently a''' work in progress.''' === Libraries === The following is not necessary for Fedora Core 5. Update /etc/ld.so.conf to included the following line {{{ /cc/lib }}} Then execute: {{{ # ldconfig }}} === Serial Ports === In {{{/etc/rc.d/rc.local}}}, {{{ chmod 666 /dev/ttyS0 chmod 666 /dev/ttyS1}}} == yum == In {{{/etc/yum.repos.d/fedora-repo}}}, {{{/etc/yum.repos.d/fedroa-extras.repo}}} and {{{/etc/yum.repos.d/fedora-updates.repo}}}, set the {{{enable}}} flag to {{{1}}} {{{ enable=1}}} Do '''NOT''' do this for any of the development files. Doing so can cause libraries to be updated and, as a result, CONTROL may not run. Update the packages with {{{ yum update}}} Note: be careful of glibc updates for older releases of CONTROL If yum insists on gpg keys then, in {{{/etc/yum.conf}}} and {{{/etc/yum.repos.d/*}}}, {{{ gpgcheck=0}}} === VPN === Copy vpn.tgz from /u and extract it using the following commands: {{{ # scp <user>@sam:/u/vpn.tgz /etc/ppp/ # cd /etc/ppp # tar -xvzf vpn.tgz }}} Then as root accept the fingerprint: {{{ # ssh 220.233.135.250 The authenticity of host '220.233.135.250 (220.233.135.250)' can't be established. RSA key fingerprint is f6:f0:5c:21:74:0e:03:db:fc:71:e6:21:63:b5:c0:43. Are you sure you want to continue connecting (yes/no)? }}} Type yes and cancel the connection. Add the hostname ({{{uname -n}}}) into {{{ /etc/hosts }}} on muppets. Assign the machine the next IP in the sequence. Also update the ["DNS"]. To test the VPN connection, use the following: {{{ # pppd call crecom nodetach debug }}} Once the VPN can connect correctly, add to the following to {{{/etc/inittab}}}: {{{ vpn:2345:respawn:/etc/ppp/connect-crecom >> /var/log/connect-crecom.error |
| Line 70: | Line 204: |
| === Install necessary fonts === As a minimum, the system should have the 75-dpi, 100-dpi and truetype fonts appropriate for the installed X Font Server To search for the fonts: {{{ yum search fonts}}} The packages are usually of the form fonts-xorg-75dpi Once you have found the correct fonts packages {{{ yum install <font package>}}} |
|
| Line 75: | Line 220: |
| Load "vnc" # Add this line | Load "vnc" # Add this line |
| Line 78: | Line 223: |
| Option "PasswordFile" "/u/cc/usr/ccc/.vnc/passwd" # Add this line | Option "PasswordFile" "/u/cc/usr/ccc/.vnc/passwd" # Add this line |
| Line 81: | Line 226: |
| Line 85: | Line 228: |
| Line 89: | Line 233: |
| Line 91: | Line 234: |
| Line 96: | Line 240: |
Update Xclients to only execute FVWM, the orginal (Xclients.bak) file can be modified to do the below. |
Update Xclients to only execute FVWM, the orginal (Xclients.bak) file can be modified to do the below. |
| Line 105: | Line 249: |
| Line 107: | Line 250: |
| Line 110: | Line 254: |
== Packages Needed by Control == |
Configuring FVWM {{{ mkdir /etc/X11/fvwm2 }}} Copy from {{{system.fvwm2rc}}} from /u or from a client's system and place it in the newly created directory. Also place a symbolic link to {{{system.fvwm2rc}}} in /etc/ {{{ ln -s /etc/X11/fvwm2/system.fvwm2rc /etc/}}} === Additional Packages Needed by Control === |
| Line 116: | Line 267: |
| * postgresql-odbc - New Rel9 and 10 installations require DB support. * cdrecord - Burning CD/DVD's |
|
| Line 118: | Line 270: |
| cocont system back option should be set to 30. | === Backups === * '''cocont''' option {{{Days before display system warning mesg}}} should be set to 30. This allows the client to have a list one system backup to restore various configuration system configuration files in the event of a failure.''' ''' * Enter the Linux device into cocont's {{{Backup device}}} field. === Scheduled processes === * '''crontab''' setup auto_postal, eom_job, initda/backups and other scripts that need to run automatically. === Customer Company === * '''coaad''' Setup the company record(s) for the customer. * Ensure that the /u/cc/<CUSTOMER> directory exists and is a copy of standard. Also make sure that the correct amount of users and locations has been set. * Enter the customer's company name into cocont's {{{Company codes to be backed up}}} field. === Data Imports === * Run any data imports necessary. |
How to configure the a new server for CONTROL.
Installing the OS
Please follow the ["Installing Fedora5"] instructions for Fedora installations. Note that it duplicates several essential parts of the following steps, but they remain here for reference.
Configuring the OS
Creating the control group
Create the following group
# groupadd -g 3232 control
Create and configure the ccc user
Create user ccc
# adduser -g control ccc # passwd ccc
Edit the ~ccc/.bash_profile to the following:
CUST=`uname -n`
export CUST
export PS1='${PWD}!>'
. /u/cc/usr/common.sh
ccusersSetup the VNC password
# mkdir ~ccc/.vnc # vncpasswd ~ccc/.vnc/passwd
Create the ~ccc/.vnc/xstartup file used by Xvnc. It should read:
export NODEID="vnc$DISPLAY" sleep 5 exec fvwm
Make ~ccc/.vnc/xstartup executable.
chmod +x ~ccc/.vnc/xstartup
Transfer ownership of files to ccc
# chown -R ccc:control ~ccc/.vnc
Setup user defaults
Edit /etc/defaults/useradd such that the following variables are set and that rest can remain the same.
GROUP=3232 HOME=/u/cc/usr
Replace the contents of /etc/skel/.bash_profile with the following
logname=`logname`
. /u/cc/usr/common.sh
if [ "$logname" != "" ]; then
if [ "$DISPLAY" = "" ]; then
exec start
fi
fiCopy the ~ccc/.vnc/ folder to /etc/skel/
# cp -r ~ccc/.vnc /etc/skel/ # chown root:root /etc/skel/.vnc
Copy CONTROL
Package control programs on sam
export CONTROL_FILES=" /u/cc/std/binl /u/cc/std/utbinl /u/cc/std/binx11 /u/cc/std/utbinx11 /u/cc/adm /u/cc/blank /u/cc/standard /u/cc/pixmap /u/cc/lib /u/cc/binl /u/cc/binx11 " tar cvzf control.tgz $CONTROL_FILES
Setup /u/cc/ directory
touch /dev/lp8 chmod 666 /dev/lp8 umask 0 mkdir /u/cc/ chmod 777 /u/cc/ ln -s /u/cc /cc mkdir /u/cc/usr chmod 777 /u/cc/usr mkdir /u/cc/LOG chmod 777 /u/cc/LOG ln -s ~ccc /u/cc/usr/ccc chown ccc:control /u/cc/LOG /u/cc/usr chown ccc:control /u/cc/usr/ccc /u/cc/usr/ccc/.* cd / tar xvzf PATH_TO_CONTROL_TAR_FILE/control.tgz cd /u/cc/ chown ccc:control std/* std/*/* chown ccc:control binl/* chown ccc:control binx11/* binl/link_cntrl chown ccc:control standard/* chmod 666 standard/* scp -r <user>@sam.crecom.com.au:/u/ccdev/standard.adm /u/cc/adm scp -r <user>@sam.crecom.com.au:/u/ccdev/DEMO9 /u/cc/DEMO scp <user>@sam.crecom.com.au:/u/ccdev/usr/common.linux /u/cc/usr/common.sh
Operating System configuration
SELinux
SELinux has been known to cause problems. To turn it off, change /etc/selinux/config to read
SELINUX=disabled
N.B. The changes will not take effect until the machine reboots.
Samba and PAM
Setup PAM to synchronise the Samba passwords. [:SambaPasswordSync:SambaPasswordSync.] The link is currently a work in progress.
Libraries
The following is not necessary for Fedora Core 5.
Update /etc/ld.so.conf to included the following line
/cc/lib
Then execute:
# ldconfig
Serial Ports
In /etc/rc.d/rc.local,
chmod 666 /dev/ttyS0 chmod 666 /dev/ttyS1
yum
In /etc/yum.repos.d/fedora-repo, /etc/yum.repos.d/fedroa-extras.repo and /etc/yum.repos.d/fedora-updates.repo, set the enable flag to 1
enable=1
Do NOT do this for any of the development files. Doing so can cause libraries to be updated and, as a result, CONTROL may not run.
Update the packages with
yum update
Note: be careful of glibc updates for older releases of CONTROL
If yum insists on gpg keys then, in /etc/yum.conf and /etc/yum.repos.d/*,
gpgcheck=0
VPN
Copy vpn.tgz from /u and extract it using the following commands:
# scp <user>@sam:/u/vpn.tgz /etc/ppp/ # cd /etc/ppp # tar -xvzf vpn.tgz
Then as root accept the fingerprint:
# ssh 220.233.135.250 The authenticity of host '220.233.135.250 (220.233.135.250)' can't be established. RSA key fingerprint is f6:f0:5c:21:74:0e:03:db:fc:71:e6:21:63:b5:c0:43. Are you sure you want to continue connecting (yes/no)?
Type yes and cancel the connection.
Add the hostname (uname -n) into /etc/hosts on muppets. Assign the machine the next IP in the sequence.
Also update the ["DNS"].
To test the VPN connection, use the following:
# pppd call crecom nodetach debug
Once the VPN can connect correctly, add to the following to /etc/inittab:
vpn:2345:respawn:/etc/ppp/connect-crecom >> /var/log/connect-crecom.error
X related configuration
Install necessary fonts
As a minimum, the system should have the 75-dpi, 100-dpi and truetype fonts appropriate for the installed X Font Server To search for the fonts:
yum search fonts
The packages are usually of the form fonts-xorg-75dpi
Once you have found the correct fonts packages
yum install <font package>
Make console (DISPLAY=0) a VNC server
Edit /etc/X11/xorg.conf
Section "Module"
Load "vnc" # Add this line
End Section
Section "Screen"
Option "PasswordFile" "/u/cc/usr/ccc/.vnc/passwd" # Add this line
End Section
Installing FVWM
You'll need to locate files fvwm-2.4.19-1.i386.rpm and libstroke-0.5.1-4.fc4.i386.rpm which are available on sam.
# yum install compat-readline43 gtk+ imlib # rpm -Uvh fvwm-2.4.19-1.i386.rpm libstroke-0.5.1-4.fc4.i386.rpm
Need to update Xclients such that FVWM is started when local user logs in.
# cd /etc/X11/xinit # mv Xclients Xclients.bak # vi Xclients
Update Xclients to only execute FVWM, the orginal (Xclients.bak) file can be modified to do the below.
rm -f $HOME/Xrootenv.0 rm -f /tmp/fvwmrc* 2>/dev/null . /u/cc/usr/common.sh exec /usr/bin/fvwm
Finally give Xclients execute permissions
chmod +x Xclients
Configuring FVWM
mkdir /etc/X11/fvwm2
Copy from system.fvwm2rc from /u or from a client's system and place it in the newly created directory. Also place a symbolic link to system.fvwm2rc in /etc/
ln -s /etc/X11/fvwm2/system.fvwm2rc /etc/
Additional Packages Needed by Control
- mkisofs - building CD images
- sharutils - E-Mailing PDF's
- dvd+rw-tools - Burning DVD's
- postgresql-odbc - New Rel9 and 10 installations require DB support.
- cdrecord - Burning CD/DVD's
Post Control Installation Options
Backups
cocont option Days before display system warning mesg should be set to 30. This allows the client to have a list one system backup to restore various configuration system configuration files in the event of a failure.
Enter the Linux device into cocont's Backup device field.
Scheduled processes
crontab setup auto_postal, eom_job, initda/backups and other scripts that need to run automatically.
Customer Company
coaad Setup the company record(s) for the customer.
Ensure that the /u/cc/<CUSTOMER> directory exists and is a copy of standard. Also make sure that the correct amount of users and locations has been set.
Enter the customer's company name into cocont's Company codes to be backed up field.
Data Imports
- Run any data imports necessary.
