Автор: sirius
Налаштування статичної маршрутизації на маршрутизаторі cisco (Setup static route in cisco routers)
Install Loki and start as service.
Download Loki: Allow exec permissions: Create Loki config file: Put code in the file: Config from here: https://raw.githubusercontent.com/grafana/loki/master/cmd/loki/loki-local-config.yaml Configure Loki as a service: Create user for Loki service: Create Loki service:
Create swap space on Ubuntu
ubuntu@local-goods:~$ sudo swapon -showubuntu@local-goods:~$ free -h ubuntu@local-goods:~$ df -h ubuntu@local-goods:~$ sudo fallocate -l 4G /swapfileubuntu@local-goods:~$ ls -lh /swapfile ubuntu@local-goods:~$ sudo chmod 600 /swapfileubuntu@local-goods:~$ ls -lh /swapfile ubuntu@local-goods:~$ sudo mkswap /swapfile ubuntu@local-goods:~$ sudo swapon /swapfileubuntu@local-goods:~$ sudo swapon –show ubuntu@local-goods:~$ free -h
How to grow partition in AWS instance
Currently 11Gb disk space added but now need to expand partition. 1. First, make sure you have growpart installed. It is usually part of the cloud-guest-utils package. You can install it using the package manager for your Linux distribution. For example, on Debian/Ubuntu-based systems, you can use: 2. After installing cloud-guest-utils, you can use the…
How to create local docker registry
To create a Docker local registry, you can follow these steps: Run the registry container: Open a terminal or command prompt and run the following command to start a local Docker registry container: docker run -d -p 5000:5000 –name local-registry registry:2 This command pulls the registry:2 image from Docker Hub and starts a container named…
Як додати image до JFrog artifactory
Реєструємось на JFrog, створюємо Docker рерозиторій. JForg підкаже як звязати ПК з репозиторієм. Далі тегаємо потрібний імідж: Наступний крок – це пушимо імідж: Тепер імідж доступний в нашому репозиторії
Доступ до Ubuntu 20.04 по RDP
sudo apt install xrdpsudo systemctl enable –now xrdpsudo ufw allow from any to any port 3389 proto tcp Якщо при підключенні чорний екран, редагуємо:/etc/xrdp/startwm.sh Добавляємо в файл:unset DBUS_SESSION_BUS_ADDRESSunset XDG_RUNTIME_DIR Сюди: reboot
Please select the geographic area in which you live. Subsequent configuration
questions will narrow this down by presenting a list of cities, representing
the time zones in which they are located.
Помилка зявляється під час зборки контейнера docker і встановлення туди postgres Фікситься кодом: ARG DEBIAN_FRONTEND=noninteractiveENV TZ=Europe/MoscowRUN apt-get install -y tzdata
Помилка зупинки контейнера: Error response from daemon: cannot stop container: 7cc567d9893e: permission denied
Вирішення журбинки з зупинкою контейнера, помилка Error response from daemon: cannot stop container: Фікситься командою:sudo aa-remove-unknown Тепер пробуємо ще раз зупинити контейнер: Все ок.