个人工具

“AutomaticSecurityUpdates”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(New page: == 自动进行安全更新 == 原文出处:[https://help.ubuntu.com/community/AutomaticSecurityUpdates] 原文作者:OttoKekäläinen 授权许可: * [http://creativecommons.org/...)
 
(正在重定向到 UbuntuHelp:AutomaticSecurityUpdates/zh
 
第1行: 第1行:
== 自动进行安全更新 ==
+
#REDIRECT[[UbuntuHelp:AutomaticSecurityUpdates/zh]]
 
+
原文出处:[https://help.ubuntu.com/community/AutomaticSecurityUpdates]
+
 
+
原文作者:OttoKekäläinen
+
 
+
授权许可:
+
* [http://creativecommons.org/licenses/by-sa/2.0/ 创作共用协议Attribution-ShareAlike 2.0]
+
* [http://www.gnu.org/copyleft/fdl.html GNU自由文档许可证]
+
 
+
翻译人员:keke
+
 
+
校正人员:
+
 
+
贡献人员:
+
 
+
适用版本:
+
文章状态:等待校正
+
----
+
 
+
 
+
 
+
=== Information(信息) ===
+
这是一个简单的教程,它将教你如何创建一个脚本/cron任务来获取安全更新并且在后台自动安装。一般来说在安装软件更新时没有人监督总是要冒些风险的,但是如果你觉得这些风险对你来说是能够接受的,那么就按照这个简单的教程做吧。
+
 
+
=== Instructions(指导) ===
+
用你最喜欢的文本编辑器创建一个新的文件。如果是Ubuntu/Gnome的用户你可以使用gedit,如果是Kubuntu/KDE用户你可以使用Kate。当然你也可以使用那些命令行文本编辑器。把你创建的文件命名为 ~-apt-security-updates-~ 并且把它放在 ~-/etc/cron.weekly/-~ 目录下。在 ~-apt-security-updates-~ 文件中输入以下内容:<pre><nowiki>
+
echo "**************" >> /var/log/apt-security-updates
+
date >> /var/log/apt-security-updates
+
apt-get update >> /var/log/apt-security-updates
+
apt-get upgrade -y -t dapper-security >> /var/log/apt-security-updates
+
echo "Security updates installed (if found)"</nowiki></pre>
+
 
+
当你完成后,你需要让这个文件可以被root用户执行。因此在命令行/终端里键入以下命令:
+
<pre><nowiki>
+
sudo chmod 755 /etc/cron.weekly/apt-security-updates</nowiki></pre>
+
 
+
 
+
=== Post Install/Setup/Execution Information(安装/配置/执行后的信息) ===
+
这个脚本将每星期执行一次并且它将从安全仓库中安装所有可用的包。同时它在 ~-/var/log/apt-security-updates-~ 里生成日志文件以供日后出错时检查。
+

2008年4月27日 (日) 10:00的最新版本