Установщик Debian - экранные пробелы

Предполагая, что все имена файлов в текущем каталоге следуют этому образцу, с помощью GNU ls:

ls -rv | awk -F_ '++n[$1]>2' | xargs rm

Вы можете опустить | xargs rm, если хотите проверить, что он удалит первым.

Это предполагает, что часть в {...} не содержит пробела, новой строки, одинарной кавычки, двойной кавычки, обратной косой черты, табуляции или символа подчеркивания.

Ключом является опция -v в GNU-реализации ls, которая сортирует по номеру версии. Если у вас нет GNU ls, но есть zsh, в zsh вы можете использовать:

print -rl -- *(nOn)

Для достижения того же результата.

Теперь, если текущий каталог может содержать все, что угодно, и вы хотите обрабатывать только файлы вида {x}_y.z. xsl, где x может быть чем угодно, а y и z - целые положительные десятичные числа, то вам придется написать это (синтаксис zsh):

printf '%s\0' \{*\}_<->.<->.xsl(.nOn) | perl -0 -lne '
  unlink if /\{.*\}/s && ++$n{$&} > 2'

Или используя GNU ls и GNU bash вместо zsh:

eval "files=($(ls -rv --quoting-style=shell-always))"
printf '%s\0' "${files[@]}" | perl -0 -lne '
  unlink if /^\{(.*)\}_\d+\.\d+\.xsl\z/s && ++$n{$1} > 2'
0
20.08.2018, 00:14
2 ответа

У меня новый ThinkPad P1, и после включения CSM в BIOS программа установки работает на Live USB. Об этом упоминалось здесь:https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=899240

0
28.01.2020, 04:13

I want to install Debian on my new Lenovo Yoga 730.

Can anyone help me fix the screen disappearing?

When I look at the Graphical Debian Installer option commands now, they are different:

setparams 'Graphical Debian Installer'
  Linux /d-i/gtk/vmlinuz append video=vesa:ywrap,mtrr vga=788 "${loopback}"
  Initrd /d-i/gtk/initrd gz

См. ответ, на который вы ссылаетесь :" Черный экран при попытке установить Ubuntu или Debian на новый ноутбук ":

"In the grub screen, I typed "e" to edit the "Graphical Install" entry. Then I..."

Следование этим инструкциям должно дать подсказку, где происходит зависание.

Вы также можете попробовать текстовый установщик, если вас интересует только его установка .

См. также :" 5.3. Параметры загрузки -Глава 5. Загрузка системы установки ":

На этой веб-странице бросается в глаза:

"debian-installer/framebuffer (fb)

Some architectures use the kernel framebuffer to offer installation in a number of languages. If framebuffer causes a problem on your system you can disable the feature using the parameter vga=normal fb=false. Problem symptoms are error messages about bterm or bogl, a blank screen, or a freeze within a few minutes after starting the install.".

См. также раздел " 5.3.2. Параметры установщика Debian

  • debconf/priority (priority)

    This parameter sets the lowest priority of messages to be displayed.

    The default installation uses priority=high. This means that both high and critical priority messages are shown, but medium and low priority messages are skipped. If problems are encountered, the installer adjusts the priority as needed.

    If you add priority=medium as boot parameter, you will be shown the installation menu and gain more control over the installation. When priority=low is used, all messages are shown (this is equivalent to the expert boot method). With priority=critical, the installation system will display only critical messages and try to do the right thing without fuss.

  • DEBIAN_FRONTEND

    This boot parameter controls the type of user interface used for the installer. The current possible parameter settings are:

    DEBIAN_FRONTEND=noninteractive

    DEBIAN_FRONTEND=text

    DEBIAN_FRONTEND=newt

    DEBIAN_FRONTEND=gtk

    The default frontend is DEBIAN_FRONTEND=newt. DEBIAN_FRONTEND=text may be preferable for serial console installs. Some specialized types of install media may only offer a limited selection of frontends, but the newt and text frontends are available on most default install media. On architectures that support it, the graphical installer uses the gtk frontend.

  • BOOT_DEBUG

    Setting this boot parameter to 2 will cause the installer's boot process to be verbosely logged. Setting it to 3 makes debug shells available at strategic points in the boot process. (Exit the shells to continue the boot process.)

    BOOT_DEBUG=0

    This is the default.

    BOOT_DEBUG=1

    More verbose than usual.

    BOOT_DEBUG=2

    Lots of debugging information.

    BOOT_DEBUG=3

    Shells are run at various points in the boot process to allow detailed debugging. Exit the shell to continue the boot.

Дополнительно есть раздел :" 5.4. Устранение неполадок в процессе установки -Глава 5. Загрузка системы установки ":

5.4.4. Common 32-bit PC Installation Problems

There are some common installation problems that can be solved or avoided by passing certain boot parameters to the installer.

If your screen begins to show a weird picture while the kernel boots, eg. pure white, pure black or colored pixel garbage, your system may contain a problematic video card which does not switch to the framebuffer mode properly. Then you can use the boot parameter fb=false to disable the framebuffer console. Only a reduced set of languages will be available during the installation due to limited console features. See Section 5.3, “Boot Parameters” for details.

Также обратите внимание на раздел :«5.4.5. Интерпретация сообщений запуска ядра», «5.4.6. Отчеты о проблемах установки» и «5.4.7. Отправка отчетов об установке». отправьте отчет об установке.

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

0
28.01.2020, 04:13

Теги

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