i08DU

II. Applications install / update remove
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

sudo
----

  # ls -l /etc/sudoers
  -r--r----- 1 root root 700 Dec  3 20:00 /etc/sudoers

Note: use w!

  $ su -
  Password:
  # apt-get install sudo
  # cat /etc/sudoers | grep 'root\|virtu'
  ### This file MUST be edited with the 'visudo' command as root.
  root    ALL=(ALL:ALL) ALL
  virtu   ALL=(ALL) NOPASSWD:ALL

  a) install via apt

      apt-get update
      apt-get upgrade
      apt-get install openssh-server
      apt-get remove openssh-server
      # remove dependencies and configuration files
      apt-get autoremove --purge openssh-server
      apt-get autoremove
      apt-get clean
      apt-cache search <package>

  b) install via dpkg. resolve dependencies

      # dpkg -i package_with_unsatisfied_dependencies.deb
      dpkg: dependency problems prevent ...
      ..
      # apt-get -f install
      [apt messages]
      Setting up [dependency]...
      Setting up package_with_unsatisfied_dependencies...
      #

     install with gdebi

      # apt-cache search gdebi
      gdebi - simple tool to view and install deb files - GNOME GUI
      gdebi-core - simple tool to install deb files
      gdebi-kde - simple tool to install deb files - KDE GUI
      # apt-get install gdebi-core

  c) Make a chance to develop on this machine

    # apt-get install build-essential module-assistant dkms
    # apt-get install mc git subversion wget
    # apt-get install autogen autoconf automake autopoint 
    # apt-get install libncurses5-dev libncursesw5-dev gettext texinfo
    # m-a prepare

  c) install from source with make

    $ wget -c https://www.nano-editor.org/dist/v2.9/nano-2.9.1.tar.xz
    $ tar xf nano-2.9.1.tar.xz
    $ cd nano-2.9.1
    $ ./configure
    $ make
    $ sudo make install
    
    note: if one needs even newer source download it from git:
          $ git clone git://git.savannah.gnu.org/nano.git
          however you have to satisfy autogen first.
          easy way: 
           apt-get install mono-complete
           ./autogen.sh
           ./configure
           make
           src/nano

  d) install from source without make

    $ git clone https://github.com/cesanta/slre/
    $ cd slre
    $ gcc unit_test.c slre.c -o unit_test

    ### (or svn checkout svn://..trunk) ###

