Install Debian

Posted : admin On 25.10.2019

  1. Cara Install Debian
  2. Download Debian

Get Docker CE for Debian Estimated reading time: 12 minutes To get started with Docker CE on Debian, make sure you, then. Prerequisites Docker EE customers Docker EE is not supported on Debian. For a list of supported operating systems and distributions for different Docker editions, see. OS requirements To install Docker CE, you need the 64-bit version of one of these Debian or Raspbian versions:. Buster 10 (Docker CE 17.11 Edge only). Stretch 9 (stable) / Raspbian Stretch.

Jessie 8 (LTS) / Raspbian Jessie. Wheezy 7.7 (LTS) Docker CE is supported on both x8664 (or amd64) and armhf architectures for Jessie and Stretch. Uninstall old versions Older versions of Docker were called docker or docker-engine. If these are installed, uninstall them. $ uname -r.

Enable the backports repository. Install Docker CE You can install Docker CE in different ways, depending on your needs:. Most users and install from them, for ease of installation and upgrade tasks. This is the recommended approach, except for Raspbian. Some users download the DEB package and and manage upgrades completely manually. This is useful in situations such as installing Docker on air-gapped systems with no access to the internet.

On Debian or Ubuntu Linux, you can install Yarn via our Debian package repository. You will first need to configure the repository: curl -sS https.

In testing and development environments, some users choose to use automated to install Docker. This is currently the only approach for Raspbian. Install using the repository Before you install Docker CE for the first time on a new host machine, you need to set up the Docker repository. Afterward, you can install and update Docker from the repository.

Raspbian users cannot use this method! For Raspbian, installing using the repository is not yet supported. You must instead use the.

Set up the repository. Update the apt package index.

$ sudo apt-key fingerprint 0EBFCD88 pub 4096R/0EBFCD88 2017-02-22 Key fingerprint = 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88 uid Docker Release (CE deb ) sub 4096R/F273FCD8 2017-02-22. Use the following command to set up the stable repository. You always need the stable repository, even if you want to install builds from the edge or test repositories as well. To add the edge or test repository, add the word edge or test (or both) after the word stable in the commands below. Note: The lsbrelease -cs sub-command below returns the name of your Debian distribution, such as jessie. To also add the edge repository, add edge after stable on the last line of the command.

$ echo 'deb arch=armhf $(. /etc/os-release; echo ' $ID ' ) $(lsbrelease -cs ) stable' sudo tee /etc/apt/sources.list.d/docker.list. Wheezy only: The version of add-apt-repository on Wheezy adds a deb-src repository that does not exist. You need to comment out this repository or running apt-get update fails. Edit /etc/apt/sources.list. Find the line like the following, and comment it out or remove it: deb-src arch=amd64 wheezy stable Save and exit the file.

Note: Starting with Docker 17.06, stable releases are also pushed to the edge and test repositories. Install Docker CE Note: This procedure works for Debian on x8664 / amd64, Debian ARM, or Raspbian. Update the apt package index. $ apt-cache madison docker-ce docker-ce 17.12.0ce-0debian jessie/stable amd64 Packages The contents of the list depend upon which repositories are enabled. Choose a specific version to install.

The second column is the version string. The third column is the repository name, which indicates which repository the package is from and by extension its stability level. To install a specific version, append the version string to the package name and separate them by an equals sign ( =). $ sudo docker run armhf/hello-world This command downloads a test image and runs it in a container. When the container runs, it prints an informational message and exits.

Docker CE is installed and running. The docker group is created but no users are added to it. You need to use sudo to run Docker commands. Continue to to allow non-privileged users to run Docker commands and for other optional configuration steps. For Raspbian, you can optionally. Upgrade Docker CE To upgrade Docker CE, first run sudo apt-get update, then follow the, choosing the new version you want to install.

Install from a package If you cannot use Docker’s repository to install Docker CE, you can download the.deb file for your release and install it manually. You need to download a new file each time you want to upgrade Docker.

Go to /etc/os-release; echo '$ID')/dists/, choose your Debian version, browse to pool/stable/, choose either amd64 or armhf, and download the.deb file for the Docker CE version you want to install. Note: To install an edge package, change the word stable in the URL to edge. Install Docker CE, changing the path below to the path where you downloaded the Docker package. $ sudo docker run hello-world This command downloads a test image and runs it in a container. When the container runs, it prints an informational message and exits. Docker CE is installed and running. The docker group is created but no users are added to it.

You need to use sudo to run Docker commands. Continue to to allow non-privileged users to run Docker commands and for other optional configuration steps. For Raspbian, you can optionally.

Cara Install Debian

Install Debian

Download Debian

Upgrade Docker CE To upgrade Docker, download the newer package file and repeat the, pointing to the new file. Install using the convenience script Docker provides convenience scripts at and for installing edge and testing versions of Docker CE into development environments quickly and non-interactively. The source code for the scripts is in the. Using these scripts is not recommended for production environments, and you should understand the potential risks before you use them:. The scripts require root or sudo privileges to run. Therefore, you should carefully examine and audit the scripts before running them.

The scripts attempt to detect your Linux distribution and version and configure your package management system for you. In addition, the scripts do not allow you to customize any installation parameters. This may lead to an unsupported configuration, either from Docker’s point of view or from your own organization’s guidelines and standards. The scripts install all dependencies and recommendations of the package manager without asking for confirmation. This may install a large number of packages, depending on the current configuration of your host machine. The script does not provide options to specify which version of Docker to install, and installs the latest version that is released in the “edge” channel.

Do not use the convenience script if Docker has already been installed on the host machine using another mechanism. This example uses the script at to install the latest release of Docker CE on Linux. To install the latest testing version, use instead.

In each of the commands below, replace each occurrence of get with test. Warning: Always examine scripts downloaded from the internet before running them locally. $ curl -fsSL get.docker.com -o get-docker.sh $ sudo sh get-docker.sh If you would like to use Docker as a non-root user, you should now consider adding your user to the 'docker' group with something like: sudo usermod -aG docker your-user Remember to log out and back in for this to take effect!

Un dia de noviembre

WARNING: Adding a user to the 'docker' group grants the ability to run containers which can be used to obtain root privileges on the docker host. Refer to for more information. Docker CE is installed.

It starts automatically on DEB-based distributions. On RPM-based distributions, you need to start it manually using the appropriate systemctl or service command.

As the message indicates, non-root users can’t run Docker commands by default. Upgrade Docker after using the convenience script If you installed Docker using the convenience script, you should upgrade Docker using your package manager directly. There is no advantage to re-running the convenience script, and it can cause issues if it attempts to re-add repositories which have already been added to the host machine. Install Docker Compose for Raspbian You can install Docker Compose using pip.

In this topic we’ll learn how to install and configure the latest official version of Nagios Core from sources in Debian and Ubuntu servers. Nagios Core is a free Open Source network monitoring application designed for monitoring network applications, devices and their related services and in a network. Nagios can remotely monitor specific operating system parameters via agents deployed on nodes and send alerts via mail or SMS in order to notify administrators in case critical services in a network, such as SMTP, HTTP, SSH, FTP and other fails. Requirements.

Step 1: Install Pre-requirements for Nagios 1. Before installing Nagios Core from sources in Ubuntu or Debian, first install the following LAMP stack components in your system, without MySQL RDBMS database component, by issuing the below command. # apt install apache2 libapache2-mod-php7.0 php7.0 2.

On the next step, install the following system dependencies and utilities required to compile and install Nagios Core from sources, by issuing the follwoing command. # apt install wget unzip zip autoconf gcc libc6 make apache2-utils libgd-dev Step 2: Install Nagios 4 Core in Ubuntu and Debian 3. On the first step, create nagios system user and group and add nagios account to the Apache www-data user, by issuing the below commands. # useradd nagios # usermod -a -G nagios www-data 4.

After all dependencies, packages and system requirements for compiling Nagios from sources are present in your system, go to Nagios webpage and grab the stable source archive by issuing the following command. Next, extract Nagios tarball and enter the extracted nagios directory, with the following commands. Issue to list nagios directory content. # tar xzf nagios-4.3.4.tar.gz # cd nagios-4.3.4/ # ls.

List Nagios Content 6. Now, start to compile Nagios from sources by issuing the below commands. Make sure you configure Nagios with Apache sites-enabled directory configuration by issuing the below command. #./configure -with-httpd-conf=/etc/apache2/sites-enabled 7. In the next step, build Nagios files by issuing the following command. # make all 8. Now, install Nagios binary files, CGI scripts and HTML files by issuing the following command.

# make install 9. Next, install Nagios daemon init and external command mode configuration files and make sure you enable nagios daemon system-wide by issuing the following commands. # make install-init # make install-commandmode # systemctl enable nagios.service 10. Next, run the following command in order to install some Nagios sample configuration files needed by Nagios to run properly by issuing the below command. # make install-config 11.

Also, install Nagios configuration file for Apacahe web server, which can be fount in /etc/apacahe2/sites-enabled/ directory, by executing the below command. # make install-webconf 12. Next, create nagiosadmin account and a password for this account necessary by Apache server to log in to Nagios web panel by issuing the following command. # htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin 13. To allow Apache HTTP server to execute Nagios cgi scripts and to access Nagios admin panel via HTTP, first enable cgi module in Apache and then restart Apache service and start and enable Nagios daemon system-wide by issuing the following commands. # a2enmod cgi # systemctl restart apache2 # systemctl start nagios # systemctl enable nagios 14.

Finally, log in to Nagios Web Interface by pointing a browser to your server’s IP address or domain name at the following URL address via HTTP protocol. Log in to Nagios with nagiosadmin user the password setup with htpasswd script. OR http://DOMAIN/nagios. Check Host Status Step 3: Install Nagios Plugins in Ubuntu and Debian 16. To compile and install Nagios Plugins from sources in Debian or Ubuntu, at the first stage, install the following dependencies in your system, by issuing the below command. # apt install libmcrypt-dev make libssl-dev bc gawk dc build-essential snmp libnet-snmp-perl gettext libldap2-dev smbclient fping libmysqlclient-dev qmail-tools libpqxx3-dev libdbi-dev 17. Next, visit Nagios Plugins repositories page and by issuing the following command.

Go ahead and extract the Nagios Plugins source code tarball and change path to the extracted nagios-plugins directory by executing the following commands. # tar xfz release-2.2.1.tar.gz # cd nagios-plugins-release-2.2.1/ 19. Now, start to compile and install Nagios Plugins from sources, by executing the following series of commands in your server console. #./tools/setup #./configure # make # make install 20. The compiled and installed Nagios plugins can be located in /usr/local/nagios/libexec/ directory. List this directory to view all available plugins in your system. # ls /usr/local/nagios/libexec/.