These are config file to setup my linux system
-
VSCode
-
Python
- Pyenv (auto)
- Pipx (auto)
-
Shell
- Bash (auto)
- Font (manual)
- Theme: Oh My Posh -> Montys Customized (auto)
-
Docker (not-yet)
-
Git (not-yet)
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
If you want to use it in ubuntu container as your development environment, please follow below step to install.
-
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;
-
-
Add normal user, add user to sudo group and reset password in container
useradd -ms /bin/bash [username] usermod -aG sudo [username] passwd [username]
-
Change root user to normal user
su [username]
-
Then please repeat
How to use it
part
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}",
}