基本設定
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
$ sudo apt-get update $ sudo apt-get upgrade
$ explorer.exe .
$ eval `ssh-agent -s` $ ssh-add [SSH_KEY]
$ cd /mnt/c
$ echo "YOUR_USERNAME ALL=(ALL:ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/will
$ sudo apt-get install zsh $ sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
$ git clone https://github.com/amix/vimrc.git ~/.vim_runtime
$ lsb_release -a
$ sudo apt-get install wget curl unzip
$ apt list --installed
|
資料庫
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| $ sudo apt install postgresql postgresql-contrib
$ sudo service postgresql status
$ sudo service postgresql start
$ sudo service postgresql stop
$ sudo systemctl enable postgresql
$ sudo passwd postgres
$ sudo -u postgres psql $ psql -h localhost -U postgres [DATABASE]
$ grant all on schema public to public;
$ \q
$ CREATE USER andy with password 'p@ssw0rd';
$ CREATE DATABASE [DATABASE_NAME]; $ ALTER USER [USERNAME] WITH SUPERUSER;
|
Nodejs
1 2 3 4 5 6 7
| $ sudo apt-get install build-essential libssl-dev
$ nvm ls-remote $ nvm install node
|
Docker Desktop
下載安裝之後,在右下角 Icon 右鍵設定確認使用 WSL 2 引擎和整合,細節參考設定 Docker
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| $ sudo apt install software-properties-common $ sudo add-apt-repository ppa:ondrej/php $ sudo apt update $ sudo apt install php8.0
$ sudo apt-get install php8.0-cli unzip zip
$ sudo apt-get install php8.0-mbstring php8.0-common php8.0-pgsql php8.0-zip php8.0-gd php8.0-intl php8.0-curl php8.0-xsl php8.0-zip
|
Heroku CLI
如果您直接安裝 windows 版本遭遇下面錯誤
1
| @echo: command not found
|
概略是因為部分函式庫沒有安裝 windows 版本,為了讓事情單純可以直接安裝在 WSL 下
1
| $ curl https://cli-assets.heroku.com/install-ubuntu.sh | sh
|
其他參考﹔Issue#600
推薦軟體
- Typora
- Adobe GenP
- Fork
- ngrok
- Fences 3
- Seer
- PowerToys