Added Wiki for all the docs from Egor
This commit is contained in:
parent
741584446c
commit
e9058bb2cb
5 changed files with 1065 additions and 0 deletions
247
zzzEgor/Docker/Wireguard.md
Normal file
247
zzzEgor/Docker/Wireguard.md
Normal file
|
@ -0,0 +1,247 @@
|
||||||
|
# Install Docker-ce
|
||||||
|
|
||||||
|
How do I install Docker CE on Debian 11/10?, How can I install Docker Compose on Debian 11/10 Linux system?. In this guide, I'll discuss a step by step installation of Docker and Docker Compose on Debian 11/10.
|
||||||
|
|
||||||
|
Docker is the most popular and widely used container runtime. It enables you to package and run your applications in isolated containers in a single server or cluster of Linux servers orchestrated by Kubernetes and similar tools.
|
||||||
|
|
||||||
|
## Docker Editions
|
||||||
|
|
||||||
|
There are two editions of Docker available.
|
||||||
|
|
||||||
|
- **Community Edition (CE)**: ideal for individual developers and small teams looking to get started with Docker and experimenting with container-based apps.
|
||||||
|
- **Enterprise Edition (EE)**: Designed for enterprise development and IT teams who build, ship, and run business-critical applications in production at scale.
|
||||||
|
|
||||||
|
This guide will cover installation of Docker CE on Debian 10 / Debian 11 Linux. But let's first look at common docker terminologies.
|
||||||
|
|
||||||
|
## Docker Components / Terminologies
|
||||||
|
|
||||||
|
Below are commonly used terminologies in Docker ecosystem.
|
||||||
|
|
||||||
|
- **Docker daemon**: This is also called Docker Engine, it is a background process which runs on the host system responsible for building and running of containers.
|
||||||
|
- **Docker Client**: This is a command line tool used by the user to interact with the Docker daemon.
|
||||||
|
- **Docker Image**: An image is an immutable file that's essentially a snapshot of a container. A docker image has a file system and application dependencies required for running applications.
|
||||||
|
- **Docker container**: This is a running instance of a docker image with an application and its dependencies. Each container has a unique process ID and isolated from other containers. The only thing containers share is the Kernel.
|
||||||
|
- **Docker registry**: This is an application responsible for managing storage and delivery of Docker container images. It can be private or public.
|
||||||
|
|
||||||
|
# Install Docker CE on Debian 11 (Bullseye) / Debian 10 (Buster)
|
||||||
|
|
||||||
|
Follow the steps covered in the next parts of this article to install and use Docker CE on Debian 11/10.
|
||||||
|
|
||||||
|
## Step 1: Install Dependency packages
|
||||||
|
|
||||||
|
Start the installation by ensuring that all the packages used by docker as dependencies are installed.
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo apt update
|
||||||
|
sudo apt -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common
|
||||||
|
```
|
||||||
|
|
||||||
|
## Step 2: Add Docker's official GPG key:
|
||||||
|
|
||||||
|
Import Docker GPG key used for signing Docker packages.
|
||||||
|
|
||||||
|
```
|
||||||
|
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/docker-archive-keyring.gpg
|
||||||
|
```
|
||||||
|
|
||||||
|
## Step 3: Add the Docker repository to Debian 10 / Debian 11
|
||||||
|
|
||||||
|
Add Docker repository which contain the latest stable releases of Docker CE.
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo add-apt-repository\
|
||||||
|
"deb [arch=amd64] https://download.docker.com/linux/debian\
|
||||||
|
$(lsb_release -cs)\
|
||||||
|
stable"
|
||||||
|
```
|
||||||
|
|
||||||
|
This command will add the line shown in `/etc/apt/sources.list` file.
|
||||||
|
|
||||||
|
## Step 4: Install Docker & Docker Compose on Debian 11/10
|
||||||
|
|
||||||
|
Update the `apt` package index.
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo apt update
|
||||||
|
```
|
||||||
|
|
||||||
|
To install Docker CE on Debian, run the command:
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo apt install docker-ce docker-ce-cli containerd.io -y
|
||||||
|
```
|
||||||
|
|
||||||
|
Start and enable docker service:
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo systemctl enable --now docker
|
||||||
|
```
|
||||||
|
|
||||||
|
This installation will add `docker` group to the system without any users. Add your user account to the group to run docker commands as non-privileged user.
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo usermod -aG docker $USER
|
||||||
|
newgrp docker
|
||||||
|
```
|
||||||
|
|
||||||
|
Check docker and compose version.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ docker version
|
||||||
|
Client: Docker Engine - Community
|
||||||
|
Version: 20.10.17
|
||||||
|
API version: 1.41
|
||||||
|
Go version: go1.17.11
|
||||||
|
Git commit: 100c701
|
||||||
|
Built: Mon Jun 6 23:03:17 2022
|
||||||
|
OS/Arch: linux/amd64
|
||||||
|
Context: default
|
||||||
|
Experimental: true
|
||||||
|
|
||||||
|
Server: Docker Engine - Community
|
||||||
|
Engine:
|
||||||
|
Version: 20.10.17
|
||||||
|
API version: 1.41 (minimum version 1.12)
|
||||||
|
Go version: go1.17.11
|
||||||
|
Git commit: a89b842
|
||||||
|
Built: Mon Jun 6 23:01:23 2022
|
||||||
|
OS/Arch: linux/amd64
|
||||||
|
Experimental: false
|
||||||
|
containerd:
|
||||||
|
Version: 1.6.6
|
||||||
|
GitCommit: 10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
|
||||||
|
runc:
|
||||||
|
Version: 1.1.2
|
||||||
|
GitCommit: v1.1.2-0-ga916309
|
||||||
|
docker-init:
|
||||||
|
Version: 0.19.0
|
||||||
|
GitCommit: de40ad0
|
||||||
|
```
|
||||||
|
|
||||||
|
Log out and log back in so that your group membership is re-evaluated.
|
||||||
|
|
||||||
|
```
|
||||||
|
exit
|
||||||
|
```
|
||||||
|
|
||||||
|
### Install Docker Compose on Debian
|
||||||
|
|
||||||
|
Use the guide below to install latest Docker Compose on Debian 10 / Debian 11
|
||||||
|
|
||||||
|
- [How To Install Latest Docker Compose on Linux](https://computingforgeeks.com/how-to-install-latest-docker-compose-on-linux/)
|
||||||
|
|
||||||
|
## Step 5: Test Docker installation
|
||||||
|
|
||||||
|
Run a test docker container:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ docker run --rm -it --name test alpine:latest /bin/sh
|
||||||
|
latest: Pulling from library/alpine
|
||||||
|
2408cc74d12b: Pull complete
|
||||||
|
Digest: sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f271ab1acc53015037c
|
||||||
|
Status: Downloaded newer image for alpine:latest
|
||||||
|
|
||||||
|
/ # cat /etc/os-release
|
||||||
|
NAME="Alpine Linux"
|
||||||
|
ID=alpine
|
||||||
|
VERSION_ID=3.16.0
|
||||||
|
PRETTY_NAME="Alpine Linux v3.16"
|
||||||
|
HOME_URL="https://alpinelinux.org/"
|
||||||
|
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
|
||||||
|
|
||||||
|
/ # exit
|
||||||
|
```
|
||||||
|
|
||||||
|
## Step 6: Test Docker Compose installation.
|
||||||
|
|
||||||
|
Create a test Docker Compose file.
|
||||||
|
|
||||||
|
```
|
||||||
|
vim docker-compose.yml
|
||||||
|
```
|
||||||
|
|
||||||
|
Add below data to the file.
|
||||||
|
|
||||||
|
```
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
web:
|
||||||
|
image: nginx:latest
|
||||||
|
ports:
|
||||||
|
- "8080:80"
|
||||||
|
links:
|
||||||
|
- php
|
||||||
|
php:
|
||||||
|
image: php:7-fpm
|
||||||
|
```
|
||||||
|
|
||||||
|
Start service containers.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ docker-compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
Output:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Show running Containers
|
||||||
|
|
||||||
|
```
|
||||||
|
$ docker-compose ps
|
||||||
|
```
|
||||||
|
|
||||||
|
Destroy containers
|
||||||
|
|
||||||
|
````
|
||||||
|
$ docker-compose stop
|
||||||
|
$ docker-compose rm
|
||||||
|
Going to remove vagrant_web_1, vagrant_php_1
|
||||||
|
Are you sure? [yN] y
|
||||||
|
Removing vagrant_web_1 ... done
|
||||||
|
Removing vagrant_php_1 ... done
|
||||||
|
```wg-easy
|
||||||
|
-------
|
||||||
|
|
||||||
|
> [!INFO] You can try it after the successful installation of docker
|
||||||
|
|
||||||
|
````
|
||||||
|
|
||||||
|
docker run -d\
|
||||||
|
--name=wg-easy\
|
||||||
|
-e WG*HOST=***89.43.107.97**_\
|
||||||
|
-e PASSWORD= _**DeinPasswort**\_\
|
||||||
|
-v ~/.wg-easy:/etc/wireguard\
|
||||||
|
-p 51820:51820/udp\
|
||||||
|
-p 51821:51821/tcp\
|
||||||
|
--cap-add=NET_ADMIN\
|
||||||
|
--cap-add=SYS_MODULE\
|
||||||
|
--sysctl="net.ipv4.conf.all.src_valid_mark=1"\
|
||||||
|
--sysctl="net.ipv4.ip_forward=1"\
|
||||||
|
--restart unless-stopped\
|
||||||
|
weejewel/wg-easy
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
You have successfully installed Docker on Debian 10 / Debian 11 Linux. Go through Official[ Docker documentation](https://docs.docker.com/) and [Docker Compose documentation](https://docs.docker.com/compose/) to learn more.
|
||||||
|
|
||||||
|
Setup Docker UI (Optional)
|
||||||
|
--------------------------
|
||||||
|
|
||||||
|
If you need a UI management console for Docker hosts and containers, checkout Portainer.
|
||||||
|
|
||||||
|
- [How to Install Portainer Docker UI manager](https://computingforgeeks.com/install-docker-ui-manager-portainer/)
|
||||||
|
|
||||||
|
Monitoring Docker containers
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
Monitoring Docker containers can be achieved by using Monitoring tools such as [Netdata, Prometheus and Grafana](https://computingforgeeks.com/category/monitoring/). Below guide should also be helpful [Check Container container metrics with Ctop.](https://computingforgeeks.com/top-command-for-container-metrics/)
|
||||||
|
|
||||||
|
### Best Docker Learning Courses:
|
||||||
|
|
||||||
|
- [Docker Mastery: with Kubernetes +Swarm from a Docker Captain](https://click.linksynergy.com/deeplink?id=2sb89XJC/EQ&mid=39197&murl=https%3A%2F%2Fwww.udemy.com%2Fcourse%2Fdocker-mastery%2F)
|
||||||
|
- [Docker for the Absolute Beginner -- Hands On -- DevOps](https://click.linksynergy.com/deeplink?id=2sb89XJC/EQ&mid=39197&murl=https%3A%2F%2Fwww.udemy.com%2Fcourse%2Flearn-docker%2F)
|
||||||
|
- [Docker and Kubernetes: The Complete Guide](https://click.linksynergy.com/deeplink?id=2sb89XJC/EQ&mid=39197&murl=https%3A%2F%2Fwww.udemy.com%2Fcourse%2Fdocker-and-kubernetes-the-complete-guide%2F)
|
||||||
|
- [Docker -- SWARM -- Hands-on -- DevOps](https://click.linksynergy.com/deeplink?id=2sb89XJC/EQ&mid=39197&murl=https%3A%2F%2Fwww.udemy.com%2Fcourse%2Flearn-docker-advanced%2F)
|
||||||
|
- [Docker Swarm Mastery: DevOps Style Cluster Orchestration](https://click.linksynergy.com/deeplink?id=2sb89XJC/EQ&mid=39197&murl=https%3A%2F%2Fwww.udemy.com%2Fcourse%2Fdocker-swarm-mastery%2F)
|
||||||
|
```
|
533
zzzEgor/Linux/Fedora38.md
Normal file
533
zzzEgor/Linux/Fedora38.md
Normal file
|
@ -0,0 +1,533 @@
|
||||||
|
# Install Docker-ce
|
||||||
|
|
||||||
|
How do I install Docker CE on Debian 11/10?, How can I install Docker Compose on Debian 11/10 Linux system?. In this guide, I'll discuss a step by step installation of Docker and Docker Compose on Debian 11/10.
|
||||||
|
|
||||||
|
Docker is the most popular and widely used container runtime. It enables you to package and run your applications in isolated containers in a single server or cluster of Linux servers orchestrated by Kubernetes and similar tools.
|
||||||
|
|
||||||
|
## Docker Editions
|
||||||
|
|
||||||
|
There are two editions of Docker available.
|
||||||
|
|
||||||
|
- **Community Edition (CE)**: ideal for individual developers and small teams looking to get started with Docker and experimenting with container-based apps.
|
||||||
|
- **Enterprise Edition (EE)**: Designed for enterprise development and IT teams who build, ship, and run business-critical applications in production at scale.
|
||||||
|
|
||||||
|
This guide will cover installation of Docker CE on Debian 10 / Debian 11 Linux. But let's first look at common docker terminologies.
|
||||||
|
|
||||||
|
## Docker Components / Terminologies
|
||||||
|
|
||||||
|
Below are commonly used terminologies in Docker ecosystem.
|
||||||
|
|
||||||
|
- **Docker daemon**: This is also called Docker Engine, it is a background process which runs on the host system responsible for building and running of containers.
|
||||||
|
- **Docker Client**: This is a command line tool used by the user to interact with the Docker daemon.
|
||||||
|
- **Docker Image**: An image is an immutable file that's essentially a snapshot of a container. A docker image has a file system and application dependencies required for running applications.
|
||||||
|
- **Docker container**: This is a running instance of a docker image with an application and its dependencies. Each container has a unique process ID and isolated from other containers. The only thing containers share is the Kernel.
|
||||||
|
- **Docker registry**: This is an application responsible for managing storage and delivery of Docker container images. It can be private or public.
|
||||||
|
|
||||||
|
# Install Docker CE on Debian 11 (Bullseye) / Debian 10 (Buster)
|
||||||
|
|
||||||
|
Follow the steps covered in the next parts of this article to install and use Docker CE on Debian 11/10.
|
||||||
|
|
||||||
|
## Step 1: Install Dependency packages
|
||||||
|
|
||||||
|
Start the installation by ensuring that all the packages used by docker as dependencies are installed.
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo apt update
|
||||||
|
sudo apt -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common
|
||||||
|
```
|
||||||
|
|
||||||
|
## Step 2: Add Docker's official GPG key:
|
||||||
|
|
||||||
|
Import Docker GPG key used for signing Docker packages.
|
||||||
|
|
||||||
|
```
|
||||||
|
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/docker-archive-keyring.gpg
|
||||||
|
```
|
||||||
|
|
||||||
|
## Step 3: Add the Docker repository to Debian 10 / Debian 11
|
||||||
|
|
||||||
|
Add Docker repository which contain the latest stable releases of Docker CE.
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo add-apt-repository\
|
||||||
|
"deb [arch=amd64] https://download.docker.com/linux/debian\
|
||||||
|
$(lsb_release -cs)\
|
||||||
|
stable"
|
||||||
|
```
|
||||||
|
|
||||||
|
This command will add the line shown in `/etc/apt/sources.list` file.
|
||||||
|
|
||||||
|
## Step 4: Install Docker & Docker Compose on Debian 11/10
|
||||||
|
|
||||||
|
Update the `apt` package index.
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo apt update
|
||||||
|
```
|
||||||
|
|
||||||
|
To install Docker CE on Debian, run the command:
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo apt install docker-ce docker-ce-cli containerd.io -y
|
||||||
|
```
|
||||||
|
|
||||||
|
Start and enable docker service:
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo systemctl enable --now docker
|
||||||
|
```
|
||||||
|
|
||||||
|
This installation will add `docker` group to the system without any users. Add your user account to the group to run docker commands as non-privileged user.
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo usermod -aG docker $USER
|
||||||
|
newgrp docker
|
||||||
|
```
|
||||||
|
|
||||||
|
Check docker and compose version.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ docker version
|
||||||
|
Client: Docker Engine - Community
|
||||||
|
Version: 20.10.17
|
||||||
|
API version: 1.41
|
||||||
|
Go version: go1.17.11
|
||||||
|
Git commit: 100c701
|
||||||
|
Built: Mon Jun 6 23:03:17 2022
|
||||||
|
OS/Arch: linux/amd64
|
||||||
|
Context: default
|
||||||
|
Experimental: true
|
||||||
|
|
||||||
|
Server: Docker Engine - Community
|
||||||
|
Engine:
|
||||||
|
Version: 20.10.17
|
||||||
|
API version: 1.41 (minimum version 1.12)
|
||||||
|
Go version: go1.17.11
|
||||||
|
Git commit: a89b842
|
||||||
|
Built: Mon Jun 6 23:01:23 2022
|
||||||
|
OS/Arch: linux/amd64
|
||||||
|
Experimental: false
|
||||||
|
containerd:
|
||||||
|
Version: 1.6.6
|
||||||
|
GitCommit: 10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
|
||||||
|
runc:
|
||||||
|
Version: 1.1.2
|
||||||
|
GitCommit: v1.1.2-0-ga916309
|
||||||
|
docker-init:
|
||||||
|
Version: 0.19.0
|
||||||
|
GitCommit: de40ad0
|
||||||
|
```
|
||||||
|
|
||||||
|
Log out and log back in so that your group membership is re-evaluated.
|
||||||
|
|
||||||
|
```
|
||||||
|
exit
|
||||||
|
```
|
||||||
|
|
||||||
|
### Install Docker Compose on Debian
|
||||||
|
|
||||||
|
Use the guide below to install latest Docker Compose on Debian 10 / Debian 11
|
||||||
|
|
||||||
|
- [How To Install Latest Docker Compose on Linux](https://computingforgeeks.com/how-to-install-latest-docker-compose-on-linux/)
|
||||||
|
|
||||||
|
## Step 5: Test Docker installation
|
||||||
|
|
||||||
|
Run a test docker container:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ docker run --rm -it --name test alpine:latest /bin/sh
|
||||||
|
latest: Pulling from library/alpine
|
||||||
|
2408cc74d12b: Pull complete
|
||||||
|
Digest: sha256:686d8c9dfa6f3ccfc8230bc3178d23f84eeaf7e457f36f271ab1acc53015037c
|
||||||
|
Status: Downloaded newer image for alpine:latest
|
||||||
|
|
||||||
|
/ # cat /etc/os-release
|
||||||
|
NAME="Alpine Linux"
|
||||||
|
ID=alpine
|
||||||
|
VERSION_ID=3.16.0
|
||||||
|
PRETTY_NAME="Alpine Linux v3.16"
|
||||||
|
HOME_URL="https://alpinelinux.org/"
|
||||||
|
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
|
||||||
|
|
||||||
|
/ # exit
|
||||||
|
```
|
||||||
|
|
||||||
|
## Step 6: Test Docker Compose installation.
|
||||||
|
|
||||||
|
Create a test Docker Compose file.
|
||||||
|
|
||||||
|
```
|
||||||
|
vim docker-compose.yml
|
||||||
|
```
|
||||||
|
|
||||||
|
Add below data to the file.
|
||||||
|
|
||||||
|
```
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
web:
|
||||||
|
image: nginx:latest
|
||||||
|
ports:
|
||||||
|
- "8080:80"
|
||||||
|
links:
|
||||||
|
- php
|
||||||
|
php:
|
||||||
|
image: php:7-fpm
|
||||||
|
```
|
||||||
|
|
||||||
|
Start service containers.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ docker-compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
Output:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Show running Containers
|
||||||
|
|
||||||
|
```
|
||||||
|
$ docker-compose ps
|
||||||
|
```
|
||||||
|
|
||||||
|
Destroy containers
|
||||||
|
|
||||||
|
````
|
||||||
|
$ docker-compose stop
|
||||||
|
$ docker-compose rm
|
||||||
|
Going to remove vagrant_web_1, vagrant_php_1
|
||||||
|
Are you sure? [yN] y
|
||||||
|
Removing vagrant_web_1 ... done
|
||||||
|
Removing vagrant_php_1 ... done
|
||||||
|
```wg-easy
|
||||||
|
-------
|
||||||
|
|
||||||
|
> [!INFO] You can try it after the successful installation of docker
|
||||||
|
|
||||||
|
````
|
||||||
|
|
||||||
|
docker run -d\
|
||||||
|
--name=wg-easy\
|
||||||
|
-e WG*HOST=***89.43.107.97**_\
|
||||||
|
-e PASSWORD= _**DeinPasswort**\_\
|
||||||
|
-v ~/.wg-easy:/etc/wireguard\
|
||||||
|
-p 51820:51820/udp\
|
||||||
|
-p 51821:51821/tcp\
|
||||||
|
--cap-add=NET_ADMIN\
|
||||||
|
--cap-add=SYS_MODULE\
|
||||||
|
--sysctl="net.ipv4.conf.all.src_valid_mark=1"\
|
||||||
|
--sysctl="net.ipv4.ip_forward=1"\
|
||||||
|
--restart unless-stopped\
|
||||||
|
weejewel/wg-easy
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
You have successfully installed Docker on Debian 10 / Debian 11 Linux. Go through Official[ Docker documentation](https://docs.docker.com/) and [Docker Compose documentation](https://docs.docker.com/compose/) to learn more.
|
||||||
|
|
||||||
|
Setup Docker UI (Optional)
|
||||||
|
--------------------------
|
||||||
|
|
||||||
|
If you need a UI management console for Docker hosts and containers, checkout Portainer.
|
||||||
|
Installation
|
||||||
|
============
|
||||||
|
|
||||||
|
Nach der Erstellung des USB-Sticks sollten Sie folgende Schritte befolgen:
|
||||||
|
|
||||||
|
1. Im BIOS den Secure Boot deaktivieren und die Virtualisierung aktivieren (falls noch nicht aktiviert).
|
||||||
|
2. Booten Sie von dem USB-Stick mit der Live-ISO.
|
||||||
|
3. Wählen Sie die Systemsprache, Tastatur-Layout und die Zeit-Zone aus.
|
||||||
|
4. Bei der Auswahl des Speichers, auf dem das System installiert werden soll, wählen Sie die Festplatte aus und kreuzen Sie den untenstehenden Punkt an:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Nach diesen Schritten werden Sie auf die nächste Seite weitergeleitet. Hier können Sie auswählen, ob Sie die Festplatte verschlüsseln wollen und welches Dateisystem Sie verwenden möchten. Da ich [*Timeshift*](https://github.com/linuxmint/timeshift) nutzen will, empfehle ich Ihnen, das ***btrfs*** Dateisystem zu verwenden, da die Wiederherstellung dabei deutlich schneller ist.
|
||||||
|
|
||||||
|
> ***Bemerkung:***\
|
||||||
|
> Wenn Sie das Laufwerk verschlüsseln wollen, dann sollten Sie dabei folgendes beachten:
|
||||||
|
>
|
||||||
|
> - Beim Passworteingabe haben Sie immer noch die amerikanische Tastatur-Layout
|
||||||
|
> - Jedes Mal bei einem Neustart müssen Sie das Passwort eingeben
|
||||||
|
|
||||||
|
![[Pasted image 20230628100419.png]]
|
||||||
|
|
||||||
|
Klicken Sie wie auf dem Bild den markierten Text an, um die automatische Partitionierung durchzuführen. Damit ***Timeshift*** das Dateisystem lesen kann, sollten zwei Ordner umbenannt werden:
|
||||||
|
|
||||||
|
- Der Root-Ordner wird zu `@` umbenannt
|
||||||
|
- Der Home-Ordner wird zu `@home` umbenannt
|
||||||
|
|
||||||
|
Um den Ordner umzubenennen, gehen Sie wie folgt vor:
|
||||||
|
|
||||||
|
1. Klicken Sie auf den entsprechenden Ordner
|
||||||
|
2. Geben Sie unten rechts den korrekten Namen ein
|
||||||
|
3. Klicken Sie auf den Knopf `Einstellungen Übernehmen`
|
||||||
|
|
||||||
|
Nachdem Sie alles gemacht haben sollte es ungefähr so aussehen:\
|
||||||
|

|
||||||
|
|
||||||
|
Nach der Installation
|
||||||
|
=====================
|
||||||
|
|
||||||
|
Dunkler Modus
|
||||||
|
-------------
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark' # Legacy apps
|
||||||
|
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' # new apps
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Geräte-Namen ändern
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
Um den Geräte-Namen zu ändern öffnen Sie den Terminal und fügen Sie folgendes ein:
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
hostnamectl set-hostname <gereate-name>
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Ändern Sie den `<gereate-name>` durch den neuen Namen Ihres Gerätes. Zum Beispiel:
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
hostnamectl set-hostname inf-nb-tux01
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
dnf einstellen
|
||||||
|
--------------
|
||||||
|
|
||||||
|
Um das System ein wenig zu beschleunigen bearbeiten Sie den *dnf.conf*.\
|
||||||
|
Folgendes wurde geändert:
|
||||||
|
|
||||||
|
- Schnellere Installation (fastest_mirror, max_parallel_downloads)
|
||||||
|
- Immer Ja (defaultyes)
|
||||||
|
|
||||||
|
Die Option *defaultyes* erlaubt es mit der ENTER-Taste die Eingabe mit Ja bestätigen. Zum Beispiel: anstatt folgendes eintippen `sudo apt-get update -y` gibt ihr folgendes ein:\
|
||||||
|
`sudo apt-get update` und bestätigt es mit der ENTER-Taste
|
||||||
|
|
||||||
|
Ändern Sie den File wie folgend:
|
||||||
|
|
||||||
|
- Öffnen Sie den Terminal und geben Sie dies hinein: `sudo nano /etc/dnf/dnf.conf`
|
||||||
|
- Kopieren Sie den Text und ersetzen Sie ihn durch den folgenden Text:
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
[main]
|
||||||
|
gpgcheck=1
|
||||||
|
installonly_limit=3
|
||||||
|
clean_requirements_on_remove=True
|
||||||
|
best=False
|
||||||
|
skip_if_unavailable=True
|
||||||
|
fastestmirror=1
|
||||||
|
max_parallel_downloads=10
|
||||||
|
deltarpm=true
|
||||||
|
defaultyes=True
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
> ****Info****\
|
||||||
|
> Das Plugin `fastestmirror=1` kann manchmal kontraproduktiv sein. Verwenden Sie es nach eigenem Ermessen. Setzen Sie es auf `fastestmirror=0`, wenn Sie mit schlechten Download-Geschwindigkeiten konfrontiert sind. Viele Benutzer haben von besseren Download-Geschwindigkeiten berichtet, wenn das Plugin aktiviert ist. Daher ist es standardmäßig aktiviert.
|
||||||
|
|
||||||
|
Nvidia Treiber
|
||||||
|
--------------
|
||||||
|
|
||||||
|
Mit der Installation von den Nvidia-Treiber haben Sie die Möglichkeit auf die:
|
||||||
|
|
||||||
|
- Grafikbeschleunigung
|
||||||
|
- CUDA-Unterstützung
|
||||||
|
- Mehrere Monitorunterstützung
|
||||||
|
|
||||||
|
Sie können selber auswählen welche Treiber Sie wollen:
|
||||||
|
|
||||||
|
- Nouveau (Open-Source)
|
||||||
|
- Cuda (proprietär)
|
||||||
|
- RPM Fusion (proprietär)
|
||||||
|
|
||||||
|
Der Unterschied zwischen den genannten Treiberoptionen liegt in ihrer Quelle, Lizenzierung und den mitgelieferten Funktionen. Nouveau ist ein quellenoffener Treiber, der von der Linux-Community entwickelt wird und grundlegende Grafikkartenunterstützung bietet. Der CUDA-Treiber ist ein proprietärer Treiber von Nvidia, der speziell für CUDA-Berechnungen entwickelt wurde und die parallele Rechenleistung der Nvidia-GPUs voll ausschöpft. RPM Fusion bietet proprietäre Nvidia-Treiber als Teil seines Software-Repositories für RPM-basierte Linux-Distributionen an, um Benutzern den Zugriff auf die neuesten Treiberversionen zu ermöglichen.
|
||||||
|
|
||||||
|
### Cuda
|
||||||
|
|
||||||
|
Fügen Sie die Repository hinzu:
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
sudo dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/fedora37/x86_64/cuda-fedora37.repo
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Installieren Sie die Abhängigkeiten:
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
sudo dnf install -y kernel-headers kernel-devel tar bzip2 make automake gcc gcc-c++ pciutils elfutils-libelf-devel libglvnd-opengl libglvnd-glx libglvnd-devel acpid pkgconfig dkms
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Installieren Sie die Treiber:
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
sudo dnf module install -y nvidia-driver:latest-dkms
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
### RPM Fusion
|
||||||
|
|
||||||
|
RPM Fusion ermöglicht den Zugriff auf nicht-freie Softwarepakete, die in den offiziellen Fedora-Repositories aus rechtlichen oder lizenztechnischen Gründen nicht verfügbar sind. Dazu gehören proprietäre Treiber, Codecs für Multimedia-Wiedergabe, bestimmte Anwendungen und Erweiterungen. Um die RPM zu installieren und zu aktivieren:
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Appstream Metadaten
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
[AppStream](https://www.freedesktop.org/wiki/Distributions/AppStream/) verwendet ein XML-basiertes Datenformat, um Metadaten für Anwendungen zu definieren. Diese Metadaten umfassen Informationen wie Anwendungsnamen, Beschreibungen, Kategorien, Lizenzen, Entwicklerdetails, Abhängigkeiten, unterstützte Sprachen und mehr. Die Metadaten dienen dazu, Benutzern umfassende Informationen über verfügbare Anwendungen bereitzustellen.
|
||||||
|
|
||||||
|
Um den App-Stream-Metadaten auf den neuesten Stand zu bringen, geben Sie folgendes in den Terminal ein:
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
sudo dnf groupupdate core
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Update
|
||||||
|
------
|
||||||
|
|
||||||
|
Um dein System zu *aktualisieren*:
|
||||||
|
|
||||||
|
- `sudo dnf update -y`
|
||||||
|
|
||||||
|
Um dein System zu *upgraden*:
|
||||||
|
|
||||||
|
- `sudo dnf upgrade -y`
|
||||||
|
|
||||||
|
Um Änderungen anzuwenden, neue Module zu laden und alte Module zu entladen:
|
||||||
|
|
||||||
|
- `sudo reboot`
|
||||||
|
|
||||||
|
***Oneliner:***
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
sudo dnf update -y && sudo dnf upgrade -y && sudo reboot
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Firmware ([fwupd](https://wiki.archlinux.org/title/Fwupd))
|
||||||
|
----------------------------------------------------------
|
||||||
|
|
||||||
|
Wenn Ihr System Firmware-Update durch lvfs unterstützt, updaten Sie ihr Gerät mithilfe wie folgt:
|
||||||
|
|
||||||
|
- Den Firmware-Update Dienst herunterladen:\
|
||||||
|
`sudo dnf install fwupd`
|
||||||
|
|
||||||
|
- Den fwupd.service starten und beim Start ausführen:\
|
||||||
|
`sudo systemctl start fwupd`\
|
||||||
|
`sudo systemctl enable fwupd`
|
||||||
|
|
||||||
|
- Um alle Geräte anzuzeigen, die von fwupd erkennt worden sind:\
|
||||||
|
`sudo fwupdmgr get-devices`
|
||||||
|
|
||||||
|
- Um die neusten Metadaten herunterzuladen:\
|
||||||
|
`sudo fwupdmgr refresh --force`
|
||||||
|
|
||||||
|
- Zur Auflistung der verfügbaren Updates für alle Geräte auf dem System:\
|
||||||
|
`sudo fwupdmgr get-updates`
|
||||||
|
|
||||||
|
- Um alle Updates zu installieren:\
|
||||||
|
`sudo fwupdmgr update`
|
||||||
|
|
||||||
|
***Oneliner:***
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
sudo dnf install fwupd && sudo systemctl start fwupd && sudo systemctl enable fwupd && sudo fwupdmgr get-devices && sudo fwupdmgr refresh --force && sudo fwupdmgr get-updates && sudo fwupdmgr update
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Media Codecs
|
||||||
|
------------
|
||||||
|
|
||||||
|
Installieren Sie folgende Module um korrekte Multimedia Playback zu erhalten:
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
sudo dnf install gstreamer1-plugins-{bad-\*,good-\*,base} gstreamer1-plugin-openh264 gstreamer1-libav --exclude=gstreamer1-plugins-bad-free-devel
|
||||||
|
sudo dnf install lame\* --exclude=lame-devel
|
||||||
|
sudo dnf group upgrade --with-optional Multimedia
|
||||||
|
sudo dnf groupupdate multimedia sound-and-video
|
||||||
|
|
||||||
|
# Nur für Chrome-Benutzer
|
||||||
|
|
||||||
|
# sudo dnf swap chromium chromium-freeworld --allowerasing
|
||||||
|
|
||||||
|
sudo dnf install ffmpeg-libs
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
### Weitere Verbesserungs-Möglichkeiten
|
||||||
|
|
||||||
|
- [Video I/O hardware acceleration, Video Decoding with VA-API](https://github.com/opencv/opencv/wiki/Video-IO-hardware-acceleration)
|
||||||
|
- [OpenH264 für Firefox](https://docs.fedoraproject.org/de/quick-docs/openh264/)
|
||||||
|
|
||||||
|
Update Flatpak
|
||||||
|
--------------
|
||||||
|
|
||||||
|
Fedora 38 kommt mit Flatpak schon vorinstalliert, aber nicht aktiviert. Fügen Sie folgende Befehle aus, um flathub repo zu aktivieren und flatpak auf den neusten Stand bringen:
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
flatpak remote-delete flathub
|
||||||
|
flatpak remote-delete fedora
|
||||||
|
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
|
flatpak update
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Tools
|
||||||
|
-----
|
||||||
|
|
||||||
|
- Für komprimierte Files (7z, rar):\
|
||||||
|
`sudo dnf install -y unzip p7zip p7zip-plugins unrar`
|
||||||
|
- Für GNOME:\
|
||||||
|
`sudo dnf install -y gnome-tweaks gnome-network-displays`
|
||||||
|
- Für Fedora:\
|
||||||
|
`sudo dnf install -y packageKit timeshift grub-customizer dconf-editor`
|
||||||
|
- Von Flatpak:\
|
||||||
|
`sudo flatpak install -y com.mattjakeman.ExtensionManager com.github.tchx84.Flatseal`
|
||||||
|
|
||||||
|
Thema [Optional]
|
||||||
|
----------------
|
||||||
|
|
||||||
|
### Icons und Zeiger
|
||||||
|
|
||||||
|
- [Oxygen-Cursors](https://github.com/wo2ni/Oxygen-Cursors)
|
||||||
|
- [Papirus Icon Theme]](<https://github.com/PapirusDevelopmentTeam/papirus-icon-theme>)
|
||||||
|
|
||||||
|
### Thema in Flatpaks nutzen
|
||||||
|
|
||||||
|
- `sudo flatpak override --filesystem=$HOME/.themes`
|
||||||
|
- `sudo flatpak override --env=GTK_THEME=my-theme`
|
||||||
|
- [How to Install Portainer Docker UI manager](https://computingforgeeks.com/install-docker-ui-manager-portainer/)
|
||||||
|
|
||||||
|
Monitoring Docker containers
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
Monitoring Docker containers can be achieved by using Monitoring tools such as [Netdata, Prometheus and Grafana](https://computingforgeeks.com/category/monitoring/). Below guide should also be helpful [Check Container container metrics with Ctop.](https://computingforgeeks.com/top-command-for-container-metrics/)
|
||||||
|
|
||||||
|
### Best Docker Learning Courses:
|
||||||
|
|
||||||
|
- [Docker Mastery: with Kubernetes +Swarm from a Docker Captain](https://click.linksynergy.com/deeplink?id=2sb89XJC/EQ&mid=39197&murl=https%3A%2F%2Fwww.udemy.com%2Fcourse%2Fdocker-mastery%2F)
|
||||||
|
- [Docker for the Absolute Beginner -- Hands On -- DevOps](https://click.linksynergy.com/deeplink?id=2sb89XJC/EQ&mid=39197&murl=https%3A%2F%2Fwww.udemy.com%2Fcourse%2Flearn-docker%2F)
|
||||||
|
- [Docker and Kubernetes: The Complete Guide](https://click.linksynergy.com/deeplink?id=2sb89XJC/EQ&mid=39197&murl=https%3A%2F%2Fwww.udemy.com%2Fcourse%2Fdocker-and-kubernetes-the-complete-guide%2F)
|
||||||
|
- [Docker -- SWARM -- Hands-on -- DevOps](https://click.linksynergy.com/deeplink?id=2sb89XJC/EQ&mid=39197&murl=https%3A%2F%2Fwww.udemy.com%2Fcourse%2Flearn-docker-advanced%2F)
|
||||||
|
- [Docker Swarm Mastery: DevOps Style Cluster Orchestration](https://click.linksynergy.com/deeplink?id=2sb89XJC/EQ&mid=39197&murl=https%3A%2F%2Fwww.udemy.com%2Fcourse%2Fdocker-swarm-mastery%2F)
|
||||||
|
```
|
234
zzzEgor/Proxmox/Guide-de.md
Normal file
234
zzzEgor/Proxmox/Guide-de.md
Normal file
|
@ -0,0 +1,234 @@
|
||||||
|
# Einführung in Proxmox
|
||||||
|
|
||||||
|
## Was ist Proxmox
|
||||||
|
|
||||||
|
Proxmox ist eine leistungsstarke und vielseitige Virtualisierungsplattform. Sie können sie verwenden, um virtuelle Maschinen und Container zu erstellen und zu verwalten. Mit einer integrierten Web-Benutzeroberfläche ist sie benutzerfreundlich und ermöglicht die einfache Konfiguration und Verwaltung Ihrer virtuellen Umgebungen. Speicher-, Update- und andere Funktionen sind direkt eingebaut, sodass Sie den vollen Funktionsumfang direkt aus der Box nutzen können.
|
||||||
|
|
||||||
|
## Was Sie benötigen, um anzufangen
|
||||||
|
|
||||||
|
Um Proxmox zu verwenden, benötigen Sie zunächst einen Server, der in der Lage ist, die Software auszuführen. Dies kann ein physischer Server, ein virtueller Server oder eine Cloud-Instanz sein. Ihre CPU muss Virtualisierung unterstützen und sollte ein 64-Bit-Prozessor sein. Das absolute Minimum an RAM für die Ausführung von Proxmox ist 1 GB, aber für den praktischen Einsatz werden oft mehr benötigt. Sie sollten auch den schnellsten Speicher verwenden, auf den Sie Zugriff haben, um die bestmögliche Performance zu erzielen. Eine Netzwerkkarte ist ebenfalls erforderlich, um Ihre virtuellen Maschinen und Container mit dem Netzwerk zu verbinden.
|
||||||
|
|
||||||
|
## Was kostet Proxmox
|
||||||
|
|
||||||
|
Proxmox selbst ist kostenlos. Sie können die Software herunterladen und auf Ihrem Server installieren, ohne Lizenzgebühren zu zahlen. Wenn Sie jedoch zusätzlichen Support benötigen, können Sie diesen erwerben. Der Erwerb von Support für Proxmox bietet auch Zugang zum Enterprise Repository, das zusätzliche Funktionen und Verbesserungen bietet.
|
||||||
|
|
||||||
|
## Wo können Sie Hilfe bekommen
|
||||||
|
|
||||||
|
Wenn Sie auf Probleme stoßen oder Fragen zur Verwendung von Proxmox haben, gibt es verschiedene Ressourcen, die Sie nutzen können. Das [Proxmox Wiki](https://pve.proxmox.com/wiki) bietet eine Fülle von Informationen und Anleitungen zur Verwendung der Software. Die [Proxmox-Community](https://forum.proxmox.com) ist auch ein ausgezeichneter Ort, um Hilfe zu suchen. Sie können Fragen im Forum stellen und von der Erfahrung und dem Wissen anderer Proxmox-Benutzer profitieren.\
|
||||||
|
Eine weitere Quelle wäre die [Anleitung](https://technotim.live/categories/proxmox/) des YouTubers Techno-Tim.
|
||||||
|
|
||||||
|
# Installationsprozess
|
||||||
|
|
||||||
|
- Laden Sie zunächst das [Proxmox Virtual Environment](https://www.proxmox.com/de/downloads) (auch als Proxmox VE bezeichnet) herunter.
|
||||||
|
|
||||||
|
- Erstellen Sie einen bootfähigen USB-Stick mit Hilfe eines USB-Imager-Tools wie z.B. [Rufus](https://rufus.ie/de/) oder [Balena Etcher](https://etcher.balena.io/)
|
||||||
|
|
||||||
|
- Schalten Sie das Gerät aus und booten Sie in die BIOS-Einstellungen
|
||||||
|
|
||||||
|
- Stellen Sie sicher, dass Secure-Boot deaktiviert und die Virtualisierung aktiviert ist
|
||||||
|
|
||||||
|
- Booten Sie von Proxmox Bei der Installation haben Sie zwei Möglichkeiten:
|
||||||
|
|
||||||
|
- UI-Installation (empfohlen)
|
||||||
|
|
||||||
|
- Konsolenbasierte Installation
|
||||||
|
|
||||||
|
- Akzeptieren Sie die EULA (END USER LICENSE AGREEMENT)
|
||||||
|
|
||||||
|
- Wählen Sie die Festplatte aus, auf der das Betriebssystem installiert werden soll
|
||||||
|
|
||||||
|
- Unter dem Button "Optionen" können Sie weitere Installationsmöglichkeiten auswählen Wählen Sie das passende Dateisystem:
|
||||||
|
|
||||||
|
> [!INFO]+
|
||||||
|
>
|
||||||
|
> - **Ext4:** Wenn Sie alles auf ==einer Festplatte== installieren möchten
|
||||||
|
> - **XFS:** Wenn für Sie eine ==50 TiB== Festplatte ==nicht ausreicht==
|
||||||
|
> - **ZFS:** Wenn Sie ==mehr als 32 GB RAM== zur Verfügung haben und das System auf mehreren Festplatten installieren möchten
|
||||||
|
> - **BTRFS:** Vor allem, wenn Sie ==Timeshift== nutzen möchten
|
||||||
|
|
||||||
|
- Stellen Sie sicher, dass die Zeitzone sowie das Tastaturlayout korrekt eingestellt sind
|
||||||
|
- Erstellen Sie ein sicheres Passwort und geben Sie, falls Sie später Support benötigen, Ihre korrekte E-Mail-Adresse an
|
||||||
|
- Bei der MNC (Management Network Configuration) können Sie die Netzwerkkarte auswählen, über die Proxmox erreichbar sein soll
|
||||||
|
- Mit dem Hostnamen können Sie den Namen eingeben, unter dem das Gerät erreichbar sein soll
|
||||||
|
- Ein wenig weiter haben Sie die Optionen für die IP-Adresse (falls Sie bereits einen DHCP-Server haben, werden einige Einstellungen bereits vorgeschlagen). Wählen Sie die passende IP-Adresse und das richtige Subnetz, sowie das Gateway und den DNS-Server.
|
||||||
|
- Danach sollten Sie einen vollständigen Überblick über die gesamte Konfiguration haben.
|
||||||
|
- Nach der Installation sollte der Server automatisch neu starten. Nun sollten Sie Ihren Proxmox-Server unter der vergebenen IP-Adresse mit einem HTTPS-Protokoll auf Port 8006 finden.
|
||||||
|
|
||||||
|
Die Eingabe sollte ungefähr so aussehen: [https://10.0.0.10:8006](https://wiki.zenndev.xyz/de/zzzEgor/Proxmox/Guide_DE)
|
||||||
|
|
||||||
|
- Der Browser sollte eine automatische Fehlermeldung anzeigen. Keine Sorge, es ist nichts Gefährliches. Klicken Sie auf `Erweitert` -> `Risiko akzeptieren und fortfahren`.
|
||||||
|
- Melden Sie sich an: Der Benutzername sollte "root" sein und das Passwort ist das, das Sie zuvor festgelegt haben.
|
||||||
|
|
||||||
|
# Übersicht über die Web-Konsole
|
||||||
|
|
||||||
|
Für eine genauere Übersicht über die Web-UI, schauen Sie sich folgendes [Video](https://www.youtube.com/watch?v=1PGRpx7xgmo&list=PLT98CRl2KxKHnlbYhtABg6cF50bYa8Ulo&index=3) an.
|
||||||
|
|
||||||
|
# Erste Schritte nach der Installation
|
||||||
|
|
||||||
|
## Update Repo aktualisieren
|
||||||
|
|
||||||
|
- Unter `pve` -> `Updates` -> `Repositories`:
|
||||||
|
- pve-enterprise repo deaktivieren
|
||||||
|
- ceph-quincy enterprise repo deaktivieren
|
||||||
|
- No-Subscription repo hinzufügen
|
||||||
|
- Ceph Quincy No-Subscription repo hinzufügen
|
||||||
|
- Um die deaktivierte Repositories endgültig zu löschen gehen Sie ins Terminal und fügen Sie folgendes ein:
|
||||||
|
|
||||||
|
```
|
||||||
|
cd /etc/apt/sources.list.d
|
||||||
|
rm ceph.list pve-enterprise.list
|
||||||
|
cd /root
|
||||||
|
```
|
||||||
|
|
||||||
|
Führen Sie ein Update durch. Mit folgendem Befehl können Sie das System updaten, upgraden und neustarten (dies braucht es manchmal, um die alte Pakete zu deinstallieren und neue zu installieren)
|
||||||
|
|
||||||
|
```
|
||||||
|
apt update -y && apt upgrade -y && reboot
|
||||||
|
```
|
||||||
|
|
||||||
|
Nach dem Reboot stellen Sie sicher, dass alle unwichtige/ungenutzte Pakete gelöscht werden:
|
||||||
|
|
||||||
|
```
|
||||||
|
apt autoremove
|
||||||
|
```
|
||||||
|
|
||||||
|
## Meldung 'No Valid Subscription' entfernen
|
||||||
|
|
||||||
|
- Wechseln Si ein das Arbeitsverzeichnis\
|
||||||
|
`cd /usr/share/javascript/proxmox-widget-toolkit`
|
||||||
|
|
||||||
|
- Erstellen Sie eine Sicherungskopie\
|
||||||
|
`cp proxmoxlib.js proxmoxlib.js.bak`
|
||||||
|
|
||||||
|
- Bearbeiten Sie die Datei\
|
||||||
|
`nano proxmoxlib.js`
|
||||||
|
|
||||||
|
- Suchen Sie den folgenden Code
|
||||||
|
|
||||||
|
```
|
||||||
|
Ext.Msg.show({
|
||||||
|
title: gettext('No valid subscription'),
|
||||||
|
```
|
||||||
|
|
||||||
|
> [!Tipp]+\
|
||||||
|
> Verwenden Sie CTRL+W in Nano und suchen Sie nach "No valid subscription"
|
||||||
|
|
||||||
|
Ersetzen Sie "Ext.Msg.show" durch "void", danach soll es ca. so aussehen:
|
||||||
|
|
||||||
|
```
|
||||||
|
void({ //Ext.Msg.show({
|
||||||
|
title: gettext('No valid subscription'),
|
||||||
|
```
|
||||||
|
|
||||||
|
- Starten Sie den Proxmox Web-Service neu\
|
||||||
|
`systemctl restart pveproxy.service`
|
||||||
|
|
||||||
|
> [!Info]\
|
||||||
|
> Vergewissern Sie sich, dass Sie den Cache Ihres Web-Browsers löschen, möglicherweise müssen Sie Ihren Browser neu starten
|
||||||
|
|
||||||
|
- Um zu überprüfen, ob die Änderung vorgenommen wurde:
|
||||||
|
|
||||||
|
```
|
||||||
|
grep -n -B 1 'No valid sub' proxmoxlib.js
|
||||||
|
```
|
||||||
|
|
||||||
|
## Vergrößern Sie die lokale Festplatte auf die volle Kapazität
|
||||||
|
|
||||||
|
> [!info]
|
||||||
|
>
|
||||||
|
> - nur, wenn Sie mehr als ein Laufwerk haben
|
||||||
|
> - sehr nützlich für mehr Speicher auf dem Hauptlaufwerk
|
||||||
|
|
||||||
|
- Unter `Datacenter` -> `Storage`: löschen Sie die local-lvm Partitionen
|
||||||
|
|
||||||
|
Mit Folgendem Befehl löschen Sie die local-lvm Partition vollständig:
|
||||||
|
|
||||||
|
```
|
||||||
|
lvremove /dev/pve/data -y
|
||||||
|
```
|
||||||
|
|
||||||
|
Vergrößern der Haupt-Partition:
|
||||||
|
|
||||||
|
```
|
||||||
|
lvresize -l +100%FREE /dev/pve/root
|
||||||
|
resize2fs /dev/mapper/pve-root
|
||||||
|
```
|
||||||
|
|
||||||
|
## Speicher
|
||||||
|
|
||||||
|
Wenn Sie Speicher haben, auf dem Partitionen vorhanden sind und Sie diese löschen wollen:
|
||||||
|
|
||||||
|
```
|
||||||
|
fdisk /dev/sda
|
||||||
|
```
|
||||||
|
|
||||||
|
Dort können Sie angeben, welche Disk Sie auswählen wollen und danach können Sie mit:
|
||||||
|
|
||||||
|
- **_P_** -> Partition auflisten
|
||||||
|
- **_D_** -> Löschen
|
||||||
|
- **_W_** -> Schreiben
|
||||||
|
|
||||||
|
## SMART Monitoring überprüfen
|
||||||
|
|
||||||
|
```
|
||||||
|
smartctl -a /dev/sda
|
||||||
|
```
|
||||||
|
|
||||||
|
## IOMMU (PCI Passthrough)
|
||||||
|
|
||||||
|
```
|
||||||
|
nano /etc/kernel/cmdline
|
||||||
|
```
|
||||||
|
|
||||||
|
Fügen Sie _intel_iommu=on iommu=pt_ am Ende dieser Zeile ohne Zeilenumbrüche hinzu
|
||||||
|
|
||||||
|
```
|
||||||
|
root=ZFS=rpool/ROOT/pve-1 boot=zfs intel_iommu=on iommu=pt
|
||||||
|
```
|
||||||
|
|
||||||
|
Bearbeiten Sie _/etc/modules_
|
||||||
|
|
||||||
|
```
|
||||||
|
vfio
|
||||||
|
vfio_iommu_type1
|
||||||
|
vfio_pci
|
||||||
|
vfio_virqfd
|
||||||
|
```
|
||||||
|
|
||||||
|
Führen Sie folgendes aus:
|
||||||
|
|
||||||
|
```
|
||||||
|
update-initramfs -u -k all
|
||||||
|
```
|
||||||
|
|
||||||
|
Damit die Einstellungen in Kraft treten, muss man das Gerät neu starten
|
||||||
|
|
||||||
|
```
|
||||||
|
reboot
|
||||||
|
```
|
||||||
|
|
||||||
|
# VMs oder Container?
|
||||||
|
|
||||||
|
# Starten von virtuellen Maschinen
|
||||||
|
|
||||||
|
# Erstellen von VM-Vorlagen
|
||||||
|
|
||||||
|
# Starten von Containern
|
||||||
|
|
||||||
|
# Erstellen von Container-Vorlagen
|
||||||
|
|
||||||
|
# Verwaltung von Benutzern
|
||||||
|
|
||||||
|
# Backups und Snapshots
|
||||||
|
|
||||||
|
# Integrierte Firewall
|
||||||
|
|
||||||
|
# Befehlszeilenschnittstelle
|
||||||
|
|
||||||
|
# Netzwerk
|
||||||
|
|
||||||
|
# Gemeinsam genutzter Speicher
|
||||||
|
|
||||||
|
# Clustering
|
||||||
|
|
||||||
|
# [¶](https://wiki.zenndev.xyz/de/zzzEgor/Proxmox/Guide_DE#hochverfügbarkeit-high-availability-ha) Hochverfügbarkeit (High Availability / HA)
|
19
zzzEgor/Proxmox/LXC/Download.md
Normal file
19
zzzEgor/Proxmox/LXC/Download.md
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
The main distributions are available under: **_Node>local>CT Templates>Templates_**
|
||||||
|
|
||||||
|
The containers with applications are available under:
|
||||||
|
|
||||||
|
```
|
||||||
|
pveam update && pveam available
|
||||||
|
```
|
||||||
|
|
||||||
|
to download:
|
||||||
|
|
||||||
|
```
|
||||||
|
pveam download local debian-10-turnkey-wireguard_16.2-1_amd64.tar.gz
|
||||||
|
```
|
||||||
|
|
||||||
|
to list all downloaded container:
|
||||||
|
|
||||||
|
```
|
||||||
|
pveam list local
|
||||||
|
```
|
32
zzzEgor/Proxmox/LXC/Update.md
Normal file
32
zzzEgor/Proxmox/LXC/Update.md
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
### Code:
|
||||||
|
|
||||||
|
```
|
||||||
|
#!/bin/bash
|
||||||
|
# update all containers
|
||||||
|
|
||||||
|
# list of container ids we need to iterate through
|
||||||
|
containers=$(pct list | tail -n +2 | cut -f1 -d' ')
|
||||||
|
|
||||||
|
function update_container() {
|
||||||
|
container=$1
|
||||||
|
echo "[Info] Updating $container"
|
||||||
|
# to chain commands within one exec we will need to wrap them in bash
|
||||||
|
pct exec $container -- bash -c "apt update && apt upgrade -y && apt autoremove -y"
|
||||||
|
}
|
||||||
|
|
||||||
|
for container in $containers
|
||||||
|
do
|
||||||
|
status=`pct status $container`
|
||||||
|
if [ "$status" == "status: stopped" ]; then
|
||||||
|
echo [Info] Starting $container
|
||||||
|
pct start $container
|
||||||
|
echo [Info] Sleeping 5 seconds
|
||||||
|
sleep 5
|
||||||
|
update_container $container
|
||||||
|
echo [Info] Shutting down $container
|
||||||
|
pct shutdown $container &
|
||||||
|
elif [ "$status" == "status: running" ]; then
|
||||||
|
update_container $container
|
||||||
|
fi
|
||||||
|
done; wait
|
||||||
|
```
|
Loading…
Add table
Add a link
Reference in a new issue