Skip to content

rafamanzo/pcsetup

Repository files navigation

PCSETUP

Usage

Pre-requisites

  • An Arch Linux installation with internet access
  • Have sudo installed
  • Create an user with the name you desires using useradd <NAME> -m
  • Add this user to the sudoers list
    • You might want to install vim to make this task easier

First time only

  • Install the make package
  • At the root dir run make preconfig
    • Creates sudo group and add the current user to it as several ansible steps will require sudo
    • Create a super user that can run sudo passwordless. This is require to properly make pacaur work without asking sudo password
    • Update the system
    • Install ansible
  • If you are not me, you need to set your own personal information
    • Specially set the vault files and password

Everyday

  • ansible-playbook <HOST PLAYBOOK> -K

Things to know the first time you run:

  • there may be errors related to group changes in your user
    • logout, log back in and run the playbook again
  • reboot the machine after the first successful run

Known issues features

Firewall (UFW)

  • Error enabling the UFW when running for the first time
    • Reboot and start again
  • Locks you out of Vagrant box after rebooting the machine
    • Going through the VirtualBox's gui, disable UFW (sudo ufw disable) and reload the box (vagrant reload)
  • CUPS network printer discovery
    • Simplest thing is to disable UFW while setting up the printer (sudo ufw disable), set it up and enable UFW back (sudo ufw enable). After configured the printer should stay working
    • If you know the printer network address and model (for driver choosing), you can go through CUPS configuration process

Other

  • {"msg": "privilege output closed while waiting for password prompt:\nmanzo is not in the sudoers file. This incident will be reported.\n"}
    • This is expected the first time you are running the playbook on a fresh install
    • It happens because of changes to the sudoers file that are now based on newly create user groups that are not loaded in the ansible ssh session
    • Logout, login and reun again the playbook
  • black screen after installing a playbook, such as BURN-E's, with Intel Graphics on VirtualBox
    • remove the XOrg configuration for intel graphics (use virtualbox console and get a tty with ctrl+alt+f3)

Managed machines

  • WALL-E (Notebook)
    • Specs
      • Intel Core i7 2620M
      • Geforce GT 520M
      • 8 GB RAM
      • 240 GB SSD
      • 640 GB HDD
    • Statistics (v2.0.0)
      • Boot time: < 20s
      • Mem. usage after boot: ~250MB
      • Expected battery life: ~3h
      • Disk usage: 14GB
  • WALL-A (Desktop)
    • Specs
      • AMD FX8320E
      • Geforce GTX 1050
      • 32 GB RAM
      • 256 GB SSD
    • Statistics (v3.0.0)
      • Boot time: < 35s
      • Mem. usage after boot: ~365MB
      • Disk usage: 18GB
  • BURN-E (Rapsberry Pi 4 B)
    • Running Ubuntu

About

Scripts for setting up from scratch my personal computers

Resources

Stars

Watchers

Forks

Packages

No packages published