...
This commit is contained in:
parent
2e7ddcf800
commit
30a66f153a
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
||||||
config/mpv/watch_later/
|
config/mpv/watch_later/
|
||||||
config/fish/fishd.*
|
config/fish/fishd.*
|
||||||
|
config/fish/conf.d/
|
||||||
config/fish/fish_variables
|
config/fish/fish_variables
|
||||||
config/ranger/bookmarks
|
config/ranger/bookmarks
|
||||||
config/ranger/history
|
config/ranger/history
|
||||||
|
|
|
@ -7,17 +7,20 @@ rm -rf /tmp/node
|
||||||
mkdir -p /tmp/node
|
mkdir -p /tmp/node
|
||||||
tar xf /tmp/node.tar.xz --strip 1 -C /tmp/node
|
tar xf /tmp/node.tar.xz --strip 1 -C /tmp/node
|
||||||
pushd /tmp/node
|
pushd /tmp/node
|
||||||
cp -r bin include lib share /usr/local
|
sudo cp -r bin include lib share /usr/local
|
||||||
popd
|
popd
|
||||||
rm -rf /tmp/node*
|
rm -rf /tmp/node*
|
||||||
npm install -g yarn
|
sudo apt install yarnpkg
|
||||||
yarn config set registry https://registry.npm.taobao.org --global && \
|
yarnpkg config set registry https://registry.npm.taobao.org --global && \
|
||||||
yarn config set disturl https://npm.taobao.org/dist --global && \
|
yarnpkg config set disturl https://npm.taobao.org/dist --global && \
|
||||||
yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass --global && \
|
yarnpkg config set sass_binary_site https://npm.taobao.org/mirrors/node-sass --global && \
|
||||||
yarn config set electron_mirror https://npm.taobao.org/mirrors/electron/ --global && \
|
yarnpkg config set electron_mirror https://npm.taobao.org/mirrors/electron/ --global && \
|
||||||
yarn config set puppeteer_download_host https://npm.taobao.org/mirrors --global && \
|
yarnpkg config set puppeteer_download_host https://npm.taobao.org/mirrors --global && \
|
||||||
yarn config set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver --global && \
|
yarnpkg config set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver --global && \
|
||||||
yarn config set operadriver_cdnurl https://npm.taobao.org/mirrors/operadriver --global && \
|
yarnpkg config set operadriver_cdnurl https://npm.taobao.org/mirrors/operadriver --global && \
|
||||||
yarn config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs --global && \
|
yarnpkg config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs --global && \
|
||||||
yarn config set selenium_cdnurl https://npm.taobao.org/mirrors/selenium --global && \
|
yarnpkg config set selenium_cdnurl https://npm.taobao.org/mirrors/selenium --global && \
|
||||||
yarn config set node_inspector_cdnurl https://npm.taobao.org/mirrors/node-inspector --global
|
yarnpkg config set sqlite3_binary_host_mirror "https://foxgis.oss-cn-shanghai.aliyuncs.com/" --global && \
|
||||||
|
yarnpkg config set profiler_binary_host_mirror "https://npm.taobao.org/mirrors/node-inspector/" --global && \
|
||||||
|
yarnpkg config set chromedriver_cdnurl "https://cdn.npm.taobao.org/dist/chromedriver" --global && \
|
||||||
|
yarnpkg config set node_inspector_cdnurl https://npm.taobao.org/mirrors/node-inspector --global
|
||||||
|
|
17
ubuntu/install-py3.sh
Normal file
17
ubuntu/install-py3.sh
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# install python3.8
|
||||||
|
sudo add-apt-repository ppa:deadsnakes/ppa
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install python3.8
|
||||||
|
|
||||||
|
# install pip and other distutils
|
||||||
|
sudo apt install python3.8-distutils
|
||||||
|
sudo python3.8 -m pip install --upgrade pip setuptools wheel
|
||||||
|
|
||||||
|
# install virtualfish and enable auto_activation for `vf connect`
|
||||||
|
sudo pip3 install virtualfish
|
||||||
|
vf install
|
||||||
|
vf addplugins auto_activation
|
Loading…
Reference in New Issue
Block a user