Giter VIP home page Giter VIP logo

dotfiles-public's Introduction

Installation

Github Setup

This needs to be done once per user.

Set up dotfiles-public repo.

Set up dotfiles-private repo.

Set up ssh keys.

Windows Setup

Windows Preparation

This needs to be done once per Windows installation. You don't need to repeat these steps when reinstalling Ubuntu.

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
choco.exe install -y microsoft-windows-terminal vcxsrv
  • Run Start > XLaunch.
    • Click Next.
    • Click Next.
    • Uncheck Primary Selection. Click Next.
    • Click Save Configuration and save config.xlaunch in your Startup folder at %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup.
    • Click Finish.

Optional: if disk D: does not exist, make it an alias for C:. If you don't know why you might want this, then you don't need it.

  • Open PowerShell as Administrator and run:
if (!(Test-Path -Path "D:\")) {
  New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices" -Name "D:" -PropertyType String -Value \DosDevices\C:\ -Force
}
  • Reboot.

WSL Removal

Follow these steps to remove your Linux distro with all files (applications, settings, home directory, etc.). You can recreate it by following WSL Installation guide below.

  • Find out the name of your default distro by running the following command from PowerShell:
wsl.exe --list
  • Delete a distro:
wsl.exe --unregister DISTRO

WSL Installation

These steps allow you to recreate the whole WSL environment. Before proceeding, delete the current distro if you have it. See WSL Removal.

  • Download id_rsa into the Windows Downloads folder. It's OK if it's downloaded as id_rsa.txt.
  • Go to https://www.microsoft.com/en-us/p/ubuntu-2004-lts/9n6svws3rx71 and install Ubuntu 20.04 LTS.
  • Click Start > Ubuntu. If you get an error, remove Ubuntu via Add or remove programs and install it again. Once Start > Ubuntu is working, create a new user.
  • Type this (change the value of GITHUB_USERNAME if it's not the same as your WSL username):
GITHUB_USERNAME=$USER bash -c \
  "$(curl -fsSL 'https://raw.githubusercontent.com/romkatv/dotfiles-public/master/bin/bootstrap-machine.sh')"
  • Say Yes when prompted to terminate WSL.
  • Run Start > Windows Terminal.
    • Press Ctrl+,.
    • Replace the content of settings.json with this. Change "romkatv" to your WSL username.

Optional: Windows Defender Exclusion

  • Run Start > Windows Security.
    • Click Virus & threat protection.
    • Click Manage settings under Virus & threat protection settings.
    • Click Add or remove exclusions under Exclusions.
    • Click Add an exclusion > Folder.
    • Select %USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc.

Maintenance

Run this command occasionally.

sync-dotfiles && bash ~/bin/setup-machine.sh && z4h update #maintenance

Pro tip: Copy-paste this whole command including the comment. Next time when you decide to run maintenance tasks, press Ctrl+R and type #maintenance. This is how you can "tag" commands and easily find them later. You can apply more than one "tag". Technically, everything after # is a comment.

dotfiles-public's People

Contributors

romkatv avatar slickag avatar maximbaz avatar mingaldrichgan avatar nijaru 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.