This can be accomplished quite quickly with the IP command if you only need it temporarily:
ip link add bond0 type bond
ip link set bond0 down
ip link set bond0 type bond mode 802.3ad
ip link set enp1s0 down
ip link set enp1s0 master bond0
ip link set enp2s0 down
ip link set enp2s0 master bond0
ip link set bond0 up
and to remove the bonding we can issue:
ip link del bond0
ip link set enp1s0 up
ip link set enp2s0 up
Pages
▼
Thursday, 8 August 2019
Quickstart: Installing Arch Linux 2019.X
Firstly download the latest iso image from one of the mirrors below:
https://www.archlinux.org/download
This will get you into the system under the root user.
The setup portion is a Gentoo style approach of efffectively 'assembling' the system yourself.
From here we'll firstly partition the disks:
sdX 8:0 0 1000G 0 disk
In this example we'll create three partitions - one for the root fs, another for our home fs and finally one for swap.
With Arch we have a few options for network configuration - either netctl or networkd (a newer component.)
https://www.archlinux.org/download
wget https://www.mirrorservice.org/sites/ftp.archlinux.org/iso/2019.08.01/archlinux-xxxx.xx.xx-x86_64.isoand then write it to your preferred media:
dd bs=8M if=archlinux-xxxx.xx.xx-x86_64.iso of=/dev/sdX | syncUpon booting the image select the default selection to boot Arch.
This will get you into the system under the root user.
The setup portion is a Gentoo style approach of efffectively 'assembling' the system yourself.
From here we'll firstly partition the disks:
lsblkNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdX 8:0 0 1000G 0 disk
In this example we'll create three partitions - one for the root fs, another for our home fs and finally one for swap.
parted -a optimal /dev/sdXhyuCreate the filesystems with:
mktable gpt
mkpart ESP boot fat32 0% 500MB
mkpart root ext4 500MB 250000MB
mkpart home ext4 250GB 750GB
mkpart swap ext4 750GB 800GB
set 1 boot on
mkfs.msdos /dev/sdX1Proceed by mounting the file systems:
mkfs.ext4 /dev/sdX2
mkfs.ext4 /dev/sdX3
mkfs.ext4 /dev/sdX4
mkswap /dev/sdX4
swapon /dev/sdX4
mount -t auto /dev/sdX2 /mntWe'll need the network setup at this point so we can access the arch repo's:
mkdir -P /mnt/boot/EFI && mount -t auto /dev/SdX1 /mnt/boot/EFI
mkdir /mnt/home && mount -t auto /dev/SdX3 /mnt/home
dhclientand then pull down all the nessasery compontents for the root fs:
pacstrap /mnt base base-develOnce complete we'll need to generate the fstab for the new system:
genfstab -U /mnt >> /mnt/etc/fstaband then change our root password by chrooting into the new system along with the hostname:
arch-chroot /mntWe'll also configure regional and time settings with:
hostname arch-box
passwd
ln -sf /usr/share/zoneinfo/<region>/<city> /etc/localtimeI'm going to use KDE Plasma for the desktop environment:
hwclock --systohc
locale-gen
printf "LANG=en_GB.UTF-8" > /etc/locale.conf
export LANG=en_GB.UTF-8
pacman -S xorg xorg-server xorg-xinit plasma-meta sddmFinally we will configure grub:
pacman -S grub efibootmgr dosfstools os-prober mtoolsExit the jail:
grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id=grub_uefi --recheck
grub-mkconfig -o /boot/grub/grub.cfg
exitand restart:
shutdown -r nowOnce booted into the new OS we'll setup the network configuration - for this example I'll be setting up DHCP.
With Arch we have a few options for network configuration - either netctl or networkd (a newer component.)
vi /etc/netctl/enp2s0
Description=LAN interfaceEnsure the interface will come up on boot by issuing:
Interface=enp2s0
Connection=ethernet
IP=dhcp
netctl enable enp2s0Enable and start the DHCP service with:
systemctl enable dhcpcdand then attempt to start the interface with:
systemctl start dhcpcd
netctl start enp2s0