The SAPO system history
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 isCentOS, 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:
- Installing the Linux operating system 'CentOS 5.x'.
- Installing the CDE desktop.
- Installing the SAPO design system.
- Installing additional applications.
Installation
Linux Operating System
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.
|
- Boot with the CentOS 5.x installation CD-ROM.
- If you boot from the netinstall CD_ROM version
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.
|
- Language selection
This language will be used during installation, but also determine the default options such as language, keyboard, time zone, etc..
- keyboard selection
- Installation Method
 |
- This specifies how to access the installation files.
|
To get the official version from the CentOS 's webpage, select HTTP.
- network configuration
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.
- Location of installation files
| Parameters to get the official version.
|
| Site Name: |
mirror.centos.org
|
| Directory of files: |
/centos-5/5.8/os/i386
|
- Completing the netinstall process
Finally, it will download the installation wizard will start automatically
 |
- This process can take about 5 minutes.
|
- Start installation wizard.
- 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).
- keyboard selection.
 |
- This screen does not appear if the keyboard has been selected.
|
- installation type selection.
 |
- This screen only displays if any CentOS operating system is installed.
|
- disk partitions.
 |
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.
- Partition Manager
 |
- Using LVM partitions is not recommended, to avoid alocating the information betwen different physical disks.
|
- 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
|
- 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
|
- Installing the GRUB boot loader (GRUB boot loader).
Leave the values displayed by default.
- Network setup
For default network configuration use the DHCP (automatic) option. However, network parameters can be manually configured here.
- Time Settings.
 |
- The UTC indicates that the computer's internal clock is synchronized with the time Greenwich Mean Time
|
- Creating the root 's password'.
 |
- The root user is the system administrator and have full access privileges.
is very important to remember this password.
|
- Selection packages to install.
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.
- Installing Packages.
The system will start installing the selected packages. When finish, restart the computer.
 |
- This may take about 30 minutes and is completely automatic.
|
- The first boot time setup wizard screen will appear.
- Initial firewall setup.
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) .
- SELinux configuration.
 |
- SELinux is an advanced system protection, but requires extensive configuration, so it is recommended to disable it.
|
- Setting the date and time.
- Creating 'CADT' user.
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
|
- Configuring the sound card.
- additional CDs.
To complete the installation click "Finish"
- when the wizard is finished, if SELinux has been disabled as recommended, the computer will reboot.
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.
|
- Boot from CentOS 6.x's CD-ROM .
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.
|
- Checking installation disk
Setup wizard allow to check the disk.
- Language selection
This language will be used during installation, but also determine the default options such language, keyboard, time zone, etc..
- Keyboard layout selection
- Installation Method
 |
- This specifies the installation files access method.
|
For CentOS version from the official webpage select URL.
- network configuration
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.
- File Location
- Completing the netinstall process
Finally, the installation wizard will download and start automatically.
 |
- This process can take about 5 minutes.
|
- Start the installation wizard.
- 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).
- keyboard layout selection.
 |
- This screen does not appear if keyboard layout have been selected above.
|
- storage type selection.
- Configuration hostname.
This is the computer network's ID and name
- Time Settings.
 |
- The UTC indicates that the computer's internal clock is synchronized with the Greenwich Mean Time
|
- 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:
|
- Disk partitions.
 |
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.
- Partition Manager
 |
- Using LVM partitions is not recommended, because the information is into a partition on different physical disks.
|
- Use New button to create a new partition.
 |
- If you want to edit an existing partition, select it first and click Edit
|
- 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
|
- Installing the GRUB boot loader.
Leave the default values.
- select packages to install.
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.
- Starting packages' installation.
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.
|
- The first time the system starts, a screen will appear in the post-installation wizard.
- License agreement.
- Create user 'CADT'.
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
|
- Setting the date and time.
- kdump configuration.
- Once the wizard completes, the computer will restart.
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
- Open a terminal.
- change to root user.
[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.
|
- Modify the default run level in the file /etc/inittab.
- Edit the file /etc/inittab
[Root@Centos5 CADT] # vi /etc/inittab [enter]
|
- Replace
Id: 5: initdefault:
|
| with
|
Id: 3: initdefault:
|
- Save and exit
- start in text mode (switch to runlevel 3).
[Root @ CentOS5 CADT] # /sbin/init 3 [enter]
|
 |
- The computer will be in runlevel 3 (text mode), needed by CDE desktop to start.
|
- Log in as root.
CentOS release 5.8 (Final)
kernel 2.6.18-308.4.1.el5 on an i686
CentOS5 login: root [enter]
Password: ****** [enter]
|
- Change to the directory /home/CADT.
[Root @ CentOS5 ~] # cd/home/CADT [enter]
|
 |
- The following commands assume that are executed from /home/CADT. folder
|
- Create the directory structure for installation in the user folder.
- Create folder INSTALACIO
This directory will keep a copy of the installation files.
[Root@CentOS5 CADT] # mkdir INSTALACIO [enter]
|
- Change to folder INSTALACIO'
[Root@CentOS5 CADT] # cd INSTALACIO [enter]
|
- Create the folder mnt
This directory will serve to mount the CD-ROM's image files (file.iso)
[Root@CentOS5 INSTALACIO] # mkdir mnt [enter]
|
- Create the folder yuminstall
This directory will remain empty and is used to run the yum installer.
[Root@CentOS5 INSTALACIO] # mkdir yuminstall [enter]
|
- 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
|
- Change to the folder yuminstall
[Root@CentOS5 INSTALACIO] # cd yuminstall [enter]
|
- Updating packages
[Root@CentOS5 yuminstall] # yum update [enter]
|
- Change to the folder INSTALACIO
[Root@CentOS5 yuminstall] # cd .. [enter]
|
- 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
|
| 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
|
| Folder hotplug |
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
|
- 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] # cd .. [enter]
|
- Save system resources disabling unnecessary services.
[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
|
| Gpm |
terminal mouse support
|
| Sendmail |
E-mail Server
|
| Firstboot |
Post-Installation Configuration
|
| Yum-updatesd |
Automatic Update Package
|
| Isdn |
Support for integrated services digital networks (XDSI / ISDN)
|
| Lvm2 |
Support to manage logical volumes
|
| Any other unnecessary (in case of doubt do not modify)
|
- Encoding setup.
 |
- CDE desktop is not compatible with the UTF-8 encodings. </ li>
|
- Edit File /etc/sysconfig/i18n
[Root@centos5 cadt] # vi /etc/sysconfig/i18n [enter]
|
- Replace the line
LANG = "xxxx.UTF-8"
|
| by
|
LANG = "xxxx"
|
- Save and exit
- Configure automatic disk corrections if the system is turned off incorrectly. </ li>
- copy the file autofsck to /etc/sysconfig/autofsck
[Root@CentOS5 CADT] # cp INSTALL/autofsck /etc/sysconfig/ [enter]
|
- Perform the following checks and configurations using the system-config-securitylevel (recommended) or, if necessary, editing the appropriate configuration file:
| 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
|
|
- reboot for the new settings take effect.
Xorg server configuration and driver setup
- If needed login as root.
CentOS release 5.8 (Final)
kernel 2.6.18-308.4.1.el5 on an i686
CentOS5 login: root [enter]
Password: ****** [enter]
|
- Change to the directory /home/CADT/INSTALLATION.
[Root@CentOS5 ~] # cd /home/CADT/INSTALLATION [enter]
|
 |
- The following commands assume that are executed from /home/ CADT/INSTALLATIONfolder
- 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.
|
- Check the graphics card model.
[Root@CentOS5 INSTALLATION] # lspci | grep VGA | more [enter]
|
- Install by model and manufacturer
| Graphics |
Installation Method
|
| Nvidia
|
Official NVIDIA drivers using an interactive wizard to install.
[Root@CentOS5 INSTALLATION] # 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.
|
|