30 окт 2022 · 07:49    
{"document": [{"text": [{"type": "string", "attributes": {}, "string": "Рассмотрим основные команды для написания скриптов на пример настройки Астры. Ниже команды распложено ее описание."}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "#! /bin/bash"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "начало скрипта"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "iocharset=utf8"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "команды выше устанавливают мою тему на экран авторизации"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "sudo cp /tmp/nastr/mydomain. json /etc/chromium/policies/managed"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "данная команда копирует файл с нужными политиками для Хромиум браузера"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "sudo cp -r /tmp/nastr/Desktop /etc/skel/Desktop"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "эта команда, копирует ярлыки уже созданным пользователям"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "}"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "конец цикла."}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "При двойной загрузки, необходимо настроить загрузчик. Для этого необходимо добавить в скрипт команды ниже. Там много нюансов, если необходимо расскажу дополнительно."}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "sudo grub-mkconfig"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "sudo update-grub"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "sudo nano /boot/grub/grub. cfg"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "на этом оканчивается 1 -я часть скрипта, в оригинальном скрипте 3 пункта для разных задач. Я раскрыл только первый пункт."}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "0) Exit 0;;"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "*) echo -e $red «Wrong option» $clear; wrongComand;"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "esac"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "}"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "menu"}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "вместо меню1... меню5, естественно вводим свои названия."}], "attributes": []}, {"text": [{"type": "string", "attributes": {}, "string": "В данной статье были раскрыты азы написания красивых скриптов, на основе настройки Астры. Если необходимы пункты по установки Касперского, ввода в домен и т. д., подписывайтесь на канал и оставляйте свои вопросы в комментариях."}], "attributes": []}], "selectedRange": [1183, 1183]}
Комментарии 0