Skip to content

Instantly share code, notes, and snippets.

@geyang
Created September 6, 2020 03:49
Show Gist options
  • Save geyang/47840354b255164553b8edd4866f3999 to your computer and use it in GitHub Desktop.
Save geyang/47840354b255164553b8edd4866f3999 to your computer and use it in GitHub Desktop.
ML-Dash and ML-Logger Setup Script
1 df
2 ls /dev/sdh
3 cd /dev/sdh
4 sudo mount /dev/sdb1 ~/runs
5 mkdir runs
6 sudo mount /dev/sdb1 ~/runs
7 sudo mount /dev/sh~/runs
8 sudo mount /dev/sdh ~/runs
9 ls
10 cd runs
11 ls
12 conda envs list
13 conda
14 which python
15 python
16 python3
17 curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
18 ls
19 rm Miniconda3-latest-Linux-x86_64.sh
20 cd ..
21 curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
22 ls
23 ./Miniconda3-latest-Linux-x86_64.sh
24 sudo chmod +x ./Miniconda3-latest-Linux-x86_64.s
25 sudo chmod +x ./Miniconda3-latest-Linux-x86_64.sh
26 ./Miniconda3-latest-Linux-x86_64.sh
27 bash ./Miniconda3-latest-Linux-x86_64.sh
28 ls
29 bash ./Miniconda3-latest-Linux-x86_64.sh -u
30 rm Miniconda3-latest-Linux-x86_64.sh
31 rm -rf miniconda3/
32 curl -O https://github.com/Archiconda/build-tools/releases/download/0.2.3/Archiconda3-0.2.3-Linux-aarch64.sh
33 sudo chmod +x Archiconda3-0.2.3-Linux-aarch64.sh
34 ./Archiconda3-0.2.3-Linux-aarch64.sh
35 curl -O https://github-production-release-asset-2e65be.s3.amazonaws.com/162905847/58728680-3cf7-11e9-94f6-5558e2e82ea9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200906%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200906T023917Z&X-Amz-Expires=300&X-Amz-Signature=a2067d1a1e4de813c38411d3c8145aebab363af3c0e70243ed0cddcad49ea68a&X-Amz-SignedHeaders=host&actor_id=630490&key_id=0&repo_id=162905847&response-content-disposition=attachment%3B%20filename%3DArchiconda3-0.2.3-Linux-aarch64.sh&response-content-type=application%2Foctet-stream
36 wget https://github-production-release-asset-2e65be.s3.amazonaws.com/162905847/58728680-3cf7-11e9-94f6-5558e2e82ea9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200906%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200906T023917Z&X-Amz-Expires=300&X-Amz-Signature=a2067d1a1e4de813c38411d3c8145aebab363af3c0e70243ed0cddcad49ea68a&X-Amz-SignedHeaders=host&actor_id=630490&key_id=0&repo_id=162905847&response-content-disposition=attachment%3B%20filename%3DArchiconda3-0.2.3-Linux-aarch64.sh&response-content-type=application%2Foctet-stream
37 wget https://github.com/Archiconda/build-tools/releases/download/0.2.3/Archiconda3-0.2.3-Linux-aarch64.sh
38 sudo chmod +x Archiconda3-0.2.3-Linux-aarch64.sh
39 ./Archiconda3-0.2.3-Linux-aarch64.sh
40 rm Archiconda3-0.2.3-Linux-aarch64.sh
41 ls
42 rm 58728680-3cf7-11e9-94f6-5558e2e82ea9\?X-Amz-Algorithm\=AWS4-HMAC-SHA256
43 cp Archiconda3-0.2.3-Linux-aarch64.sh.1 Archiconda3-0.2.3-Linux-aarch64.sh
44 rm Archiconda3-0.2.3-Linux-aarch64.sh.1
45 sudo chmod +x Archiconda3-0.2.3-Linux-aarch64.sh
46 ./Archiconda3-0.2.3-Linux-aarch64.sh
47 exit
48 conda env list
49 pip install ml-logger ml-dash
50 pip install --upgrade pip
51 yes | pip install graphene==2.1.3
52 yes | pip install graphql-core==2.1
53 yes | pip install graphql-relay==0.4.5
54 yes | pip install graphql-server-core==1.1.1
55 pip list
56 pip install numpy matplotlib
57 conda install matplotlib
58 sudo apt-get install gcc
59 sudo yum install gcc
60 conda freeze | grep matplotlib
61 conda list | grep matplotlib
62 conda install matplotlib
63 history
64 conda install matplotlib
65 echo $PATH
66 which python
67 python
68 conda config --add channels gaiar && conda config --add channels conda-forge && conda config --add channels c4aarch64 && conda update -n base --all
69 conda install -y libiconv
70 conda install -y conda-build && conda install -y anaconda-client
71 pip install matplotlib
72 git clone [email protected]:matplotlib/matplotlib.git
73 sudo yum install git
74 git clone [email protected]:matplotlib/matplotlib.git
75 git clone https://github.com/matplotlib/matplotlib.git
76 cd matplotlib/
77 pip install -e .
78 sudo ym python-matplotlib
79 sudo yum install python-matplotlib
80 sudo yum install matplotlib
81 conda install matplotlib
82 conda list
83 cd ..
84 rm matplotlib -rf
85 python
86 pip install ml-logger
87 pip install ml-dash
88 pip list | grep graph
89 yes | pip install graphene==2.1.3
90 yes | pip install graphql-core==2.1
91 yes | pip install graphql-relay==0.4.5
92 yes | pip install graphql-server-core==1.1.1
93 pip install ml-dash
94 exit
95 conda install -y imageio-ffmpeg, typing, requests-futures, dill, scipy, termcolor, websockets, ujson, multidict, uvloop, httptools
96 conda install -y imageio-ffmpeg typing requests-futures dill scipy termcolor websockets ujson multidict uvloop httptools
97 conda install -y imageio-ffmpeg typing requests-futures dill scipy termcolor websockets ujso
98 conda install -y imageio-ffmpeg typing requests-futures dill scipy termcolor websockets ujson
99 conda install request-futures
100 conda install scipy
101 conda install numpy
102 tmux -CC
103 sudo yum install tmux
104 tmux -CC
105 python
106 history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment