datfinesoul / env-ubuntu

development environment setup for ubuntu 18+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

env-ubuntu

Setup

EC2 User Data

#!/bin/bash
wget 'https://github.com/datfinesoul/env-ubuntu/archive/refs/heads/main.zip'
git clone https://github.com/datfinesoul/env-ubuntu.git /home/ubuntu/env-ubuntu
chown -R ubuntu:ubuntu /home/ubuntu/env-ubuntu
sudo -Hu ubuntu bash -c "cd && cd env-ubuntu && ./bootstrap.bash"

Installing Manually

# curl 'github static link here' | bash -c

Commands

  • profile <name>

    sets the MY_PROFILE and BW_SESSION environment variables (logs the user into bitwarden)

  • get-profile-ssh-keys.bash

    pulls down the ssh keys tied to MY_PROFILE (read more)

  • save-profile-ssh-key.bash PROFILE_NAME KEY_NAME ...

    • KEY_NAME is required, and used as a base pattern.

      # eg.
      save-profile-ssh-key.bash personal id_rsa
      # this saves the following files to the "personal" profile
      # - id_rsa
      # - id_rsa.pub

Notes

  • For some reason apt commands can sometimes just get stuck. Here are some workarounds.
    • ipv4 preference
      • sudo vim /etc/gai.conf
      • uncomment the # precedence ::ffff:0:0/96 100 line
    • local mirror issue
      • sudo vim /etc/apt/sources.list
      • change all the jp.archive... references to archive...
  • EC2 instance initalization logs
    • → aws ec2 --output text get-console-output --instance-id i-00000000000000000 --latest
  • Run super-linter locally

About

development environment setup for ubuntu 18+


Languages

Language:Vim Script 77.6%Language:TypeScript 15.6%Language:Shell 2.7%Language:Go 2.4%Language:Ruby 0.9%Language:Roff 0.2%Language:JavaScript 0.2%Language:Mustache 0.1%Language:PowerShell 0.1%Language:VBScript 0.1%Language:Makefile 0.0%Language:CMake 0.0%Language:Dockerfile 0.0%Language:Batchfile 0.0%Language:Perl 0.0%