milis-kurucu.sh
This commit is contained in:
		
							parent
							
								
									bd5091b1c3
								
							
						
					
					
						commit
						0d271acd1c
					
				
					 1 changed files with 40 additions and 0 deletions
				
			
		
							
								
								
									
										40
									
								
								bin/milis-kurucu.sh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								bin/milis-kurucu.sh
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,40 @@
 | 
			
		|||
#!/bin/bash
 | 
			
		||||
#Milis-Linux kurulum yardımcısı
 | 
			
		||||
umount /mnt
 | 
			
		||||
clear
 | 
			
		||||
echo "Milis Linux Kurulumu"
 | 
			
		||||
echo ""
 | 
			
		||||
echo "Yeni kullanıcı adını giriniz:"
 | 
			
		||||
read user
 | 
			
		||||
useradd $user
 | 
			
		||||
passwd $user
 | 
			
		||||
clear
 | 
			
		||||
echo "Milis Linux Kurulumu"
 | 
			
		||||
echo ""
 | 
			
		||||
echo "hangi diske kurulum yapacaksınız:"
 | 
			
		||||
ls /dev/sd*
 | 
			
		||||
read disk
 | 
			
		||||
clear
 | 
			
		||||
echo "Milis Linux Kurulumu"
 | 
			
		||||
echo ""
 | 
			
		||||
echo "Grubu nereye kuracaksınız:"
 | 
			
		||||
ls /dev/sd*
 | 
			
		||||
read grub
 | 
			
		||||
clear
 | 
			
		||||
echo "Milis Linux Kurulumu"
 | 
			
		||||
echo ""
 | 
			
		||||
echo "Kurulum başlıyor"
 | 
			
		||||
mkfs.ext4 /dev/$disk 
 | 
			
		||||
mount $disk /mnt 
 | 
			
		||||
echo "Dosyalar Kopyalanıyor"
 | 
			
		||||
cp -axvnu /  /mnt 
 | 
			
		||||
echo "Kernel ayarları yapılıyor"
 | 
			
		||||
chroot /mnt dracut --no-hostonly --add-drivers "ahci" -f /boot/initramfs 
 | 
			
		||||
echo "Grub ayarlanıyor"
 | 
			
		||||
grub-install --boot-directory=/mnt/boot /$grub 
 | 
			
		||||
grub-mkconfig -o /mnt/boot/grub/grub.cfg 
 | 
			
		||||
clear
 | 
			
		||||
echo "Milis Linux Kurulumu"
 | 
			
		||||
echo ""
 | 
			
		||||
clear
 | 
			
		||||
echo "Milis kuruldu bilgisayarınızı yeniden başlatınız..."
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue