Skip to content

max533/dotfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Max533 Personal Dotfiles

These are config file to setup my linux system

Components

  • VSCode

  • Python

    • Pyenv (auto)
    • Pipx (auto)
  • Shell

    • Bash (auto)
    • Font (manual)
    • Theme: Oh My Posh -> Montys Customized (auto)
  • Docker (not-yet)

  • Git (not-yet)

How to use it

Pre-require tool: git and sudo command

sudo apt install -y git sudo

Type below command to install all auto components (exclude manual components) in your development environment.

git clone https://github.com/max533/dotfile.git $HOME/dotfile;
cd $HOME/dotfile;
./setup.sh;

Depend on your shell (bash -> .bashrc or zsh -> .zshrc) to activate shell setting

source ~/.bashrc

or

source ~/.zshrc

With Ubuntu Container (Optional)

If you want to use it in ubuntu container as your development environment, please follow below step to install.

  1. Set up time zone and language setting(use root role to perferm below command)

    • Resolve locale setting problem

      echo 'tzdata tzdata/Areas select Asia' | debconf-set-selections;
      echo 'tzdata tzdata/Zones/Asia select Taipei' | debconf-set-selections;
      DEBIAN_FRONTEND="noninteractive" apt install -y tzdata;
    • Resolve auto setting time zone problem

      apt install -y locales;
      locale-gen en_US.UTF-8;
      export LANG=en_US.UTF-8;
      export LANGUAGE=en_US.UTF-8;
      export LC_ALL=en_US.UTF-8;
      dpkg-reconfigure --frontend=noninteractive locales;
  2. Add normal user, add user to sudo group and reset password in container

    useradd -ms /bin/bash [username]
    usermod -aG sudo [username]
    passwd [username]
  3. Change root user to normal user

    su [username]
  4. Then please repeat How to use it part

With Ubuntu Container and VSCode (Optional)

If you want to use it in ubuntu container as your development environment with editor VSCode. You can set named container setting to avoid change root user to normal user problem every time.

Press F1 in VSCode Editor -> Remote-Contianers : Open Named Container Configuration File -> Paste below json and save

{
    "remoteUser": "{username}",
    "workspaceFolder": "/home/{username}",
}

About

My config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages