I'm David. I'm a Data & Applied Scientist in . To know more about me, check my personal website.
If you like my projects, or any of my repositories helps you. Feel free to leave a star ⭐ I'll be appreciated 🤣.
Bring my development environment everywhere. vim, tmux, bash, zsh, VSCode, docker, and so on.
I'm David. I'm a Data & Applied Scientist in . To know more about me, check my personal website.
If you like my projects, or any of my repositories helps you. Feel free to leave a star ⭐ I'll be appreciated 🤣.
Teams
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main" > /etc/apt/sources.list.d/teams.list'
sudo apt update
sudo apt install teams
Wine
# This is for 18.04
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo apt install --install-recommends winehq-stable
/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ - openSUSE Download
The following packages have unmet dependencies:
wine-stable : Depends: wine-stable-i386 (= 5.0.0~bionic)
Depends: wine-stable-amd64 (= 5.0.0~bionic) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
# Fix bug
wget https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_10/Release.key
sudo apt-key add Release.key
sudo add-apt-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./'
sudo apt update
Rambox
https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory
Add llist to requirements
Follow default system setting (default IBus) => install and logout then login.
TODO: find how to input Simplified Chinese with Chewing
sudo apt update
sudo apt install -y openssh-server
sudo ufw allow ssh
# https://www.zotero.org/support/installation
wget https://www.zotero.org/download/client/dl?channel=release&platform=linux-x86_64&version=5.0.96
tar xzf ...
mv ... /opt/zotero
cd /opt/zotero
./set_launcher_icon
ln -s /opt/zotero/zotero.desktop ~/.local/share/applications/zotero.desktop
https://github.com/4U6U57/wsl-open
# Get npm if you don't have it already
sudo apt-get install -yqq npm
# Install
sudo npm install -g wsl-open
# Make a bin folder in your home directory
mkdir ~/bin
# Add the bin folder to your PATH in your bashrc
echo '[[ -e ~/bin ]] && PATH=$PATH:~/bin' >> .bashrc
# Download the script to a file named 'wsl-open'
curl -o ~/bin/wsl-open https://raw.githubusercontent.com/4U6U57/wsl-open/master/wsl-open.sh
Install zsh
and fzf
will cause interactive terminal. And this will interrupt the rest of the script.
Modify the hardcoded user to load system user in dotfiles.
UpdateDotFiles.sh after finish BasicSetup.sh
Oh-my-zsh finish will open zsh, need to exit to continue the BasicSetup.sh.
Need to skip this.
(so fzf & zsh-autocomplete didn't install as expected)
➜ ~ export FORCE_ROOTLESS_INSTALL=1; curl -fsSL https://get.docker.com/rootless | sh
# Installing stable version 19.03.13
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 59.3M 100 59.3M 0 0 19.0M 0 0:00:03 0:00:03 --:--:-- 19.0M
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 18.3M 100 18.3M 0 0 20.0M 0 --:--:-- --:--:-- --:--:-- 19.9M
# starting systemd service
● docker.service - Docker Application Container Engine (Rootless)
Loaded: loaded (/home/t-dawli/.config/systemd/user/docker.service; disabled; vendor preset: enabled)
Active: active (running) since Wed 2020-12-02 10:46:34 CST; 9ms ago
Docs: https://docs.docker.com
Main PID: 29249 (rootlesskit)
CGroup: /user.slice/user-1001.slice/[email protected]/docker.service
└─29249 rootlesskit --net=vpnkit --mtu=1500 --slirp4netns-sandbox=auto --slirp4netns-seccomp=auto --disable-host-loopback --port-driver=builtin --copy-up=/etc --copy-up=/run /home/t-dawli/bin/dockerd-rootless.sh --experimental --storage-driver=overlay2
Dec 02 10:46:34 ubuntu-Precision-5820-Tower dockerd-rootless.sh[29249]: + which slirp4netns
Dec 02 10:46:34 ubuntu-Precision-5820-Tower dockerd-rootless.sh[29249]: + [ -z ]
Dec 02 10:46:34 ubuntu-Precision-5820-Tower dockerd-rootless.sh[29249]: + which vpnkit
Dec 02 10:46:34 ubuntu-Precision-5820-Tower dockerd-rootless.sh[29249]: + net=vpnkit
Dec 02 10:46:34 ubuntu-Precision-5820-Tower dockerd-rootless.sh[29249]: + [ -z ]
Dec 02 10:46:34 ubuntu-Precision-5820-Tower dockerd-rootless.sh[29249]: + mtu=1500
Dec 02 10:46:34 ubuntu-Precision-5820-Tower dockerd-rootless.sh[29249]: + [ -z ]
Dec 02 10:46:34 ubuntu-Precision-5820-Tower dockerd-rootless.sh[29249]: + _DOCKERD_ROOTLESS_CHILD=1
Dec 02 10:46:34 ubuntu-Precision-5820-Tower dockerd-rootless.sh[29249]: + export _DOCKERD_ROOTLESS_CHILD
Dec 02 10:46:34 ubuntu-Precision-5820-Tower dockerd-rootless.sh[29249]: + exec rootlesskit --net=vpnkit --mtu=1500 --slirp4netns-sandbox=auto --slirp4netns-seccomp=auto --disable-host-loopback --port-driver=builtin --copy-up=/etc --copy-up=/run /home/t-dawli/bin/dockerd-rootless.sh --experimental --storage-driver=overlay2
Client: Docker Engine - Community
Version: 19.03.13
API version: 1.40
Go version: go1.13.15
Git commit: 4484c46
Built: Wed Sep 16 16:58:04 2020
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.13
API version: 1.40 (minimum version 1.12)
Go version: go1.13.15
Git commit: 4484c46
Built: Wed Sep 16 17:04:43 2020
OS/Arch: linux/amd64
Experimental: true
containerd:
Version: v1.3.7
GitCommit: 8fba4e9a7d01810a393d5d25a3621dc101981175
runc:
Version: 1.0.0-rc10
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd
docker-init:
Version: 0.18.0
GitCommit: fec3683
# Docker binaries are installed in /home/t-dawli/bin
# WARN: dockerd is not in your current PATH or pointing to /home/t-dawli/bin/dockerd
# Make sure the following environment variables are set (or add them to ~/.bashrc):
export PATH=/home/t-dawli/bin:$PATH
export DOCKER_HOST=unix:///run/user/1001/docker.sock
#
# To control docker service run:
# systemctl --user (start|stop|restart) docker
#
Download and Install VScode
(with snap (this can't link to Discord))
with *.deb
3rd-party Store
sudo apt install kwrite
sudo apt install libkf5runner-dev libkf5runner5
KWin
Openbox
sudo apt install openbox obconf obmenu feh
Default
Extension
Gnome Extension
Projects/GnomeShellIntegrationForChrome - GNOME Wiki!
cmake
and jq
first. And also Overview — PyGObject Getting Started — PyGObject sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0
/r/n
as end-of-line. Linux uses "LF" or /n
. If you interchange "CR LF" to "LF" then Git will understand it as a file change.Just set this in WSL
git config --global core.autocrlf true
Plug 'python-mode/python-mode', { 'for': 'python', 'branch': 'develop' }
# clear and re-run
alias rr="clear; fc -e : -1"
pip install ipywidgets
jupyter nbextension enable --py widgetsnbextension
Triggered by
Ctrl+r
withfzf
from MacOS through ssh to Ubuntu (but they are both English system)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TERMINAL_VERSION = "3.3.12",
LC_CTYPE = "UTF-8",
LC_TERMINAL = "iTerm2",
LC_NUMERIC = "en_US.UTF-8",
LC_TIME = "en_US.UTF-8",
LC_MONETARY = "en_US.UTF-8",
LC_PAPER = "en_US.UTF-8",
LC_NAME = "en_US.UTF-8",
LC_ADDRESS = "en_US.UTF-8",
LC_TELEPHONE = "en_US.UTF-8",
LC_MEASUREMENT = "en_US.UTF-8",
LC_IDENTIFICATION = "en_US.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
Seems only need to add export LC_ALL="en_US.UTF-8"
in .bashrc
can solve this problem
Build images with BuildKit | Docker Documentation
To enable docker BuildKit by default, set daemon configuration in /etc/docker/daemon.json
feature to true and restart the daemon:
{ "features": { "buildkit": true } }
nvidia-docker
"runtimes": {
"nvidia": {
"path": "nvidia-container-runtime",
"runtimeArgs": []
}
},
https://unix.stackexchange.com/questions/305844/how-to-create-a-file-and-parent-directories-in-one-command
https://stackoverflow.com/questions/6212219/passing-parameters-to-a-bash-function
touch_create () {
# Create file with its parent folders
# https://unix.stackexchange.com/questions/305844/how-to-create-a-file-and-parent-directories-in-one-command
# https://stackoverflow.com/questions/6212219/passing-parameters-to-a-bash-function
file=$1
mkdir -p "${file%/*}" && touch "$file"
}
Install cuda first (check nvidia-smi)
How can I change the date and time on Ubuntu? - Ask Ubuntu
sudo timedatectl set-timezone Asia/Taipei
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.