Skip to content

Commit

Permalink
alphaya son hazirlanis
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameda1290 committed Oct 15, 2024
1 parent 8679743 commit 5832b15
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
19 changes: 14 additions & 5 deletions archinstall/1-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ clear
echo "UYARI BU SCRIPT INTEL KURULUM ICINDIR LUTFEN AMD ICIN KULLANMAYINIZ"
echo "UYARI BU SCRIPT DISK SIFRELEME ICERMEZ"
sleep 2
clear
echo " _ _ ___ _ _ _ "
echo " / \ _ __ ___| |__ |_ _|_ __ ___| |_ __ _| | |"
echo " / _ \ | '__/ __| '_ \ | || '_ \/ __| __/ _' | | |"
Expand All @@ -16,14 +17,19 @@ echo "Bu Script Intel Kurulumlar için Tasarlanmistir."
echo "Bu Script Disk Şifreleme Icermez."
echo "-----------------------------------------------------"
echo ""
sleep 2
echo "-----------------------------------------------------"
echo "Saat Dilimi Ayarlaniyor. "
echo "-----------------------------------------------------"
timezone=$(curl -s https://ipinfo.io/timezone)
ln -sf /usr/share/zoneinfo/$timezone /etc/localtime
hwclock -uw
timedatectl set-ntp 1
timedatectl set-timezone $timezone
timedatectl status && clear && sleep 0.1 && sleep 1 && date
clear
echo "-----------------------------------------------------"
echo "Saat Dilimi $timezone Olarak Ayarlandı. "
echo "Saat Dilimi $timezone Olarak Ayarlandi. "
echo "-----------------------------------------------------"
sleep 2
echo " _ _ ___ _ _ _ "
Expand All @@ -38,15 +44,16 @@ echo "Kurulum Baslatiliyor..."
echo "Bu Script Intel Kurulumlar icin Tasarlanmistir."
echo "Bu Script Disk Sifreleme Icermez."
echo "-----------------------------------------------------"
echo "Uncomment %wheel group in sudoers (around line 85):"
echo "aşağıda gösterileni yap:"
echo "Oncesi: #[multilib]"
echo " #Include = /etc/pacman.d/mirrorlist"
echo "Sonrasi: [multilib]"
echo "Sonrasi:[multilib]"
echo " Include = /etc/pacman.d/mirrorlist"
echo ""
read -p "config dosyasini acayimmi?" c
vim /etc/pacman.conf
sleep 2
clear
echo " _ _ ___ _ _ _ "
echo " / \ _ __ ___| |__ |_ _|_ __ ___| |_ __ _| | |"
echo " / _ \ | '__/ __| '_ \ | || '_ \/ __| __/ _' | | |"
Expand Down Expand Up @@ -92,5 +99,7 @@ cp 4-zram.sh /mnt/archinstall/
cp 5-timeshift.sh /mnt/archinstall/
cp 6-preload.sh /mnt/archinstall/
cp snapshot.sh /mnt/archinstall/
arch-chroot /mnt ./archinstall/2-configuration.sh

echo "1. adim tamamlandi"
sleep 1
echo "2. adima geciliyor"
arch-chroot /mnt ./archinstall/2-configuration.sh
22 changes: 7 additions & 15 deletions archinstall/2-configuration.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
keyboardlayout="trq"
zoneinfo="Europe/Istanbul"
hostname="ArchLinux"
username="samet"
read -p "Kullanici adinizi giriniz: " username
ln -sf /usr/share/zoneinfo/$zoneinfo /etc/localtime
hwclock --systohc
echo "Start reflector..."
Expand All @@ -17,9 +17,9 @@ echo "$hostname" >> /etc/hostname
echo "127.0.0.1 localhost" >> /etc/hosts
echo "::1 localhost" >> /etc/hosts
echo "127.0.1.1 $hostname.localdomain $hostname" >> /etc/hosts
echo "Set root password"
echo "root sifreni gir"
passwd root
echo "Add user $username"
echo "$username kullanicisinin sifresini gir"
useradd -m -G wheel $username
passwd $username
systemctl enable NetworkManager
Expand All @@ -34,8 +34,8 @@ systemctl enable acpid
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --removable
grub-mkconfig -o /boot/grub/grub.cfg
sed -i 's/BINARIES=()/BINARIES=(btrfs setfont)/g' /etc/mkinitcpio.conf
mkinitcpio -p

mkinitcpio -P
pacman -S nano --noconfirm --needed
# ------------------------------------------------------
# Add user to wheel
# ------------------------------------------------------
Expand All @@ -44,7 +44,7 @@ echo "Before: #%wheel ALL=(ALL:ALL) ALL"
echo "After: %wheel ALL=(ALL:ALL) ALL"
echo ""
read -p "Open sudoers now?" c
EDITOR=vim sudo -E visudo
EDITOR=nano sudo -E visudo
usermod -aG wheel $username

# ------------------------------------------------------
Expand All @@ -62,12 +62,4 @@ echo " / _' |/ _ \| '_ \ / _ \ "
echo "| (_| | (_) | | | | __/ "
echo " \__,_|\___/|_| |_|\___| "
echo " "
echo ""
echo "Please find the following additional installation scripts in your home directory:"
echo "- yay AUR helper: 3-yay.sh"
echo "- zram swap: 4-zram.sh"
echo "- timeshift snapshot tool: 5-timeshift.sh"
echo "- preload application cache: 6-preload.sh"
echo ""
echo "Please exit & shutdown (shutdown -h now), remove the installation media and start again."
echo "Important: Activate WIFI after restart with nmtui."
echo "Artik sistemi yeniden baslatabilirsiniz"

0 comments on commit 5832b15

Please sign in to comment.