Ubuntu загружается в неправильный виртуальный терминал [dубликат]

Я предполагаю, что у вас есть кард-ридер Realtek

Загрузите драйвер Linux для своего устройства Realtek, например rts5159. Откройте новый сеанс терминала

Установите драйвер. Выполните следующие команды:

cd where-your-driver-was-downloaded-extracted 
make
sudo make install
sudo depmod
19
задан 6 July 2018 в 04:34

2 ответа

Ubuntu 16.04 использует systemd вместо init и, следовательно, понятие runlevels заменяется на термин targets. Таким образом, действительно существует сопоставление между уровнями запуска на основе init и целями на основе systemd:

Mapping between runlevels and systemd targets ┌─────────┬───────────────────┐ │Runlevel │ Target │ ├─────────┼───────────────────┤ │0 │ poweroff.target │ ├─────────┼───────────────────┤ │1 │ rescue.target │ ├─────────┼───────────────────┤ │2, 3, 4 │ multi-user.target │ ├─────────┼───────────────────┤ │5 │ graphical.target │ ├─────────┼───────────────────┤ │6 │ reboot.target │ └─────────┴───────────────────┘

Теперь, чтобы просто изменить «уровни выполнения» в 16.04, вы можете использовать, например:

sudo systemctl isolate multi-user.target

Чтобы сделать это по умолчанию «runlevel», вы можете использовать:

sudo systemctl enable multi-user.target sudo systemctl set-default multi-user.target

From man systemctl

isolate NAME Start the unit specified on the command line and its dependencies and stop all others. If a unit name with no extension is given, an extension of ".target" will be assumed. This is similar to changing the runlevel in a traditional init system. The isolate command will immediately stop processes that are not enabled in the new unit, possibly including the graphical environment or terminal you are currently using

Также посмотрите man systemd.special узнать больше о целях в systemd.

36
ответ дан 18 July 2018 в 03:01

Ubuntu 16.04 использует systemd вместо init и, следовательно, понятие runlevels заменяется на термин targets. Таким образом, действительно существует сопоставление между уровнями запуска на основе init и целями на основе systemd:

Mapping between runlevels and systemd targets ┌─────────┬───────────────────┐ │Runlevel │ Target │ ├─────────┼───────────────────┤ │0 │ poweroff.target │ ├─────────┼───────────────────┤ │1 │ rescue.target │ ├─────────┼───────────────────┤ │2, 3, 4 │ multi-user.target │ ├─────────┼───────────────────┤ │5 │ graphical.target │ ├─────────┼───────────────────┤ │6 │ reboot.target │ └─────────┴───────────────────┘

Теперь, чтобы просто изменить «уровни выполнения» в 16.04, вы можете использовать, например:

sudo systemctl isolate multi-user.target

Чтобы сделать это по умолчанию «runlevel», вы можете использовать:

sudo systemctl enable multi-user.target sudo systemctl set-default multi-user.target

From man systemctl

isolate NAME Start the unit specified on the command line and its dependencies and stop all others. If a unit name with no extension is given, an extension of ".target" will be assumed. This is similar to changing the runlevel in a traditional init system. The isolate command will immediately stop processes that are not enabled in the new unit, possibly including the graphical environment or terminal you are currently using

Также посмотрите man systemd.special узнать больше о целях в systemd.

36
ответ дан 24 July 2018 в 17:43

Другие вопросы по тегам:

Похожие вопросы: