Запуская контейнер Docker нам может понадобится сохранить где-то данные или наоборот добавить их в контейнер. Для реализации этой задачи, в Docker, был создан объект томов и возможность проброса папок. Рассмотрим как это работает на примерах.
- Details
- Written by: po3dno
- Category: Linux
- Hits: 13
The repositories for older releases that are not supported get moved to an archive server. There are repositories available at http://old-releases.ubuntu.com.
First, back up this file:
sudo cp /etc/apt/sources.list{,.bak} # Older versions
sudo cp /etc/apt/sources.list.d/ubuntu.sources{,.bak} # Newer Ubuntu uses this file instead
In those files, replace "archive" and "security" in the URLs with "old-releases":
sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list{,.d/ubuntu.sources}
Finally, upgrade to a newer release:
sudo apt-get update && sudo apt-get dist-upgrade
- Details
- Written by: po3dno
- Category: Linux
- Hits: 197
Switching boot target to text
The procedure is as follows to change into a text mode runlevel under systemd:
- Open the terminal application.
- For remote Linux servers, use the ssh command.
- Find which target unit is used by default:
systemctl get-default - To change boot target to the text mode:
sudo systemctl set-default multi-user.target - Reboot the system using the reboot command:
sudo systemctl reboot
How to switch boot target to GUI (graphical UI)
Want to revert change boot to GUI instead of console/text mode? Try:
- Open the Linux terminal application.
- Again, for remote Linux servers, use the ssh command.
- Find which target unit is used by default:
systemctl get-default - To change boot target to the GUI mode:
sudo systemctl set-default graphical.target - Make sure you reboot the Linux box using the reboot command:
sudo reboot
How to boot in to rescue mode
Run the following systemctl command$ sudo systemctl rescue
We can change to a different systemd target unit in the current log in session using the CLI as follows:$ sudo systemctl isolate multi-user.target
# OR #
$ sudo systemctl isolate graphical.target
What would get started if I booted into a specific target?
The systemd can calculate the “initial” transaction it would execute on boot, try something like this to see what services and stuff loaded in the graphical.target:$ systemd --test --system --unit=graphical.target
The --test option is used to determine the initial start-up transaction, dump it, and exit without actually executing any of the determined jobs. How cool is that?
https://www.cyberciti.biz/faq/switch-boot-target-to-text-gui-in-systemd-linux/
- Details
- Written by: po3dno
- Category: Linux
- Hits: 190
04 июня 2022

Запуская контейнер Docker нам может понадобится сохранить где-то данные или наоборот добавить их в контейнер. Для реализации этой задачи, в Docker, был создан объект томов и возможность проброса папок. Рассмотрим как это работает на примерах.
- Details
- Written by: po3dno
- Category: Linux
- Hits: 215
mkdir -p /data/victoria-metrics-data
docker run -d -it --rm -v /data/victoria-metrics-data:/victoria-metrics-data -p 8428:8428 --name victoria-metrics victoriametrics/victoria-metrics
curl -v http://localhost:8428/metrics
