-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (41 loc) · 1.55 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>danny50610 apt repo</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
<style>
pre {
background-color: lightgray;
padding: 0.25rem;
}
</style>
</head>
<body>
<div class="container">
<h1>danny50610 apt repo</h1>
<p>安裝必要套件</p>
<pre><code>$ sudo apt-get update
$ sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release</code></pre>
<p>新增 GPG key</p>
<pre><code>$ sudo mkdir -p /etc/apt/keyrings
$ curl -fsSL https://danny50610.github.io/apt-repo/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/danny50610.gpg</code></pre>
<p>Use the following command to set up the repository:</p>
<pre><code>$ echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/danny50610.gpg] https://danny50610.github.io/apt-repo \
$(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/danny50610.list > /dev/null
</code></pre>
<p>記得先跑一次 update</p>
<pre><code>$ sudo apt-get update</code></pre>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa"
crossorigin="anonymous"></script>
</body>
</html>