Linux-Miscellaneous

From Training Material
Revision as of 17:51, 3 August 2017 by Łukasz Sokołowski (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Nobleprog.svg

Linux-Miscellaneous



title
Linux-Miscellaneous
author


Tytus Kurek (NobleProg)

Linux installation⌘

Linux-Miscellaneous-01.gif
https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcQvEavG13YVSNZ80XN0DPFe1Ye81rIkTiFFOm8pgpO8sgneckL9

Linux distributions⌘

Linux installation and configuration⌘

  • Installation and configuration steps vary depending on Linux distribution in use
  • Distributions rank (http://distrowatch.com/):
    1. Linux Mint
    2. Ubuntu
    3. Debian
    4. Mageia
    5. openSUSE
  • Lab Exercise MSC.1

Software compilation⌘

Linux-Miscellaneous-02.png
https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRw8hWV_G_YouDD_0qbE5VOVtssnJ-JQO7c9qPvfei10nk4znQdNQ

Software installation from sources⌘

  • Download the software from a dedicated repository, website or other source
  • Extract the software using an appropriate archivisation tool
  • Read README and INSTALL files if included
  • Check whether the configure script is included. Omit the next step if no
  • Execute the following command:
./configure --prefix /usr/local
  • If any errors occur fix them, remove the config.cache file and repeat the last step.
  • Execute the following command:
make
  • If any errors occur fix them, execute the following command and repeat the last step:
make clean
  • Execute the following command:
make install

Software installation from sources #2⌘

  • configure:
    • checks required parameters of the hardware and OS and writes these information to the config.cache file
    • creates the Makefile file containing:
      • rules - how to build the targets
      • targets - what exactly to build
    • specifies the location of the software to be installed
  • make:
    • builds / compiles the software based on the Makefile file
  • make clean:
    • removes the files built by the make command
  • make install:
    • installs the files built by the make command in directories specified during the configure command execution