Skip to content

Arch Linux is a great distro but I spend a lot of time installing and setting up with my preferences then here are some scripts for execute all of this stuff or understand how the Arch Linux works.

License

Notifications You must be signed in to change notification settings

airvzxf/archlinux-installer-and-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Arch Linux: Installer and setup

Arch Linux is a great distro, but I spend a lot of time installing and setting up with my preferences then here are some scripts for execute all of this stuff or understand how the Arch Linux works.


Steps

1.1 Create your bootloader USB to boot with Arch Linux.

Arch Linux official documentation.

Or

  • Download the Arch Linux image.
    The official server
    Download from the official site

  • Create the bootable USB in GNU/Linux

    • Use this command where sdx is your USB device, to find what is this, run sudo fdisk -l and try to search your USB and the device name. Your USB must be formatted to FAT32.
      Warning: This will irrevocably destroy all data on /dev/sdx.
sudo fdisk -l
sudo cfdisk /dev/sd[x]
# Delete all the partitions.
# Select: New -> Partition size [enter] -> Primary -> Enable "Bootable" -> Type -> "b W95 FAT32" -> Write -> yes -> Quite
sudo dd bs=4M if=[path_file_archlinux.iso] of=/dev/sd[x] status=progress && sync

1.2 If you want to create a custom bootloader USB installing git or another packages you are able to run my scripts.

  1. Create the ISO file based in our setup. Create a custom Arch Linux ISO
# You are able to change the directory where the archiso should be create.
# And the packages which you are looking.

# Execute the scripts
./custom-bootable-usb.sh

  1. Create the USB bootable based on your custom Arch Linux ISO. Create a custom Arch Linux USB flash media
# You are able to change the directory where the ISO should be find.

# Execute the scripts
./custom-bootable-usb-creating-usb.sh

2. Init

Reboot your computer with your bootloader USB plugged in your computer and init the system with the USB.

  1. Select the first option which is "Arch Linux archiso x86_64 UEFI CD".

  2. Wait for the login session, if it requires a user you can write root and press [enter].

  3. Connect to internet.

    • If your computer is not connected with ethernet wire you need to setup the wifi with this command.
# Select your network and write your password.
sudo wifi-menu

  1. Download the "init script" to start this journey.
    This script helps to download the archLinux project in your computer to proceed with the installation.

Before run the script change the name and e-mail variables in the 'init.sh' file.

cd ~/

# This is the MSI short link
curl -L https://goo.gl/vkE1DS > init.sh

# For MSI Laptop
#curl https://raw.githubusercontent.com/airvzxf/archLinux-installer-and-setup/master/src/laptop_ASUS_K46CB/02-init/init.sh > init.sh

# For ASUS Laptop
#curl https://raw.githubusercontent.com/airvzxf/archLinux-installer-and-setup/master/src/laptop_MSI_GT73EVR_7R_Titan_Pro/02-init/init.sh > init.sh

# Change your name and e-mail from the init.sh file executing the nano command.
# nano init.sh

chmod +x init.sh
./init.sh

3. Install

Install Arch Linux in your Hard Disk Device
If you are executing these scripts in this project, please go to this path:

cd ~/workspace/archLinux-installer-and-setup/src/laptop_MSI_GT73EVR_7R_Titan_Pro/03-installer

Before run the script change the name and e-mail variables in the ' 00-config.sh' file.

# Change your name and e-mail from the 00-config.sh file executing the nano command.
nano ~/workspace/archLinux-installer-and-setup/src/laptop_MSI_GT73EVR_7R_Titan_Pro/03-installer/00-config.sh

  1. Pre-installation.
    Clean/Erease your hard disk and format ever partition then create the files systems.
./01b-pre-installation-efi.sh

  1. Installation.
    Download and install the base packages in your Linux partition and create the automatically mount partitions.
./02-installation.sh

  1. Arch change Root.
    Emulate that you are login in the mount device and every command affect your session, setup the basic config to start to run Arch Linux in your Hard Drive Device.
    • Reboot the computer
./03-arch-change-root.sh

4. Setup

Install all the basic packages including the graphic drivers and window manager also set up the properties in some files to improve your experience.

cd ~/workspace/archLinux-installer-and-setup/src/laptop_MSI_GT73EVR_7R_Titan_Pro/04-setup

  1. Connect to internet.
    • If your computer is not connected with ethernet wire you need to setup the wifi with this command.
# Select your network and write your password.
sudo wifi-menu

  1. 01-setup.sh

    • Create workspace folder and others into home directory.
    • Install and set up reflector.
    • Install yaourt.
    • Install alsa audio.
  2. 02-xorg.sh

    • Install xorg.
  3. 03a-graphic-card-generic.sh

    • Keyboard configuration.
  4. 03b01-graphic-card-nvidia.sh

    • Install Nvidia graphic card.
    • Reboot the computer.
  5. 03b02-graphic-card-nvidia-startx.sh

    • Start the openbox window manager.
  6. 03b03-graphic-card-nvidia-gui.sh

    • Run Xconfig.
    • Run at first time acpid service.
  7. 04-basics.sh

    • Install a lot of packages: editor, web browser, media player, etc.
  8. 05a-boinc.sh

    • Install boinc.
    • Needs logout and login again from your windows manager.
  9. 05b-boinc-after-install.sh

    • Set up boinc.
  10. 06-video-games.sh

    • Install general package for almost video games.
  11. 07-steam.sh

    • Install and set up Steam.

5. Knowledge

This interesting folder contain resources, configurations, information, link references, errors and solutions, etc.

cd ~/workspace/archLinux-installer-and-setup/src/laptop_MSI_GT73EVR_7R_Titan_Pro/05-knowledge

About

Arch Linux is a great distro but I spend a lot of time installing and setting up with my preferences then here are some scripts for execute all of this stuff or understand how the Arch Linux works.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published