-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstartracker_install.sh
593 lines (593 loc) · 16.2 KB
/
startracker_install.sh
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
1 lsusb
2 ls
3 cd Downloads/
4 ll
5 cd DisplayLink\ USB\ Graphics\ Software\ for\ Ubuntu\ 5
6 LS
7 ls
8 cd DisplayLink
9 LL
10 ls
11 sudo ./displaylink-driver-4.4.24.run
12 ls
13 sudo ./displaylink-driver-5.2.14.run
14 sudo apt install DKMS
15 sudo apt-get install dkms
16 sudo ./displaylink-driver-5.2.14.run
17 vi /usr/lib/systemd/system/dlm.service
18 sudo vi /usr/lib/systemd/system/dlm.service
19 python3 -m pip install Pillow
20 cd /home
21 ls
22 cd david
23 ls
24 cd Tetra-master/
25 ls
26 python2 tetra.py
27 sudo apt install python-minimal
28 sudo apt install pip
29 sudo apt install python
30 sudo apt install python-minimal
31 python
32 sudo apt install python
33 sudo apt install python3
34 sudo apt update
35 sudo apt dist-upgrade
36 sudo apt install python2.7 python-pip
37 python2
38 ls
39 python
40 python3
41 python2 tetra.py
42 pip
43 pip install numpy
44 python2 tetra.py
45 pip install PIL
46 vi tetra.py
47 python2 tetra.py
48 pip install scipy
49 python2 tetra.py
50 vi tetra.py
51 python2 tetra.py
52 vi tetra.py
53 dos2unix tetra.py
54 sudo apt install dos2unix
55 dos2unix tetra.py
56 vi tetra.py
57 python2 tetra.py
58 vi tetra.py
59 python2 tetra.py
60 vi tetra.py
61 python2 tetra.py
62 sudo apt install pil
63 pip install Pillow
64 python2 tetra.py
65 pip install Pillow
66 python2 tetra.py
67 python3 tetra.py
68 pip install numpy
69 python3 tetra.py
70 python tetra.py
71 python2 tetra.py
72 python tetra.py
73 python2 tetra.py
74 python tetra.py
75 python2 tetra.py
76 python2 --version
77 python2 tetra.py
78 vi /usr/lib/systemd/system/dlm.service
79 sudo vi /usr/lib/systemd/system/dlm.service
80 ll /usr/lib/systemd/system/dlm.service
81 ll /usr/lib/systemd/system/
82 ll /usr/lib/systemd
83 mkdir /usr/lib/systemd/system/
84 sudo mkdir /usr/lib/systemd/system/
85 sudo vi /usr/lib/systemd/system/dlm.service
86 sudo ./displaylink-driver-4.4.24.run
87 cd /home/david
88 ll
89 cd Te
90 set filec
91 cd Tetra-master/
92 ll
93 cd C_Tetra/
94 gcc -o tetra Tetra.c -I. -lm
95 vi Tetra.c
96 gcc -o tetra Tetra.c -I. -lm
97 vi Tetra.c
98 gcc -o tetra Tetra.c -I. -lm
99 vi Tetra.c
100 gcc -o tetra Tetra.c -I. -lm
101 vi Tetra.c
102 gcc -o tetra Tetra.c -I. -lm
103 ./tetra
104 mv tetra ..
105 cd ..
106 ll
107 ./tetra
108 cd C_Tetra/
109 ll
110 gcc -o Generate_Catalog Generate_Catalog.c -I. -lm
111 vi Generate_Catalog.c
112 gcc -o Generate_Catalog Generate_Catalog.c -I. -lm
113 vi Generate_Catalog.c
114 gcc -o Generate_Catalog Generate_Catalog.c -I. -lm
115 ll
116 mv Generate_Catalog ..
117 cd ..
118 ./Generate_Catalog
119 shutdown
120 shutdown -c
121 ps -arux ¬ grep blue
122 ps -arux
123 ps -aux
124 kill -9 4113
125 sudo useradd -G sudo sean
126 groups
127 usermod -a -G sudo sean
128 sudo usermod -a -G sudo sean
129 sudo adduser sean
130 sudo adduser seanmoloney
131 sudo adduser paddy
132 ipconfig
133 ifconfig
134 sudo visudo
135 useradd -h
136 users
137 ssh 192.168.0.122
138 vi x.c
139 usermod -g seanmoloney sudo
140 usermod -g sudo seanmoloney
141 sudo usermod -g sudo seanmoloney
142 sudo usermod -g sudo sean
143 macdavidifag
144 ll
145 ifconfig
146 sudo apt update
147 sudo apt install openssh-server
148 sudo systemctl status ssh
149 !
150 sudo systemctl status ssh
151 sudo ufw allow ssh
152 ll
153 --with-cfitsio=/usr/local/cfitsio
154 mkdir /usr/local/cfitsio
155 --with-cfitsio=/usr/local/cfitsio
156 ./configure --with-cfitsio=/usr/local/cfitsio
157 make install
158 apt-get install libtool-bin
159 make install
160 locate libtool
161 ll
162 mv libtool /usr/local/bin
163 locate libtool
164 whereis libtool
165 make install
166 ./configure --with-cfitsio=/usr/local/cfitsio
167 make install
168 make clean
169 make install
170 ll /bin/bash
171 sudo apt-get install libtool
172 \rm /usr/local/bin/
173 ll /usr/local/bin/
174 rm /usr/local/bin/libtool
175 sudo apt-get install libtool
176 whereis libtool
177 ll /usr/bin/libtool
178 pwd
179 cd Desktop/
180 ll
181 cd StarTracker/
182 vi max_entropy.cpp
183 g++ max_entropy.cpp -o max_entropy -lCCfits -lcfitsio -lpthread
184 cd ..
185 mv StarTracker/ MyGithub
186 ll
187 cd MyGithub/
188 ll
189 mkdir StarTracker
190 ll
191 mv * StarTracker/
192 ll
193 \rm .x.c.swp
194 ll
195 ll StarTracker/
196 git clone https://github.com/esrf-bliss/CCfits.git
197 sudo apt install git
198 ll
199 git clone https://github.com/healpy/cfitsio.git
200 sudo apt-get install pthread
201 sudo apt-get install pthreads
202 sudo apt-get install libpthread-stubs0-dev
203 g++ max_entropy.cpp -o max_entropy -lCCfits -lcfitsio -lpthread
204 cd StarTracker/
205 g++ max_entropy.cpp -o max_entropy -lCCfits -lcfitsio -lpthread
206 vi ~/.bashrc
207 source ~/.bashrc
208 echo $CPATH
209 vi ~/.bashrc
210 source ~/.bashrc
211 echo $CPATH
212 vi ~/.bashrc
213 source ~/.bashrc
214 echo $CPATH
215 git clone https://github.com/esrf-bliss/CCfits.git
216 \rm CCfits/
217 \rm -r CCfits/
218 ll
219 mkdir max_entropy
220 cd ..
221 ll
222 git clone https://github.com/esrf-bliss/CCfits.git
223 ll
224 cd StarTracker/
225 g++ max_entropy.cpp -o max_entropy -lCCfits -lcfitsio -lpthread
226 g++ max_entropy.cpp -o max_entropy -lCCfits -lcfitsio -lpthread -I ../CCfits/
227 cd ..
228 git clone https://github.com/dtschump/CImg.git
229 ll
230 vi ~/.bashrc
231 g++ max_entropy.cpp -o max_entropy -lCCfits -lcfitsio -lpthread -I ../CCfits/
232 cd StarTracker/
233 g++ max_entropy.cpp -o max_entropy -lCCfits -lcfitsio -lpthread -I ../CCfits/
234 g++ max_entropy.cpp -o max_entropy -lCCfits -lcfitsio -lpthread -I ../CImg -I ../CCfits/
235 sudo g++ max_entropy.cpp -o max_entropy -lCCfits -lcfitsio -lpthread -I ../CImg -I ../CCfits/
236 sudo g++ max_entropy.cpp -o max_entropy -lCCfits -lcfitsio -lpthread -I ../CImg -I ../CCfits/ -I ../CCfits/CCfits
237 ll
238 ll max_entropy
239 ll ..
240 g++ max_entropy.cpp -o max_entropy -lCCfits -lcfitsio -lpthread -I ../CImg -I ../CCfits/ -I ../CCfits/CCfits
241 g++ max_entropy.cpp -lCCfits -lcfitsio -lpthread -I ../CImg -I ../CCfits/ -I ../CCfits/CCfits
242 g++ max_entropy.cpp -lCCfits -lcfitsio -lpthread -I ../CImg -I ../CCfits/
243 cd ../cfitsio/
244 ./configure
245 MAKE
246 make
247 cd ../CCfits/
248 ll
249 ls
250 ./configure
251 ./configure -h
252 ./configure -I ~/Deskop/MyGithub/cfitsio
253 ./configure
254 ./configure --prefix=/usr
255 ll
256 cd ..
257 ll
258 cd cfitsio/
259 make install
260 cd ../CCfits/
261 ./configure --prefix=/usr
262 cd ../cfitsio/
263 ll
264 ls -l
265 ls
266 :q!
267 vi README
268 ll /usr
269 ll /usr/local
270 ./configure --prefix=/usr1/local
271 make clean
272 make install
273 ./configure --prefix=/usr/local
274 make install
275 make clean
276 make install
277 sudo make install
278 cd ../CCfits/
279 ll
280 ls
281 vi README.INSTALL
282 --with-cfitsio=/usr/local/cfitsio
283 sudo mkdir /usr/local/cfitsio
284 --with-cfitsio=/usr/local/cfitsio
285 ./configure
286 cd ../StarTracker/
287 g++ max_entropy.cpp -lCCfits -lcfitsio -lpthread -I ../CImg -I ../CCfits/
288 cd ../CCfits/
289 ./configure
290 make install
291 sudo apt-get install aclocal
292 cd ..
293 sudo apt-get install aclocal
294 sudo apt-get install autotools-dev
295 sudo apt-get install aclocal
296 sudo apt-get install automake
297 cd CCfits/
298 make install
299 ./configure
300 make install
301 make
302 cd ../StarTracker/
303 g++ max_entropy.cpp -lCCfits -lcfitsio -lpthread -I ../CImg -I ../CCfits/
304 cd ../CCfits/
305 ll
306 make clean
307 ./configure
308 make install
309 sudo apt-get update -y
310 sudo apt-get install -y libtool
311 make install
312 sudo apt-get install -y libtool
313 ./configure
314 make install
315 ls
316 vi README.INSTALL
317 export CXX=CC
318 ll
319 vi README.INSTALL
320 --with-cfitsio=/usr/local/cfitsio
321 ll /usr/local
322 sudo --with-cfitsio=/usr/local/cfitsio
323 sudo
324 sudo -u david
325 sudo root
326 sudo -u root
327 sudo
328 --with-cfitsio-include=/home/user/cfitsio --with-cfitsio-libdir=/home/user/cfitsio
329 sudo -i.
330 sudo -s.
331 sudo -s
332 cd Desktop/MyGithub/CCfits/
333 sudo -s
334 ll
335 make install
336 vi Makefile
337 make install
338 ll
339 ls
340 vi README.INSTALL
341 make DESTDIR=/usr/local/CCfits install
342 make install
343 cd ..
344 ll
345 cd StarTracker/
346 ll
347 g++ max_entropy.cpp -lCCfits -lcfitsio -lpthread -I ../CImg -I ../CCfits/
348 cd ../CCfits/
349 ll
350 ls
351 vi README.INSTALL
352 whereis cfitsio
353 vi README.INSTALL
354 ls /usr/local/cfitsio/
355 cd ../cfitsio/
356 ll
357 ls
358 vi README
359 cat README
360 vi README
361 ./configure --prefix=/usr1/local
362 ./configure --prefix=/usr/local
363 make install
364 make
365 make install
366 ./configure --prefix=/usr/local/cfitsio
367 make install
368 cd ../CCfits/
369 ll
370 locate libtool
371 whereis libtool
372 ll /usr/bin/lib
373 ll /usr/bin/libtool
374 vi Makefile
375 make install
376 vi Makefile
377 whereis libCCfits.la
378 ll *.la
379 make clean
380 make install
381 ll
382 ls
383 ./configure -help
384 history | grep configure
385 ./configure
386 make install
387 vi Makefile
388 make install
389 ping www.tcd.ie
390 ./configure --enable-static --enable-shared --prefix=$PWD --with-cfitsio=/home/david/Desktop/MyGithub/CCfits/
391 make install
392 ./configure --enable-static --enable-shared --prefix=$PWD --with-cfitsio=/usr/local/lib
393 make install
394 ll
395 mkdir lib
396 make install
397 vi Makefile
398 cat Makefile | grep lib_LTLIBRARIES
399 ./configure
400 cat Makefile | grep lib_LTLIBRARIES
401 ./configure --enable-static --enable-shared --prefix=$PWD --with-cfitsio=/usr/local/liblo
402 cd Desktop/MyGithub/CCfits/
403 ll
404 make clean
405 sudo -s
406 chmod 777 *
407 cd Desktop/
408 ll
409 cd MyGithub/
410 ll
411 cd pb11_startracker/
412 ll
413 cmake CMakeLists.txt
414 sudo apt install cmake
415 apt-get update
416 sudo apt-get update
417 sudo apt-get install cmake
418 sudo apt-get update --fix-missing
419 sudo apt-get install cmake
420 sudo apt-get cmake
421 sudo apt install cmake
422 cmake CMakeLists.txt
423 sudo snap install cmake
424 sudo apt install cmake
425 sudo apt-get update --fix-missing
426 sudo apt-get update
427 sudo apt install cmake
428 cmake CMakeLists.txt
429 ll
430 cmake CMakeLists.txt
431 make
432 sudo -s
433 pip3 install pycimg
434 sudo pip3 install pycimg
435 chmod 777 /home/david/.cache/pip/http/
436 chmod 777 /home/david/.cache/pip/
437 chmod 777 /home/david/.cache
438 sudo pip3 install pycimg
439 history
440 mkdir /usr/local/src
441 cd /usr/local/src
442 git clone https://github.com/healpy/cfitsio.git
443 cd cfitsio
444 ./configure --prefix=/usr
445 make run
446 make
447 make install
448 make clean
449 make testprog
450 ./testprog > testprog.lis
451 diff testprog.lis testprog.out
452 cmp testprog.fit testprog.std
453 make speed
454 ./speed
455 make cookbook
456 ./cookbook
457 ./speed
458 cd /usr/local/src
459 git clone https://github.com/esrf-bliss/CCfits.git
460 sudo apt-get update
461 apt-get install automake
462 sudo apt-get install libtool
463 cd /usr/local/src/cfitsio
464 ./configure --with-cfitsio=/usr
465 ll
466 ls
467 cd /usr/local/src/CCfits/
468 export echo=echo
469 export CXX=g++
470 make
471 ll
472 ls
473 ./configure --with-cfitsio=/usr
474 cd /usr/local/src/CCfits/
475 export echo=echo
476 export CXX=g++
477 make
478 make DESTDIR=/usr/local/CCfits install
479 sudo make DESTDIR=/usr/local/CCfits install
480 cp /usr/local/src/CCfits/.libs/libCCfits.* /usr/local/lib/
481 sudo apt-get install gsl-bin
482 sudo apt-get install libgsl0-dev
483 cd /usr/local/src
484 git clone https://github.com/dtschump/CImg.git
485 cd CImg/examples/
486 make mlinux
487 sudo apt-get install libx11-dev
488 sudo apt-get install cimg-dev cimg-doc cimg-examples
489 apt install libx11-dev
490 apt install libgl1-mesa-dev
491 apt install xorg-dev
492 apt install libgraphicsmagick1-dev
493 apt install python3-opencv
494 python --version
495 apt-get install x11-apps
496 sudo apt-get update
497 sudo apt-get install python3
498 python3
499 alias python='python3'
500 alias pip='pip3'
501 vi ~david/.bashrc
502 so ~david/.bashrc
503 vi ~david/.bashrc
504 source ~david/.bashrc
505 so ~david/.bashrc
506 vi ~david/.bashrc
507 so ~david/.bashrc
508 vi ~david/.bashrc
509 so ~david/.bashrc
510 pip3 install pybind11
511 apt install python3-pip
512 pip3 install pybind11
513 sudo apt-get install libx11-dev
514 sudo apt-get install cimg-dev cimg-doc cimg-examples
515 sudo apt-get update -y
516 sudo apt-get install libboost-all-dev
517 cd ..
518 cd ~david
519 ll
520 cd Desktop/MyGithub/
521 cd pb11_startracker/
522 ll
523 cmake CMakeLists.txt
524 make
525 ./run_startracker
526 ll
527 ./run_startracker test.fits
528 ll
529 cat Makefile.old
530 make pb11
531 ll
532 python
533 pip3 install pycimg
534 pip3 install numpy
535 pip3 install astropy
536 pip3 install matplotlib
537 sudo apt-get install python3-tk
538 history
539 python
540 pip3 install pycimg
541 sudo pip3 install pycimg
542 sudo pip3 install pycimg -H
543 sudo pip3 -H install pycimg
544 sudo -H pip3 install pycimg
545 sudo apt update
546 sudo apt upgrade
547 sudo -H pip3 install pycimg
548 pip3 install pycimg
549 sudo -s
550 cd ~david/Desktop/MyGithub/pb11_startracker/
551 pip3 install pycimg
552 sudo apt-get install python3-dev
553 pip3 install pycimg
554 pycimg
555 pip
556 pip install pycimg
557 pip3 install pycimg
558 sudo pip3 install pycimg
559 cd /usr/local/src/
560 git clone https://github.com/pybind/pybind11.git
561 sudo git clone https://github.com/pybind/pybind11.git
562 cd ~david
563 ll
564 cd Desktop/MyGithub/pb11_startracker/
565 pip3 install pycimg
566 sudo apt-get install python3 python-dev python3-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev python-pip
567 pip3 install pycimg
568 sudo apt-get update -y
569 sudo apt-get install -y python3 python3-dev
570 sudo apt-get install -y python-pip
571 python --version
572 sudo apt install python3.8-dev
573 pip3 install pycimg
574 sudo -H pip3 install --upgrade pip
575 pip3 install pycimg
576 python
577 sudo apt-get install spyder
578 spyder&
579 pip install -U spyder
580 sudo apt-get install python3-tk
581 history
582 history > startracker_install.sh
583 sudo snap install notepad-plus-plus
584 sudo snap install --classic code
585 sudo apt update
586 sudo apt install software-properties-common apt-transport-https wget
587 wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
588 sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
589 sudo apt install code
590 sudo apt update
591 sudo apt upgrade
592 pip install fits-viewer
593 history > startracker_install.sh