【笔记】玩客云部署Casaos

前言

Community-based open source software focused on delivering simple personal cloud experience around Docker ecosystem.(官网

准备工作

  • 玩客云刷Armbian

传送门

部署Casaos

1
wget -qO- https://get.casaos.io | bash
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

_____ ____ _____
/ ____| / __ \ / ____|
| | __ _ ___ __ _| | | | (___
| | / _` / __|/ _` | | | |\___ \
| |___| (_| \__ \ (_| | |__| |____) |
\_____\__,_|___/\__,_|\____/|_____/

--- Made by IceWhale with YOU ---

[ OK ] Your hardware architecture is : armv7l
[ OK ] Your System is : Linux
[ OK ] Your Linux Distribution is : debian
[ OK ] Memory capacity check passed.
[ OK ] Disk capacity check passed.
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://security.debian.org bullseye-security InRelease
Hit:3 http://fi.mirror.armbian.de/apt bullseye InRelease
Hit:4 http://deb.debian.org/debian bullseye-updates InRelease
Hit:5 http://deb.debian.org/debian bullseye-backports InRelease
Reading package lists... Done
[ INFO ] Install the necessary dependencies: samba
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libicu67
libldb2 libpython3.9 libtalloc2 libtdb1 libtevent0 libwbclient0
python3-dnspython python3-ldb python3-samba python3-talloc python3-tdb
samba-common samba-common-bin samba-libs tdb-tools
Suggested packages:
cups-common python3-sniffio python3-trio bind9 bind9utils ctdb ldb-tools
smbldap-tools ufw winbind heimdal-clients python3-markdown
Recommended packages:
python3-cryptography python3-idna python3-requests python3-requests-toolbelt
python3-gpg attr python3-markdown samba-dsdb-modules samba-vfs-modules
The following NEW packages will be installed:
libavahi-client3 libavahi-common-data libavahi-common3 libcups2 libicu67
libldb2 libpython3.9 libtalloc2 libtdb1 libtevent0 libwbclient0
python3-dnspython python3-ldb python3-samba python3-talloc python3-tdb samba
samba-common samba-common-bin samba-libs tdb-tools
0 upgraded, 21 newly installed, 0 to remove and 38 not upgraded.
Need to get 19.6 kB/20.5 MB of archives.
After this operation, 91.2 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main armhf python3-tdb armhf 1.4.3-1+b1 [19.6 kB]
Fetched 19.6 kB in 0s (67.7 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libicu67:armhf.
(Reading database ... 25956 files and directories currently installed.)
Preparing to unpack .../00-libicu67_67.1-7_armhf.deb ...
Unpacking libicu67:armhf (67.1-7) ...
Selecting previously unselected package libtalloc2:armhf.
Preparing to unpack .../01-libtalloc2_2.3.1-2+b1_armhf.deb ...
Unpacking libtalloc2:armhf (2.3.1-2+b1) ...
Selecting previously unselected package libtevent0:armhf.
Preparing to unpack .../02-libtevent0_0.10.2-1_armhf.deb ...
Unpacking libtevent0:armhf (0.10.2-1) ...
Selecting previously unselected package libwbclient0:armhf.
Preparing to unpack .../03-libwbclient0_2%3a4.13.13+dfsg-1~deb11u5_armhf.deb ...
Unpacking libwbclient0:armhf (2:4.13.13+dfsg-1~deb11u5) ...
Selecting previously unselected package python3-dnspython.
Preparing to unpack .../04-python3-dnspython_2.0.0-1_all.deb ...
Unpacking python3-dnspython (2.0.0-1) ...
Selecting previously unselected package libtdb1:armhf.
Preparing to unpack .../05-libtdb1_1.4.3-1+b1_armhf.deb ...
Unpacking libtdb1:armhf (1.4.3-1+b1) ...
Selecting previously unselected package libldb2:armhf.
Preparing to unpack .../06-libldb2_2%3a2.2.3-2~deb11u2_armhf.deb ...
Unpacking libldb2:armhf (2:2.2.3-2~deb11u2) ...
Selecting previously unselected package libpython3.9:armhf.
Preparing to unpack .../07-libpython3.9_3.9.2-1_armhf.deb ...
Unpacking libpython3.9:armhf (3.9.2-1) ...
Selecting previously unselected package python3-ldb.
Preparing to unpack .../08-python3-ldb_2%3a2.2.3-2~deb11u2_armhf.deb ...
Unpacking python3-ldb (2:2.2.3-2~deb11u2) ...
Selecting previously unselected package python3-tdb.
Preparing to unpack .../09-python3-tdb_1.4.3-1+b1_armhf.deb ...
Unpacking python3-tdb (1.4.3-1+b1) ...
Selecting previously unselected package libavahi-common-data:armhf.
Preparing to unpack .../10-libavahi-common-data_0.8-5+deb11u2_armhf.deb ...
Unpacking libavahi-common-data:armhf (0.8-5+deb11u2) ...
Selecting previously unselected package libavahi-common3:armhf.
Preparing to unpack .../11-libavahi-common3_0.8-5+deb11u2_armhf.deb ...
Unpacking libavahi-common3:armhf (0.8-5+deb11u2) ...
Selecting previously unselected package libavahi-client3:armhf.
Preparing to unpack .../12-libavahi-client3_0.8-5+deb11u2_armhf.deb ...
Unpacking libavahi-client3:armhf (0.8-5+deb11u2) ...
Selecting previously unselected package libcups2:armhf.
Preparing to unpack .../13-libcups2_2.3.3op2-3+deb11u2_armhf.deb ...
Unpacking libcups2:armhf (2.3.3op2-3+deb11u2) ...
Selecting previously unselected package python3-talloc:armhf.
Preparing to unpack .../14-python3-talloc_2.3.1-2+b1_armhf.deb ...
Unpacking python3-talloc:armhf (2.3.1-2+b1) ...
Selecting previously unselected package samba-libs:armhf.
Preparing to unpack .../15-samba-libs_2%3a4.13.13+dfsg-1~deb11u5_armhf.deb ...
Unpacking samba-libs:armhf (2:4.13.13+dfsg-1~deb11u5) ...
Selecting previously unselected package python3-samba.
Preparing to unpack .../16-python3-samba_2%3a4.13.13+dfsg-1~deb11u5_armhf.deb ...
Unpacking python3-samba (2:4.13.13+dfsg-1~deb11u5) ...
Selecting previously unselected package samba-common.
Preparing to unpack .../17-samba-common_2%3a4.13.13+dfsg-1~deb11u5_all.deb ...
Unpacking samba-common (2:4.13.13+dfsg-1~deb11u5) ...
Selecting previously unselected package samba-common-bin.
Preparing to unpack .../18-samba-common-bin_2%3a4.13.13+dfsg-1~deb11u5_armhf.deb ...
Unpacking samba-common-bin (2:4.13.13+dfsg-1~deb11u5) ...
Selecting previously unselected package tdb-tools.
Preparing to unpack .../19-tdb-tools_1.4.3-1+b1_armhf.deb ...
Unpacking tdb-tools (1.4.3-1+b1) ...
Selecting previously unselected package samba.
Preparing to unpack .../20-samba_2%3a4.13.13+dfsg-1~deb11u5_armhf.deb ...
Unpacking samba (2:4.13.13+dfsg-1~deb11u5) ...
Setting up libicu67:armhf (67.1-7) ...
Setting up libtdb1:armhf (1.4.3-1+b1) ...
Setting up samba-common (2:4.13.13+dfsg-1~deb11u5) ...

Creating config file /etc/samba/smb.conf with new version
Setting up libtalloc2:armhf (2.3.1-2+b1) ...
Setting up python3-tdb (1.4.3-1+b1) ...
Setting up libpython3.9:armhf (3.9.2-1) ...
Setting up libtevent0:armhf (0.10.2-1) ...
Setting up libavahi-common-data:armhf (0.8-5+deb11u2) ...
Setting up tdb-tools (1.4.3-1+b1) ...
update-alternatives: using /usr/bin/tdbbackup.tdbtools to provide /usr/bin/tdbbackup (tdbbackup) in auto mode
Setting up python3-dnspython (2.0.0-1) ...
Setting up libldb2:armhf (2:2.2.3-2~deb11u2) ...
Setting up python3-talloc:armhf (2.3.1-2+b1) ...
Setting up libavahi-common3:armhf (0.8-5+deb11u2) ...
Setting up libwbclient0:armhf (2:4.13.13+dfsg-1~deb11u5) ...
Setting up python3-ldb (2:2.2.3-2~deb11u2) ...
Setting up libavahi-client3:armhf (0.8-5+deb11u2) ...
Setting up libcups2:armhf (2.3.3op2-3+deb11u2) ...
Setting up samba-libs:armhf (2:4.13.13+dfsg-1~deb11u5) ...
Setting up python3-samba (2:4.13.13+dfsg-1~deb11u5) ...
Setting up samba-common-bin (2:4.13.13+dfsg-1~deb11u5) ...
Checking smb.conf with testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed
Server role: ROLE_STANDALONE

Done
Setting up samba (2:4.13.13+dfsg-1~deb11u5) ...
Adding group `sambashare' (GID 115) ...
Done.
Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service
Please ignore the following error about deb-systemd-helper not finding those services.
(samba-ad-dc.service masked)
Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/systemd/system/nmbd.service.
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory
Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/systemd/system/smbd.service.
samba-ad-dc.service is a disabled or a static unit, not starting it.
Processing triggers for libc-bin (2.31-13+deb11u5) ...
[ INFO ] Install the necessary dependencies: cifs-utils
Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
smbclient winbind bash-completion
Recommended packages:
keyutils
The following NEW packages will be installed:
cifs-utils
0 upgraded, 1 newly installed, 0 to remove and 38 not upgraded.
Need to get 85.6 kB of archives.
After this operation, 242 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main armhf cifs-utils armhf 2:6.11-3.1+deb11u1 [85.6 kB]
Fetched 85.6 kB in 0s (237 kB/s)
Selecting previously unselected package cifs-utils.
(Reading database ... 27100 files and directories currently installed.)
Preparing to unpack .../cifs-utils_2%3a6.11-3.1+deb11u1_armhf.deb ...
Unpacking cifs-utils (2:6.11-3.1+deb11u1) ...
Setting up cifs-utils (2:6.11-3.1+deb11u1) ...
update-alternatives: using /usr/lib/arm-linux-gnueabihf/cifs-utils/idmapwb.so to provide /etc/cifs-utils/idmap-plugin (idmap-plugin) in auto mode
[ INFO ] Install the necessary dependencies: mergerfs
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
mergerfs
0 upgraded, 1 newly installed, 0 to remove and 38 not upgraded.
Need to get 229 kB of archives.
After this operation, 412 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main armhf mergerfs armhf 2.31.0-1 [229 kB]
Fetched 229 kB in 1s (279 kB/s)
Selecting previously unselected package mergerfs.
(Reading database ... 27134 files and directories currently installed.)
Preparing to unpack .../mergerfs_2.31.0-1_armhf.deb ...
Unpacking mergerfs (2.31.0-1) ...
Setting up mergerfs (2.31.0-1) ...
[ INFO ] Install the necessary dependencies: unzip
Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
zip
The following NEW packages will be installed:
unzip
0 upgraded, 1 newly installed, 0 to remove and 38 not upgraded.
Need to get 157 kB of archives.
After this operation, 305 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main armhf unzip armhf 6.0-26+deb11u1 [157 kB]
Fetched 157 kB in 1s (188 kB/s)
Selecting previously unselected package unzip.
(Reading database ... 27144 files and directories currently installed.)
Preparing to unpack .../unzip_6.0-26+deb11u1_armhf.deb ...
Unpacking unzip (6.0-26+deb11u1) ...
Setting up unzip (6.0-26+deb11u1) ...
[ OK ] Current Docker verison is 20.10.5+dfsg1.
[ INFO ] Configuration CasaOS Addons
Created symlink /etc/systemd/system/multi-user.target.wants/[email protected] → /lib/systemd/system/[email protected].
Created symlink /etc/systemd/system/default.target.wants/[email protected] → /lib/systemd/system/[email protected].
/tmp/casaos-installer/tmp.PDEdSX6ERB ~
[ INFO ] Downloading https://github.com/IceWhaleTech/CasaOS-Gateway/releases/download/v0.4.4-1/linux-arm-7-casaos-gateway-v0.4.4-1.tar.gz...
linux-arm-7-casaos- 100%[===================>] 2.80M 146KB/s in 19s
[ INFO ] Downloading https://github.com/IceWhaleTech/CasaOS-MessageBus/releases/download/v0.4.4/linux-arm-7-casaos-message-bus-v0.4.4.tar.gz...
linux-arm-7-casaos- 100%[===================>] 4.34M 142KB/s in 32s
[ INFO ] Downloading https://github.com/IceWhaleTech/CasaOS-UserService/releases/download/v0.4.4/linux-arm-7-casaos-user-service-v0.4.4.tar.gz...
linux-arm-7-casaos- 100%[===================>] 4.29M 136KB/s in 31s
[ INFO ] Downloading https://github.com/IceWhaleTech/CasaOS-LocalStorage/releases/download/v0.4.4/linux-arm-7-casaos-local-storage-v0.4.4.tar.gz...
linux-arm-7-casaos- 100%[===================>] 10.35M 143KB/s in 76s
[ INFO ] Downloading https://github.com/IceWhaleTech/CasaOS-AppManagement/releases/download/v0.4.4-3-alpha2/linux-arm-7-casaos-app-management-v0.4.4-3-alpha2.tar.gz...
linux-arm-7-casaos- 100%[===================>] 22.04M 136KB/s in 2m 53s
[ INFO ] Downloading https://github.com/IceWhaleTech/CasaOS/releases/download/v0.4.4-alpha7/linux-arm-7-casaos-v0.4.4-alpha7.tar.gz...
linux-arm-7-casaos- 100%[===================>] 5.61M 148KB/s in 40s
[ INFO ] Downloading https://github.com/IceWhaleTech/CasaOS-CLI/releases/download/v0.4.4/linux-arm-7-casaos-cli-v0.4.4.tar.gz...
linux-arm-7-casaos- 100%[===================>] 3.25M 154KB/s in 22s
[ INFO ] Downloading https://github.com/IceWhaleTech/CasaOS-UI/releases/download/v0.4.4-4/linux-all-casaos-v0.4.4-4.tar.gz...
linux-all-casaos-v0 100%[===================>] 13.59M 137KB/s in 1m 42s
[ INFO ] Downloading https://github.com/IceWhaleTech/CasaOS-AppStore/releases/download/v0.4.4/linux-all-appstore-v0.4.4.tar.gz...
linux-all-appstore- 100%[===================>] 2.70M 140KB/s in 18s
[ INFO ] Extracting linux-all-appstore-v0.4.4.tar.gz...
[ INFO ] Extracting linux-all-casaos-v0.4.4-4.tar.gz...
[ INFO ] Extracting linux-arm-7-casaos-app-management-v0.4.4-3-alpha2.tar.gz...
[ INFO ] Extracting linux-arm-7-casaos-cli-v0.4.4.tar.gz...
[ INFO ] Extracting linux-arm-7-casaos-gateway-v0.4.4-1.tar.gz...
[ INFO ] Extracting linux-arm-7-casaos-local-storage-v0.4.4.tar.gz...
[ INFO ] Extracting linux-arm-7-casaos-message-bus-v0.4.4.tar.gz...
[ INFO ] Extracting linux-arm-7-casaos-user-service-v0.4.4.tar.gz...
[ INFO ] Extracting linux-arm-7-casaos-v0.4.4-alpha7.tar.gz...
~
[ INFO ] Stopping casaos-gateway.service...
Failed to stop casaos-gateway.service: Unit casaos-gateway.service not loaded.
[NOTICE] Service casaos-gateway.service does not exist.
[ INFO ] Stopping casaos-message-bus.service...
Failed to stop casaos-message-bus.service: Unit casaos-message-bus.service not loaded.
[NOTICE] Service casaos-message-bus.service does not exist.
[ INFO ] Stopping casaos-user-service.service...
Failed to stop casaos-user-service.service: Unit casaos-user-service.service not loaded.
[NOTICE] Service casaos-user-service.service does not exist.
[ INFO ] Stopping casaos-local-storage.service...
Failed to stop casaos-local-storage.service: Unit casaos-local-storage.service not loaded.
[NOTICE] Service casaos-local-storage.service does not exist.
[ INFO ] Stopping casaos-app-management.service...
Failed to stop casaos-app-management.service: Unit casaos-app-management.service not loaded.
[NOTICE] Service casaos-app-management.service does not exist.
[ INFO ] Stopping rclone.service...
Failed to stop rclone.service: Unit rclone.service not loaded.
[NOTICE] Service rclone.service does not exist.
[ INFO ] Stopping casaos.service...
Failed to stop casaos.service: Unit casaos.service not loaded.
[NOTICE] Service casaos.service does not exist.
[ INFO ] Running /tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/migration/script.d/01-migrate-gateway.sh...
realpath: /usr/bin/casaos: No such file or directory
realpath: /usr/local/bin/casaos: No such file or directory
/tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/migration/script.d/01-migrate-gateway.sh: line 99: /usr/bin/casaos-gateway: No such file or directory
/tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/migration/script.d/01-migrate-gateway.sh: line 99: CURRENT_BIN_FILE_LEGACY_NOT_FOUND: command not found
stat: cannot statx 'CURRENT_BIN_FILE_LEGACY_NOT_FOUND': No such file or directory
✅ CURRENT_VERSION: CURRENT_VERSION_NOT_FOUND
✅ SOURCE_VERSION: v0.4.4
✅ Migration is not needed.
[ INFO ] Running /tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/migration/script.d/02-migrate-user-service.sh...
realpath: /usr/bin/casaos: No such file or directory
realpath: /usr/local/bin/casaos: No such file or directory
/tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/migration/script.d/02-migrate-user-service.sh: line 98: /usr/bin/casaos-user-service: No such file or directory
/tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/migration/script.d/02-migrate-user-service.sh: line 98: CURRENT_BIN_FILE_LEGACY_NOT_FOUND: command not found
stat: cannot statx 'CURRENT_BIN_FILE_LEGACY_NOT_FOUND': No such file or directory
✅ CURRENT_VERSION: CURRENT_VERSION_NOT_FOUND
✅ SOURCE_VERSION: v0.4.4
✅ Migration is not needed.
[ INFO ] Running /tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/migration/script.d/03-migrate-casaos.sh...
realpath: /usr/local/bin/casaos: No such file or directory
/tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/migration/script.d/03-migrate-casaos.sh: line 90: /usr/bin/casaos: No such file or directory
/tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/migration/script.d/03-migrate-casaos.sh: line 90: CURRENT_BIN_FILE_LEGACY_NOT_FOUND: command not found
stat: cannot statx 'CURRENT_BIN_FILE_LEGACY_NOT_FOUND': No such file or directory
✅ CURRENT_VERSION: CURRENT_VERSION_NOT_FOUND
✅ SOURCE_VERSION: v0.4.4.2
✅ Migration is not needed.
[ INFO ] Running /tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/migration/script.d/04-migrate-local-storage.sh...
realpath: /usr/bin/casaos: No such file or directory
realpath: /usr/local/bin/casaos: No such file or directory
/tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/migration/script.d/04-migrate-local-storage.sh: line 99: /usr/bin/casaos-local-storage: No such file or directory
/tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/migration/script.d/04-migrate-local-storage.sh: line 99: CURRENT_BIN_FILE_LEGACY_NOT_FOUND: command not found
stat: cannot statx 'CURRENT_BIN_FILE_LEGACY_NOT_FOUND': No such file or directory
✅ CURRENT_VERSION: CURRENT_VERSION_NOT_FOUND
✅ SOURCE_VERSION: v0.4.4
✅ Migration is not needed.
[ INFO ] Running /tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/migration/script.d/05-migrate-message-bus.sh...
realpath: /usr/bin/casaos: No such file or directory
realpath: /usr/local/bin/casaos: No such file or directory
/tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/migration/script.d/05-migrate-message-bus.sh: line 83: /usr/bin/casaos-message-bus: No such file or directory
/tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/migration/script.d/05-migrate-message-bus.sh: line 83: CURRENT_BIN_FILE_LEGACY_NOT_FOUND: command not found
stat: cannot statx 'CURRENT_BIN_FILE_LEGACY_NOT_FOUND': No such file or directory
✅ CURRENT_VERSION: CURRENT_VERSION_NOT_FOUND
✅ SOURCE_VERSION: v0.4.4
✅ Migration is not needed.
[ INFO ] Running /tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/migration/script.d/06-migrate-app-management.sh...
realpath: /usr/bin/casaos: No such file or directory
realpath: /usr/local/bin/casaos: No such file or directory
/tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/migration/script.d/06-migrate-app-management.sh: line 97: /usr/bin/casaos-app-management: No such file or directory
/tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/migration/script.d/06-migrate-app-management.sh: line 97: CURRENT_BIN_FILE_LEGACY_NOT_FOUND: command not found
stat: cannot statx 'CURRENT_BIN_FILE_LEGACY_NOT_FOUND': No such file or directory
✅ CURRENT_VERSION: CURRENT_VERSION_NOT_FOUND
✅ SOURCE_VERSION: v0.4.4
✅ Migration is not needed.
[ INFO ] Installing CasaOS...
[ INFO ] Running /tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/setup/script.d/01-setup-gateway.sh...
🟩 Running setup-gateway.sh...
Initializing config file...
'/etc/casaos/gateway.ini.sample' -> '/etc/casaos/gateway.ini'
Enabling service...
Created symlink /etc/systemd/system/multi-user.target.wants/casaos-gateway.service → /lib/systemd/system/casaos-gateway.service.
✅ setup-gateway.sh finished.
[ INFO ] Running /tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/setup/script.d/02-setup-user-service.sh...
🟩 Running setup-user-service.sh...
Initializing config file...
'/etc/casaos/user-service.conf.sample' -> '/etc/casaos/user-service.conf'
Enabling service...
Created symlink /etc/systemd/system/multi-user.target.wants/casaos-user-service.service → /lib/systemd/system/casaos-user-service.service.
✅ setup-user-service.sh finished.
[ INFO ] Running /tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/setup/script.d/03-setup-casaos.sh...
🟩 Running setup-casaos.sh...
Initializing config file...
'/etc/casaos/casaos.conf.sample' -> '/etc/casaos/casaos.conf'
Enabling service...
Created symlink /etc/systemd/system/multi-user.target.wants/casaos.service → /lib/systemd/system/casaos.service.
✅ setup-casaos.sh finished.
[ INFO ] Running /tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/setup/script.d/04-setup-local-storage.sh...
🟩 Running setup-local-storage.sh...
Initializing config file...
'/etc/casaos/local-storage.conf.sample' -> '/etc/casaos/local-storage.conf'
Enabling service...
Created symlink /etc/systemd/system/multi-user.target.wants/casaos-local-storage.service → /lib/systemd/system/casaos-local-storage.service.
✅ setup-local-storage.sh finished.
[ INFO ] Running /tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/setup/script.d/05-setup-message-bus.sh...
🟩 Running setup-message-bus.sh...
Initializing config file...
'/etc/casaos/message-bus.conf.sample' -> '/etc/casaos/message-bus.conf'
Enabling service...
Created symlink /etc/systemd/system/multi-user.target.wants/casaos-message-bus.service → /lib/systemd/system/casaos-message-bus.service.
✅ setup-message-bus.sh finished.
[ INFO ] Running /tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/setup/script.d/06-setup-app-management.sh...
🟩 Running setup-app-management.sh...
Initializing config file...
'/etc/casaos/app-management.conf.sample' -> '/etc/casaos/app-management.conf'
Enabling service...
Created symlink /etc/systemd/system/multi-user.target.wants/casaos-app-management.service → /lib/systemd/system/casaos-app-management.service.
✅ setup-app-management.sh finished.
[ INFO ] Running /tmp/casaos-installer/tmp.PDEdSX6ERB/build/scripts/setup/script.d/99-setup-appstore.sh...
🟩 Updating default appstore...
renamed '/var/lib/casaos/appstore/default.new' -> '/var/lib/casaos/appstore/default'
[ INFO ] Install the necessary dependencies: Rclone
Archive: rclone-current-linux-arm-v7.zip
creating: tmp_unzip_dir_for_rclone/rclone-v1.61.1-linux-arm-v7/
inflating: tmp_unzip_dir_for_rclone/rclone-v1.61.1-linux-arm-v7/README.html [text]
inflating: tmp_unzip_dir_for_rclone/rclone-v1.61.1-linux-arm-v7/rclone [binary]
inflating: tmp_unzip_dir_for_rclone/rclone-v1.61.1-linux-arm-v7/README.txt [text]
inflating: tmp_unzip_dir_for_rclone/rclone-v1.61.1-linux-arm-v7/rclone.1 [text]
inflating: tmp_unzip_dir_for_rclone/rclone-v1.61.1-linux-arm-v7/git-log.txt [text]
mandb not found. The rclone man docs will not be installed.

rclone v1.61.1 has successfully installed.
Now run "rclone config" for setup. Check https://rclone.org/docs/ for more details.

[ OK ] Rclone v1.61.1 installed successfully.
Created symlink /etc/systemd/system/multi-user.target.wants/rclone.service → /lib/systemd/system/rclone.service.
[ INFO ] Starting casaos-gateway.service...
[ INFO ] Starting casaos-message-bus.service...
[ INFO ] Starting casaos-user-service.service...
[ INFO ] Starting casaos-local-storage.service...
[ INFO ] Starting casaos-app-management.service...
[ INFO ] Starting rclone.service...
[ INFO ] Starting casaos.service...
[ INFO ] Checking casaos-gateway.service...
[ OK ] casaos-gateway.service is running.
[ INFO ] Checking casaos-message-bus.service...
[ OK ] casaos-message-bus.service is running.
[ INFO ] Checking casaos-user-service.service...
[ OK ] casaos-user-service.service is running.
[ INFO ] Checking casaos-local-storage.service...
[ OK ] casaos-local-storage.service is running.
[ INFO ] Checking casaos-app-management.service...
[ OK ] casaos-app-management.service is running.
[ INFO ] Checking rclone.service...
[ OK ] rclone.service is running.
[ INFO ] Checking casaos.service...
[ OK ] casaos.service is running.
─────────────────────────────────────────────────────
CasaOS v0.4.4.2 is running at:
─────────────────────────────────────────────────────
- http://192.168.200.104 (eth0)
Open your browser and visit the above address.
─────────────────────────────────────────────────────

CasaOS Project : https://github.com/IceWhaleTech/CasaOS
CasaOS Team : https://github.com/IceWhaleTech/CasaOS#maintainers
CasaOS Discord : https://discord.gg/knqAbbBbeX
Website : https://www.casaos.io
Online Demo : http://demo.casaos.io

Uninstall : casaos-uninstall

root@onecloud:~#

踩坑

  • docker安装失败
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
================================================================================

To run Docker as a non-privileged user, consider setting up the
Docker daemon in rootless mode for your user:

dockerd-rootless-setuptool.sh install

Visit https://docs.docker.com/go/rootless/ to learn about rootless mode.


To run the Docker daemon as a fully privileged service, but granting non-root
users access, refer to https://docs.docker.com/go/daemon-access/

WARNING: Access to the remote API on a privileged Docker daemon is equivalent
to root access on the host. Refer to the 'Docker daemon attack surface'
documentation for details: https://docs.docker.com/go/attack-surface/

================================================================================

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

解决问题

  • 玩客云刷完Armbian后不要通过apt update && apt upgrade命令更新软件,直接进行Casaos的安装

初始化

  • 设置管理员用户名和密码

  • 完成

完成

  • 截图留念

参考文献

哔哩哔哩——乌客wuke
CSDN——Moelimoe
CSDN——realmadrid_juejin
腾讯云开发者社区——Se7en258