-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeychain.R
206 lines (168 loc) · 11.5 KB
/
keychain.R
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
## eval "$(ssh-agent -s)"
## ssh-add ~/.ssh/id_rsa
##
##
## bajarse el keychain y poner esta linea en el .bashrc
## ssh-agent persistency
## eval `keychain --eval --agents ssh id_rsa`
##
## git config --global user.name "Angel Martinez-Perez"
## git config --global user.email [email protected]
## git config --global core.editor emacs
## git config --list
##
## Host github.com
## HostName github.com
## User git
## IdentityFile ~/.ssh/id_rsa
##
## chmod 600 ~/.ssh/config
sudo service nginx stop
sudo service shiny-server stop
sudo emacs /etc/nginx/sites-available/default
## chequear configuracion del nginx.conf
nginx -t -c /etc/nginx/nginx.conf
## edit shiny-server to only server to localhost. Not server to 3838
sudo emacs /etc/shiny-server/shiny-server.conf
https://www.r-bloggers.com/password-protect-shiny-apps/
Files:
sudo emacs /etc/apache2/sites-enabled/000-default.conf
sudo emacs /etc/nginx/nginx.conf
sudo emacs /etc/shiny-server/shiny-server.conf
cat /var/log/nginx/error.log
/etc/init.d/apache2 restart
sudo service nginx start
sudo service nginx stop
sudo service nginx restart
sudo service shiny-server start
sudo service shiny-server stop
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
systemctl status nginx.service
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2017-07-24 11:35:02 CEST; 42s ago
Docs: man:nginx(8)
Process: 15895 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Process: 15892 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Jul 24 11:34:59 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:00 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:00 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:01 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:01 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:02 salambo2 nginx[15895]: nginx: [emerg] still could not bind()
Jul 24 11:35:02 salambo2 systemd[1]: nginx.service: Control process exited, code=exited status=1
Jul 24 11:35:02 salambo2 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Jul 24 11:35:02 salambo2 systemd[1]: nginx.service: Unit entered failed state.
Jul 24 11:35:02 salambo2 systemd[1]: nginx.service: Failed with result 'exit-code'.
journalctl -xe
-- Support: https://www.debian.org/support
--
-- Unit ssh.service has finished starting up.
--
-- The start-up result is done.
Jul 24 11:16:45 salambo2 /usr/lib/gdm3/gdm-x-session[1335]: ATTENTION: default value of option force_s3tc_enable overridden by
Jul 24 11:17:01 salambo2 CRON[15645]: pam_unix(cron:session): session opened for user root by (uid=0)
Jul 24 11:17:01 salambo2 CRON[15646]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jul 24 11:17:01 salambo2 CRON[15645]: pam_unix(cron:session): session closed for user root
Jul 24 11:20:25 salambo2 kernel: perf: interrupt took too long (6170 > 6152), lowering kernel.perf_event_max_sample_rate to 32
Jul 24 11:29:45 salambo2 xfce4-terminal[2465]: Allocating size to GtkScrollbar 0x56533403a990 without calling gtk_widget_get_p
Jul 24 11:34:08 salambo2 xfce4-terminal[2465]: Allocating size to GtkScrollbar 0x56533403a590 without calling gtk_widget_get_p
Jul 24 11:34:11 salambo2 xfce4-terminal[2465]: Allocating size to GtkScrollbar 0x56533403a590 without calling gtk_widget_get_p
Jul 24 11:34:14 salambo2 su[3765]: pam_unix(su:session): session closed for user shiny
Jul 24 11:34:27 salambo2 sudo[15802]: root : TTY=pts/1 ; PWD=/home/amartinezp/SparkleShare/personal/salud/tracksGPS ; USER
Jul 24 11:34:27 salambo2 sudo[15802]: pam_unix(sudo:session): session opened for user root by root(uid=0)
Jul 24 11:34:28 salambo2 sudo[15802]: pam_unix(sudo:session): session closed for user root
Jul 24 11:34:46 salambo2 sudo[15833]: root : TTY=pts/1 ; PWD=/home/amartinezp/SparkleShare/personal/salud/tracksGPS ; USER
Jul 24 11:34:46 salambo2 sudo[15833]: pam_unix(sudo:session): session opened for user root by root(uid=0)
Jul 24 11:34:46 salambo2 sudo[15833]: pam_unix(sudo:session): session closed for user root
Jul 24 11:34:59 salambo2 sudo[15862]: root : TTY=pts/1 ; PWD=/home/amartinezp/SparkleShare/personal/salud/tracksGPS ; USER
Jul 24 11:34:59 salambo2 sudo[15862]: pam_unix(sudo:session): session opened for user root by root(uid=0)
Jul 24 11:34:59 salambo2 systemd[1]: Starting A high performance web server and a reverse proxy server...
-- Subject: Unit nginx.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit nginx.service has begun starting up.
Jul 24 11:34:59 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:00 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:00 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:01 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:01 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:02 salambo2 nginx[15895]: nginx: [emerg] still could not bind()
Jul 24 11:35:02 salambo2 systemd[1]: nginx.service: Control process exited, code=exited status=1
Jul 24 11:35:02 salambo2 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
-- Subject: Unit nginx.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit nginx.service has failed.
--
-- The result is failed.
Jul 24 11:35:02 salambo2 systemd[1]: nginx.service: Unit entered failed state.
Jul 24 11:35:02 salambo2 systemd[1]: nginx.service: Failed with result 'exit-code'.
Jul 24 11:35:02 salambo2 sudo[15862]: pam_unix(sudo:session): session closed for user root
Jul 24 11:35:17 salambo2 xfce4-terminal[2465]: Allocating size to GtkScrollbar 0x56533403a590 without calling gtk_widget_get_p
Jul 24 11:35:17 salambo2 xfce4-terminal[2465]: Allocating size to GtkScrollbar 0x56533403a590 without calling gtk_widget_get_p
-- Unit nginx.service has begun starting up.
Jul 24 11:34:59 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:00 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:00 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:01 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:01 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:02 salambo2 nginx[15895]: nginx: [emerg] still could not bind()
Jul 24 11:35:02 salambo2 systemd[1]: nginx.service: Control process exited, code=exited status=1
Jul 24 11:35:02 salambo2 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
-- Subject: Unit nginx.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit nginx.service has failed.
--
-- The result is failed.
Jul 24 11:35:02 salambo2 systemd[1]: nginx.service: Unit entered failed state.
Jul 24 11:35:02 salambo2 systemd[1]: nginx.service: Failed with result 'exit-code'.
Jul 24 11:35:02 salambo2 sudo[15862]: pam_unix(sudo:session): session closed for user root
Jul 24 11:35:17 salambo2 xfce4-terminal[2465]: Allocating size to GtkScrollbar 0x56533403a590 without calling gtk_widget_get_p
Jul 24 11:35:17 salambo2 xfce4-terminal[2465]: Allocating size to GtkScrollbar 0x56533403a590 without calling gtk_widget_get_p-- Unit nginx.service has begun starting up.
Jul 24 11:34:59 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:00 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:00 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:01 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:01 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:02 salambo2 nginx[15895]: nginx: [emerg] still could not bind()
Jul 24 11:35:02 salambo2 systemd[1]: nginx.service: Control process exited, code=exited status=1
Jul 24 11:35:02 salambo2 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
-- Subject: Unit nginx.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit nginx.service has failed.
--
-- The result is failed.
Jul 24 11:35:02 salambo2 systemd[1]: nginx.service: Unit entered failed state.
Jul 24 11:35:02 salambo2 systemd[1]: nginx.service: Failed with result 'exit-code'.
Jul 24 11:35:02 salambo2 sudo[15862]: pam_unix(sudo:session): session closed for user root
Jul 24 11:35:17 salambo2 xfce4-terminal[2465]: Allocating size to GtkScrollbar 0x56533403a590 without calling gtk_widget_get_p
Jul 24 11:35:17 salambo2 xfce4-terminal[2465]: Allocating size to GtkScrollbar 0x56533403a590 without calling gtk_widget_get_p
-- Unit nginx.service has begun starting up.
Jul 24 11:34:59 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:00 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:00 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:01 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:01 salambo2 nginx[15895]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 24 11:35:02 salambo2 nginx[15895]: nginx: [emerg] still could not bind()
Jul 24 11:35:02 salambo2 systemd[1]: nginx.service: Control process exited, code=exited status=1
Jul 24 11:35:02 salambo2 systemd[1]: Failed to start A high performance web server and a reverse proxy server.
-- Subject: Unit nginx.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit nginx.service has failed.
--
-- The result is failed.
Jul 24 11:35:02 salambo2 systemd[1]: nginx.service: Unit entered failed state.
Jul 24 11:35:02 salambo2 systemd[1]: nginx.service: Failed with result 'exit-code'.
Jul 24 11:35:02 salambo2 sudo[15862]: pam_unix(sudo:session): session closed for user root
Jul 24 11:35:17 salambo2 xfce4-terminal[2465]: Allocating size to GtkScrollbar 0x56533403a590 without calling gtk_widget_get_p
Jul 24 11:35:17 salambo2 xfce4-terminal[2465]: Allocating size to GtkScrollbar 0x56533403a590 without calling gtk_widget_get_p