Skip to content

Instantly share code, notes, and snippets.

@edersohe
Last active March 28, 2024 20:48
Show Gist options
  • Save edersohe/bd411b5fb0b0b7c71d89413de251b664 to your computer and use it in GitHub Desktop.
Save edersohe/bd411b5fb0b0b7c71d89413de251b664 to your computer and use it in GitHub Desktop.
Install arch linux connect to WPA wireless from Arch Linux iso
loadkeys es
curl -o notes -L https://git.io/Jt8bu
#1) Get wifi devices
iwconfig
#2) Scannig available wifi networks with specific device, in my case wlan0
iwlist wlan0 scan | grep ESSID
#3) Create file /etc/wpa_supplicant/wpa_supplicant.conf and paste next lines
ctrl_interface=/run/wpa_supplicant
update_config=1
#4) Generate wpa psk ofor the ESSID network and update file /etc/wpa_supplicant/wpa_supplicant.conf
wpa_passphrase ESSID PASSPRHASE >> /etc/wpa_supplicant/wpa_supplicant.conf
#5) Establish connection
wpa_supplicant -B -dd -i wlan0 -D wext -c /etc/wpa_supplicant/wpa_supplicant.conf -f /var/logs/wpa_supplicant_wlan0.log
#6) Get the ip form dhcp
dhcpd wlan0
# if something goes wrong try some of this points
# check the log
# change driver check supported "man wpa_supplicant" or "wpa_supplicant --help"
# into /etc/wpa_supplicant/wpa_supplicant.conf uncomment the text plain psk and comment ciphered psk
# try again first "killall wpa_supplicant" then repeat steps 5 and 6
fdisk -l
#/dev/sda1 EFI System -> /efi
#/dev/sda2 Linux Filesystem -> /
#/dev/sda3 Linux Filesystem -> /home
# Format my partitions
make.fat -F32 /dev/sda1
make.ext4 /dev/sda2
# Example mount of my parititions
mount /dev/sda2 /mnt
mkdir -p /mnt/efi
mount /dev/sda1 /efi
mkdir -p /mnt/home
mount /dev/sda3 /mnt/home
eval $(grep pacstrap notes)
# Install base from https://github.com/endeavouros-team/install-scripts/blob/master/netinstall.yaml
pacstrap /mnt base-devel linux-headers linux-firmware pacman-contrib xf86-video-vesa xorg-server xorg-xinit xf86-input-libinput xf86-video-amdgpu xf86-video-ati xf86-video-fbdev xf86-video-intel xorg-xkill xorg-xrandr xorg-xinput xdg-utils xdg-user-dirs accountsservice smartmontools libwnck3 b43-fwcutter broadcom-wl-dkms r8168 dnsutils ipw2100-fw ipw2200-fw modemmanager netctl net-tools ntfs-3g networkmanager networkmanager-openvpn nss-mdns usb_modeswitch whois dhclient ethtool openconnect openvpn rp-pppoe wireless-regdb wireless_tools wpa_supplicant wvdial gnu-netcat iwd linux-atm ndisc6 ppp pptpclient vpnc xl2tpd dialog dnsmasq upower hwinfo gtop python solid mlocate ttf-dejavu gnu-free-fonts ttf-liberation ttf-bitstream-vera ttf-ubuntu-font-family cantarell-fonts noto-fonts noto-fonts-cjk ttf-croscore ttf-carlito ttf-caladea firefox alsa-utils alsa-plugins alsa-firmware hardinfo glances htop neofetch pulseaudio pavucontrol paprefs ffmpegthumbnailer poppler-glib libgsf libopenraw freetype2 gst-libav gst-plugins-bad gst-plugins-ugly gst-plugin-pipewire mplayer libdvdcss efibootmgr dosfstools mtools openssh intel-ucode amd-ucode os-prober wget bash-completion lsb-release s-tui tlp yad reflector pcurses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment