swapfile compression noneĭd if=/dev/zero of=./swapfile bs=1M count= status=progress Optional - The following is for those wanting to use a swapfile.Ĭreate swap file (taken from Btrfs - Swap file and Swap file): cd -s 0. Mount the EFI partition: mount /dev/nvme0n1p1 /mnt/boot Mount -o noatime,nodiratime,compress=zstd,space_cache=v2,ssd,subvolid=5 /dev/mapper/luks /mnt/btrfs Mount -o /dev/mapper/luks /mnt/.snapshots Mount -o /dev/mapper/luks /mnt/var/cache/pacman/pkg Mount the sub volumes: mount -o /dev/mapper/luks /mnt If you didn’t open the LUKS container under the name “luks” you must adjust the command accordingly Create and Mount Sub VolumesĬreate sub volumes for root, home, the package cache, snapshots, and the entire BTRFS file system: mount /dev/mapper/luks /mntītrfs sub create sub create sub create sub create sub create /mnt ![]() ("luks" is just a placeholder, you can use the name of your choice, but remember to continue the guide with your naming convention) File System Creationįormat the EFI partition with FAT32 and give it the label EFI: mkfs.vfat -F32 -n EFI /dev/nvme0n1p1įormat the root partition with BTRFS and give it the label ROOT: mkfs.btrfs -L ROOT /dev/mapper/luks Open the encrypted partition with: cryptsetup open /dev/nvme0n1p2 luks With your partitions set, create the encrypted container for your root file system.īelow is the command to encrypt the partition using LUKS: cryptsetup -cipher aes-exts-plain64 -hash sha256 -use-random -verify-passphrase luksFormat -type luks2 /dev/nvme0n1p2 You should be able to see the two partitions available as /dev/nvme0n1p1 and /dev/nvme0n1p2. Now let's verify that our two partitions exist: lsblk The Boot Partition should now be created. Begin by creating theĮFI partition (choose size 550M and hex code EF00): Command (? for help): o This will begin the gdisk program / prompt. The following commands will create two partitions, one for boot and for the filesystem: gdisk /dev/nvme0n1 Identify the drive on which to install Arch: lsblkįor this guide we'll be referencing our drive with the nvme0n1 naming convention, remember to replace it with your drive's name when referencing it. Create BTRFS Sub Volumes on your Linux Filesystem partitionĬreate the Boot and Filesystem partitions.Encrypt your Filesystem Partition with LUKS.Create a Linux Filesystem partition for Arch.Now that you're connected via SSH, you're ready to do the following: Now that your machine is connected to the internet, enable the SSH protocol and connect to it from your outside computer.įind the machine's IP Address: ip addr showįrom your other computer, connect via SSH (You'll be prompted for the root password you just set) ssh Overview If your network is seperated with a space, use quotes for "YOUR NETWORK" Scan your local networks with your wireless adapter (wlan0): station wlan0 get-networksĬonnect to your network: station wlan0 connect YOUR_NETWORK Search for your wireless adapter: device list To do this you'll connect to the Internet using the iwctl tool to connect to your WIFI. We recommend installing via SSH to streamline copying over commands. Plug in your Arch USB image from the previous step and boot into it from your BIOS. A UEFI boot partition using systemd-boot.Verify secure boot is disabled in the BIOS before continuing to the next steps. ( Etcher is available for Linux or Rufus for Windows to make your USB boot image. ![]() ![]() Create a bootable USB of the Arch Image you downloaded. Grab the version of Arch you would like to install. We found Arch to be that sweet spot between security, accessibility, and productivity and getting access to the newest packages for development is what we sought. We have access to the latest packages for development.We can configure our environments to meet security standards quickly and seamlessly.We know what's on our system and only use what we deem necessary.We have direct visibility and control down to the kernel.Here are a few of the reasons why we decided to use Arch as our development environment: ![]() () Why is Arch the best operating system for developers? Here's the original as a reference if anyone wishes to check it out. This is a condensed version of a blog I wrote a few months back, and I hope people find it useful.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |