Bios or Efi

This commit is contained in:
git
2024-06-27 15:48:52 +02:00
parent 6e6aedfb13
commit e0492b0c19
4 changed files with 24 additions and 6 deletions

View File

@@ -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

View File

@@ -7,4 +7,13 @@ CRYPT_N="lvm-system"
LVM_N="lvmSystem"
HOSTNAME="4rt1x"
TIMEZONE="Europe/Prague"
USERNAME="warezjoe"
USERNAME="warezjoe"
# BIOS or EFI
if [ -f /sys/firmware/efi/fw_platform_size ]; then
BIOSorEFI="EFI"
else
BIOSorEFI="BIOS"
fi
echo $BIOSorEFI

View File

@@ -1,4 +1,9 @@
#!/bin/bash
# Plain
ip a add 192.168.57.132/24 dev eth1 && \
rc-service sshd start
rc-service sshd start
# NetworkManager
nmcli con mod "Con name" ipv4.adress "192.168.57.132/24"

View File

@@ -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