modified: install.py

This commit is contained in:
parent 300cd0c524
commit 034eeda7be
1 changed files with 19 additions and 11 deletions

View File

@ -50,6 +50,21 @@ def umount_ArmInstall():
execute_command('umount ~/ArmInstall')
execute_command('rm -r ~/ArmInstall')
def install_snap():
#теперь установим snap
execute_command('apt install snapd')
execute_command('sudo ln -s /var/lib/snapd/snap /snap')
execute_command('systemctl enable --now snapd')
#обновим core у обвязки snap
execute_command('snap refresh core')
execute_command('snap install core')
execute_command('snap install core snapd')
#следом установим snap-store
execute_command('snap install snap-store')
def main():
while True:
live_print("Привет! Добро пожаловать в программу упрощения жизни начинающего Linux админа. \n \n")
@ -100,26 +115,19 @@ def main():
#обновим списки пакетов
execute_command('apt update')
#обновим и установим пакет libc6*
execute_command('apt-get -t buster install libc6')
#Установим свежие драйвера под интеловские чипы
execute_command('apt-get install -y intell-microcode')
#теперь установим snap
execute_command('apt install snapd')
execute_command('sudo ln -s /var/lib/snapd/snap /snap')
execute_command('systemctl enable --now snapd')
#установим snap
install_snap()
#обновим core у обвязки snap
execute_command('snap refresh core')
execute_command('snap install core')
execute_command('snap install core snapd')
#execute_command('')
#execute_command('')
#следом установим snap-store
execute_command('snap install snap-store')
#примонтируем папку с пакетами установки
mount_ArmInstall()
if os.path.exists('~/ArmInstall/base'):