aiegoo / ansible

deploy automation
0 stars 0 forks source link

.net install #8

Open tonyrhee opened 4 years ago

tonyrhee commented 4 years ago

sudo apt-key adv --keyserver packages.microsoft.com --recv-keys EB3E94ADBE1229CF && sudo apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893 && sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic main" > /etc/apt/sources.list.d/dotnetdev.list' && sudo apt update && sudo apt install dotnet-sdk-3.0


cd Spire/Spire/slave/

dotnet build -c Release

mkdir scripts echo "" > secret.txt cd scripts/ nano example.sh chmod +x example.sh nohup ./slave & [1] 7708 nohup: ignoring input and appending output to 'nohup.out' curl

apt install curl curl ifconfig.co 106.251.252.2 cd scripts/ ./example.sh ufw allow 10000

netstat -tulpn curl ifconfig.co 106.251.252.2

cd server_update/

dotnet build -c Release

cd bin/Release/netcoreapp3.0/

nano slavelist.yaml

echo "" > secret.txt

./server_update Local example.sh

ufw allow 10000

ufw default allow incoming

ufw default allow outgoing

netstat -tulpn

curl ifconfig.co 106.251.252.2

fg nohup ./slave (wd: ~/repos/Spire/Spire/slave/bin/Release/netcoreapp3.0)

~/repos/Spire/Spire/server_update/bin/Release/netcoreapp3.0# ls output.log

cd bin/Release/netcoreapp3.0/

./slave

nohup ./slave & [1] 3567

nohup: ignoring input and appending output to 'nohup.out'

ifconfig

./server_update Local example.sh

tonyrhee commented 4 years ago

143 git clone https://github.com/DeeDee-CX330/Spire.git 144 sudo apt-key adv --keyserver packages.microsoft.com --recv-keys EB3E94ADBE1229CF && sudo apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893 && sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod bionic main" > /etc/apt/sources.list.d/dotnetdev.list' && sudo apt update && sudo apt install dotnet-sdk-3.0 145 cd Spire/Spire/slave/ 146 ls 147 dotnet build -c Release 148 cd bin/Release/netcoreapp3.0/ 149 ls 150 mkdir scripts 151 echo "" > secret.txt 152 cd scripts/ 153 nano example.sh 154 chmod +x example.sh 155 cd .. 156 nohup ./slave & 157 curl 158 apt install curl 159 curl ifconfig.co 160 cd scripts/ 161 ls 162 ./example.sh 163 cd .. 164 ufw allow 10000 165 netstat -tulpn 166 curl ifconfig.co 167 cd ../../../.. 168 ls 169 cd server_update/ 170 ls 171 dotnet build -c Release 172 cd bin/Release/netcoreapp3.0/ 173 nano slavelist.yaml 174 echo "" > secret.txt 175 ./server_update Local example.sh 176 netstat -tulpn 177 ufw allow all 178 ufw allow all 10000 179 ufw allow all to 10000 180 ufw allow 10000 181 ufw default allow incoming 182 ufw default allow outgoing 183 netstat -tulpn 184 curl ifconfig.co 185 fg 186 ls 187 ./sl 188 cd ../../.. 189 cd .. 190 ls 191 cd slave/ 192 ls 193 cd bin/Release/netcoreapp3.0/ 194 ./slave 195 ls 196 nohup ./slave & 197 ls 198 ifconfig 199 cd ../../.. 200 cd .. 201 ls 202 cd server_update/ 203 ls 204 cd bin/Release/netcoreapp3.0/ 205 ls 206 ./server_update Local example.sh 207 curl ipconfig.co 208 curl ifconfig.co 209 ls