Kali linux recovery mode

HackWare.ru

Этичный хакинг и тестирование на проникновение, информационная безопасность

Как в Kali Linux загрузиться без графического интерфейса

Консоль (командная строка) доступна в любом дистрибутиве Linux. Но некоторым продвинутые пользователи могут пойти дальше и изначально загружаться в интерфейс командной строки без графической оболочки.

Преимущества работы в текстовом режиме

Начать нужно с того, что текстовый режим подходит только для тех, кто действительно понимает, зачем он ему нужен. Или понимает, почему не нужно графическое окружение рабочего стола. Этот режим подойдёт только для продвинутых пользователей.

  1. Быстрая загрузка
  2. Меньшее потребление ресурсов (например, в графическом интерфейсе без запущенных приложений занято 793 мегабайт оперативной памяти, а в текстовом режиме занято меньше 100 мегабайт оперативной памяти)

Недостатки текстового режима

  1. Невозможно запустить программы с графическим интерфейсом
  2. Невозможно использовать видеодрайверы
  3. Невозможно открыть несколько консолей одновременно
  4. При необходимости редактирования файлов нужно уметь пользоваться консольными редакторами (vim, nano и т. д.)
  5. Не будут работать гостевые дополнения VirtualBox

В общем, этот режим только для тех, кто действительно понимает для чего им это нужно. Также этот режим может понадобиться для восстановления системы или исправления проблем. Для веб-серверов текстовый режим является стандартом.

Есть как минимум 3 разных варианта загрузки в текстовый интерфейс. Они различаются тем, остаются ли сделанные изменения после перезагрузки или пропадают (имеются ввиду, в следующий раз будете ли вы опять загружены в текстовый интерфейс или в графический), а также вашими возможностями в этом режиме.

Recovery Mode

Этот режим уже есть в меню. Причём если вы загрузились в Recovery Mode, то при последующей перезагрузке откроется графическое окружение рабочего стола (если вы опять не выберите Recovery Mode).

При загрузке выберите Advanced options for Kali GNU/Linux

Затем Kali GNU/Linux, with Linux * (recovery mode).

Загрузка остановится на этапе консоли и там будет написано, что введите пароль root, либо нажмите CTRL+d для продолжения. Если ввести пароль root, то окажетесь загруженным в Kali Linux без графического интерфейса. Если нажать CTRL+d, то продолжится загрузка и откроется графический интерфейс.

Однопользовательский режим

Про однопользовательский режим вы можете прочитать здесь. Его особенность в том, что невозможно выполнить вход под каким-либо пользователем, кроме как root. Но зато не нужно вводить пароль для root — по этой причине данный режим обычно используется для восстановления забытого пароля администратора, но может использоваться и для других целей восстановления и обслуживания системы.

Чтобы прервать загрузку GRUB (первый шаг) во время запуска компьютера нажмите и удерживайте клавишу SHIFT – это работает всегда, даже на Linux Mint, где по умолчанию показ меню GRUB отключён.

Читайте также:  Установка загрузчика linux uefi

Остановите загрузку удерживая клавишу SHIFT при запуске компьютера, вы увидите:

Нажмите клавишу «e» и вы перейдёте к редактированию настроек загрузки:

На экране отсутствует нужная нам строка, пролистните курсорными клавишами вниз и найдите строку, начинающуюся с linux:

Перейдите в конец этой строки, поставьте пробел и допишите:

Должно получиться примерно так (номер ядра может отличаться):

Когда всё готово нажмите Ctrl+x или F10, чтобы загрузка продолжилась с установленными опциями.

Вы увидите приглашение оболочки, также обратите внимание, что мы вошли как root, т.е. у нас имеются повышенные привилегии, в том числе на использование команды passwd:

Перемонтируем файловую систему в режим чтения и записи:

и затем отключите питание компьютера/перезагрузите физической кнопкой.

После перезагрузки вы автоматически вернётесь в графический рабочий стол.

Постоянное переключение в текстовый интерфейс

Этот вариант позволит автоматически загружаться в консоль. Типичный случай использования: вы подключаетесь и работаете с вашей системой Linux по SSH, то есть вам на удалённой системе в любом случае не нужен графический интерфейс — он потребляет ресурсы, но вы не можете воспользоваться никакими его преимуществами. Поэтому вы можете переключиться в текстовый интерфейс, для того всего лишь выполните команду:

sudo systemctl set-default multi-user.target

После перезагрузки вы будете попадать в текстовый интерфейс.

Необходимо выполнить вход:

После входа вы можете использовать команды Linux, но не сможете запускать приложения с графическим интерфейсом:

Соскучились по графическому интерфейсу и хотите временно переключиться на него без перезагрузки? Нет ничего проще, просто введите команду:

sudo systemctl start display-manager.service

Надоел текстовый режим и хотите вновь насовсем вернуться в графический? Просто выполните команду:

sudo systemctl set-default graphical.target

И после перезагрузки вы вновь окажитесь в графическом окружении рабочего стола!

Источник

How to boot without a graphical interface in Kali Linux

The console (command line) is available on any Linux distribution. But some advanced users can go further and initially boot into the text mode without a graphical desktop.

Benefits of working in text mode

You need to start with the fact that the text mode is suitable only for those who really understand why he needs it. Or understands why he does not need a graphical desktop environment. This mode is suitable only for advanced users.

  1. Faster booting
  2. Less resource consumption (for example, in the graphical interface without running applications, 793 megabytes of RAM are occupied, and in text mode, less than 100 megabytes of RAM are occupied)

Text Mode Disadvantages

  1. Unable to start GUI programs
  2. Unable to use video drivers
  3. Unable to open multiple consoles at the same time
  4. If you need to edit files, you need to be able to use console editors (vim, nano, etc.)
  5. VirtualBox Guest Add-Ons will not work

In general, this mode is only for those who really understand why they need it. Also, this mode may be needed to restore the system or fix problems. For web servers, text mode is standard.

There are at least 3 different options for booting into a text interface. They differ in whether the changes made remain after the reboot or disappear (it means, next time your will again boot into the text interface or in the graphical interface), as well as your capabilities in this mode.

Читайте также:  Epson m200 linux driver

Recovery mode

This mode is already on the menu. Moreover, if you boot into Recovery Mode, then upon a subsequent reboot, the graphical desktop environment will open (if you do not select Recovery Mode again).

When booting, select Advanced options for Kali GNU/Linux →

Then select Kali GNU/Linux, with Linux * (recovery mode).

The download will stop at the console stage and it will prompt to enter the root password, or press CTRL+d to continue. If you enter the root password, you will be booted into Kali Linux without a graphical interface. If you press CTRL+d, the download will continue and the graphical interface will open.

Single user mode

In single-user mode its peculiarity is that it is impossible to log in as any user other than root. But then you do not need to enter a password for root – for this reason this mode is usually used to restore a forgotten administrator password, but can also be used for other purposes of system recovery and maintenance.

To interrupt the loading of GRUB (the first step) during startup of the computer, press and hold the SHIFT key — it works always, even on Linux Mint, where by default the GRUB menu display is disabled.

Stop the booting by holding the SHIFT key while starting the computer, you will see:

Press the «e» key and you will proceed to edit the boot settings:

On the screen there is no necessary line for us, swipe the cursor keys down and find the line starting with linux:

Go to the end of this line, type a space and add:

It should look something like this (the kernel number may differ):

When everything is ready, press Ctrl+x or F10 to continue booting with the set options.

You will see a shell prompt, also note that we are logged in as root, i.e. we have superuser privileges, including the use of the passwd command:

Let us remount the file system:

and then power off the computer/reboot with the physical button.

After rebooting, you will automatically return to the graphical desktop.

Permanent switching to the text interface

With this option your operating system will automatically load into the console. A typical use case: you connect and work with your Linux system via SSH, that is, you do not need a graphical interface on the remote system anyway – it consumes resources, but you cannot take advantage of it. Therefore, you can switch to the text interface, just run the command:

sudo systemctl set-default multi-user.target

After the reboot, you will be taken to the text interface.

After logging in, you can use Linux commands, but you will not be able to run GUI applications:

Are you missing the graphical interface and want to temporarily switch to it without rebooting? Nothing is simpler, just enter the command:

sudo systemctl start display-manager.service

Tired of text mode and want to once again permanently return to graphic? Just run the command:

sudo systemctl set-default graphical.target

And after rebooting, you will again find yourself in the graphical desktop environment!

Читайте также:  Linux перенос системы ssd

Источник

How to Reset Lost Password of Kali Linux?

TECHNIG

How to Reset Kali Linux Password 2018 Fast and Correctly?

This is what you need to easily reset the lost password of Kali Linux 2022.x just in one minute. Kali, the Linux-based Operating System and Swiss army knife of hackers which mostly used for penetration testing nowadays. This article may be important for penetration testers or those who are using Kali Linux for daily activity, such as ethical hacking, penetration testing, or students of information security fields.

How to Reset Lost Password of Kali Linux?

In this post, I will simply show you how to reset the forgotten password of Kali Linux and hope it helps you reset the lost password of Kali Linux easily. I have simply explained in the below step-by-step article or watch the video tutorial at the end of this post if you don’t like reading. So follow the Kali Linux 2.0 password reset article.

1. Boot your Kali system and let the GNU Grub page will appear.

Advanced options for Kali GNU Linux

2. On the GNU GRUB page selects the *Advanced options for Kali GNU/Linux option by down arrow key and pressing enter.

3. Now simply select the second Recovery mode option and press the E key to go to recovery mode of Kali Linux.

Kali Linux v2 Reset Lost Password

4. To modify it just change read-only mode (ro) to rw (write mode) and add init=/bin/bash like the below screenshot then press F10 to reboot the Kali Linux.

Kali Linux v2 GNU GRUB Recovery page

5. After rebooting the Kali Linux system, it will bring you the below screen to reset the Kali Linux password.

Reset Lost Password of Kali Linux

6. To reset the root password of the Kali Linux system, simply type “passwd root” and hit enter. Then type the new password twice for the root user. After successfully resetting Kali Linux’s lost password, you will see the success message*password update successfully*. Well reboot the system normally and log in with a newly changed password of the root user.

Reset Kali Linux Lost Password – Video Tutorial

If you don’t like to read the text, watch this video that shows you how to reset the forgotten password of Kali Linux just in two minutes.

Finally, I hope you can easily and simply reset Kali Linux lost password on your system. If you have any issues, please comment to us through the comment section. We are trying to help you more in order to learn Kali Linux or reset the root password.

Related Questions to Reset Kali Linux password

  • Reset root password Kali Linux
  • Forgot Kali Linux Password
  • Kali Linux Change Root Password
  • Kali Linux Root Password Recovery
  • How to reset Kali Linux password 2018
  • Default Kali Linux Username and Password
  • Factory Reset Kali Linux
  • Kali Linux Username and Password not Working
  • Forgot Kali Linux Password VirtualBox
  • Change Root Password Kali Linux

Источник

Оцените статью
Adblock
detector