Move aur package manager info from notes to docs
This commit is contained in:
parent
0f27a8ffbb
commit
aff02a434f
|
@ -2,9 +2,10 @@
|
|||
|
||||
This folder contains a bunch of general information on how to get the base of a PiFrame deployed.
|
||||
|
||||
* [Base Firmware](base.md)
|
||||
* [Base Firmware (REQUIRED)](base.md)
|
||||
* [Finalize Arch Setup](finalize_setup.md)
|
||||
* [Setup swap (you really do need this)](swap.md)
|
||||
* [Setup swap (REQUIRED)](swap.md)
|
||||
* [journald Tweaks (make it less chatty and resource hungry)](journald.md)
|
||||
* [Standard Raspberry Pi Toolchain Setup](rpi_tools.md)
|
||||
* [Standard Raspberry Pi Toolchain Setup (REQUIRED)](rpi_tools.md)
|
||||
* [CPU Governor](cpu_governor.md)
|
||||
* [AUR Package Manager (REQUIRED)](aur_package_manager.md)
|
||||
|
|
26
docs/aur_package_manager.md
Normal file
26
docs/aur_package_manager.md
Normal file
|
@ -0,0 +1,26 @@
|
|||
# AUR Package Manager
|
||||
|
||||
This project uses some packages from the Arch Linux AUR repos. As such, we are going to setup a package manager for those packages. Pacman doesn't support the AUR repos natively and this is the most accessible approach for installing AUR packages.
|
||||
|
||||
The commands below will setup the ```yay``` AUR package manager.
|
||||
|
||||
``` sh
|
||||
|
||||
pacman -S --needed base-devel go
|
||||
useradd yay -s /usr/bin/nologin
|
||||
mkdir /home/yay
|
||||
chown yay: -R /home/yay
|
||||
git clone https://aur.archlinux.org/yay.git /opt/yay
|
||||
chown yay: -R /opt/yay/
|
||||
cd /opt/yay
|
||||
cat > /etc/sudoers.d/yay <<EOF
|
||||
yay ALL=(ALL) NOPASSWD: ALL
|
||||
EOF
|
||||
chmod 600 /etc/sudoers.d/yay
|
||||
sudo -sHu yay makepkg -si
|
||||
cat >> ~/.bashrc <<EOF
|
||||
alias yay="/usr/bin/sudo -sHu yay /usr/bin/yay"
|
||||
EOF
|
||||
source ~/.bashrc
|
||||
|
||||
```
|
21
notes.txt
21
notes.txt
|
@ -1,24 +1,3 @@
|
|||
########################################
|
||||
# AUR package manager
|
||||
########################################
|
||||
|
||||
pacman -S --needed base-devel go
|
||||
useradd yay -s /usr/bin/nologin
|
||||
mkdir /home/yay
|
||||
chown yay: -R /home/yay
|
||||
git clone https://aur.archlinux.org/yay.git /opt/yay
|
||||
chown yay: -R /opt/yay/
|
||||
cd /opt/yay
|
||||
cat > /etc/sudoers.d/yay <<EOF
|
||||
yay ALL=(ALL) NOPASSWD: ALL
|
||||
EOF
|
||||
chmod 600 /etc/sudoers.d/yay
|
||||
sudo -sHu yay makepkg -si
|
||||
cat >> ~/.bashrc <<EOF
|
||||
alias yay="/usr/bin/sudo -sHu yay /usr/bin/yay"
|
||||
EOF
|
||||
source ~/.bashrc
|
||||
|
||||
########################################
|
||||
# prep for slideshow
|
||||
########################################
|
||||
|
|
Loading…
Reference in a new issue