/dotfiles

dotfile repo + install scripts for getting a new machine up to speed

Primary LanguageShell

dotfiles

Dotfiles and install scripts for the basics in an Ubuntu based linux machine. Some notes on extra configuration on a machine basis are below.

Install packages

./install_all.sh

Do dotfile linking

sudo ./setup.sh

Install VS Code extensions

cd ./vscode_ext
./install_extensions.sh

XPS 15 Specifics

  • Run the following to enable right-click on the touch pad (more details here).
gsettings set org.gnome.desktop.peripherals.touchpad click-method areas
  • Follow instructions here to get wifi driver working: (you will need to repeat this step whenever sudo apt update updates your kernel). Skip the apt install instructions at the top, go straight to cloning their repos and building their driver.
  • Follow the instructions here to get screen brightness working, good tips on CPU thermal managment, etc.

ThinkPad X1 Carbon Specifics

  • The Arch Linux wiki entry for the X1C has detailed information on fixing two big problems with Linux on the machine.

    • Waking from S3 (suspend to RAM) sleep state
      • I followed the instructions to adjust the BIOS settings to support S3 sleep state in Linux.
      • I followed the instructions to enable Thunderbolt BIOS Assist Mode
    • Throttling issues causing super conservative thermal management compared to Windows.
      • I ran the lenovo-throttling-fix-git instructions and disabled the in-built thermald thermal management service.
  • Kernpanik's blog has a great list of setup steps for Ubuntu on the X1C.

    • This article inspired the automation of installs in this repo and the not taking on what I've done to get the X1C working up to snuff on Ubuntu.
  • Jeremy Cheng has a good Medium article on setting up the X1C with Ubuntu for optimal performance/battery life.

    • I installed intel-microcode as per his instructions
      sudo apt install intel-microcode
    • Disable Secure Boot in BIOS to allow the below packages to be installed.
    • I installed several packages related to power managment in Ubuntu as per his instructions
      sudo apt-get install tlp tlp-rdw acpi-call-dkms tp-smapi-dkms acpi-call-dkms

Macbook Pro Specifics

  • Reinstate reFIND as the boot manager from Ubuntu, a link here.

    • The boot order is usually screwed up by Ubuntu firmware updates, you can fix this so reFIND is presented with sudo efibootmgr -o 80,1.
  • Secondary click on the Macbook Pro:

    synclient RightButtonAreaLeft=3068
    synclient RightButtonAreaRight=0
    synclient RightButtonAreaTop=4326
    synclient RightButtonAreaBottom=0

Connecting to Airbears

  • Instructions for many Linux distributions here.

Reference

  • After having used Etcher to flash a USB drive with an image to install Linux, Mac OS's Disk Utility won't be able to erase it to make it usable again. We can accomplish this from the command line:

    cd /dev

    diskutil list

  • Now find the disk you're looking for... don't screw this up.

    diskutil eraseDisk MS-DOS NAME_OF_DRIVE /dev/diskN

Where NAME_OF_DRIVE is what you want the drive to be called, and N is the disk number listed by diskutil.

VS Code Management

VS Code configuration is automated through this repo as well. To get the list of installed extensions for a manually configured VS Code installation run

code --list-extensions

I pipe this output to a file and include it in this repo. To install an extension from the command line (provide the full name of the form publisher.extension)

code --install-extension (<extension-id> | <extension-vsix-path>)

For example:

code --install-extension ms-python.python

To uninstall an extension from the command line

code --uninstall-extension (<extension-id> | <extension-vsix-path>)

Regolith Config

An overview of Regolith's config and Xresources files is available here.