vinymeuh / conf-nyx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

conf-nyx

How to use

Bootstrap

  1. Install Arch Linux

  2. Install pyenv using pyenv installer

  3. Create Python virtualenv:

pyenv virtualenv system conf-nyx
  1. Install conf-nyx
cd $HOME
git clone https://github.com/vinymeuh/conf-nyx
cd conf-nyx
pyenv version  # must be conf-nyx, see .python-version
pip install -r requirements.txt

Ansible playbooks

  • System setup setup-system.yml, run with become_user root
  • User setup setup-user.yml, run as user
cd ~/conf-nyx
ansible-playbook setup-system.yml -K [--check] 
ansible-playbook setup-user.yml [--check]

AURs packages

AURs packages are manually managed using aur_builder user:

sudo su - aur_builder
git clone https://aur.archlinux.org/<package_name>.git
cd <package_name>
makepkg -si

AUR packages installed:

Notes & tips

Pacman maintenance

Pacman package cache (/var/cache/pacman/pkg) is cleanup periodically using the systemd timer paccache.timer. Manually purge using paccache -r

For Pacman logs: paclog

List packages:

  • explicitly installed: pacman -Qe
  • orphans: pacman -Qtdq
  • sorted by install date: expac --timefmt='%F %T' '%l %n' | sort -n
  • not in a repostory (AUR or no longer supported): pacman -Qm

Detailed information about a package: pacinfo <pkg>

To mark a package as explicitly installed: pacman -D --asexplicit <pkg>

Pyenv

pyenv update
pyenv virtualenvs
pyenv virtualenvs-delete xxx
pyenv versions
pyenv uninstall 3.x.y

Ansible

ansible-playbook setup-user.yml --list-tags
ansible-playbook setup-user.yml -t dotfiles

About


Languages

Language:Shell 100.0%