diff --git a/.gitignore b/.gitignore index 07cddbe..c150ca4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ config/mpv/watch_later/ config/fish/fishd.* +config/fish/conf.d/ config/fish/fish_variables config/ranger/bookmarks config/ranger/history diff --git a/ubuntu/install-nodejs.sh b/ubuntu/install-nodejs.sh index 575d2f7..8d7bbb7 100755 --- a/ubuntu/install-nodejs.sh +++ b/ubuntu/install-nodejs.sh @@ -7,17 +7,20 @@ rm -rf /tmp/node mkdir -p /tmp/node tar xf /tmp/node.tar.xz --strip 1 -C /tmp/node pushd /tmp/node -cp -r bin include lib share /usr/local +sudo cp -r bin include lib share /usr/local popd rm -rf /tmp/node* -npm install -g yarn -yarn config set registry https://registry.npm.taobao.org --global && \ -yarn config set disturl https://npm.taobao.org/dist --global && \ -yarn 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 && \ -yarn config set puppeteer_download_host https://npm.taobao.org/mirrors --global && \ -yarn config set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver --global && \ -yarn config set operadriver_cdnurl https://npm.taobao.org/mirrors/operadriver --global && \ -yarn config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs --global && \ -yarn 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 +sudo apt install yarnpkg +yarnpkg config set registry https://registry.npm.taobao.org --global && \ +yarnpkg config set disturl https://npm.taobao.org/dist --global && \ +yarnpkg config set sass_binary_site https://npm.taobao.org/mirrors/node-sass --global && \ +yarnpkg config set electron_mirror https://npm.taobao.org/mirrors/electron/ --global && \ +yarnpkg config set puppeteer_download_host https://npm.taobao.org/mirrors --global && \ +yarnpkg config set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver --global && \ +yarnpkg config set operadriver_cdnurl https://npm.taobao.org/mirrors/operadriver --global && \ +yarnpkg config set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs --global && \ +yarnpkg config set selenium_cdnurl https://npm.taobao.org/mirrors/selenium --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 diff --git a/ubuntu/install-py3.sh b/ubuntu/install-py3.sh new file mode 100644 index 0000000..af1f1a9 --- /dev/null +++ b/ubuntu/install-py3.sh @@ -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