-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSetting_Ubuntu16.04_Environments
1233 lines (933 loc) · 39 KB
/
Setting_Ubuntu16.04_Environments
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
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
***** AFTER SUCCESSFULLY INSTALLING UBUNTU 16.04 *****
***** AFTER SUCCESSFULLY INSTALLING UBUNTU 16.04 *****
***** AFTER SUCCESSFULLY INSTALLING UBUNTU 16.04 *****
***** AFTER SUCCESSFULLY INSTALLING UBUNTU 16.04 *****
***** AFTER SUCCESSFULLY INSTALLING UBUNTU 16.04 *****
<mistake on Terminal CLI>
:-> when pressed "ctrl + s"(=freezes), press "ctrl + q"(=unfreezes)
0. keyboard shortcuts
0) Launchers
Launch Terminal = ctrl + alt + T
0) Navigations
Move Window one workspace to the left = shift + super + left
Move Window one workspace to the right = shift + super + right
Move Window one workspace to the up = shift + super + up
Move Window one workspace to the down = shift + super + down
Switch Applications = super + tab
Switch to workspace 1 = super + home
Switch to last workspace = super + end
Move to workspace left = super + left
Move to workspace right = super + right
Move to workspace above = super + up`
Move to workspace below = super + down
0) System
Log out = ctrl + alt + delete
Lock Screen = ctrl + alt + L
0) Universal Access
Zoom in = shift + ctrl + +
Zoom out = shift + ctrl + -
0) Windows
Toggle Fullscreen Mode = super + F
Maximize window = ctrl + super + up
Restore window = ctrl + super + down
Close window = alt + F4
Hide window = super + H
Move window = alt + F7
Resize window = alt + F8
//View Split on left = ctrl + super + left
//View Split on Right = ctrl + super + right
0. System Configuration
$ cat /proc/cpuinfo -> CPU Info
$ cat /etc/os-release -> OS Info
$ cat /proc/meminfo -> MEMORY Info
$ unmae -a -> Kernel Info
$ cat /proc/driver/nvidia/gpus/0000:01:00.0/information -> GPU Info
$
0. System Settings > Software & Updates > Ubuntu Software(tab)
->->-> stetch combobox "Download From" > other... > click button "Select Best Server"
1. System Settings > Software & Updates > Other_Software > check 'Canonical Partners'
1. System Settings > Appearance, Brightness & Lock, Display, Keyboard, Mouse & Touchpad, Power, Sound, Security & Privacy
1. Enable Minimize on Click
$ gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-minimize-window true
1. Gnome Desktop Environment
GTK+ Theme : MacOS High Sierra
Icons : MacOS`11
Cursor : DMZ-Black
Shell Theme : MacOS-High-Sierra-Dark
Extensions
Appfolders management extension
Applications menu
Auto move windows
Battery percentage
Clipboard indicator
Coverflow alt-tabl
Dash to dock
extensions (enable/disable easily from menu in the top)
Gno-menu
Native window placement
No topleft hot corner
Places status indicator
Refresh wifi connections
Removable drive menu
Remove dropdown arrows
Todo.txt
User themes
Workspace Grid
Workspace indicator
Windownavigator
1. $ sudo apt update
$ sudo apt upgrade
1. System Settings > Language Support (Then Wait until the Installation Finishes)
1. Linux Graphics Driver
$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt update
$ sudo apt upgrade
System Settings > Software & Updates > Additional Drivers > check [proper nvidia graphics driver]
1. $ sudo apt update
$ sudo apt install ubuntu-restricted-extras
1. $ sudo apt update
$ sudo apt install unity-tweak-tool
1. install 'gedit-plugins'
$ sudo apt update
$ sudo apt install gedit-plugins gedit-developer-plugins gedit-latex-plugin gedit-source-code-browser-plugin
1. Install Libreoffice latest version 5.4
$ sudo apt remove --purge --auto-remove libreoffice*
$ sudo apt autoclean
$ sudo apt clean
$ sudo add-apt-repository ppa:libreoffice/libreoffice-5-4
$ sudo apt update
$ sudo apt install libreoffice
1. Ubuntu Software > GIMP, Inkscape, VLC, bleachbit, GParted
1. install 'Google Chrome'
* link : https://askubuntu.com/questions/911976/how-to-install-google-chrome-browser-on-ubuntu
Visit <https://www.google.com/chrome/> and download "google-chrome-stable_current_amd64.deb" file
$ sudo apt update
$ cd
$ cd Downloads
$ sudo dpkg -i google-chrome-stable_current_amd64.deb
$ sudo apt install -f
$ sudo dpkg -i google-chrome-stable_current_amd64.deb
Go to chrome://settings > Advanced Settings > System > uncheck 'background app keep going after exit'
***** Too Slow *****
1. install 'Spotify for Ubuntu'
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0DF731E45CE24F27EEEB1450EFDC8610341D9410
$ echo deb http://repository.spotify.com stable non-free | sudo tee /etc/apt/sources.list.d/spotify.list
$ sudo apt update
$ sudo apt install spotify-client
********************
1. install 'Lightworks Free'
* link : https://www.lwks.com/index.php?option=com_lwks&view=download&Itemid=206
$ sudo apt update
$ cd ~/Downloads
$ sudo dpkg -i lwks
$ sudo apt install -f
$ sudo dpkg -i lwks
1. $ sudo apt update
$ sudo apt install htop
1. install 'Adobe Flash Plugins'
$ sudo apt update
$ sudo apt install adobe-flashplugin
1. Zoom in & Zoom out
System Settings > Keyboard > shortcuts > Universal Access > (Here)
(1) Zoom in : ctrl + =
(2) Zoom out : ctrl + -
Both of above buttons are just next to backspace button. Then you can use with number-keypad +/- buttons.
1. Modity Mouse Scroll Wheel Speed
* link : http://imwheel.sourceforge.net/imwheel.1.html
* link : https://minjejeon.github.io/learningstock/2016/07/08/change-mouse-wheel-speed-using-imwheel.html
$ sudo apt update
$ sudo apt install imwheel
$ sudo gedit /etc/X11/imwheel/startup.conf => ‘IMWHEEL_START=1’
$ sudo gedit ~/.imwheelrc
==>>
".*"
None, Up, Button4, 6
None, Down, Button5, 6
<<==
$ imwheel -k
*************************************************************************************************************************************
1. Ubuntu - 16.04 한글 설정 (Gnome Desktop Environment)
Settings > Keyboard > Shortcuts Tab > Typing을 선택한다.
Switch to Next source, Switch to Previous sourc, Compose Key, Alternative Characters Key를 모두 Disabled로 선택한다. Disabled로 선택하기 위해서는 backspace를 누르면 된다.
Compose Key의 Disabled를 길게 눌러 Right Alt를 선택한다.
Switch to next source는 한영키를 눌러 Multikey를 선택한다. 반드시 Compose Key 설정이 먼저되어야 Multikey를 선택할 수 있다.
Settings > Region & Language 로 들어가면 Input Sources에 English 한 가지 밖에 없으므로 + 버튼을 눌러서 언어를 추가한다.
추가하는 방법은 Korean > Korean(Hangul) 을 고른 뒤 Add 버튼 클릭
방금 추가된 Korean(Hangul)을 선택해서 파랗게 만든 뒤 오른쪽 아래에 "설정(-톱니바퀴 모양)" 버튼 클릭
IBusHangul Setup 이라는 제목의 창이 나오는데
Hangul 탭 > Etc 부분 > [ ] Start in hangul mode 를 클릭해서 V 표시하기
log out을 한후 다시 log in을 한다.
한글/영어가 한영키로 전환되는지 확인한다.
1. Ubuntu - 16.04 한글 설정 (Unity Desktop Environment)
기본으로 설치시 English만 설치되었다고 가정하고 한글 설치와 한영 전환 설정하는 것을 어떻게 하는지 알아보자.
한글 설치
sudo apt-get install fcitx-hangul로 한글을 설치한다.
System Settings > Language Support를 실행해서 아직 완전히 설치되지 않다고 표시되는데 잠시 기다려서 모두 설치한다.
Keyboard input method system:을 ibus가 아닌 fcitx로 변경한다.
재부팅한다.
한영 전환 설정
Shortcut 설정
System Settings > Keyboard > Shortcuts Tab > Typing을 선택한다.
Switch to Next source, Switch to Previous sourc, Compose Key, Alternative Characters Key를 모두 Disabled로 선택한다. Disabled로 선택하기 위해서는 backspace를 누르면 된다.
Compose Key의 Disabled를 길게 눌러 Right Alt를 선택한다.
Switch to next source는 한영키를 눌러 Multikey를 선택한다. 반드시 Compose Key 설정이 먼저되어야 Multikey를 선택할 수 있다.
System Setting 윈도우를 닫고 상단 메뉴바 오른쪽의 입력기 선택하는 것을 본다. 키보드 표시가 된 것이 fcitx이다. fcitx아이콘을 눌러서 Configure Current Input Method를 선택한다.
Keyboard-English(US)가 있다면 +를 눌러 Hangul을 추가한다. (Uncheck “Only Show Current Language”). Korean이 아닌 Hangul이여야 한다.
Global Config tab에서 Trigger Input Method는 한/영키를 눌러 Multikey로 설정(왼쪽 오른쪽 모두)하고 Extrakey for trigger input method는 Disabled로 설정한다. (Mac에서는 command key이므로 대신 shift+space를 선택한다.)
Global Config tab에서 Program > Share State Among Window > All을 선택한다.
테스트
log out을 한후 다시 log in을 한다.
한글/영어가 한영키로 전환되는지 확인한다.
*************************************************************************************************************************************
1. install TLP for Linux
$ sudo add-apt-repository ppa:linrunner/tlp
$ sudo apt update
$ sudo apt install tlp tlp-rdw
$ sudo tlp start
1. install Stacer
* link :
-> Go to <https://github.com/oguzhaninan/Stacer/releases> and downloads .deb package file
$ cd
$ cd Downloads
$ sudo apt update
$ sudo dpkg -i stacer_1.0.9-1_amd64.deb
1. Enable Recursive Search
$ gsettings set org.gnome.nautilus.preferences enable-interactive-search false
1. Set up Firewall (UFW)
* link : https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-16-04
$ sudo ufw default deny incoming
$ sudo ufw default allow outgoing
$ sudo gedit /etc/default/ufw
==>>
...
IPV6=yes
...
<<==
$ ip addr
$ sudo ufw allow ssh
$ sudo ufw allow http
$ sudo ufw allow https
$ sudo ufw allow ftp
$ sudo ufw enable
$ sudo ufw status numbered
1. install codecs and DVD player
$ sudo apt-get install ffmpeg gxine libdvdread4 icedax tagtool libdvd-pkg easytag id3tool lame libxine2-ffmpeg nautilus-script-audio-convert libmad0 mpg321 libavcodec-extra gstreamer1.0-libav
*** link : https://sites.google.com/site/easylinuxtipsproject/multimedia
$ sudo apt install libdvd-pkg
$ sudo dpkg-reconfigure libdvd-pkg
$ sudo apt-mark hold libdvd-pkg libdvdcss2 libdvdcss-dev
1. install compress/decompress tools
$ sudo apt-get install p7zip-rar p7zip-full unace unrar zip unzip sharutils rar uudeview mpack arj cabextract file-roller
**** For Later Use (optional) *****
1. To Reset Unity Settings
$ sudo apt install dconf-tools
$ dconf reset -f /org/compiz/
$ setsid unity
$ unity --reset-icons
***********************************
1. Conky Collections
* link : http://www.noobslab.com/2012/07/conky-collection-for-ubuntulinux.html
1. install 'Kodi' on Ubuntu 16.04
$ sudo apt update
$ sudo apt install software-properties-common
$ sudo add-apt-repository ppa:team-xbmc/ppa
$ sudo apt update
$ sudo apt install kodi
1. Show hidden startup apps
$ sudo sed -i "s/NoDisplay=true/NoDisplay=false/g" /etc/xdg/autostart/*.desktop
1. Change Swapiness Value
$ cat /proc/sys/vm/swappiness
$ sudo gedit /etc/sysctl.conf
==>>
# Swappiness Value
vm.swappiness=10
<<==
$ cat /proc/sys/vm/swappiness
1. Ubuntu Best Indicators
(1) CPU clock frequency
$ sudo apt update
$ sudo apt install indicator-cpufreq
(2) Weather Indicator
$ sudo add-apt-repository ppa:atareao/atareao
$ sudo apt update
$ sudo apt install my-weather-indicator
(3) System Indicator
$ sudo apt update
$ sudo apt install indicator-multiload
(4) Caffeine
$ sudo add-apt-repository ppa:caffeine-developers/ppa
$ suod apt update
$ sudo apt install caffeine
(5) Key Lock Monitor
$ sudo add-apt-repository ppa:tsbarnes/indicator-keylock
$ sudo apt update
$ sudo apt install indicator-keylock
(6) Classic Menu Style
$ sudo apt-add-repository ppa:diesch/testing
$ sudo apt update
$ sudo apt install classicmenu-indicator
(7) Recent Notifications
$ sudo add-apt-repository ppa:jconti/recent-notifications
$ sudo apt update
$ sudo apt install indicator-notifications
(8) Touch Pad
$ sudo add-apt-repository ppa:atareao/atareao
$ sudo apt update
$ sudo apt install touchpad-indicator
(9) Hardware Temperature
$ sudo apt install lm-sensors hddtemp
$ sudo apt install psensor
1. install 'PPA/Key Manager'
$ sudo add-apt-repository ppa:webupd8team/y-ppa-manager
$ sudo apt update
$ sudo apt install ppa-purge y-ppa-manager
1. install 'Winehq & PlayOnLinux' + 'Crossover'
* link : http://ubuntuhandbook.org/index.php/2017/10/wine-stable-2-0-3-released-with-various-fixes-how-to-install/
* link : https://sysads.co.uk/2016/05/16/how-to-install-playonlinux-4-2-10-on-ubuntu-16-04/
(1) Winehq
$ wget -nc https://dl.winehq.org/wine-builds/Release.key && sudo apt-key add Release.key
$ sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
$ sudo apt update
$ sudo apt-get install --install-recommends winehq-stable
(2) PlayOnLinux
$ sudo add-apt-repository ppa:noobslab/apps
$ sudo apt update
$ sudo apt install playonlinux
1. install Oracle-jdk
* link : https://medium.com/@shaaslam/how-to-install-oracle-java-9-in-ubuntu-16-04-671e598f0116
* link : https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04
***** Oracle Java 8 *****
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt update
***** Oracle Java 9, 10 *****
$ sudo add-apt-repository ppa:linuxuprising/java
$ sudo apt-get update
$ sudo apt-get install oracle-java10-installer
***** To Choose the version of JDK *****
$ sudo update-alternatives --config java
****** LAMP ********** LAMP ********** LAMP ********** LAMP ********** LAMP ********** LAMP ********** LAMP ********** LAMP ******
*** link : https://linode.com/docs/web-servers/lamp/install-lamp-stack-on-ubuntu-16-04/
* link : https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04
* link : https://www.rosehosting.com/blog/how-to-install-lamp-on-ubuntu-16-04/
* link : https://httpd.apache.org/docs/2.4/mod/core.html
$ apt list --installed
1. install 'Apache Server'
$ sudo apt update
$ sudo apt upgrade
$ sudo apt install apache2*
$ sudo gedit /etc/apache2/mods-enabled/dir.conf
==>>
<IfModule mod_dir.c>
DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
</IfModule>
<<==
***** Getting Ready as a Application Server or Web Server *****
$ sudo gedit /etc/apache2/apache2.conf
==>>
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
<<==
$ sudo gedit /etc/apache2/mods-available/mpm_prefork.conf
==>>
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 3
MaxSpareServers 40
MaxRequestWorkers 200
MaxConnectionsPerChild 10000
</IfModule>
<<==
$ sudo a2dismod mpm_event
$ sudo a2enmod mpm_prefork
$ sudo systemctl restart apache2
$ sudo systemctl enable apache2
***** This is a process to create private server *****
$ sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/example.com.conf
$ sudo gedit /etc/apache2/sites-available/example.com.conf
==>>
<Directory /var/www/html/example.com/public_html>
Require all granted
</Directory>
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/example.com/public_html
ErrorLog /var/www/html/example.com/logs/error.log
CustomLog /var/www/html/example.com/logs/access.log combined
</VirtualHost>
<<==
$ sudo mkdir -p /var/www/html/example.com/{public_html,logs}
$ sudo a2ensite example.com.conf
$ sudo a2dissite 000-default.conf
$ sudo systemctl reload apache2
**** Adjust the Firewall to Allow Web Traffic *****
$ sudo ufw app list
$ sudo ufw app info "Apache Full"
$ sudo ufw allow in "Apache Full"
***** check if apache_service is successfully installed ****
go to ::: http://your_server_IP_address
***** ***** ***** ***** ***** ***** ***** *****
**** APACHE2 connector *****
$ sudo apt update
$ sudo apt install libassa-3.5-5v5
1. install 'MySQL'
$ sudo apt update
$ sudo apt upgrade
$ sudo apt-get install mysql-server mysql-client mysql-workbench
***********************************
*** [ Kerberos Authentication ] ***
Kerberos Principal : yks93
Kerberos Server Hostname : pentium-B960
Kerberos Administrative Server : pentium-B960
***********************************
$ mysql_secure_installation
* link : https://dev.mysql.com/doc/refman/5.7/en/option-files.html
* link : https://zetawiki.com/wiki/MySQL_%EC%84%A4%EC%A0%95%ED%8C%8C%EC%9D%BC_my.cnf
* link : https://www.digitalocean.com/community/questions/how-do-i-open-port-3306-with-ufw
* link : https://dba.stackexchange.com/questions/64581/mysql-bind-address-0-0-0-0-in-my-cnf-does-not-work
* link : https://gist.github.com/oinume/fc9b72bd8b14ab07e94c
* link : ~
$ sudo gedit /etc/mysql/my.cnf
==>>
(( Filled Later ))
<<==
$ sudo systemctl restart mysql
$ sudo systemctl enable mysql
$ mysql -u root -p
**** Adjust the Firewall to Allow Web Traffic *****
$ sudo ufw allow 3306/tcp
$ sudo ufw allow 3306/udp
$ sudo systemctl restart mysql
$ sudo systemctl restart apache2
$ sudo ufw reload
***** MySQL connectors *****
$ sudo apt update
$ sudo apt install libreoffice-mysql-connector libmysql++-dev libmysql++3v5 libmysqlcppconn7v5 libmysql-java python-mysql.connector python3-mysql.connector
1. install 'PHP'
$ sudo apt install php7.0 libapache2-mod-php7.0
$ sudo gedit /etc/php/7.0/apache2/php.ini
==>>
max_input_time = 30
error_reporting = E_COMPILE_ERROR | E_RECOVERABLE_ERROR | E_ERROR | E_CORE_ERROR
error_log = /var/log/php/error.log
<<==
***** Give Ownership of PHP Server to Apache System User *****
$ sudo mkdir /var/log/php
$ sudo chown www-data /var/log/php
$ sudo gedit /var/www/html/info.php
==>>
<?php
phpinfo();
?>
<<==
***** Another Version of PHP Server Testing *****
$ sudo gedit /var/www/html/example.com/public_html/phptest.php
==>>
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>';
// In the variables section below, replace user and password with your own MySQL credentials as created on your server
$servername = "localhost";
$username = "webuser";
$password = "password";
// Create MySQL connection
$conn = mysqli_connect($servername, $username, $password);
// Check connection - if it fails, output will include the error message
if (!$conn) {
die('<p>Connection failed: <p>' . mysqli_connect_error());
}
echo '<p>Connected successfully</p>';
?>
</body>
</html>
<<==
***** End of php server test code *****
$ sudo systemctl restart apache2
***** PHP Drivers *****
$ sudo apt update
$ sudo apt install php7.0*
** ** Trouble Shooting ** **
$ sudo systemctl status apache2
$ sudo systemctl restart apache2
1. install 'PostgreSQL'
* link : https://www.postgresql.org/download/linux/ubuntu/
* link :
* link :
* link :
$ sudo apt update
$ sudo apt upgrade
$ sudo apt install postgresql-server-dev-9.5 postgresql-client-9.5 postgresql-contrib-9.5 postgresql-plpython-9.5 postgresql-plpython3-9.5 postgresql-9.5 pgadmin3*
$ sudo -u postgres psql
***** After PostgreSQL is successfully installed *****
* link : http://www.kelvinwong.ca/tag/pg_hba-conf/
* link : https://www.enterprisedb.com/docs/en/7.0/peminstguide/installation_guide.1.26.html
* link : https://www.postgresql.org/docs/9.3/static/auth-pg-hba-conf.html
* link : http://www.postgresdba.com/bbs/board.php?bo_table=B12&wr_id=36
* link : http://justckh.blogspot.kr/2013/10/postgresql-ip.html
* link : https://www.enterprisedb.com/docs/en/9.5/instguide/EDB_Postgres_Advanced_Server_Installation_Guide.1.41.html
* psql querry
::>> SELECT name, setting FROM pg_settings WHERE category = 'File Locations';
$ sudo gedit /etc/postgresql/9.5/main/pg_hba.conf
==>>
(( Filled Later ))
<<==
$ sudo gedit /etc/postgresql/9.5/main/postgresql.conf
==>>
...
listen_addresses = '*'
...
<<==
$ sudo systemctl restart postgresql
$ sudo systemctl enable postgresql
**** Adjust the Firewall to Allow Web Traffic *****
$ sudo ufw allow 5432/tcp
$ sudo ufw allow 5432/udp
$ sudo systemctl restart postgresql
$ sudo ufw reload
***** PostgreSQL connectors *****
$ sudo apt update
$ sudo apt install libghc-postgresql-libpq-dev libpqxx-4.0 libpqxx-dbg libpqxx-dev libpqxx-doc libpostgresql-jdbc-java python-psycopg2 python3-psycopg2
1. install 'Mongo DB'
* link : https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
* link : https://www.youtube.com/watch?v=mlODdwoK56A
* link : https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-mongodb-on-ubuntu-16-04
* link : https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-16-04
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
$ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
$ sudo apt update
$ sudo apt install mongodb-org*
$ sudo apt upgrade
***** After Mongo DB is successfully installed *****
* link : https://www.howtoforge.com/tutorial/install-mongodb-on-ubuntu-16.04/
* link : https://docs.mongodb.com/manual/reference/configuration-options/
$ sudo gedit /etc/mongod.conf
==>>
#network interface
net:
~
bind_ip : 0.0.0.0 (allowing from all IPs)
<<==
(CAUTION : first line 'security' is written without any indentation, second line 'authorization' is written after 2 spaces)
If you need something to do some more on settings,
-> $ sudo gedit /lib/systemd/system/mongod.service
would do the tricks.
$ sudo mkdir /data
$ sudo mkdir /data/db
$ sudo chown -R yks93 /data
$ sudo chown yks93 /tmp/mongodb-27017.sock
***** IMPORTANT : php for mongodb *****
* link : https://cloudstuff.tech/installing-php7-0-mongodb-extension-ubuntu-16-04/
$ sudo apt update
$ sudo apt-get install libcurl4-openssl-dev pkg-config libssl-dev libsslcommon2-dev
$ pecl install mongodb
$ sudo gedit /etc/php/7.0/fpm/php.ini
=>
((at the end of this file, append ~))
extension=mongodb.so
<=
$ sudo systemctl restart php7.0-fpm
$ sudo systemctl restart apache2
***** Adjust the Firewall to Allow Web Traffic *****
$ sudo ufw allow 27017/tcp
$ sudo ufw allow 27017/udp
$ sudo ufw status numbered
$ sudo ufw reload
***** make MongoDB starts at every booting *****
Select Unity Launcher (push windows button)
Select Startup Applications
> "Add" Button
> Name : Mongo DB connection
> Command : mongod
> Comment : open a connection to Mongo Databases
***** Let's start Mongo DB *****
$ mongod
$ mongo
***** exit mongod *****
$ ps -aux | grep "mongod" (=pidnum)
$ kill -15 [pidnum]
***** install 'Studio 3T' *****
***** restart / trouble shooting *****
$ sudo systemctl restart mysql
$ sudo systemctl restart postgresql
$ sudo systemctl restart apache2
$ sudo ufw reload
*************************************************************************************************************************************
1. install 'Android Studio'
* link : https://developer.android.com/studio/install.html
Go to <https://developer.android.com/studio/index.html> and Downloads the appropriate file
$ sudo apt update
$ sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6
$ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386
$ cd
$ cd Downloads
$ 7z x android-studio-ide~
$ ls (::the result of this command will show a new folder named 'android-studio')
$ cp -R android-studio /home/yks93/
$ cd
$ cd android-studio
$ pwd
::= /home/yks93/android-studio
$ cd /etc/profile.d
$ sudo touch android_env.sh
$ sudo vi android_env.sh
==>>
$ANDROID_HOME="/home/yks93/android-studio"
<<==
$ sudo gedit /etc/profile.d/myenvvars.sh
==>>
export ANDROID_HOME="/home/yks93/android-studio"
export PATH="$ANDROID_HOME/bin:$PATH"
<<==
$ cd
$ source .bashrc
$ echo $PATH
***** restart computer *****
$ cd android-studio/bin
$ bash studio.sh
-> 'Android SDK Location -- should be : /home/yks93/android-SDK
***** After finishing Initial Android-Studio Setup *****
$ cd /etc/profile.d
$ sudo touch android
==>>
export SDK_HOME="/home/yks93/android-sdk"
<<==
$ sudo gedit /etc/profile.d/myenvvars.sh
==>>
export PATH="$SDK_HOME/tools:$SDK_HOME/platform-tools:$PATH"
<<==
***** create desktop launcher for Android-Studio *****
==>> There is an Easier Way.
==>> Just Click the Android Studio Setting configure button and Look for the menu.
$ sudo gedit /home/yks93/.local/share/applications/android-studio.desktop
==>>
[Desktop Entry]
Version=3.0
Type=Application
Name=Android-Studio
GenericName=android
Comment=Android Studio IDE for Android Application Development
Exec=bash -c 'export PATH="$PATH" && /home/yks93/android-studio/bin/studio.sh'
Categories=Development;Science;IDE;Qt;Education;
Icon=/home/yks93/android-studio/bin/studio.png
Terminal=false
<<==
***** Android KVM Linux Installation *****
* link : https://developer.android.com/studio/run/emulator-acceleration.html?utm_source=android-studio#vm-linux
* link : https://help.ubuntu.com/community/KVM/Installation
$ sudo apt update
$ sudo apt install cpu-checker
$ egrep -c '(vmx|svm)' /proc/cpuinfo
$ kvm-ok
$ sudo apt install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils ia32-libs-multiarch
1. install eclipse-oxygen
* link : http://www.eclipse.org/downloads/eclipse-packages/
* link : http://ubuntuhandbook.org/index.php/2016/01/how-to-install-the-latest-eclipse-in-ubuntu-16-04-15-10/
$ cd
$ cd Downloads
$ tar xvfz eclipse-inst-linux64.tar.gz
$ cd
$ mkdir eclipse
$ cd Downloads
$ cp -R eclipse-installer /home/yks93/eclipse
execute eclipse-installer.exe
Inside Eclipse Program
:-> Eclipse Marketplace > search 'SVN'
:-> Restart Eclipse
:-> Window > Preferences > Team > SVN, click "Get connectors"
:-> Eclipse Marketplace > search 'PyDev'
$ sudo gedit /home/yks93/.local/share/applications/eclipse-cc++.desktop
==>>
[Desktop Entry]
Name=eclipse-cc++
Type=Application
Exec=/home/yks93/eclipse/cpp-oxygen/eclipse/eclipse
Terminal=false
Icon=/home/yks93/eclipse/cpp-oxygen/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=eclipse-cc++
<<==
1. install 'Visual Studio Code'
* link : https://code.visualstudio.com/docs/setup/linux
$ curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
$ sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
$ sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
$ sudo apt update
$ sudo apt install code
***** Visual Studio Code extension recommends ***** (Command : code --install-extension ~)
code --install-extension formulahendry.code-runner
code --install-extension eamodio.gitlens
code --install-extension emmanuelbeziat.vscode-great-icons
code --install-extension PKief.material-icon-theme
code --install-extension formulahendry.auto-rename-tag
code --install-extension formulahendry.auto-complete-tag
code --install-extension formulahendry.auto-close-tag
code --install-extension CoenraadS.bracket-pair-colorizer
code --install-extension joelday.docthis
code --install-extension donjayamanne.githistory
code --install-extension Anjali.clipboard-history
code --install-extension donjayamanne.git-extension-pack
code --install-extension waderyan.gitblame
code --install-extension felipecaputo.git-project-manager
code --install-extension samschneller.git-common-commands-suite
code --install-extension eg2.vscode-npm-script
code --install-extension christian-kohler.path-intellisense
code --install-extension Shan.code-settings-sync
code --install-extension wayou.vscode-todo-highlight
code --install-extension dkundel.vscode-new-file
code --install-extension steoates.autoimport
code --install-extension HookyQR.beautify
code --install-extension alefragnani.Bookmarks
code --install-extension qrti.funclist
code --install-extension vector-of-bool.cmake-tools
code --install-extension anseki.vscode-color
code --install-extension msjsdiag.debugger-for-chrome
code --install-extension hbenl.vscode-firefox-debug
code --install-extension esbenp.prettier-vscode
code --install-extension KnisterPeter.vscode-github
code --install-extension DavidAnson.vscode-markdownlint
code --install-extension Zignd.html-css-class-completion
code --install-extension donjayamanne.jupyter
code --install-extension Equinusocio.vsc-material-theme
code --install-extension ms-vsts.team
code --install-extension dbaeumer.vscode-eslint
code --install-extension eg2.tslint
code --install-extension shinnn.stylelint
code --install-extension ms-vscode.cpptools
code --install-extension ms-vscode.csharp
code --install-extension redhat.java
code --install-extension vscjava.vscode-java-debug
code --install-extension ms-python.python
code --install-extension tushortz.python-extended-snippets
code --install-extension bibhasdn.django-html
code --install-extension vsciot-vscode.vscode-arduino
code --install-extension johnpapa.Angular2
code --install-extension adelphes.android-dev-ext
code --install-extension abusaidm.html-snippets
code --install-extension Zignd.html-css-class-completion
code --install-extension xabikos.JavaScriptSnippets
code --install-extension donjayamanne.jquerysnippets
code --install-extension leizongmin.node-module-intellisense
code --install-extension mattn.Lisp
code --install-extension felixfbecker.php-intellisense
code --install-extension mohsen1.prettify-json
code --install-extension felixfbecker.php-debug
code --install-extension linyang95.php-symbols
code --install-extension felixfbecker.php-pack
code --install-extension vsmobile.vscode-react-native
code --install-extension rebornix.Ruby
code --install-extension hridoy.rails-snippets
code --install-extension lukehoban.Go
code --install-extension James-Yu.latex-workshop
code --install-extension Kasik96.swift
code --install-extension DotJoshJohnson.xml
1. install 'Git'
$ sudo apt update
$ sudo apt install git
$ sudo apt update
$ sudo apt install build-essential libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip
1. install 'Anaconda'
* link : https://poweruphosting.com/blog/install-anaconda-python-ubuntu-16-04/
* link : https://www.digitalocean.com/community/tutorials/how-to-install-the-anaconda-python-distribution-on-ubuntu-16-04
* link : https://medium.com/@GalarnykMichael/install-python-on-ubuntu-anaconda-65623042cb5a
* link : https://hostpresto.com/community/tutorials/how-to-install-anaconda-python-on-ubuntu-16-04/
$ cd /tmp
Go to <https://repo.continuum.io/archive/>, look for the latest version
$ curl -O https://repo.continuum.io/archive/Anaconda3-X.X.X-Linux-x86_64.sh (the most latest version)
$ sha256sum Anaconda3-X.X.X-Linux-x86_64.sh
$ bash Anaconda3-X.X.X-Linux-x86_64.sh
At the last message asking if you're adding path to $PATH => Answer [NO]
Later I can use /etc/profile.d/myenvvars.sh to use the global $PATH
export PATH="/home/yks93/anaconda3/bin:$PATH"
$ python -V
$ python3 -V
$ conda list
$ conda create --name py3 python=3
$ source activate py3
$ conda list
$ conda install anaconda
$ conda install rstudio
$ conda update --all
$ conda install -c conda-forge selenium
$ source deactivate
Let's make desktop launcher for Unity
Go to <https://www.google.co.kr/search?q=anaconda-navigator+icon&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjQpv2yi5_YAhWBsJQKHWWtDl8Q_AUICigB&biw=1331&bih=678#imgrc=_IY1Cb5Ad-UBKM:>
and download the icon image .png file
$ sudo gedit /home/yks93/.local/share/applications/anaconda-navigator.desktop
==>> You have to search anaconda-navigator-icon.png by yourself on the internet.
==>>
[Desktop Entry]
Version=1.6
Type=Application
Name=Anaconda-Navigator
GenericName=Anaconda