From e0492b0c194cf9d9135fcfa0fe1d38d642ee8af7 Mon Sep 17 00:00:00 2001 From: git Date: Thu, 27 Jun 2024 15:48:52 +0200 Subject: [PATCH] Bios or Efi --- artix_scripts/after-chroot.sh | 10 +++++++--- artix_scripts/env.sh | 11 ++++++++++- artix_scripts/ip-sshd.sh | 7 ++++++- artix_scripts/re-chroot.sh | 2 +- 4 files changed, 24 insertions(+), 6 deletions(-) diff --git a/artix_scripts/after-chroot.sh b/artix_scripts/after-chroot.sh index 9ccff60..576db35 100755 --- a/artix_scripts/after-chroot.sh +++ b/artix_scripts/after-chroot.sh @@ -48,7 +48,11 @@ rc-update add cronie default && \ #user useradd -m -G wheel -s /bin/bash $USERNAME && \ passwd $USERNAME && \ -sed -i "s/# %wheel ALL=(ALL:ALL) NOPASSWD: ALL/%wheel ALL=(ALL:ALL) NOPASSWD: ALL/g" /etc/sudoers +sed -i "s/# %wheel ALL=(ALL:ALL) NOPASSWD: ALL/%wheel ALL=(ALL:ALL) NOPASSWD: ALL/g" /etc/sudoers && \ + +#Font set +echo 'consolefont="eurlatgr"' > /etc/conf.d/consolefont && \ +rc-update add consolefont boot && \ #network pacman -S networkmanager networkmanager-openrc networkmanager-openvpn network-manager-applet && \ @@ -66,8 +70,8 @@ rc-update add syslog-ng default && \ #Usefull utils pacman -S vi artools bash-completion lsof strace && \ -yes a | pacman -S wget htop mc zip samba unrar p7zip unzip && \ -yes a | pacman -S hdparm smartmontools hwinfo dmidecode && \ +yes a | pacman -S wget htop mc zip samba unrar p7zip unzip less && \ +yes a | pacman -S hdparm smartmontools hwinfo dmidecode vim && \ yes a | pacman -S whois rsync nmap tcpdump inetutils net-tools ndisc6 diff --git a/artix_scripts/env.sh b/artix_scripts/env.sh index 36c9630..bb5ce87 100644 --- a/artix_scripts/env.sh +++ b/artix_scripts/env.sh @@ -7,4 +7,13 @@ CRYPT_N="lvm-system" LVM_N="lvmSystem" HOSTNAME="4rt1x" TIMEZONE="Europe/Prague" -USERNAME="warezjoe" \ No newline at end of file +USERNAME="warezjoe" + +# BIOS or EFI +if [ -f /sys/firmware/efi/fw_platform_size ]; then + BIOSorEFI="EFI" +else + BIOSorEFI="BIOS" +fi + +echo $BIOSorEFI \ No newline at end of file diff --git a/artix_scripts/ip-sshd.sh b/artix_scripts/ip-sshd.sh index fad5e5a..6bea517 100755 --- a/artix_scripts/ip-sshd.sh +++ b/artix_scripts/ip-sshd.sh @@ -1,4 +1,9 @@ #!/bin/bash +# Plain ip a add 192.168.57.132/24 dev eth1 && \ -rc-service sshd start \ No newline at end of file +rc-service sshd start + + +# NetworkManager +nmcli con mod "Con name" ipv4.adress "192.168.57.132/24" \ No newline at end of file diff --git a/artix_scripts/re-chroot.sh b/artix_scripts/re-chroot.sh index 7ec0b9c..88796f4 100755 --- a/artix_scripts/re-chroot.sh +++ b/artix_scripts/re-chroot.sh @@ -7,5 +7,5 @@ lvchange -ay $LVM_N/volHome && \ lvchange -ay $LVM_N/volRoot && \ mount /dev/$LVM_N/volRoot /mnt && \ mount /dev/$LVM_N/volHome /mnt/home && \ -mount /dev/$DISK\1 /mnt/boot/efi && \ +mount $DISK\1 /mnt/boot/efi && \ artix-chroot /mnt /bin/bash \ No newline at end of file