Coder Social home page Coder Social logo

.setup's Introduction

Setting up a new machine:

Before installing on a new machine, need to sync an ssh key with github. Paste the following:

# 1. We need to create an ssh key, so that Github lets us clone this repo.
echo -e "\n\nGenerate an ssh key:"
# may have to set hostname manually!
ssh-keygen -t ed25519 -C key-thor-$(hostname) 
ssh-add ~/.ssh/

# 2. Install github communication and keychain CLIs. Tell github about the ssh key.
sudo apt install -y gh hub keychain
echo "will open a browser and authenticate with Github."
gh auth login
gh ssh-key add ~/.ssh/id_ed25519.pub
echo "confirm our new key is listed."
echo "is the comment set correctly to key-thor-HOSTNAME?"
gh ssh-key list

# 3. Install stuff.
git clone [email protected]:thor314/.setup.git

Then work through the parts.

Comforting security blanket slash reminder to self about script vs syncing from snapshot

This setup script is slow and Not Fun, but does reduce reproducibility issues down the line.

Todo:

  • 2024-01-26 next major update: separate the high-interactive parts from the not-so-interactive parts, so we can parallelize them.
  • eg. logging into all the GUIs annoying and have few dependencies, do that while apt/cargo etc. install themselves.
  • 2024-12-24 refactored keybind set script. Test the refactored keybind script more on next install.
    • known issue: will not unbind system keybinds, have to do that manually.

Settings to include early that make life good

Figure out where to include these in the install script:

## these settings have not been tested
# set caps lock to ctrl
gsettings set org.gnome.desktop.input-sources xkb-options "['caps:ctrl_modifier']"
# revert: gsettings reset org.gnome.desktop.input-sources xkb-options
# or mannualy: Open Gnome Tweaks to map Capslock to Ctrl
gsettings set org.gnome.desktop.peripherals.touchpad natural-scroll true
gsettings set org.gnome.desktop.wm.keybindings minimize "['<Super>h']"
git config --global user.name "Thor Kampefner"
git config --global user.email "$EMAIL"

Pending recurring issue

If issues with system keyboard not-dvorak persist:

# localectl list-x11-keymap-variants # see list of keymap options
sudo localectl set-x11-keymap dvorak
sudo update-initramfs -u # update initial ramdisk to apply changes at boot time

changelog

  • 2024-01-26 - I should have a changelog

.setup's People

Contributors

thor314 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.