-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
393 lines (300 loc) · 15.5 KB
/
index.html
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
<html>
<head>
<meta charset="utf-8"/>
<meta name="description" content=""/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>个人博客小站</title>
<link rel="shortcut icon" href="https://davonter.github.io/favicon.ico?v=1692678868175">
<link href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://davonter.github.io/styles/main.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/@highlightjs/cdn-assets/highlight.min.js"></script>
<script src="https://cdn.bootcss.com/highlight.js/9.15.10/languages/dockerfile.min.js"></script>
<script src="https://cdn.bootcss.com/highlight.js/9.15.10/languages/dart.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/moment.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
<!-- DEMO JS -->
<!--<script src="media/scripts/index.js"></script>-->
</head>
<body>
<div class="main gt-bg-theme-color-first">
<div class="main-content">
<nav class="navbar navbar-expand-lg">
<div class="navbar-brand">
<img class="user-avatar" src="/images/avatar.png" alt="头像">
<div class="site-name gt-c-content-color-first">
个人博客小站
</div>
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<i class="fas fa-bars gt-c-content-color-first" style="font-size: 18px"></i>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<div class="navbar-nav mr-auto" style="text-align: center">
<div class="nav-item">
<a href="/" class="menu gt-a-link">
首页
</a>
</div>
<div class="nav-item">
<a href="/archives" class="menu gt-a-link">
归档
</a>
</div>
<div class="nav-item">
<a href="/tags" class="menu gt-a-link">
标签
</a>
</div>
<div class="nav-item">
<a href="https://davonter.github.io/guan-yu" class="menu gt-a-link">
关于
</a>
</div>
</div>
<div style="text-align: center">
<form id="gridea-search-form" style="position: relative" data-update="1692678868175" action="/search/index.html">
<input class="search-input" autocomplete="off" spellcheck="false" name="q" placeholder="搜索文章" />
<i class="fas fa-search gt-c-content-color-first" style="position: absolute; top: 9px; left: 10px;"></i>
</form>
</div>
</div>
</nav>
<div class="post-list-container">
<div class="post-inner">
<div class="post gt-bg-theme-color-second">
<div class="post-left">
<div>
<a href="https://davonter.github.io/tmux-jian-yi-shuo-ming/">
<span class="post-title gt-c-content-color-first">tmux简易说明</span>
</a>
</div>
<div class="gt-post-content post-abstract gt-c-content-color-second">
</div>
<div class="post-info">
<time class="post-time gt-c-content-color-first">
发布于 · 2023-08-22 ·
</time>
<a href="https://davonter.github.io/QtRHZ-NxW/" class="post-tag">
# tmux
</a>
</div>
</div>
</div>
<div class="post gt-bg-theme-color-second">
<div class="post-left">
<div>
<a href="https://davonter.github.io/shi-yong-github-pages-gridea-da-jian-ge-ren-bo-ke/">
<span class="post-title gt-c-content-color-first">使用github pages + gridea搭建个人博客</span>
</a>
</div>
<div class="gt-post-content post-abstract gt-c-content-color-second">
</div>
<div class="post-info">
<time class="post-time gt-c-content-color-first">
发布于 · 2023-08-02 ·
</time>
</div>
</div>
<a href="https://davonter.github.io/shi-yong-github-pages-gridea-da-jian-ge-ren-bo-ke/" class="post-feature-image"
style="background-image: url('https://davonter.github.io/post-images/shi-yong-github-pages-gridea-da-jian-ge-ren-bo-ke.png')">
</a>
</div>
<div class="post gt-bg-theme-color-second">
<div class="post-left">
<div>
<a href="https://davonter.github.io/hello-gridea/">
<span class="post-title gt-c-content-color-first">Hello Gridea</span>
</a>
</div>
<div class="gt-post-content post-abstract gt-c-content-color-second">
<p>👏 欢迎使用 <strong>Gridea</strong> !<br>
✍️ <strong>Gridea</strong> 一个静态博客写作客户端。你可以用它来记录你的生活、心情、知识、笔记、创意... ...</p>
</div>
<div class="post-info">
<time class="post-time gt-c-content-color-first">
发布于 · 2018-12-12 ·
</time>
<a href="https://davonter.github.io/iUvyrIml0/" class="post-tag">
# Gridea
</a>
</div>
</div>
<a href="https://davonter.github.io/hello-gridea/" class="post-feature-image"
style="background-image: url('https://davonter.github.io/post-images/hello-gridea.png')">
</a>
</div>
<div class="post gt-bg-theme-color-second">
<div class="post-left">
<div>
<a href="https://davonter.github.io/xin-jian-zhi-neng-fang-wen-luci-de-fei-root-yong-hu/">
<span class="post-title gt-c-content-color-first">新建只能访问LUCI的非root用户</span>
</a>
</div>
<div class="gt-post-content post-abstract gt-c-content-color-second">
</div>
<div class="post-info">
<time class="post-time gt-c-content-color-first">
发布于 · 2018-08-03 ·
</time>
</div>
</div>
</div>
<div class="post gt-bg-theme-color-second">
<div class="post-left">
<div>
<a href="https://davonter.github.io/openwrtlede-tian-jia-samba-zhi-chi/">
<span class="post-title gt-c-content-color-first">OpenWrt/Lede 添加Samba支持</span>
</a>
</div>
<div class="gt-post-content post-abstract gt-c-content-color-second">
</div>
<div class="post-info">
<time class="post-time gt-c-content-color-first">
发布于 · 2018-02-02 ·
</time>
<a href="https://davonter.github.io/IH1ZKQHTm/" class="post-tag">
# C/C++
</a>
<a href="https://davonter.github.io/JhBFe2PJs/" class="post-tag">
# Linux
</a>
</div>
</div>
<a href="https://davonter.github.io/openwrtlede-tian-jia-samba-zhi-chi/" class="post-feature-image"
style="background-image: url('https://davonter.github.io/post-images/openwrtlede-tian-jia-samba-zhi-chi.png')">
</a>
</div>
<div class="post gt-bg-theme-color-second">
<div class="post-left">
<div>
<a href="https://davonter.github.io/openwrtlede-tian-jia-usb-zhi-chi/">
<span class="post-title gt-c-content-color-first">OpenWrt/Lede 添加USB支持</span>
</a>
</div>
<div class="gt-post-content post-abstract gt-c-content-color-second">
<h3 id="usb功能定制">USB功能定制</h3>
<h4 id="1-添加usb相关支持">1. 添加USB相关支持</h4>
<pre><code>Kernel modules —> USB Support —> <*> kmod-usb-core.
Kernel modules —> USB Support —> <*> kmod-usb-ohci.
Kernel modules —> USB Support —> <*> kmod-usb-uhci.
Kernel modules —> USB Support —> <*> kmod-usb-storage. #安装usb存储设备驱动
Kernel modules —> USB Support —> <*> kmod-usb-storage-extras.
Kernel modules —> USB Support —> <*> kmod-usb2. ##usb2.0
</code></pre>
<h4 id="2-添加scsi支持">2. 添加SCSI支持</h4>
<pre><code>Kernel modules —> Block Devices —> <*>kmod-scsi-core
</code></pre>
<h4 id="3-添加文件系统支持">3. 添加文件系统支持</h4>
<pre><code>Kernel modules —> Filesystems —> <*> kmod-fs-ext4 (移动硬盘EXT4格式选择)
Kernel modules —> Filesystems —> <*> kmod-fs-vfat(FAT16 / FAT32 格式 选择)
Kernel modules —> Filesystems —> <*> kmod-fs-ntfs (NTFS 格式 选择)
Kernel modules —> Filesystems —> <*> kmod-fuse
</code></pre>
<h4 id="4-添加utf8编码cp437编码iso8859-1编码">4. 添加UTF8编码,CP437编码,ISO8859-1编码</h4>
<pre><code>Kernel modules —> Native Language Support —> <*> kmod-nls-cp437
Kernel modules —> Native Language Support —> <*> kmod-nls-iso8859-1
Kernel modules —> Native Language Support —> <*> kmod-nls-utf8
Utilities ---> disc ---> <*> fdisk.................................... manipulate disk partition table
Utilities ---> <*> usbutils................................... USB devices listing utilities
</code></pre>
<h4 id="5-挂载ntfs">5. 挂载NTFS</h4>
<pre><code>Utilities —> Filesystem —> <*> ntfs-3g
</code></pre>
<blockquote>
<p>保存退出</p>
</blockquote>
<h4 id="6-支持nls-cp936">6. 支持nls-cp936</h4>
<blockquote>
<p><strong>make kernel_menuconfig</strong></p>
</blockquote>
<pre><code>File systems ---> <*> Native language support --->
<*> Codepage 437 (United States, Canada)
<*> Simplified Chinese charset (CP936, GB2312)
</code></pre>
<h3 id="硬盘自动挂载">硬盘自动挂载</h3>
<ol>
<li>
<p>在source/package/base-files/files/etc/hotplug.d/block目录下添加脚本40-mount,如果没有直接创建</p>
</li>
<li>
<p>脚本内容如下:</p>
</li>
</ol>
<pre><code>#!/bin/sh
case "$ACTION" in
add)
/etc/init.d/samba start
for i in $(ls /dev/ | grep 'sd[a-z][1-9]')
do
mkdir -p /mnt/usbstorage
isntfs=`fdisk -l | grep $i | grep NTFS`
if ["$isntfs" = ""];then
mount -o iocharset=utf8,rw /dev/$i /mnt/usbstorage
if [ "$?" -ne 0 ];then
mount -o rw /dev/$i /mnt/usbstorage
fi
else
ntfs-3g -o iocharset=utf8,rw /dev/$i /mnt/usbstorage
if [ "$?" -ne 0 ];then
ntfs-3g -o rw /dev/$i /mnt/usbstorage
fi
fi
done
;;
remove)
/etc/init.d/samba stop
MOUNT=`mount | grep -o '/mnt/usbstorage'`
for i in $MOUNT
do
umount /mnt/usbstorage
done
;;
esac
</code></pre>
</div>
<div class="post-info">
<time class="post-time gt-c-content-color-first">
发布于 · 2018-01-02 ·
</time>
<a href="https://davonter.github.io/JhBFe2PJs/" class="post-tag">
# Linux
</a>
<a href="https://davonter.github.io/N8GMGSlU5/" class="post-tag">
# 硬件
</a>
</div>
</div>
<a href="https://davonter.github.io/openwrtlede-tian-jia-usb-zhi-chi/" class="post-feature-image"
style="background-image: url('https://davonter.github.io/post-images/openwrtlede-tian-jia-usb-zhi-chi.png')">
</a>
</div>
</div>
</div>
<div class="pagination-container">
</div>
<div class="site-footer gt-c-content-color-first">
<div class="slogan gt-c-content-color-first">Bug建造师</div>
<div class="social-container">
<a href="https://github.com/Davonter" target="_blank">
<i class="fab fa-github gt-c-content-color-first"></i>
</a>
</div>
<div class="footer-info">
Powered by <a href="https://github.com/Davonter" target="_blank">Davonter</a>
</div>
<div>
Theme by <a href="https://imhanjie.com/" target="_blank">imhanjie</a>, Powered by <a
href="https://github.com/getgridea/gridea" target="_blank">Gridea | <a href="https://davonter.github.io/atom.xml" target="_blank">RSS</a></a>
</div>
</div>
<script>
hljs.initHighlightingOnLoad()
</script>
</div>
</div>
</body>
</html>