<sidebar>

  • Idiomes
    • SAPO|Català
    • SAPO en|English
    • SAPO es|Español

</sidebar>

Brief history of SAPO system

SAPO is a set of powerful applications oriented to the CARTA 's implementation (transform artistic creation to technical drawing), designs blond curtains, lace , etc. ... These products are manufactured by the German company Karl Mayer 's textile machinery or in ancient looms leavers.
The SAPO system was originally created for HP's workstations with HP-UX operating system, because they were more powerful than any PC on the market. The personal computing progress make PC getting faster and cheaper, and became more interesting to migrate the code to the new and primitive Linux running on personal computers.

We choose Redhat distribution because was free and had a lot of similarities with directories and config files structure with HP-UX. Redhat became a commercial product, so we move to another open source alternative to maintain and improve the stability and security. This distribution is CentOS, which did not have the latest versions of software that other distributions derived from Redhat have like Fedora, but instead have a better stability .

We kept the maximum appearance with the idea to ​​avoid user adaptation to different environments that haven't used. For this reason, we install a linux compatible HP-UX workstations desktop called CDE, but now we are working to migrate SAPO system to any modern desktops integrated with current Linux versions like Gnome, or KDE, to improve the user experience and comfort as much as possible without losing security and stability.

SAPO system installation's notes

  • Currently is needed to install SAPO on PCs, laptops and desktops, where you can install a CentOS Linux operating system. The recommended version up to date is CentOS 5.x, because the old CDE desktop is incompatible with the latest version (CentOS 6 when writing this manual).
  • During the operating system installation, hard drive's data could be erased so you should have a backup of your existing user data.
  • The setup editor used in this manual is vi. This file editor is very powerful, but not recommended if you don't have previous experience. In this case, there are other editors more intuitive like nano'.
  • Remember that edit config files is critical and extremely delicate operation that can make the system won't boot properly.
  • A new system installation have 4 stages:
  1. Installing the Linux operating system 'CentOS 5.x'.
  2. Installing the CDE desktop.
  3. Installing the SAPO design system.
  4. Installing additional applications.

Installation

Linux Operating System

Installation
Linux CentOS 5.x operating system installation

The installation Iso images can be downloaded from the CentOS's official website:
http://mirror.centos.org/centos/5/isos/i386 /

  • The 32-bit Linux version (i386) ensures compatibility with SAPO system.
  • This manual explains the graphical installation mode.
  1. Boot with the CentOS 5.x installation CD-ROM.


  2. If you boot from the netinstall CD_ROM version
  3. Will be necessary an internet connection available and a few preliminary steps make with a wizard running in text mode:
    • If the CD-ROM isn't the netinstall version, go to step:Start the installation wizard.
    1. Language selection
    2. This language will be used during installation, but also determine the default options such as language, keyboard, time zone, etc..


    3. keyboard selection


    4. Installation Method
      • This specifies how to access the installation files.
      To get the official version from the CentOS 's webpage, select HTTP.


    5. network configuration
    6. For default network configuration use the DHCP (automatic) option. However, Network parameters can be manually configured here but this setting is only used to access the installer's files and will be necesary to configure the final network during the setup process.


    7. Location of installation files

    8. Parameters to get the official version.
      Site Name: mirror.centos.org
      Directory of files: /centos-5/5.8/os/i386
    9. Completing the netinstall process
    10. Finally, it will download the installation wizard will start automatically
      • This process can take about 5 minutes.


  4. Start installation wizard.


  5. Language selection.
    • This screen does not appear if the language has been selected.
    This language will be used during installation, but also will be installed by default in the operating system and determine the default options (keyboard, time zone, etc).


  6. keyboard selection.
    • This screen does not appear if the keyboard has been selected.


  7. installation type selection.
    • This screen only displays if any CentOS operating system is installed.


  8. disk partitions.
  9. The management of partitions on a disk can cause the loss of data.

    Select manual partitioning (create custom layout) whether if it is a new installation or a reinstallation where already have an existing partition table. Manual partitioning will have the absolute control over the entire process.


    1. Partition Manager
      • Using LVM partitions is not recommended, to avoid alocating the information betwen different physical disks.


    2. To create a partition use the New button.
      • If you will like to edit an existing partition, Select it first and then use the Editbutton
      Creating a regular partition Creating a swap partition

    3. Choose size, type and where to mount the partitions.
      • option to format the partition is available only if the partition previously existed.
      • In this case, 'VERY It's not format the partition that contains the user data (/home in the example)
      • Formating a partition containing user data (/home in the example) IS NOT RECOMMENDED because you will loss all the information on it.
      TABLE PARTITION DISK RECOMMENDED BY A 250 Gb / dev / sda
      Partition Installation Partition Type Size Size Options Primary Partition Format Background
      /Dev/sda1 /boot ext3 200 Mb Size Fixed YES YES System Boot Partition operating
      /Dev/sda2 / 50 to 100 Gb main operating system partition
      /Dev/sda3 /home All the free
      space available
      Complete all
      the available free space
      NO NO User's data partition
      /Dev/sda4 N / A SWAP Same as installed memory Size Fixed NO YES Swap partition

  10. Installing the GRUB boot loader (GRUB boot loader).
  11. Leave the values ​​displayed by default.


  12. Network setup
  13. For default network configuration use the DHCP (automatic) option. However, network parameters can be manually configured here.


  14. Time Settings.
    • The UTC indicates that the computer's internal clock is synchronized with the time Greenwich Mean Time



  15. Creating the root 's password'.
    • The root user is the system administrator and have full access privileges.
    • is very important to remember this password.


  16. Selection packages to install.
  17. Select Desktop - Gnome, this includes a set of basic desktop applications.
    At the end, the system will check for dependency integrity and complete the list of packages to install.


  18. Installing Packages.
  19. The system will start installing the selected packages. When finish, restart the computer.
    • This may take about 30 minutes and is completely automatic.


  20. The first boot time setup wizard screen will appear.


  21. Initial firewall setup.
  22. To allow the CADT 's technical assistance team having access to your computer over Internet, the firewall must accept access through the SSH port (22) .


  23. SELinux configuration.
    • SELinux is an advanced system protection, but requires extensive configuration, so it is recommended to disable it.


  24. Setting the date and time.


  25. Creating 'CADT' user.


  26. To allow remote access to the system by CADT 's team,The following standard user account must be created:
    Username: CADT
    Full name: CADT S.L.
    Password: boira1
  27. Configuring the sound card.


  28. additional CDs.

  29. To complete the installation click "Finish"

  30. when the wizard is finished, if SELinux has been disabled as recommended, the computer will reboot.
  31. When the login screen appears, login with username 'CADT' and password 'boira1'.



Linux CentOS 6.x operating System Installation
  • installation iso images are available at CentOS official website:.

    http://mirror.centos.org/centos/6/isos/i386/

  • CentOS 6.x does not guarantee compatibility with SAPO system.
  • This manual explains the graphical mode installation.
  1. Boot from CentOS 6.x's CD-ROM .


  2. If the chosen CD-ROM is netinstall version will be necessary an internet connection, in this case, will be necessary a few preliminary steps with the text mode wizard:
    • If not netinstall CD-ROM version chosen, go to: Start the installation wizard.
    1. Checking installation disk
    2. Setup wizard allow to check the disk.


    3. Language selection
    4. This language will be used during installation, but also determine the default options such language, keyboard, time zone, etc..


    5. Keyboard layout selection


    6. Installation Method
      • This specifies the installation files access method.
      For CentOS version from the official webpage select URL.


    7. network configuration
    8. Default network configuration will be DHCP (automatic). However, if we know the network parameters can be set manually here. This setting is only used to access the installer's files and later will configure the final system network.
    9. File Location


    10. URL for the official version: http://mirror.centos.org/centos-6/6.2/os/i386
    11. Completing the netinstall process
    12. Finally, the installation wizard will download and start automatically.
      • This process can take about 5 minutes.


  3. Start the installation wizard.


  4. Language selection.
    • This screen doesn't appear if language have been selected.
    This language will be used during installation and installed as default also determine the default options (keyboard, time zone, etc).


  5. keyboard layout selection.
    • This screen does not appear if keyboard layout have been selected above.


  6. storage type selection.


  7. Configuration hostname.
  8. This is the computer network's ID and name


  9. Time Settings.
    • The UTC indicates that the computer's internal clock is synchronized with the Greenwich Mean Time



  10. Creating the root's password.
    • The system administrator called root have full access privileges.
    • is very important do not forgive the password entered here.


    • If is a weak password, the following warning is showed:
  11. Disk partitions.
  12. The partition management can be the cause of loss data so we recommend a backup.

    Select manual partitioning (create custom layout) it doesn't matter if is a reinstallation where already exist a partition table. Manual partition will have absolute control over the entire process.


    1. Partition Manager
      • Using LVM partitions is not recommended, because the information is into a partition on different physical disks.


    2. Use New button to create a new partition.
      • If you want to edit an existing partition, select it first and click Edit

    3. Choose size,type and where to mount the partition.
      • The format partition option is available only if the partition existed previously .
      • In this case,'VERY IMPORTANT do not format the partition that contains the user data (/home in the example)
      • Format user data partition (/home in the example) IS NOT RECOMMENDED AT ALL because there will be a loss of user data
      PARTITION TABLE RECOMMENDED FOR A 250 Gb DISK on /dev /sda
      Partition Installation Partition Type Size Size Options Primary Partition Format Background
      /Dev/sda1 /boot ext3 200 Mb Size Fixed YES YES System Boot Partition operating
      /Dev/sda2 / 50 to 100 Gb main operating system partition
      /Dev/sda3 /home All the free
      space available
      Complete all the
      available free space
      NO NO partition where you
      store all the data user
      /Dev/sda4 N /A SWAP Same as installed memory
      Size Fixed NO YES Partition swap swap

  13. Installing the GRUB boot loader.
  14. Leave the default values.


  15. select packages to install.
  16. Select the Desktop set, which includes a few desktop's basic applications.
    when finish the selection, the system will check for dependency packages to install.


  17. Starting packages' installation.
  18. The system will start installing the selected packages. At the end you must restart the computer.
    • This may take about 30 minutes and is completely automatic.

  19. The first time the system starts, a screen will appear in the post-installation wizard.


  20. License agreement.


  21. Create user 'CADT'.

  22. To allow remote access to the system by CADT team, you must create the following standard user account:
    < blockquote>
    Username: CADT
    Full name: CADT S.L.
    Password: boira1
  23. Setting the date and time.


  24. kdump configuration.


  25. Once the wizard completes, the computer will restart.
  26. When the login screen, login with username 'CADT' and password 'boira1' this is the user account created during the post-installation.


Preparation and preliminary setup
  1. Open a terminal.


  2. change to root user.
  3. [CADT@CentOS5 ~] $ su [enter]
    Password: ******* [enter]
    
    • While typing the password , No characters will be show, this is normal behavior.
    The following operations are executed as root (system administrator).
    This account allows you to modify any file and configuration on the operating system it is recommended to read the instructions carefully to avoid mistakes.

  4. start in text mode (switch to runlevel 3).
  5. [Root@CentOS5 CADT] # /sbin/init 3 [enter] 
    • The computer will be in runlevel 3 (text mode), needed by CDE desktop to start.



  6. Log in as root.
  7. 
    CentOS release 5.8 (Final)
    kernel 2.6.18-308.4.1.el5 on an i686
    
    CentOS5 login: root [enter]
    Password: ****** [enter]
    
  8. Change to the directory /home/CADT.
  9.  [Root@CentOS5 ~] # cd/home/CADT [enter] 
    • The following commands assume that are executed from /home/CADT. folder
  10. Create the directory structure for installation in the user folder.
    1. Create folder INSTALACIO
    2. This directory will keep a copy of the installation files.
       [Root@CentOS5 CADT] # mkdir INSTALACIO [enter] 
    3. Change to folder INSTALACIO'
    4. [Root@CentOS5 CADT] # cd INSTALACIO [enter] 
    5. Create the folder mnt
    6. This directory will serve to mount the CD-ROM's image files (file.iso)
       [Root@CentOS5 INSTALACIO] # mkdir mnt [enter] 
    7. Create the folder yuminstall
    8. This directory will remain empty and is used to run the yum installer.
       [Root@CentOS5 INSTALACIO] # mkdir yuminstall [enter] 
  11. updating packages.
    • This operation requires internet connection to download the latest versions of installed packages.
    • yum needs the repository's public key file to verify packages' authenticity , if you do not have the public keys of the repository , yum request itself to import
    1. Change to the folder yuminstall
    2. [Root@CentOS5 INSTALACIO] # cd yuminstall [enter] 
    3. Updating packages
    4.  [Root@CentOS5 yuminstall] # yum update [enter] 



    5. Change to the folder INSTALACIO
    6.  [Root@CentOS5 yuminstall] # cd .. [enter] 
  12. Copy Install files
    • The files needed for install process will be copied into a cadt's subfolder for easy access and keep a reference copy.
    • On a reinstall process might occur that this directory and the files already exist, in this case the option to delete this files or overwrite i a personal choice.
    • The parameter R makes a recursive copy (includes subfolders) and H parameter follow symbolic links
     [Root@CentOS5 INSTALACIO] # cp-RH /net/nas1/mnt/RAIDA/vol2/pub/cli/SAPO/installacions/packages/* . [Enter] 
    File name File description
    99-CADT-el5.rules udev configuration file
    autofsck Hard Disk checking while booting
    Adobe-relese-i386-1.0.1.noaech.rpm adobe repository
    DeXtop_3.2_patches.iso Corrections desk 'CDE'
    Dextop_CDE_v3.iso Installing the desktop 'CDE'
    Elrepo-release-5-3.el5.elrepo.no arch.rpm repository elrepo
    sapohotplug_v2.tar install hotplug (explained below)
    Folder NetManager install NetManager (explained below)
    NVIDIA-Linux-x86-295.53.run Drivers NVIDIA graphics card
    Rpmforge-release-0.5.1.el5.rf.i386.rpm rpmforge repository
    Sapo.iso SAPO Design System
    Skype VOIP Software
    Seamonkey-2.10.tar internet browser like firefox
    Xorg.conf-sample xorg.conf sample (the sample explained below)
    • drivers NVIDIA-Linux-x86-295.53.run are only for the graphics card' 'NVIDIA Quadro 4 or' 'NVIDIA Quadro FX.
    • other drivers for NVIDIA versions, are available at the official website http://www.nvidia.com/object/unix.html
  13. Extras package installation.
    • Requires internet connection for Installation.
    List of necessary packages that aren't installed
    Package usefulness Cause
    Xorg * Complete Xorg server get all the packages of the Graphic server Xorg
    Compatlibstdc++-33 retro-compatibility SAPO PROGRAM system is compiled with an earlier version of linux (CentOS 3)
    and is now necessary extra dinámic library.
    Rcs ident ID software version.
    LibXpm Graphic's Library for XPM Pixmap formats needed by Applications Manager package
    Kernel-devel Code Source operating system The kernel-devel version must fit with the kernel version installed in the system.
    The PAE kernel should be installed in PC with more than 4Gb of RAM.
    Is necessary for compilation of hardware controllers like (license key, graphics card drivers ...)
    Kernel-PAE-devel
    Gcc GNU Compiler
    • To know the installed kernel version use the command uname-r
    • When uses the wildcard character '*' the shell will use the files that match with parameters.
    • In case you wish to use '*', it is possible that the arguments send to yum were wrong. An alternative is not use the asterisk or use a empty temporary directory and run the order inside.
    • If the kernel version is "PAE", use yum install kernel-PAE-devel in place of yum install kernel-devel
    •  [Root@centos5 INSTALACION] # cd yuminstall [enter] 
    •  [Root@centos5 yuminstall] # yum install xorg-* [enter] 
    •  [Root@centos5 yuminstall] # yum install compat-libstdc + + -33 [enter] 
    •  [Root@centos5 yuminstall] # yum install rcs [enter] 
    •  [Root@centos5 yuminstall] # yum install libXpm [enter] 
    •  [Root@centos5 yuminstall] # yum install kernel-devel [enter] 
    •  [Root@centos5 yuminstall] # yum install gcc [enter] 
    •  [Root@centos5 yuminstall] # yum install ksh [enter] 
    •  [Root@centos5 yuminstall] # cd .. [enter] 
  14. Save system resources disabling unnecessary services.
  15.  [Root@CentOS5 CADT] # ntsysv [enter] 
    • ntsysv only modifies the services from the actual runlevel (in this case, level 3).

    Recommended services to disable
    Service Description OS Release
    Gpm terminal mouse support el5
    Sendmail E-mail Server el5
    Firstboot Post-Installation Configuration el5
    Yum-updatesd Automatic Update Package el5
    Isdn Support for integrated services digital networks (XDSI / ISDN) el5
    Lvm2 Support to manage logical volumes el5, el6
    Any other unnecessary (in case of doubt do not modify)

  16. Configure automatic disk corrections if the system is turned off incorrectly. </ li>
    1. copy the file autofsck to /etc/sysconfig/autofsck
    2.  [Root@CentOS5 CADT] # cp INSTALL/autofsck /etc/sysconfig/ [enter] 

  17. Perform the following checks and configurations using the system-config-securitylevel (recommended) or, if necessary, editing the appropriate configuration file:
  18. 1. 'Check' The firewall has SSH port (22) open
    Config file: /etc/sysconfig/iptables
    Change Add or modify the line
    -A RH-Firewall-1-INPUT-m state - state NEW-m tcp-p tcp - dport 22-j ACCEPT 
    2. 'Check' system is deactivated SELinux
    Config file: /etc/sysconfig/selinux
    Change Replace the line
     SELinux = xxxx 
    by
    SELinux = disabled

  19. reboot for the new settings take effect.



Xorg server configuration and driver setup
  1. If needed login as root.
  2. 
    CentOS release 5.8 (Final)
    kernel 2.6.18-308.4.1.el5 on an i686
    
    CentOS5 login: root [enter]
    Password: ****** [enter]
    
  3. Change to the directory /home/CADT/INSTALACIO.
  4. [Root@CentOS5 ~] # cd /home/CADT/INSTALACIO [enter] 
    • The following commands assume that are executed from /home/ CADT/INSTALACIOfolder
    • If the computer doesn't have a NVIDIA Quadro 4 or NVIDIA Quadro FX, with default CentOS system drivers, might work, but still, it is recommended whenever possible to install the official of the graphics card.
  5. Check the graphics card model.
  6.  [Root@CentOS5 INSTALACIO] # lspci | grep VGA | more [enter] 
  7. Install by model and manufacturer
  8. Graphics Installation Method
    Nvidia Official NVIDIA drivers using an interactive wizard to install.
     [Root@CentOS5 INSTALACIO] # sh ./NVIDIA-Linux-x86-290.10.run 
    • When the process finishes, the wizard will ask for confirmation to update the configuration file Xorg (/etc/X11/xorg.conf). It is recommended to accept the option to update the configuration file according to the new driver installed.
    ATI Download and follow the instructions at [1] official website of ATI / AMD or install from "elrepo" repository downloading kmod-fglrx93 either kmod-fglrx (depending on your graphic card. see: http://elrepo.org/tiki/kmod-fglrx)
    yum install kmod-fglrx93
    aticonfig --initial
    

    You should know that any graphic card using the kmod-fglrx93 will not work on CentOS 6 because the Xorg version, so you will have to use the default drivers.

    Intel Download and follow the instructions page unofficial drivers intel
    • Intel sends you to this unofficial site.

  9. Xorg config file modifications
    1. Backup xorg.conf file.
      • xorg.conf is a critical file and therefore we recommend a backup before editing it
       [Root@CentOS5 INSTALACIO] # cp /etc/X11/xorg.conf/ etc/X11/xorg.conf_old [enter] 
    2. Edit the configuration file ' 'Xorg.
    3.  [Root@CentOS5 INSTALACIO] # vi /etc/X11/xorg.conf [enter] 

      The configuration file /etc/X11/xorg.conf should be in a manner similar to this example:

      • The values ​​should meet with your computer's hardware specifications..
      • The 'SendCoreEvent' value, defines whether the stylus will work on the desktop.
      • In CentOS 6, it will be necessary to create the xorg.conf file with:
        Xorg -configure

        That file will be saved at ~/ so you should move it to /etc/X11:
        mv ~/xorg.conf.new /etc/X11/xorg.conf
      Section "ServerLayout"
          Identifier "Default Layout"
          Screen 0 "Screen0" 0 0
          InputDevice "Mouse0" "CorePointer"
          InputDevice "Keyboard0" "CoreKeyboard"
          InputDevice "WACOM_TABLET"
      EndSection
      
      Section "InputDevice"
      
          # Generated from default
          Identifier "Mouse0"
          Driver "mouse"
          Option "Protocol" "auto"
          Option "Device" "/dev/input/mice"
          Option "Emulate3Buttons" "no"
          Option "ZAxisMapping" "4 5"
      EndSection
      
      Section "InputDevice"
          Identifier "Keyboard0"
          Driver "kbd"
          Option "XkbModel" "pc105"
      # ----------------------------------------------------------------------------
      # Selección del teclado (uso, es, fr, gb ...)
          Option "XkbLayout" "es"
      # ----------------------------------------------------------------------------
      EndSection
      
      Section "InputDevice"
          Identifier "WACOM_TABLET"
          Driver "wacom"
          Option "Device" "/dev/input/wacom"
          Option "Type" "Stylus"
          Option "Modo" "Absolute"
          Option "USB" "on"
      
      # ----------------------------------------------------------------------------
      # Para utilizar el lápiz como 'corepointer'
      # Option "SendCoreEvents" "on"
      #
      # Para utilizar el lápiz como 'extension device'
      # Option "SendCoreEvents" "off"
      # ------------------------------------------------- --------------------------
      
      EndSection
      
      Section "Monitor"
          Identifier "Monitor0"
          VendorName "Unknown"
          ModelName "DELL2407WFPHC"
      
      # ------------------------------------------------- --------------------------
      # Comment all HorizSync and VertSync values ​​to use DDC:
      # HorizSync 30.0 - 83.0
      # VertRefresh 56.0 - 76.0
      # Option "DPMS" "off"
      # ------------------------------------------------- --------------------------
      
      EndSection
      
      Section "Device"
          Identifier "Device0"
          Driver "nvidia"
          VendorName "NVIDIA Corporation"
          BoardName "Cuadro 1000M"
      EndSection
      
      Section "Screen"
      
          Identifier "Screen0"
          Device "Device0"
          Monitor "Monitor0"
          DefaultDepth 24
          Option "LogoPath" "/opt/sapo/usr/lib/logo/CADT_logo_X11.png"
          Option "BackingStore" "on"
      
      # ---------------------------------------------------------------------------
      # Para utilizar opcion 'CIOverlay' (solo tarjetas NVIDIA Quadro 4 o Quadro FX)
      # Option "CIOverlay" "on"
      # ---------------------------------------------------------------------------
      
      # ---------------------------------------------------------------------------
      # Para utilizar una pantalla externa (portátiles)
          Option "TwinView" "1"
          Option "TwinViewOrientation" "Clone"
      
      # Seleccion manual de resolucion
      # Option "metamodes" "CRT: 1920x1200_60 +0 +0, DFP: nvidia-auto-select +0 +0"
      
      # Seleccion automatica de resolucion
          Option "metamodes" "CRT: nvidia-auto-select +0 +0, DFP: nvidia-auto-select +0 +0"
      # ---------------------------------------------------------------------------
      
      # ---------------------------------------------------------------------------
      # Para utilizar una sola pantalla (torre)
      # Seleccion manual de resolucion
      # Option "metamodes" "1920x1200_60 +0 +0"
      
      # Seleccion automatica de resolucion
      # Option "metamodes" "nvidia-auto-select +0 +0"
      # ---------------------------------------------------------------------------
      
          Subsection "Display"
              Depth 24
          EndSubSection
      
      EndSection
      
      # ---------------------------------------------------------------------------
      # Descomentar esta sección si se utiliza la opcion CIOverlay
      # El extension 'Composite' es incompatible con 'CIOverlay'
      # Section "Extensions"
      # Option "Composite" "Disable"
      # EndSection
      
  10. Comprobar el xorg.conf
    • Para salir de la prueba pulsar [ctrl] + [alt] + [backspace]
     [Root @ centos5 cadt] # Xorg-config /etc/X11/xorg.conf [enter] 



Desktop

Installing CDE desktop
  1. Change to directory /home/CADT/INSTALACIO .
  2.  [Root@CentOS5 CADT] # cd/home/CADT/INSTALACIO [enter] 
    • The following commands assume that user has administrator privileges and are run from /home/CADT/INSTALACIO.
  3. Mount Dextop_CDE_v3.iso file.
  4.  [Root@CentOS5 INSTALACIO] # mount-o loop mnt Dextop_CDE_v3.iso [enter] 
    • -o loop option allows us to mount a cdrom or dvd image from iso format.
  5. start the installation.
  6. [Root@CentOS5 INSTALACIO] # cd mnt [enter]
    [Root@CentOS5 mnt] #./Install [enter]
    
    • CDE uses an interactive wizard to install.

    OPTIONS TO CONSIDER:

    1. Full installation
    2. do not instal lxinitrc
    3. Enable login CDE at startup (dtlogin)
    Still dl not reboot the computer despite wizard recommendation, because the install process and updates hasn't yet completed.

  7. When installation finish release mnt folder.
  8. [Root@CentOS5 mnt] # cd .. [Enter]
    [Root@CentOS5 INSTALACIO] # umount mnt [enter]
    

CDE patches install
  1. Mount DeXtop_3.2_patches.iso file'.
  2. [Root@CentOS5 INSTALACIO] # mount -o loop mnt DeXtop_3.2_patches.iso [enter]
  3. To start the patches installation.
  4. [Root@CentOS5 INSTALACIO] # cd mnt [enter]
    [Root@CentOS5 mnt] # ./Install [enter] 
  5. CDE patches install
  6. Installation is automatic and no requires user intervention. When finished, release the mnt folder.
    [Root @ CentOS5 mnt] # cd .. [enter]
    [Root @ CentOS5 INSTALACIO] # umount mnt [enter] 
    NO reboot the computer, is still necessary to modify some configuration files.

Post-install of CDE desktop
  1. Modify the default run level in the file /etc/inittab.
    1. Edit the file /etc/inittab
    2.  [Root@Centos5 CADT] # vi /etc/inittab [enter] 
    3. Replace
    4.  Id: 5: initdefault: 
      with
       Id: 3: initdefault: 
    5. Save and exit

  2. Encoding setup.
    • CDE desktop is not compatible with the UTF-8 encodings. </ li>
    1. Edit File /etc/sysconfig/i18n
    2. [Root@centos5 cadt] # vi /etc/sysconfig/i18n [enter] 
    3. Replace the line
    4.  LANG = "xxxx.UTF-8" 
      by
       LANG = "xxxx" 
    5. Save and exit

  3. Change to the directory /etc/dt/config.
  4.  [Root@CentOS5 INSTALACIO] # cd /etc/dt/config [enter] 
    • The following commands assume that are executed from /etc/dt/config.

    The CDE desktop create a directory extructure in /etc/dt, this is a mirror of /usr/dt where are the default settings.
    Before editing any configuration file of CDE, this must be copied into the appropriate directory in /etc/dt and then modify it there.

  5. Copy the file /usr/dt/config/Xservers in the configuration directory /etc/dt/config.
  6.  [Root@CentOS5 config] # cp /usr/dt/config/Xservers. [enter] 
  7. Modify the file Xservers to indicate where theX server is in the current installation of Xorg.
    • X Server programs (Xorg) have changed their location on the different CentOS versions of the Linux operating system.

    Xservers is a critical file and make a mistake during the modification may cause the system doesn't boot properly. It is recommended to backup it.
    1. Backup
    2.  Root@CentOS5 config] # cp Xservers Xservers_old [enter] 
    3. Edit Xservers
    4.  [Root@CentOS5 config] # vi Xservers [enter] 
    5. Change line
    6. : 0 Local local_uid @ tt1 root/usr/X11R6/bin/X: 0 
      by
      : 0 Local local_uid @ tt1 root/usr/bin/ X: 0 
    7. Save and exit

  8. Correct the CDE directory where will find the local X server's files.
    • CDE desktop install a own X server structure, this structure is incompatible with current Xorg, so you have to setup where is the actual X server location in the system.
    This change makes that a reinstall of CDE desktop would overwrite the original files for the Xorg server so it is advisable to undo this operation prior to any reinstall of the desktop.
    1. Change to the folder /usr/X11R6/lib
    2.  [Root@CentOS5 config]# cd /usr/X11R6/lib [enter] 
      • The following commands assume that user is in the folder /usr/X11R6/lib.
      Rename the folder
    3. X11 to X11.cde
    4.  [Root@CentOS5 lib] # mv X11 X11.cde [enter] 
    5. Create a symbolic link to the directory where is X system original CentOS
    6.  [Root@CentOS5 lib] # ln-s / usr/share/X11. [enter] 
  9. Turn on the typeface service for X ( xfs)
    • in the installer. Lar desktop corrections 'CDE', service xfs is disabled.
     [Root @ CentOS5 lib] # / sbin / chkconfig xfs where [enter] 
  10. Restart to verify that all configuration is correct
  11.  [root @ CentOS5 lib] # reboot [enter] 



The SAPO System

The SAPO System update
  • Available on version 4.1 or higher
  1. Insert the CD-ROM
  2. Open the application manager.
  3. Click InstallSAPO
  4. Enter root's password
  5. will automatically update
The SAPO System Graphic install mode
  1. Open a terminal
  2. Change to user root.
  3. [Cadt centos5 @ ~] $ su [enter]
    Password: ******* [Enter]
    
    • while writing password, it won't show any character on screen. This s it normal behavior.
  4. Change to the directory INSTALACIO
  5. [Root centos5@~] # cd /home/cadt/INSTALACIO [Enter]
    
    • the following orders assume that have user administrator access and are run in the folder /home/cadt/facility.
  6. Mount the file sapo.iso.
  7.  [Root @ CentOS5 INSTALACIO] # mount-o loop mnt sapo.iso [enter] 
    • -o loop option allows us to mount an image CD-ROM or DVD iso format.
  8. Change to mnt directory where is the installation '.
  9.  [Root @ CentOS5 INSTALACIO] # cd mnt [enter] 
  10. Start Installation
  11.  [Root@CentOS5 mnt] #./Install 
  12. The following screen information will appear:
  13.  [[Fitxer: Inst_sapo_gra_03.png]] 
  14. Select the Applications to install
  15. Software Description Background
    SAPO Lace Drafting System
    Acrobat Reader 7.0 PDF Reader not selected later explains how to install a newer version
    App Manager Application Manager
    Greasy Mouse Mouse greasy Game
    Xaster asteroids game.
    XMC Game missiles.

  16. then will start an automatic installation.

  17. When the installer completes click on OK and then close

  18. unlock mnt folder
  19. [Root@CentOS5 mnt] # cd /home/CADT/INSTALACIO [enter]
    [Root@CentOS5 mnt] # umount mnt [enter]
    
The SAPO System text install mode
  1. Open a terminal
  2. Change to root.
  3. [Cadt@centos5  ~] $ su [enter]
    Password: ******* [Enter]
    
    • While typing the password, it won't see on any character on screen. This s it normal behavior.
  4. Change to directory INSTALACIO
  5. [Root centos5 @ ~] # cd /home/cadt/INSTALACIO[Enter]
    
    • the next orders assume that are run from the folder /home/cadt/INSTALACIO with administrative privilegies like user root .
    [Root centos5@~] # cd /home/cadt/INSTALACIO[Enter]
    
  6. Mount the sapo.iso' file.
  7.  [Root@centos5 INSTALACIO] # mount -o loop mnt sapo.iso [Enter] 
    • the loop option allows us to assemble one imagen CD-ROM into the DVD format.
  8. Start the installation
  9. The CD-ROM system have the SAPO system software, which is detailed below.

    SOFTWARE INCLUDED IN SAPO SYSTEM'S CD-ROM
    Package Name it Description Additional Information
    SW SAPO Lace Drafting System
    Acrobat_sw Acrobat Reader 7.0 later will be explain how to install a modern version
    Appmgr_sw Applications manager manager of application
    Greasy_sw Greasy Mouse a few games courtesy of CADT
    Xaster_sw Asteroids.
    Xmc_sw Missile.

  10. change to install folder /home/cadt/INSTALACIO/mnt/LINUX/RedHat-WS-3
  11.  [root@centos5 INSTALACIO] # cd mnt/LINUX/RedHat-WS-3 [Enter] 
  12. Start the SAPO's installer program
  13. [root@centos5 RedHat centos5-WS-3] #./Swinstall -s ./sw "SAPO" [Enter] 
    • swinstall is our HP-UX emulation installer. The syntax is swinstall -s /home/cadt/INSTALACIO/mnt/LINUX/RedHat-sw3 / Package-name description " [Enter]
    1. Select all the packages
  14. Unlocking the mnt folder
  15. [Root@centos5 mnt] # cd /home/cadt/INSTALACIO [Enter]
    [Root @ centos5 mnt] # umount mnt [Enter]
    



SAPO system Post-configuration
The following operations are executed as root.
This account allows you to modify any file on the operating system, is recommended to follow the instructions very carefully to avoid any mistakes.
  1. Open a terminal. (If necessary)

  2. change to root.
  3. [CADT @ CentOS5 ~] $ su [enter]
    Password: ******* [enter]
    
    • While typing password, there will be no characters on screen. This is a normal behavior.
  4. Change to the folder /home/CADT/INSTALACIO.
  5.  [Root@CentOS5 ~] # cd /home/CADT/INSTALACIO [enter] 
    • The following commands assume that the user has administrator privileges and are run from the folder /home/CADT/INSTALACIO.
  6. Mount the file sapo.iso.
  7.  [Root@CentOS5 INSTALACIO] # mount -o loop mnt sapo.iso [enter] 
    • -o loop option allows us to mount a cdrom or dvd image in iso format.
  8. Install drivers license.
    1. Change to the folder mnt/LINUX/rpms/Sentinel/SUD-7.1.3-0
    2.  [Root@CentOS5 INSTALACIO] # cd mnt/LINUX/rpms/Sentinel/SUD-7.1.3-0 [enter] 
    3. Install license packs USB and parallel
      • Install the two licenses, can use indifferently the USB or parallel.
      [Root @ CentOS5 SUR-7.1.3-0] # rpm-hiv SNTL-sur-usb-7.1.1-0.i386.rpm [enter]
      [Root @ CentOS5 SUR-7.1.3-0] # rpm-hiv paralleldrv SNTL sur-7.1.3-0.i386.rpm [enter]
      
  9. Install the license patches.
    1. Unzip the file patch.tgz
      • is recommended to decompress in the folder INSTALACIO because in case we need again we have it.
       [Root@CentOS5 SUR-7.1.3-0] # tar -xvzf patch.tgz -C /home/CADT/INSTALACIO[enter] 
    2. Change to the folder INSTALACIO/patch
      • The patch folder was created during decompression of patch.tgz file.
       [Root@CentOS5 SUR-7.1.3-0] # cd /home/cadt/INSTALACIO/patch[enter] 
    3. Install the patch
    4.  [Root @ CentOS5 patch] #./Install [enter] 
  10. clear the mnt folder.
  11.  [Root @ CentOS5 patch] # umount /home/cadt/INSTALACIO/mnt [enter] 
  12. switch to the INSTALL folder.
  13.  [Root@CentOS5 patch] # cd /home/cadt/INSTALACIO [enter] 
  14. Copy 99-CADT-el5.rules to /etc/udev/rules.d
  15.  [Root@CentOS5 INSTALACIO] # cp-99-CADT-el5.rules /etc/udev/rules.d 
  16. Set the CD-ROM and floppy disk drive in the fstab file
    1. Edit fstab
    2.  [Root@CentOS5 INSTALACIO] # vi /etc/fstab 
    3. Add these lines
      • CD-ROM SETUP
       /dev/cdrom/ /mnt/cdrom auto noauto, user, exec 0 0 
      • Floppy drive SETUP
       /dev/sapo/microdisk /mnt/floppy auto noauto, user, exec 0 0 
  17. Configure the drive in file 0001.sapo
    1. Edit 0001.sapo
    2.  [Root@CentOS5 INSTALACIO] # vi /etc/dt/config/Xsession.d/0001.sapo 
    3. if needed Add the following line:
    4.  Export microdisk = /dev/sapo/microdisk 
  18. Load system variables at startup.
    1. Edit /etc/profile
    2.  [Root@CentOS5 INSTALACIO] # vi /etc/profile 
    3. Add the following line at the end
    4. ./Etc/dt/config/Xsession.d/0001.sapo 
    5. Save and exit.
  19. Restart the computer to setup take effect
  20.  [Root@CentOS5 INSTALACIO] # reboot [enter] 
  21. Run carta,Jacq and tablet without license installed.
    • The software will warn that there is no license.
    • This process will create the files..sapo (/home/cadt/.sapo) . Jacq (/home/cadt/.jacq) and . tablet (/home/cadt/.tablet)
    1. move the pencil and observe if tablet behavior is correct.
    2. click ok, this will close the software.
    3. If the tablet does not work properlyMake the following changes to the files /home/cadt/.sapo,/home/cadt/.jacq and /home/cadt/.tablet
      • Edit the file [root @ CentOS5 INSTALACIO] # vi /home /cadt/. Filename
      1. Change the value of:
      2.  EXTENSION_DEVICE = YES 
        by
         EXTENSION_DEVICE = NO 
      3. Save and exit
  22. Change the corporate values
    1. Edit /opt/sapo/etc/company
    2.  [Root@CentOS5 INSTALACIO] # vi /opt/sapo/etc/company 
    3. Edit with the corresponding values
    4. Save and exit
  23. Run carta,Jacq and tablet now with a license installed to verify the tablet behavior and the license is correct.
  24. Install the following aplications
    • The following commands assume that the user has administrator privileges and are run from the folder /home/cadt/INSTALACIO.
    SPECIAL APPLICATION SYSTEM SETTINGS
    Application: NetManager
    Description Manager networks.
    Information Required for wifi card.
    Installation
    1. Update the system rpm to install the wicd
    2. [root@CentOS5 INSTALACIO] # yum install redhat-rpm-config [enter] 
    3. Install package-python-0.9.8.2-1.el5.rf.i386 urwid
    4.  [root@CentOS5 INSTALACIO] # rpm-hiv netmanager/python-urwid- 0.9. 8.2-1.el5.rf.i386.rpm [enter] 
    5. Install the package wicd-1.6.2-2.1.i386
    6.  [root@CentOS5 INSTALACIO] # rpm-hiv netmanager/wicd-1.6.2-2.1.i386. rpm [enter] 
    7. Unzip the file netmanager.tar on /
    8.  [root@CentOS5 INSTALACION] # tar-VXF netmanager/netmanager.tar- C /O[enter] 
    9. Start the service wicd
    10.  [root @ CentOS5 INSTALACIO] # /sbin /chkconfig wicd on [enter] 
    11. Restart the computer to take effect the installation
    12.  [root @ CentOS5 INSTALACIO] # reboot [enter] 

    Application : SAPO hot plug
    Description Device Recognition Automatic System
    Information
    Installation
    1. Install sapo hot plug
      1. Unzip the file /home/cadt/INSTALACIO/sapohotplug.tar to /
      2.  [root@CentOS5 INSTALACIO] # tar-VXF hotplug/sapohotplug.tar-C /[enter] 
      3. Copy 99-CADT-el5.rules file to /etc/udev/rules.d
      4.  [root@CentOS5 INSTALACIO] # cp 99 -cadt-el5.rules/etc/udev/rules.d 
    2. Set sapohotplug to start with the system
      1. Edit /etc/profile
      2.  [root @ CentOS5 INSTALACIO] # vi /etc/profile 
      3. Add the following line at the end
      4. . /Etc/dt/config/Xsession.d/0001.sapo 
      5. Save and exit.
    3. Edit /etc/auto.master
    4.  [root @ CentOS5 INSTALACIO] # vi /etc/auto.master 
      1. Add the following line under /misc/etc/auto.misc
      2.  /sapo-hotplug/etc/auto.sapo-hotplug - timeout 2 
      3. Save and exit.
    5. Restart the computer to complete the installation
    6.  [root @ CentOS5 INSTALLATION] # reboot [enter] 

    Repositories and additional applications

    We recommend installing the following additional applications and repositories.

    The following operations are executed as root.
    This account allows you to modify any file on the operating system it is recommended to follow the instructions carefully to avoid making any mistakes.
    1. Open a terminal.

    2. change to root.
    3. [CADT @ CentOS5 ~] $ su [enter]
      Password: ******* [enter]
      
      • While typing password, there will be no characters on screen. This is a normal behavior.
    4. Change to the folder /home/cadt/INSTALACIO
    5. [Root @ CentOS5 ~] # cd /home/cadt/INSTALACIO [enter]
      
      • The following commands assume that the user has administrator privileges and are run from the folder /home/cadt/INSTALACIO.
      Repository
      Repository Description Installation Extra information
      Adobe Adobe Software
       [root @ CentOS5 INSTALLATION] # rpm-hiv-i386 adobe-release-1.0-1.noarch.rpm [enter]
      adobe-release-i386-1.0-1
      Elrepo Bonus software
       [root @ CentOS5 INSTALLATION] # rpm-hiv elrepo-release-5-3.el5.elrepo.noarch.rpm [enter]
      
      elrepo-release-5-3.el5
      Rpmforge drivers repositories
       [root @ CentOS5 INSTALLATION] # rpm-hiv rpmforge-release-0.5.1-1.el5.rf.i386. rpm [enter] 
      rpmforge-release-0.5.1-1



      ADDITIONAL APPLICATIONS
      Application Description Installation Extra information
      Acrobat Reader PDF file viewer
       [root @ CentOS5 INSTALLATION] # yum install AdobeReader_''? ?'' [enter] 
      where “??” corresponds to the installation language
      Firefox browser
       [root @ CentOS5 INSTALLATION] # yum install firefox [enter] 
      GAIM instant messenger
       [root @ CentOS5 INSTALLATION] # yum install gaim [enter] 
      Gaim have replaced pidgin
      gFTP graphical FTP client
       [root @ CentOS5 INSTALLATION] # yum install gFTP [enter] 
      Gimp image editor
      [root @ CentOS5 INSTALLATION] # yum install gimp * [enter] 
      Photoshop clone application.
      lynx text-mode browser
      [root @ CentOS5 INSTALLATION] # yum install lynx [enter] 
      Required for Remote Assistance
      Open Office office suite
       [root @ CentOS5 INSTALLATION] # yum install openoffice * [enter] 
      package includes oocalc, oowriter, oodraw, ooimpress.
      Thunderbird email client
       [root @ CentOS5 INSTALLATION] # yum install thunderbird [enter] 
      tsclient terminal server client
       [root @ CentOS5 INSTALLATION] # yum install tsclient [enter] 
      Seamonkey browser see Skype on centOS 5 installs like skype
      Skype VOIP client
      xcdroast CD burner
       [root @ CentOS5 INSTALLATION] # yum install xcdroast [enter]