Merge pull request #4 from tuna/move_wiki_to_mirror_site

Move wiki to mirror site
This commit is contained in:
huiyiqun 2015-01-30 16:38:33 +08:00
commit 7c1de547b2
20 changed files with 677 additions and 19 deletions

View File

@ -8,7 +8,7 @@
<meta name="author" content="">
<link rel="shortcut icon" href="/static/img/favicon.png">
<title>清华大学 TUNA 镜像源</title>
<link href="/static/css/bootstrap.css" rel="stylesheet">
<link href="/static/css/style.css" rel="stylesheet">
@ -16,6 +16,7 @@
<script src="/static/js/jquery-2.1.1.min.js"></script>
<script src="/static/js/bootstrap.min.js"></script>
<script src="/static/js/markup.min.js"></script>
<script src="/static/js/marked.min.js"></script>
</head>
<body>
@ -62,8 +63,8 @@
<i class="glyphicon glyphicon-exclamation-sign"></i>
<strong>清华用户您好,我们发现您正在通过校外线路访问 mirrors可能是因为您设置了校外的DNS服务器
为避免产生不必要的校外流量,
建议您通过 <a href="http://mirrors.i.tuna.tsinghua.edu.cn/">http://mirrors.i.tuna.tsinghua.edu.cn/</a>
访问和使用 TUNA mirrors 资源。
建议您通过 <a href="http://mirrors.i.tuna.tsinghua.edu.cn/">http://mirrors.i.tuna.tsinghua.edu.cn/</a>
访问和使用 TUNA mirrors 资源。
</strong>
</div>
<div class="alert alert-info">
@ -72,13 +73,13 @@
<li><strong>若您需要通过本站建立镜像,请提前联系管理员。</strong> </li>
<li><strong>AOSP 镜像服务单 IP 并发数限制为 4, 因版权原因,我们无法提供 Android SDK 镜像,有任何疑问, 请联系管理员。</strong> </li>
</ul>
<br />
<br />
如果您有任何问题或建议,请发送邮件到 issues+mirrors<span style="hidden"></span>&#64;tuna<span style="hide"></span>&#46;tsinghua<span style="hide"></span>&#46;edu<span style="hide"></span>&#46;cn
或前往 <a href="https://issues.tuna.tsinghua.edu.cn/?queue=mirrors">https://issues.tuna.tsinghua.edu.cn/?queue=mirrors</a> 反馈。<br />
If you have any issues, please email issues+mirrors<span style="hidden"></span>&#64;tuna<span style="hide"></span>&#46;tsinghua<span style="hide"></span>&#46;edu<span style="hide"></span>&#46;cn,
or submit a ticket via <a href="https://issues.tuna.tsinghua.edu.cn/?queue=mirrors">https://issues.tuna.tsinghua.edu.cn/?queue=mirrors</a>.<br />
</div>
</div>
</div>
@ -101,7 +102,7 @@
</div><!--/container -->
</div><!--/service -->
<div id="footerwrap">
@ -145,6 +146,20 @@
</div><!--/container -->
</div><!--/footerwrap -->
<div id="HelpModal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="exampleModalLabel">Help Message</h4>
</div><!--modal-header-->
<div class="modal-body">
<p>One fine body&hellip;</p>
</div>
</div><!--modal-content-->
</div><!--modal-dialog-->
</div><!--/HelpModal-->
</body>
@ -152,8 +167,8 @@
{{mirrors}}
<tr>
<td>
<a href="/{{name}}">{{name}}</a>
{{if help}} <a href="{{help}}"><i class="fa fa-question-circle" data-toggle="tooltip" data-placement="right" title="Help"></i></a> {{/if}}
<a href="/{{name}}">{{name}}</a>
{{if help}} <a href="#"><i class="fa fa-question-circle" data-toggle2="tooltip" data-toggle="modal" data-target="#HelpModal" data-help="{{help}}" data-placement="right" title="Help"></i></a> {{/if}}
</td>
<td>{{last_update}}</td>
<td><span class="label {{label}}">{{status}}<span></td>
@ -171,17 +186,30 @@ $(document).ready(function(){
'fail': 'label-warning'
};
var help_page = {
'AOSP': 'https://wiki.tuna.tsinghua.edu.cn/MirrorUsage/android',
'ubuntu': 'https://wiki.tuna.tsinghua.edu.cn/MirrorUsage/ubuntu',
'raspbian': 'https://wiki.tuna.tsinghua.edu.cn/MirrorUsage/raspbian',
'nodesource': 'https://wiki.tuna.tsinghua.edu.cn/MirrorUsage/nodesource',
'pypi': "https://wiki.tuna.tsinghua.edu.cn/MirrorUsage/pypi",
'archlinuxcn': 'https://wiki.tuna.tsinghua.edu.cn/MirrorUsage/archlinuxcn',
'linux.git': 'https://wiki.tuna.tsinghua.edu.cn/MirrorUsage/linux.git',
'homebrew': 'https://wiki.tuna.tsinghua.edu.cn/MirrorUsage/homebrew',
'repo-ck': 'https://wiki.tuna.tsinghua.edu.cn/MirrorUsage/repo-ck'
'AOSP': '/wiki/aosp.md',
'archlinuxcn': '/wiki/archlinuxcn.md',
'homebrew': '/wiki/homebrew.md',
'linux.git': '/wiki/linux.md',
'nodesource': '/wiki/nodesource.md',
'pypi': "wiki/pypi.md",
'raspbian': 'wiki/raspbian.md',
'repo-ck': 'wiki/repo-ck.md',
'ubuntu': 'wiki/ubuntu.md'
}
$('#HelpModal').on('show.bs.modal', function (event) {
var button = $(event.relatedTarget) // Button that triggered the modal
var help_url = button.data('help')
var modal = $(this)
$.get(help_url, function(data) {
if (help_url.match(/\.md$/)) {
data = marked(data)
}
modal.find('.modal-body').html(data)
})
})
window.refreshMirrorList = function() {
$.getJSON("/static/tunasync.json", function(data) {
var mirrors = [];
@ -193,7 +221,7 @@ $(document).ready(function(){
}
var result = Mark.up(mir_tmpl, {mirrors: mirrors});
$('#mirror-list').html(result);
$('#mirror-list i[data-toggle="tooltip"]').tooltip()
$('#mirror-list i[data-toggle2="tooltip"]').tooltip()
});
setTimeout(refreshMirrorList, 10000);
}
@ -201,7 +229,7 @@ $(document).ready(function(){
$.getJSON("/static/tunet.json", function(alert) {
if (alert) {
$('#thu-alert').removeClass('hidden');
$('#thu-alert').removeClass('hidden');
};
});

6
static/js/marked.min.js vendored Normal file

File diff suppressed because one or more lines are too long

46
wiki/aosp.md Normal file
View File

@ -0,0 +1,46 @@
Android 镜像使用帮助
====================
参考 Google 教程 <https://source.android.com/source/downloading.html>,
`https://android.googlesource.com/` 全部使用
`git://aosp.tuna.tsinghua.edu.cn/android/` 代替即可。
**本站资源有限,每个 IP 限制并发数为 4, 请勿使用 `repo sync -j8`
这样的方式同步。**
替换已有的AOSP源代码的remote
----------------------------
如果你之前已经通过某种途径获得了AOSP的源码但是你希望以后通过TUNA同步只需要将
`.repo/manifests.git/config`
中的
url = https://android.googlesource.com/platform/manifest
改为下面的code即可
url = git://aosp.tuna.tsinghua.edu.cn/android/platform/manifest
**这个方法也可以用来在同步Cyanogenmod代码的时候从TUNA同步部分代码**
FAQ
---
1. 镜像的是什么?
- 是按照 google 指南建立的镜像 git 仓库`
2. 为何不能通过浏览器访问?
- 暂时没有 gitweb, 而且反正是 git bare 仓库,没有可以直接看到的内容`
3. 出现\`curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.\`怎么办?
- 无视即可`
------------------------------------------------------------------------

35
wiki/aosp.wiki Normal file
View File

@ -0,0 +1,35 @@
## page was renamed from MirrorHelp/android
= Android 镜像使用帮助 =
参考 Google 教程 https://source.android.com/source/downloading.html, 将 `https://android.googlesource.com/` 全部使用 `git://aosp.tuna.tsinghua.edu.cn/android/` 代替即可。
'''本站资源有限,每个 IP 限制并发数为 4, 请勿使用 `repo sync -j8` 这样的方式同步。'''
== 替换已有的AOSP源代码的remote ==
如果你之前已经通过某种途径获得了AOSP的源码但是你希望以后通过TUNA同步只需要将{{{.repo/manifests.git/config}}}中的
{{{
url = https://android.googlesource.com/platform/manifest
}}}
改为下面的code即可
{{{
url = git://aosp.tuna.tsinghua.edu.cn/android/platform/manifest
}}}
'''这个方法也可以用来在同步Cyanogenmod代码的时候从TUNA同步部分代码'''
== FAQ ==
1. 镜像的是什么?
. - 是按照 google 指南建立的镜像 git 仓库
2. 为何不能通过浏览器访问?
. - 暂时没有 gitweb, 而且反正是 git bare 仓库,没有可以直接看到的内容
3. 出现`curl: (22) The requested URL returned error: 404 Not Found Server does not provide clone.bundle; ignoring.`怎么办?
. - 无视即可
----
CategoryMirrorUsage

23
wiki/archlinuxcn.md Normal file
View File

@ -0,0 +1,23 @@
ArchlinuxCN 镜像使用帮助
========================
Arch Linux 中文社区仓库 是由 Arch Linux
中文社区驱动的非官方用户仓库。包含中文用户常用软件、工具、字体/美化包等。
完整的包信息列表(包名称/架构/维护者/状态)请
[点击这里](https://github.com/archlinuxcn/repo) 查看。
*  官方仓库地址:<http://repo.archlinuxcn.org>
*  镜像地址: <http://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/>
使用方法:在 `/etc/pacman.conf` 文件末尾添加以下两行:
```
[archlinuxcn]
SigLevel = Optional TrustAll
Server = http://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
```
之后安装 `archlinuxcn-keyring` 包导入 GPG key。
------------------------------------------------------------------------

24
wiki/archlinuxcn.wiki Normal file
View File

@ -0,0 +1,24 @@
## page was renamed from MirrorHelpTemplate
## 被“@”包围起来的是宏(macro),在你保存此页面的时候会替换掉。具体替换成什么你保存之后就知道了……
= ArchlinuxCN 镜像使用帮助 =
Arch Linux 中文社区仓库 是由 Arch Linux 中文社区驱动的非官方用户仓库。包含中文用户常用软件、工具、字体/美化包等。
完整的包信息列表(包名称/架构/维护者/状态)请 [[https://github.com/archlinuxcn/repo|点击这里]] 查看。
* 官方仓库地址http://repo.archlinuxcn.org
* 镜像地址: http://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/
使用方法:在 `/etc/pacman.conf` 文件末尾添加以下两行:
{{{
[archlinuxcn]
SigLevel = Optional TrustAll
Server = http://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
}}}
之后安装 `archlinuxcn-keyring` 包导入 GPG key。
----
CategoryMirrorUsage

35
wiki/homebrew.md Normal file
View File

@ -0,0 +1,35 @@
Homebrew 镜像使用帮助
=====================
替换现有上游
------------
```
cd /usr/local
git remote set-url origin git://mirrors.tuna.tsinghua.edu.cn/homebrew.git
brew update
```
如果速度还是很慢,可以尝试以下操作: 然后重试update。
```
cd ~/tmp
git clone git://mirrors.tuna.tsinghua.edu.cn/homebrew.git
rm -rf /usr/local/.git
rm -rf /usr/local/Library
cp -R homebrew/.git /usr/local/
cp -R homebrew/Library /usr/local/
```
使用homebrew-science或者homebrew-python
---------------------------------------
```
cd /usr/local/Library/Taps/homebrew/homebrew-science
git remote set-url origin git://mirrors.tuna.tsinghua.edu.cn/homebrew-science.git
cd /usr/local/Library/Taps/homebrew/homebrew-python
git remote set-url origin git://mirrors.tuna.tsinghua.edu.cn/homebrew-python.git
brew update
```

34
wiki/homebrew.wiki Normal file
View File

@ -0,0 +1,34 @@
#acl +All:write
= Homebrew 镜像使用帮助 =
== 替换现有上游 ==
{{{
cd /usr/local
git remote set-url origin git://mirrors.tuna.tsinghua.edu.cn/homebrew.git
brew update
}}}
如果速度还是很慢,可以尝试以下操作:
{{{
cd ~/tmp
git clone git://mirrors.tuna.tsinghua.edu.cn/homebrew.git
rm -rf /usr/local/.git
rm -rf /usr/local/Library
cp -R homebrew/.git /usr/local/
cp -R homebrew/Library /usr/local/
}}}
然后重试update。
== 使用homebrew-science或者homebrew-python ==
{{{
cd /usr/local/Library/Taps/homebrew/homebrew-science
git remote set-url origin git://mirrors.tuna.tsinghua.edu.cn/homebrew-science.git
cd /usr/local/Library/Taps/homebrew/homebrew-python
git remote set-url origin git://mirrors.tuna.tsinghua.edu.cn/homebrew-python.git
brew update
}}}
----
CategoryMirrorUsage

19
wiki/linux.md Normal file
View File

@ -0,0 +1,19 @@
Linux Kernel Git 镜像使用帮助
=============================
如需克隆 linux 代码,使用
```
git clone git://mirrors.tuna.tsinghua.edu.cn/linux.git
```
若要将 tuna mirror 加入已有代码库,可在已有仓库中运行
```
git remote add tuna git://mirrors.tuna.tsinghua.edu.cn/linux.git
```
或运行
```
git remote set-url origin git://mirrors.tuna.tsinghua.edu.cn/linux.git
```
将默认上游设置为 TUNA 镜像

23
wiki/linux.wiki Normal file
View File

@ -0,0 +1,23 @@
## page was renamed from MirrorHelpTemplate
## 被“@”包围起来的是宏(macro),在你保存此页面的时候会替换掉。具体替换成什么你保存之后就知道了……
= Linux Kernel Git 镜像使用帮助 =
如需克隆 linux 代码,使用
{{{
git clone git://mirrors.tuna.tsinghua.edu.cn/linux.git
}}}
若要将 tuna mirror 加入已有代码库,可在已有仓库中运行
{{{
git remote add tuna git://mirrors.tuna.tsinghua.edu.cn/linux.git
}}}
或运行
{{{
git remote set-url origin git://mirrors.tuna.tsinghua.edu.cn/linux.git
}}}
将默认上游设置为 TUNA 镜像
----
CategoryMirrorUsage

17
wiki/nodesource.md Normal file
View File

@ -0,0 +1,17 @@
Nodesource 镜像使用帮助
=======================
Nodesource 为 debian, ubuntu, fedora, RHEL 等发行版提供预编译的 nodejs
和 npm 等软件包。
debian/ubuntu 使用方法
----------------------
运行
```
curl -sL https://deb.nodesource.com/setup | sudo bash -
```
编辑 `/etc/apt/sources.list.d/nodesource.list`,把
`https://deb.nodesource.com/node/` 替换为
`http://mirrors.tuna.tsinghua.edu.cn/nodesource/deb/` 即可。

16
wiki/nodesource.wiki Normal file
View File

@ -0,0 +1,16 @@
= Nodesource 镜像使用帮助 =
Nodesource 为 debian, ubuntu, fedora, RHEL 等发行版提供预编译的 nodejs 和 npm 等软件包。
== debian/ubuntu 使用方法 ==
运行
{{{
curl -sL https://deb.nodesource.com/setup | sudo bash -
}}}
编辑 `/etc/apt/sources.list.d/nodesource.list`,把 `https://deb.nodesource.com/node/` 替换为 `http://mirrors.tuna.tsinghua.edu.cn/nodesource/deb/` 即可。
----
CategoryMirrorUsage

23
wiki/pypi.md Normal file
View File

@ -0,0 +1,23 @@
pypi 镜像使用帮助
=================
pypi 镜像每 5 分钟同步一次。
临时使用
--------
```
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
```
注意,`simple` 不能少, 是 `https` 而不是 `http`
设为默认
--------
修改 `~/.pip/pip.conf` (没有就创建一个) 修改
`index-url`至tuna例如
```
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
```

21
wiki/pypi.wiki Normal file
View File

@ -0,0 +1,21 @@
## page was renamed from MirrorHelpTemplate
## 被“@”包围起来的是宏(macro),在你保存此页面的时候会替换掉。具体替换成什么你保存之后就知道了……
= pypi 镜像使用帮助 =
pypi 镜像每 5 分钟同步一次。
== 临时使用 ==
{{{
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
}}}
注意,`simple` 不能少, 是 `https` 而不是 `http`
== 设为默认 ==
修改 `~/.pip/pip.conf` (没有就创建一个) 修改 `index-url`至tuna例如
{{{
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
}}}
----
CategoryMirrorUsage

92
wiki/raspbian.md Normal file
View File

@ -0,0 +1,92 @@
Raspbian 镜像使用帮助
=====================
Raspbian 简介
-------------
Raspbian 是专门用于 ARM 卡片式计算机 Raspberry Pi® “树莓派”的操作系统。
Raspberry Pi® “树莓派”是 2012 年问世的 ARM
计算机,旨在为儿童和所有的计算机爱好者提供一套廉价的编程学习与硬件 DIY
平台。树莓派基于 ARM11具有 1080P 高清视频解析能力,附带用于硬件开发的
GPIO 接口使用Linux操作系统。售价仅 \$25\~\$35。
Raspbian 系统是 Debian 7.0/wheezy 的定制版本。得益于 Debian从7.0/wheezy
开始引入的“带硬件浮点加速的ARM架构”(armhf)Debian 7.0
在树莓派上的运行性能有了很大提升。Raspbian 默认使用 LXDE 桌面,内置 C 和
Python 编译器。
Raspbian 是树莓派的开发与维护机构 The Raspbeery Pi Foundation
“树莓派基金会”,推荐用于树莓派的首选系统。
由于以下原因Raspbian 需要单独组建软件仓库,而不能使用 Debian 的仓库:
*  Debian下所有的软件包都需要用 armhf 重新编译。
*  树莓派有部分特有的软件包例如 BCM2835 CPU  GPIO 底层操作库。
*  树莓派用户倾向于探索、尝试最新的软件。这与 Debian 软件源的策略完全不同。
系统架构与版本
--------------
架构:
*  armhf
版本:
*  wheezy
*  jessie
Raspbian 系统由于从诞生开始就基于为了armhf也必须基于当时还是
testing 版本的 7.0/wheezy所以 Raspbian 不倾向于使用 stable/testing
表示版本。
使用说明
--------
基本与 Debian 一致。使用管理员权限经由sudo编辑
`/etc/apt/sources.list` 文件。参考命令行为:
```
pi@raspberrypi ~ $ sudo nano /etc/apt/sources.list
```
删除原文件所有内容,用以下内容取代:
```
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main non-free contrib
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main non-free contrib
```
注意:网址末尾的`raspbian`重复两次是必须的。因为Raspbian的仓库中除了APT软件源还包含其他代码。APT软件源不在仓库的根目录而在`raspbian/`子目录下。
编辑镜像站后,请使用`sudo apt-get update`命令,更新软件源列表,同时检查您的编辑是否正确。
声明
----
Raspbian是由独立开发者维护的与树莓派硬件的开发与维护者The Raspberry Pi
Foundation“树莓派基金会”并无直接联系。
相关链接
--------
### Raspbian 链接
*  Raspbian主页: [http://www.raspbian.org/](http://www.raspbian.org/)
*  文档: [http://www.raspbian.org/RaspbianDocumentation](http://www.raspbian.org/RaspbianDocumentation)
*  Bug Tracker: [http://www.raspbian.org/RaspbianBugs](http://www.raspbian.org/RaspbianBugs)
*  镜像列表: [http://www.raspbian.org/RaspbianMirrors](http://www.raspbian.org/RaspbianMirrors)
*  Debian首页: [http://www.debian.org/](http://www.debian.org/)
### 树莓派链接
*  树莓派基金会主页: [http://www.raspberrypi.org/](http://www.raspberrypi.org/)
*  树莓派基金会论坛Raspbian版块: [http://raspberrypi.org/phpBB3/viewforum.php?f=66](http://raspberrypi.org/phpBB3/viewforum.php?f=66)
关于本文档
----------
本文档内容由 Raspberry Pi
中文社区“[树莓爱好者论坛](http://bbs.shumeipai.org)”提供。按照[知识共享署名-非商业性使用
3.0
中国大陆许可协议授权清华大学镜像站使用](http://creativecommons.org/licenses/by-nc/3.0/cn/)。

73
wiki/raspbian.wiki Normal file
View File

@ -0,0 +1,73 @@
= Raspbian 镜像使用帮助 =
== Raspbian 简介 ==
Raspbian 是专门用于 ARM 卡片式计算机 Raspberry Pi&reg; “树莓派”的操作系统。
Raspberry Pi&reg; “树莓派”是 2012 年问世的 ARM 计算机,旨在为儿童和所有的计算机爱好者提供一套廉价的编程学习与硬件 DIY 平台。树莓派基于 ARM11具有 1080P 高清视频解析能力,附带用于硬件开发的 GPIO 接口使用Linux操作系统。售价仅 $25~$35。
Raspbian 系统是 Debian 7.0/wheezy 的定制版本。得益于 Debian从7.0/wheezy 开始引入的“带硬件浮点加速的ARM架构”(armhf)Debian 7.0 在树莓派上的运行性能有了很大提升。Raspbian 默认使用 LXDE 桌面,内置 C 和 Python 编译器。
Raspbian 是树莓派的开发与维护机构 The Raspbeery Pi Foundation “树莓派基金会”,推荐用于树莓派的首选系统。
由于以下原因Raspbian 需要单独组建软件仓库,而不能使用 Debian 的仓库:
* Debian下所有的软件包都需要用 armhf 重新编译。
* 树莓派有部分特有的软件包,例如 BCM2835 CPU 的 GPIO 底层操作库。
* 树莓派用户倾向于探索、尝试最新的软件。这与 Debian 软件源的策略完全不同。
== 系统架构与版本 ==
架构:
* armhf
版本:
* wheezy
* jessie
Raspbian 系统由于从诞生开始就基于为了armhf也必须基于当时还是 testing 版本的 7.0/wheezy所以 Raspbian 不倾向于使用 stable/testing 表示版本。
== 使用说明 ==
基本与 Debian 一致。使用管理员权限经由sudo编辑 `/etc/apt/sources.list` 文件。参考命令行为:
{{{
pi@raspberrypi ~ $ sudo nano /etc/apt/sources.list
}}}
删除原文件所有内容,用以下内容取代:
{{{
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main non-free contrib
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ wheezy main non-free contrib
}}}
注意:网址末尾的{{{raspbian}}}重复两次是必须的。因为Raspbian的仓库中除了APT软件源还包含其他代码。APT软件源不在仓库的根目录而在{{{raspbian/}}}子目录下。
编辑镜像站后,请使用{{{sudo apt-get update}}}命令,更新软件源列表,同时检查您的编辑是否正确。
== 声明 ==
Raspbian是由独立开发者维护的与树莓派硬件的开发与维护者The Raspberry Pi Foundation“树莓派基金会”并无直接联系。
== 相关链接 ==
=== Raspbian 链接 ===
* Raspbian主页: [[http://www.raspbian.org/]]
* 文档: [[http://www.raspbian.org/RaspbianDocumentation]]
* Bug Tracker: [[http://www.raspbian.org/RaspbianBugs]]
* 镜像列表: [[http://www.raspbian.org/RaspbianMirrors]]
* Debian首页: [[http://www.debian.org/]]
=== 树莓派链接 ===
* 树莓派基金会主页: [[http://www.raspberrypi.org/]]
* 树莓派基金会论坛Raspbian版块: [[http://raspberrypi.org/phpBB3/viewforum.php?f=66]]
== 关于本文档 ==
本文档内容由 Raspberry Pi 中文社区“[[http://bbs.shumeipai.org|树莓爱好者论坛]]”提供。按照[[http://creativecommons.org/licenses/by-nc/3.0/cn/|知识共享署名-非商业性使用 3.0 中国大陆许可协议]]授权清华大学镜像站使用。
----
CategoryMirrorUsage

25
wiki/repo-ck.md Normal file
View File

@ -0,0 +1,25 @@
Archlinux repo-ck 镜像使用帮助
==============================
[repo-ck](http://repo-ck.com/) 是
[Arch](https://archlinux.org/) 的非官方仓库,内有包含 ck
补丁、BFS
调度器等通用或为特定CPU架构优化过的内核以及内核相关的软件包是居家旅行优化折腾的必备良药。更多内容参考
[ArchWiki](https://wiki.archlinux.org/index.php/repo-ck)。
食用方法
--------
`/etc/pacman.conf` 里添加
```
[repo-ck]
Server = http://mirrors.tuna.tsinghua.edu.cn/repo-ck/$arch
```
再增加 GPG 信任:
```
pacman-key -r 5EE46C4C && pacman-key --lsign-key 5EE46C4C
```
之后 `pacman -Sy` 即可。

24
wiki/repo-ck.wiki Normal file
View File

@ -0,0 +1,24 @@
#acl +All:write
= Archlinux repo-ck 镜像使用帮助 =
[[http://repo-ck.com/|repo-ck]] 是 [[https://archlinux.org/|Arch]] 的非官方仓库,内有包含 ck 补丁、BFS 调度器等通用或为特定CPU架构优化过的内核以及内核相关的软件包是居家旅行优化折腾的必备良药。更多内容参考 [[https://wiki.archlinux.org/index.php/repo-ck|ArchWiki]]。
== 食用方法 ==
在 `/etc/pacman.conf` 里添加
{{{
[repo-ck]
Server = http://mirrors.tuna.tsinghua.edu.cn/repo-ck/$arch
}}}
再增加 GPG 信任:
{{{
pacman-key -r 5EE46C4C && pacman-key --lsign-key 5EE46C4C
}}}
之后 `pacman -Sy` 即可。
----
CategoryMirrorUsage

47
wiki/ubuntu.md Normal file
View File

@ -0,0 +1,47 @@
Ubuntu 镜像使用帮助
===================
Ubuntu 的软件源配置文件是
`/etc/apt/sources.list`。将系统自带的该文件做个备份,将该文件替换为下面内容,即可使用
TUNA 的软件源镜像。
注意Ubuntu
的版本代号(codename)是直接写在软件源配置文件中的,所以不同的版本所需的配置文件内容不通用。
下面仅贴出了最常用的版本的可用配置文件,其余版本请自行做相应修改(参考[这里](#more))。
### 14.04 LTS
```
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-backports main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-security main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-updates main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-backports main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-security main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-updates main multiverse restricted universe
```
### more
更多版本的设置,请参看下表中列出的 Ubuntu
版本号和代号的对应关系,将上面的配置中的代号全部替换为相应代号即可。
| 版本号 | 代号 | 完整代号 |
| ------ | ---- | -------- |
| 8.04 LTS | hardy | Hardy Heron |
| 10.04 LTS | lucid | Lucid Lynx |
| 10.10 | maverick | Maverick Meerkat |
| 11.04 | natty | Natty Narwhal |
| 11.10 | oneiric | Oneiric Ocelot |
| 12.04 LTS | precise | Precise Pangolin |
| 12.10 | quantal | Quantal Quetzal |
| 13.04 | raring | Raring Ringtail |
| 13.10 | saucy | Saucy Salamander |
| 14.04 LTS | trusty | Trusty Tahr |
| 14.10 | utopic | Utopic Unicorn |
### 参考
Ubuntu 相关内容参考自 <http://mirror.bjtu.edu.cn/cn/howto.html>

47
wiki/ubuntu.wiki Normal file
View File

@ -0,0 +1,47 @@
## page was renamed from MirrorHelpTemplate
## 被“@”包围起来的是宏(macro),在你保存此页面的时候会替换掉。具体替换成什么你保存之后就知道了……
= Ubuntu 镜像使用帮助 =
Ubuntu 的软件源配置文件是 `/etc/apt/sources.list`。将系统自带的该文件做个备份,将该文件替换为下面内容,即可使用 TUNA 的软件源镜像。
注意Ubuntu 的版本代号(codename)是直接写在软件源配置文件中的,所以不同的版本所需的配置文件内容不通用。
下面仅贴出了最常用的版本的可用配置文件,其余版本请自行做相应修改(参考[[#更多|这里]])。
=== 14.04 LTS ===
{{{
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-backports main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-security main multiverse restricted universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-updates main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-backports main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-proposed main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-security main multiverse restricted universe
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-updates main multiverse restricted universe
}}}
=== 更多 ===
更多版本的设置,请参看下表中列出的 Ubuntu 版本号和代号的对应关系,将上面的配置中的代号全部替换为相应代号即可。
|| 版本号 || 代号 || 完整代号 ||
|| 8.04 LTS || hardy || Hardy Heron ||
|| 10.04 LTS || lucid || Lucid Lynx ||
|| 10.10 || maverick || Maverick Meerkat ||
|| 11.04 || natty || Natty Narwhal ||
|| 11.10 || oneiric || Oneiric Ocelot ||
|| 12.04 LTS || precise || Precise Pangolin ||
|| 12.10 || quantal || Quantal Quetzal ||
|| 13.04 || raring || Raring Ringtail ||
|| 13.10 || saucy || Saucy Salamander ||
|| 14.04 LTS || trusty || Trusty Tahr ||
|| 14.10 || utopic || Utopic Unicorn ||
=== 参考 ===
Ubuntu 相关内容参考自 http://mirror.bjtu.edu.cn/cn/howto.html
----
CategoryMirrorUsage