Сохранение веб-страницы с помощью командной строки

По иронии судьбы, во FreeBSD ответ очень похож на тему, указанную в вопросе.

You also need to remove (paradoxically) the X.org Intel video driver the X server can use the kernel’s mode-setting features without a separate video driver

Хотя это относится к Linux, похоже, то же самое происходит и с FreeBSD.

Так что же было сделано:

sudo pkg delete xf86-video-intel

Также в/boot/loader.rc.local:

mode 2

См. Определение текстовых режимов EFI, поддерживаемых ноутбуком

.

(В Lenovo есть текстовый режим EFI для более высокого разрешения, 170 колонок x 40 строк -1366x768)

Фактическое /usr/local/etc/X11/xorg.conf.d/xorg.confиспользуется там, где сконфигурирован драйвер дисплея «scfb»:

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/local/lib/xorg/modules"
    FontPath     "/usr/local/share/fonts/misc/"
    FontPath     "/usr/local/share/fonts/TTF/"
    FontPath     "/usr/local/share/fonts/OTF/"
    FontPath     "/usr/local/share/fonts/Type1/"
    FontPath     "/usr/local/share/fonts/100dpi/"
    FontPath     "/usr/local/share/fonts/75dpi/"
EndSection

Section "Module"
    Load  "glx"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol" "auto"
    Option      "Device" "/dev/sysmouse"
    Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection

Section "Device"
    Identifier  "Card0"
    Driver      "scfb"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

После этих изменений и перезагрузки xorg запустился с разрешением 1366x768.

Из вики FreeBSD

If an accelerated graphics driver is not available for your FreeBSD system, an alternative is to use the scfb driver. At the time of writing, this is a common option for laptops with Broadwell or Skylake chipsets from Intel with integrated graphics, until the intel DRM driver is updated to include support. Whilst the scfb driver does not provide accelerated graphics, and is missing some features like brightness adjustment and support for external displays, it works fine on built-in laptop displays for simple desktop use and even playing videos.

The system must be using the new vt(4) (aka Newcons) console for the scfb driver to work. This is the default if the system was booted with UEFI, but not if it was booted using (legacy) BIOS mode. Some laptops must be booted using UEFI mode for the scfb driver to work.

Отказ от ответственности :Это самое простое решение. По-видимому, существуют исправления для работы драйвера Intel, однако это требует компиляции исходного кода.

1
12.08.2019, 23:41
1 ответ

Вам необходимо прослушивать трафик с помощью инструмента браузера, чтобы увидеть, какие POSTили GETаргументы отправляются и в каком формате (закодирована форма, необработанная строка json и т. д.)-консоли браузера (] сетевая область )или такие расширения, как Fiddler, позволяют это сделать.

Вы можете имитировать вызовы POSTи GETс помощью таких инструментов, как Postman (GUI )или curlв командной строке или с помощью различных языков программирования и их библиотек. Вы даже можете сойти с ума и просто подключиться через telnet к порту (или использовать sslclientдля https )и ввести GETили любые другие команды и ввести их вручную.

Примечания-

, кроме GETи POST, вы можете увидеть DELETE, PUTили другие еще более редко используемые http-глаголы.

будьте готовы передавать информацию о файлах cookie или маркерах сеанса в заголовках (упомянутые инструменты будут отображать и/или разрешать это)

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

0
28.01.2020, 00:03

Теги

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