• Home
  • PS
  • C#
  • Perl
  • MSSQL
  • MariaDB
  • Linux
  • Docker
  • MacOS
  • PG
  • Exchange Server
  • Windows
  • Other

Switching boot target to text

Details
Written by: po3dno
Category: Linux
Created: 16 January 2025
Hits: 151

Switching boot target to text

The procedure is as follows to change into a text mode runlevel under systemd:

  1. Open the terminal application.
  2. For remote Linux servers, use the ssh command.
  3. Find which target unit is used by default:
    systemctl get-default
  4. To change boot target to the text mode:
    sudo systemctl set-default multi-user.target
  5. Reboot the system using the reboot command:
    sudo systemctl reboot

How to switch boot target to text or GUI in systemd Linux

How to switch boot target to GUI (graphical UI)

Want to revert change boot to GUI instead of console/text mode? Try:

  1. Open the Linux terminal application.
  2. Again, for remote Linux servers, use the ssh command.
  3. Find which target unit is used by default:
    systemctl get-default
  4. To change boot target to the GUI mode:
    sudo systemctl set-default graphical.target
  5. 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/

Как работают и создаются тома с bind и mount в Docker

Details
Written by: po3dno
Category: Linux
Created: 25 November 2024
Hits: 147

04 июня 2022


Создаем volume в Docker используя bind и mount на примерах


Запуская контейнер Docker нам может понадобится сохранить где-то данные или наоборот добавить их в контейнер. Для реализации этой задачи, в Docker, был создан объект томов и возможность проброса папок. Рассмотрим как это работает на примерах.

Read more …

Как работают и создаются тома с bind и mount в Docker

Details
Written by: po3dno
Category: Linux
Created: 25 November 2024
Hits: 157

04 июня 2022


Создаем volume в Docker используя bind и mount на примерах


Запуская контейнер Docker нам может понадобится сохранить где-то данные или наоборот добавить их в контейнер. Для реализации этой задачи, в Docker, был создан объект томов и возможность проброса папок. Рассмотрим как это работает на примерах.

Read more …

victoria-metrics

Details
Written by: po3dno
Category: Linux
Created: 20 November 2024
Hits: 173
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

How to Create LVM Partition Step-by-Step in Linux

Details
Written by: po3dno
Category: Linux
Created: 02 February 2023
Hits: 480

In this guide, we will cover how to create lvm partition step-by-step in Linux.

LVM stands for Logical Volume Management, it is the recommended way to manage disk or storage on Linux systems specially for servers. One of the main advantages of LVM partition is that we can extend its size online without any downtime. LVM partition can also be reduced but it is not recommended.

For the demo purpose, I have attached 15GB disk to my Ubuntu 22.04 system, we will create LVM partition on this disk from the command line.

Read more …

Subcategories

Docker

Login Form

  • Forgot your password?
  • Forgot your username?

Statistics

  • Users 2
  • Articles 164
  • Articles View Hits 148993