Merge branch 'main' of http://77.242.0.227:8080/Zhebrikov/install-soft-on-Astra-linux
This commit is contained in:
commit
6572057853
50
install.py
50
install.py
|
@ -64,44 +64,40 @@ def umount_ArmInstall():
|
||||||
#обновление системы до последнего актуального состояния
|
#обновление системы до последнего актуального состояния
|
||||||
def update_system():
|
def update_system():
|
||||||
#очищаем файл репозиториев
|
#очищаем файл репозиториев
|
||||||
execute_command('> /etc/apt/sources.list')
|
os.system('> /etc/apt/sources.list')
|
||||||
#вносим в файл репозиториев только то, что нам нужно
|
#вносим в файл репозиториев только то, что нам нужно
|
||||||
execute_command('echo -e "\n# Заблокировать cd и разблокировать остальные, а так же дописать:> /etc/apt/sources.list')
|
os.system('echo -e "\n# Заблокировать cd и разблокировать остальные, а так же дописать:" > /etc/apt/sources.list')
|
||||||
execute_command('echo -e "\n# Astra Linux repository description https://wiki.astralinux.ru/x/0oLiC> /etc/apt/sources.list')
|
os.system('echo -e "\n# Astra Linux repository description https://wiki.astralinux.ru/x/0oLiC" > /etc/apt/sources.list')
|
||||||
execute_command('echo -e "\n "> /etc/apt/sources.list')
|
os.system('echo -e "\n "> /etc/apt/sources.list')
|
||||||
execute_command('echo -e "\n#deb cdrom:[OS Astra Linux 1.7.1 1.7_x86-64 DVD ]/ 1.7_x86-64 contrib main non-free"> /etc/apt/sources.list')
|
os.system('echo -e "\n#deb cdrom:[OS Astra Linux 1.7.1 1.7_x86-64 DVD ]/ 1.7_x86-64 contrib main non-free" > /etc/apt/sources.list')
|
||||||
execute_command('echo -e "\n# Основной репозиторий> /etc/apt/sources.list')
|
os.system('echo -e "\n# Основной репозиторий" > /etc/apt/sources.list')
|
||||||
execute_command('echo -e "\ndeb http://download.astralinux.ru/astra/stable/1.7_x86-64/repository-main/ 1.7_x86-64 main contrib non-free"> /etc/apt/sources.list')
|
os.system('echo -e "\ndeb http://download.astralinux.ru/astra/stable/1.7_x86-64/repository-main/ 1.7_x86-64 main contrib non-free " > /etc/apt/sources.list')
|
||||||
execute_command('echo -e "\n "> /etc/apt/sources.list')
|
os.system('echo -e "\n "> /etc/apt/sources.list')
|
||||||
execute_command('echo -e "\n# Оперативные обновления основного репозитория"> /etc/apt/sources.list')
|
os.system('echo -e "\n# Оперативные обновления основного репозитория" > /etc/apt/sources.list')
|
||||||
execute_command('echo -e "\ndeb http://download.astralinux.ru/astra/stable/1.7_x86-64/repository-update/ 1.7_x86-64 main contrib non-free"> /etc/apt/sources.list')
|
os.system('echo -e "\ndeb http://download.astralinux.ru/astra/stable/1.7_x86-64/repository-update/ 1.7_x86-64 main contrib non-free" > /etc/apt/sources.list')
|
||||||
execute_command('echo -e "\n "> /etc/apt/sources.list')
|
os.system('echo -e "\n " > /etc/apt/sources.list')
|
||||||
execute_command('echo -e "\n# Базовый репозиторий"> /etc/apt/sources.list')
|
os.system('echo -e "\n# Базовый репозиторий" > /etc/apt/sources.list')
|
||||||
execute_command('echo -e "\ndeb http://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base/ 1.7_x86-64 main contrib non-free"> /etc/apt/sources.list')
|
os.system('echo -e "\ndeb http://download.astralinux.ru/astra/stable/1.7_x86-64/repository-base/ 1.7_x86-64 main contrib non-free" > /etc/apt/sources.list')
|
||||||
execute_command('echo -e "\n "> /etc/apt/sources.list')
|
os.system('echo -e "\n " > /etc/apt/sources.list')
|
||||||
execute_command('echo -e "\n# Расширенный репозиторий"> /etc/apt/sources.list')
|
os.system('echo -e "\n# Расширенный репозиторий" > /etc/apt/sources.list')
|
||||||
execute_command('echo -e "\ndeb http://download.astralinux.ru/astra/stable/1.7_x86-64/repository-extended/ 1.7_x86-64 main contrib non-free"> /etc/apt/sources.list')
|
os.system('echo -e "\ndeb http://download.astralinux.ru/astra/stable/1.7_x86-64/repository-extended/ 1.7_x86-64 main contrib non-free" > /etc/apt/sources.list')
|
||||||
execute_command('echo -e "\n "> /etc/apt/sources.list')
|
os.system('echo -e "\n " > /etc/apt/sources.list')
|
||||||
execute_command('echo -e "\n# Расширенный репозиторий (компонент astra-ce) - используется при необходимости в установке дополнительного ПО, которое не прошло сертификацию!"> /etc/apt/sources.list')
|
os.system('echo -e "\n# Расширенный репозиторий (компонент astra-ce) - используется при необходимости в установке дополнительного ПО, которое не прошло сертификацию!" > /etc/apt/sources.list')
|
||||||
execute_command('echo -e "\ndeb http://dl.astralinux.ru/astra/stable/1.7_x86-64/repository-extended/ 1.7_x86-64 astra-ce"> /etc/apt/sources.list')
|
os.system('echo -e "\ndeb http://dl.astralinux.ru/astra/stable/1.7_x86-64/repository-extended/ 1.7_x86-64 astra-ce" > /etc/apt/sources.list')
|
||||||
#execute_command('> /etc/apt/sources.list')
|
#execute_command('> /etc/apt/sources.list')
|
||||||
|
|
||||||
execute_command('apt install -y apt-transport-https ca-certificates')
|
os.system('apt-get install -y apt-transport-https ca-certificates && apt-get update && apt-get dist-upgrade && apt-get full-upgrade && astra-update -r -A')
|
||||||
execute_command('apt-get update')
|
|
||||||
execute_command('apt-get dist-upgrade')
|
|
||||||
execute_command('apt-get full-upgrade')
|
|
||||||
execute_command('astra-update -r -A')
|
|
||||||
|
|
||||||
#обновим и установим пакет libc6*
|
#обновим и установим пакет libc6*
|
||||||
execute_command('apt-get -t install -y libc6')
|
os.system('apt-get -t install -y libc6')
|
||||||
|
|
||||||
#Установим свежие драйвера под интеловские чипы
|
#Установим свежие драйвера под интеловские чипы
|
||||||
execute_command('apt-get install -y intel-microcode')
|
os.system('apt-get install -y intel-microcode')
|
||||||
|
|
||||||
live_print("Система обновлена. Сейчас делаем перезагрузку для применения результатов. \n")
|
live_print("Система обновлена. Сейчас делаем перезагрузку для применения результатов. \n")
|
||||||
live_print("После перезагрузки запустите скрипт заново и продолжите установку. \n")
|
live_print("После перезагрузки запустите скрипт заново и продолжите установку. \n")
|
||||||
|
|
||||||
execute_command('reboot')
|
os.system('reboot')
|
||||||
|
|
||||||
#Установка SNAP в Астра линукс
|
#Установка SNAP в Астра линукс
|
||||||
def install_snap():
|
def install_snap():
|
||||||
|
|
Loading…
Reference in New Issue