GithubHelp home page GithubHelp logo

inox-ee / dotfiles Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 1.0 95.41 MB

My Dotfiles for Ubuntu 20.04 on WSL2

Home Page: https://inox-ee.github.io/dotfiles/

Shell 97.87% Vim Script 2.13%
dotfiles wsl zsh

dotfiles's Introduction

Dotfiles for inox-ee

dotfiles

Environments

  • OS: Ubuntu20.04 on WSL2 (Ubuntu18.04 is also operability confirmed.)
  • SHELL: Zsh

Other Environments

How to setup

The first step is to enable WSL2, and then install dotfiles. There are two ways to set up the shell environments.

Step 1 - Enable WSL2

  1. Official documents

    https://docs.microsoft.com/ja-jp/windows/wsl/install-win10

  2. Download Linux Kernel Update Program Package Download and Execute : https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi if some error occured ("This update only applies to machines with the WSL"), copy wsl_update_x64.msi to C:\Windows\System32\lxss\tools\
  3. Set WSL2 to default
> wsl --set-default-version 2
> wslconfig \setdefault Ubuntu-20.04
  1. Download Linux Distribution Download Ubuntu 20.04 LTS from Microsoft Store.
  2. Setup new Distribution Input ID & password.

[WSL2] Trouble Shooting

  1. Do not forget to enable WSL and VM
# Run as administrator
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatfrm /all /norestart
## and restart.
  1. If a error occured: "This update only applies to machines with the Windows Subsystem for Linux"

copy wsl_update_x64.msi to C:\Windows\System32\lxss\tools\ and execute.

Step 2. - Install Dotfiles

Option 1 - Automatic Installation (Recommended)

The easiest way to install dotfiles is to execute:

$ git clone https://github.com/inox-ee/dotfiles.git
$ ~/dotfiles/initial.sh
# >>> Done
$ ~/dotfiles/setup.zsh

This will install dotfiles and complete your own zsh environment.

Option 2 - Manual Installation

Details of manual installation (May not be the latest version)

Linux

  1. Change apt mirror server
sudo sed -i.bak -e "s%http://\(jp\.\)*archive\.ubuntu\.com/ubuntu/%http://ftp.riken.go.jp/Linux/ubuntu/%g" /etc/apt/sources.list
  1. Install essentials
sudo apt install build-essential libbz2-dev libdb-dev \
  libreadline-dev libffi-dev libgdbm-dev liblzma-dev \
  libncursesw5-dev libsqlite3-dev libssl-dev \
  zlib1g-dev uuid-dev tk-dev
  1. Install zsh
$ sudo apt install zsh
$ chsh -s $(which zsh)

dotfiles

  1. Initial setup
$ git clone [email protected]:inox-ee/dotfiles.git
$ echo export ZDOTDIR="$HOME/dotfiles"\\nsource $ZDOTDIR/.zshenv\\n > ~/.zshenv
$ ln -siv $ZDOTDIR/.gitconfig
$ ln -siv $ZDOTDIR/.vim
$ ln -siv $ZDOTDIR/.wslconfig
  1. Install dependencies
# install zinit (skip recommended plugins)
# # you don't need to do anything.
# install fzf
$ git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
$ ~/.fzf/install
# # remove _.fzf.zsf_ because it is in dotfiles.
# install vim-hybrid
$ mkdir ~/.vim/colors
$ (cd ~/$ZDOTDIR/.vim/colors && curl -O https://raw.githubusercontent.com/w0ng/vim-hybrid/master/colors/hybrid.vim)
# install powerline font
# # Access to https://nerdfonts.com. Download _FiraMono Nerd Font_ and install it.
# install rbenv
$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv
$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
# install pip
$ curl https://bootstrap.pypa.io/get-pip.py | python
# install trash-cli
$ pip install trash-cli

other setup

  • ssh
  • aws

Caution!

  1. This repository does not preserve .zhistory.

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.