modified: install.py
This commit is contained in:
		
							parent
							
								
									300cd0c524
								
							
						
					
					
						commit
						034eeda7be
					
				
							
								
								
									
										30
									
								
								install.py
								
								
								
								
							
							
						
						
									
										30
									
								
								install.py
								
								
								
								
							| 
						 | 
					@ -50,6 +50,21 @@ def umount_ArmInstall():
 | 
				
			||||||
        execute_command('umount ~/ArmInstall')
 | 
					        execute_command('umount ~/ArmInstall')
 | 
				
			||||||
        execute_command('rm -r ~/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():
 | 
					def main():
 | 
				
			||||||
    while True:
 | 
					    while True:
 | 
				
			||||||
        live_print("Привет! Добро пожаловать в программу упрощения жизни начинающего Linux админа. \n \n")
 | 
					        live_print("Привет! Добро пожаловать в программу упрощения жизни начинающего Linux админа. \n \n")
 | 
				
			||||||
| 
						 | 
					@ -100,26 +115,19 @@ def main():
 | 
				
			||||||
            #обновим списки пакетов
 | 
					            #обновим списки пакетов
 | 
				
			||||||
            execute_command('apt update')
 | 
					            execute_command('apt update')
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
 | 
					            #обновим и установим пакет libc6*
 | 
				
			||||||
            execute_command('apt-get -t buster install libc6')
 | 
					            execute_command('apt-get -t buster install libc6')
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
            #Установим свежие драйвера под интеловские чипы
 | 
					            #Установим свежие драйвера под интеловские чипы
 | 
				
			||||||
            execute_command('apt-get install -y intell-microcode')
 | 
					            execute_command('apt-get install -y intell-microcode')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            #теперь установим snap
 | 
					            #установим snap
 | 
				
			||||||
            execute_command('apt install snapd')
 | 
					            install_snap()
 | 
				
			||||||
            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')
 | 
					 | 
				
			||||||
            #execute_command('')
 | 
					            #execute_command('')
 | 
				
			||||||
            #execute_command('')
 | 
					            #execute_command('')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            #следом установим snap-store
 | 
					            #примонтируем папку с пакетами установки
 | 
				
			||||||
            execute_command('snap install snap-store')
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            mount_ArmInstall()
 | 
					            mount_ArmInstall()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if os.path.exists('~/ArmInstall/base'):       
 | 
					            if os.path.exists('~/ArmInstall/base'):       
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue