Giter Club home page Giter Club logo

dotfiles's Introduction

dotfiles

Set up new machine

Take the following steps to set up a new machine from scratch:

  1. Start here (install Linux OS and desktop environment)

  2. Install standard debian packages

  3. Install shell

  4. Download/install Dotfiles project

  5. Download/install additional tools not available in apt

  6. Review tips 'n' tricks

    • NOTE: You may want to checkout any onetimeInstalls.sh scripts found in a profile

Start here

Lubuntu+i3wm tutorial

Standard debian package installs

$ sudo apt update && sudo apt install git git-lfs cifs-utils arandr xfce4-terminal xclip maim flameshot xdotool pavucontrol bat tmux

  • xfce4-terminal terminal emulator of choice

  • arandr GUI for resolution/display configurations (generates xrandr commands)

  • cifs-utils required to mount drives in Berkeley

  • xclip allows CLI to clipboard selections, useful copying stdout

  • maim screenshots

  • flameshot screenshoots as well

  • xdotool programmatically simulate keyboard input and mouse activity

  • pavucontrol graphical volume control

  • bat better than cat

  • tmux terminal multiplexer

Install shell

  1. Follow instructions on zsh wiki

  2. Follow instructions on ohmyzsh wiki

$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Install dotfiles

  1. $ git clone https://github.com/DukeOfEtiquette/dotfiles.git && cd dotfiles

  2. $ mkdir -p ~/screenshots

    • Review $HOME/.config/i3/config, there are system bindings for taking screenshots

DEPRECATED

LS_COLORS script now part of repo, just if it needs updated but no need to install.

  1. Install .dircolors

    • $ mkdir /tmp/LS_COLORS && curl -L https://api.github.com/repos/trapd00r/LS_COLORS/tarball/master | tar xzf - --directory=/tmp/LS_COLORS --strip=1 && ( cd /tmp/LS_COLORS && sh install.sh )
    • You may want to checkout any onetimeInstalls.sh scripts found in a profile
  2. Verify installDotfiles is setup properly and run: ./installDotfiles --profile gomez

  3. $ source ~/.zshrc

Additional Tools

Chrome

Chrome

VSCode

VSCode

Turn on Settings Sync!

Slack

Slack

Docker

docker

RUN THIS sudo usermod -a -G docker $USER

Logout after adding user to the docker group

Node

nvm

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash

Dunst

Custom notification window (comes with Lubuntu)

Dunst

Useful Linux tips 'n' tricks

Create new linux user


NOTE

For a new user, you must run the oh-my-zsh and dircolors install before running this installDotfiles.sh!


For this example, let us assume we are adding a new user named spare

  1. Create the user: sudo adduser spare

  2. Add to sudo group: sudo usermod -a -G sudo spare

  3. Log into new user: su - spare

  4. Install oh-my-zsh for user

    • $ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  5. Install dircolors for user

    • mkdir -p $HOME/.local/share && ( cd /tmp/LS_COLORS && sh install.sh )
  6. Clone this repo

    • $ git clone https://github.com/DukeOfEtiquette/dotfiles.git && cd dotfiles
  7. Install dotfiles

    • $ ./installDotfiles.sh && source ~/.zshrc

Rename linux user

For this example, let us assume the following old and new user names:

  • old user name: alpha
  • new user name: beta
  1. Update user's name

    • $ sudo usermod -l beta alpha
  2. Update user's group name

    • $ sudo groupmod --new-name beta alpha

Delete linux user

For this example, let us assume we are deleting the user named spare

  1. Ensure you are logged into a user that is not the one intended for removal

  2. Kill running processes: $ sudo killall -u spare

  3. Delete and remove home directory: $ sudo userdel -r spare

Get wifi device name for i3status

iw dev | grep "Interface" | awk -F ' ' '{print $2}'

Connect to wifi with NetworkManager TUI

nmtui

dotfiles's People

Contributors

adam-duquette-ts3d avatar dukeofetiquette avatar

Watchers

James Cloos avatar  avatar

Forkers

chacdlt

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.