Bios or Efi
This commit is contained in:
@@ -48,7 +48,11 @@ rc-update add cronie default && \
|
|||||||
#user
|
#user
|
||||||
useradd -m -G wheel -s /bin/bash $USERNAME && \
|
useradd -m -G wheel -s /bin/bash $USERNAME && \
|
||||||
passwd $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
|
#network
|
||||||
pacman -S networkmanager networkmanager-openrc networkmanager-openvpn network-manager-applet && \
|
pacman -S networkmanager networkmanager-openrc networkmanager-openvpn network-manager-applet && \
|
||||||
@@ -66,8 +70,8 @@ rc-update add syslog-ng default && \
|
|||||||
|
|
||||||
#Usefull utils
|
#Usefull utils
|
||||||
pacman -S vi artools bash-completion lsof strace && \
|
pacman -S vi artools bash-completion lsof strace && \
|
||||||
yes a | pacman -S wget htop mc zip samba unrar p7zip unzip && \
|
yes a | pacman -S wget htop mc zip samba unrar p7zip unzip less && \
|
||||||
yes a | pacman -S hdparm smartmontools hwinfo dmidecode && \
|
yes a | pacman -S hdparm smartmontools hwinfo dmidecode vim && \
|
||||||
yes a | pacman -S whois rsync nmap tcpdump inetutils net-tools ndisc6
|
yes a | pacman -S whois rsync nmap tcpdump inetutils net-tools ndisc6
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,4 +7,13 @@ CRYPT_N="lvm-system"
|
|||||||
LVM_N="lvmSystem"
|
LVM_N="lvmSystem"
|
||||||
HOSTNAME="4rt1x"
|
HOSTNAME="4rt1x"
|
||||||
TIMEZONE="Europe/Prague"
|
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
|
||||||
@@ -1,4 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Plain
|
||||||
ip a add 192.168.57.132/24 dev eth1 && \
|
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"
|
||||||
@@ -7,5 +7,5 @@ lvchange -ay $LVM_N/volHome && \
|
|||||||
lvchange -ay $LVM_N/volRoot && \
|
lvchange -ay $LVM_N/volRoot && \
|
||||||
mount /dev/$LVM_N/volRoot /mnt && \
|
mount /dev/$LVM_N/volRoot /mnt && \
|
||||||
mount /dev/$LVM_N/volHome /mnt/home && \
|
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
|
artix-chroot /mnt /bin/bash
|
||||||
Reference in New Issue
Block a user