我已经使用 apt-mirror 将一些 ubuntu 存储库镜像到内部存储库,但是由于https://serverfault.com/questions/93437/apt-mirror-does-not-mirror-the-i18n-directory我得到以下信息:
Ign https://internalrepo precise-updates/main Translation-en
Ign https://internalrepo precise-updates/multiverse Translation-en
Ign https://internalrepo precise-updates/restricted Translation-en
Ign https://internalrepo precise-updates/universe Translation-en
Run Code Online (Sandbox Code Playgroud)
现在我正在尝试加快速度,因为其中有很多会减慢apt-get update我们机器上的速度。
有什么方法可以告诉我这些sources.list.d文件,或者apt-get甚至不要尝试获取这些文件(我想这比忽略忽略会加快速度)?
使用 Ubuntu 12.04
我目前正在使用 apt-mirror 创建 Debian 存储库的本地镜像。
由于镜像存储库将仅由注定要成为无头服务器的机器使用,并且为了减少当前的镜像大小(大约 75GB),因此永远不需要像游戏和其他可能的类别。
我该如何去指定(可能在 mirror.list 上?)我想从镜像中排除哪些部分/类别?
也许有点主观,但除了游戏之外,出于我的环境目的,可以从镜像中“安全地”忽略哪些其他部分/类别?
我的 mirror.list 如下所示,因为所有机器都使用精确。
# MAIN
deb-amd64 http://archive.ubuntu.com/ubuntu precise main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu precise main restricted universe multiverse
# SECURITY
deb-amd64 http://archive.ubuntu.com/ubuntu precise-security main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu precise-security main restricted universe multiverse
Run Code Online (Sandbox Code Playgroud)
另外,对于相对稳定的环境,您还建议将哪些其他内容添加到要镜像的列表中?我再次理解这是主观的,只是寻找一些指针。
我一直在使用 vmbuilder 构建 kvm 图像,如下所示:
vmbuilder kvm ubuntu \
-v \
--suite=precise \
--libvirt=qemu:///system \
--arch=amd64 \
--cpus=2 \
--mem=1024 \
--swapsize=1024 \
--rootsize=10240 \
--flavour=server \
--hostname=hostnamehere \
--ip=X.X.X.X \
--mask=X.X.X.X \
--net=X.X.X.X \
--bcast=X.X.X.X \
--gw=X.X.X.X \
--dns='X.X.X.X X.X.X.X' \
--bridge=br0 \
--mirror=http://archive.ubuntu.com/ubuntu \
--components='main,universe' \
--addpkg=openssh-server,acpid \
--user=username \
--pass=password \
--dest=/vmname \
--tmpfs=-
Run Code Online (Sandbox Code Playgroud)
然而,最近我有一个请求来构建一个 VMWare 映像,虽然我过去使用几个 VMWare 工具完成了这样的操作,但我最近读到这也可以使用 vmbuilder 来实现,我将如何创建一个我可以提供的 vmware 映像给我的客户,他可以导入到 VMWare 吗?
另外,我需要向映像添加第二个磁盘,如何添加另一个 vmdk?
每次 cron 运行时,都会创建一些 sendmail 进程,这些进程使我们的机器承受巨大的高负载。我们已经将这个问题追溯到 cron 和 sendmail。
在 cron 之上添加 MAILTO="" 是一种解决方案,将每个 cron 命令管道到 dev null 是另一种解决方案,但我需要一个全局解决方案......在 cron 左右进行某种配置。
Vixiecron没有以下选项,我相信它可以解决我的问题
-m This option allows you to specify a shell command to use for sending Cron mail output instead of
using sendmail(8) This command must accept a fully formatted mail message (with headers) on stan?
dard input and send it as a mail message to the recipients specified in the mail headers. Specify?
ing the string off (i.e., …Run Code Online (Sandbox Code Playgroud)