Changes between Version 15 and Version 16 of ShmInstallUbuntu


Ignore:
Timestamp:
04/06/11 12:36:59 (8 years ago)
Author:
MarcusWalther
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ShmInstallUbuntu

    v15 v16  
    1 = Installation on Ubuntu systems = 
    2  
    3 This is a short description for the Seismic Handler installation on Ubuntu 8.04 (or newer, also applies to related distributions like Kubuntu, Xubuntu, ...).  
    4  
    5 You'll need administrative rights to perform the installation (because you have to deal with some changes inside system directories)! There is also a virtual applicant available: [ShmVmwareUbuntu VMware Ubuntu] or download a '''pre-compiled package''' for Ubuntu 8.04 as indicated at the [ShmInstallUbuntu#Pre-compiledUbuntu8.04package bottom] of this page. 
    6  
    7 === Defect motif libraries in Ubuntu === 
    8  
    9 __Important note__: Motif libraries shipped with Ubuntu 9 and 10 are broken. You can use the Ubuntu 8.04's libs as a quick and dirty fix (details see ticket #12). 
    10  
    11 {{{ 
    12 > wget http://www.seismic-handler.org/portal/raw-attachment/ticket/12/libMrm.tar.bz2 
    13 > sudo tar xf libMrm.tar.bz2 -C / 
    14 }}} 
    15  
    16 == Prerequisities == 
     1= Prerequisities for installation on Ubuntu systems = 
    172 
    183Please be sure that you have the following packages installed: 
     
    2914 - libx11-dev 
    3015 - xutils-dev 
     16 - libxext-dev 
     17 - libxt-dev 
    3118 
    3219If you don't use the Adapt Manager, enter the command  
    3320{{{ 
    34 sudo apt-get install make libmotif-dev libc6-dev tcsh xterm x11proto-core-dev x11proto-print-dev x11proto-xext-dev libxt-dev libx11-dev xutils-dev 
     21sudo apt-get install make libmotif-dev libc6-dev tcsh xterm x11proto-core-dev x11proto-print-dev x11proto-xext-dev libxt-dev libx11-dev xutils-dev libxext-dev libxt-dev 
    3522}}} 
    3623and follow the instructions. 
    3724 
    38 Download the source packages for Seismic Handler and save them somewhere you'll find them later (in this how-to `/tmp` is used): 
     25== Incompatible motif libraries in Ubuntu == 
    3926 
    40  - [ftp://ftp.szgrf.bgr.de/pub/software/SHM-install.csh installation script] 
    41  - [ftp://ftp.szgrf.bgr.de/pub/software/SH-SHM.tar.gz source package] 
    42  - [ftp://ftp.szgrf.bgr.de/pub/software/fk-linux.tar.gz fk package] (optional) 
    43  - [ftp://ftp.szgrf.bgr.de/pub/software/locsat-linux.tar.gz locsat package] (optional) 
    44  
    45 == Installation steps == 
    46  
    47  1. Open a shell window and change directory to the place you downloaded the source packages. 
    48  2. Make installation script executable by running "`chmod a+x SHM-install.csh`" 
    49  3. Create installation directory "`sudo mkdir /usr/share/sh`" 
    50  4. Set links for libraries needed: 
    51     - `sudo ln -s /usr/lib/libXext.so.6 /usr/lib/libXext.so` 
    52     - `sudo ln -s /usr/lib/libXpm.so.4 /usr/lib/libXpm.so` 
    53  5. Set links for standard header files: 
    54     - `sudo ln -s /usr/lib/gcc/i486-linux-gnu/4.2/include/stdarg.h /usr/include/stdarg.h` ("4.2" is only valid for 8.04, later distributions have a higher number) 
    55     - `sudo ln -s /usr/include/linux/stddef.h /usr/include/stddef.h` 
    56  6. Start script by "`sudo ./SHM-install.csh /usr/share/sh /tmp`" (replace `/tmp` by the absolute path you saved the source files) 
    57  7. Now you can alter the default values of the installation to your personal preferences. If finished, enter "i" to start installation. ''It is not necessary to compile the fk and locsat package even if you downloaded them! '' 
    58  8. Correct permissions for the directory "`~/shfiles`" by "`cd ; sudo chown -R $USER shfiles`". 
    59  
    60 == Configuration == 
    61  
    62 Open or create a file ".cshrc" in your home directory and insert the following line: 
    63 {{{ 
    64 source /usr/share/sh/sh/setup/shsetup 
    65 }}} 
    66  
    67 If you use bash as your standard shell, you should define the following aliases (for more convenience place them in .bashrc or .bash_aliases (if enabled in .bashrc)): 
     27__Important note__: Motif libraries shipped with Ubuntu 9 and 10 are not compatible to SH/SHM. You can use the Ubuntu 8.04's libs as a quick and dirty fix (details see ticket #12). 
    6828 
    6929{{{ 
    70 alias SH='tcsh -c SH' 
    71 alias SHM='tcsh -c SHM' 
     30> wget http://www.seismic-handler.org/portal/raw-attachment/ticket/12/libMrm.tar.bz2 
     31> sudo tar xf libMrm.tar.bz2 -C / 
    7232}}} 
    73  
    74 '''Possible pitfall''': The locsat directory is linked from the home directory of the installing user (in this case your account or root). All users ''must'' have reading access to this "`lcs`" link. This may conflict with your security settings, but it's necessary due to lacks in the locsat package. 
    75  
    76 ''Hint'': Create your own configuration file to keep your personal configuration when installing new updates of SHM. Make a copy of $SH_INPUTS/shm-config.txt and create an environment variable SH_USER_PARAM pointing to it. E.g.: "`cp $SH_INPUTS/shm-config.txt $HOME`" and "`setenv SH_USER_PARAM $HOME/shm-config.txt`". Put the setenv-command to your $HOME/.cshrc file to make it permanent. Then edit your configuration file $SH_USER_PARAM to match your needs. Please read the [ShmDocFileConfig documentation page of the configuration file] for details. 
    7733 
    7834== Pre-compiled Ubuntu 8.04 package == 
     
    86423. Open a new gnome-terminal and configure it to load the shell as a login shell, to do that go to (menu path) Edit -> Current Profile -> Title and Command -> Run command as a login shell.[[BR]] 
    87434. Close your terminal, open it again and type in '''SHM'''.[[BR]] 
    88  
    89