From 34ea47e2c974dfa47167b2b815a1d2bf30aae55b Mon Sep 17 00:00:00 2001 From: ZTinoZ Date: Tue, 16 Dec 2014 09:32:20 +0800 Subject: [PATCH 1/9] Translating by ZTinoZ --- sources/talk/20141211 Was 2014 The Year of Linux Desktop.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/talk/20141211 Was 2014 The Year of Linux Desktop.md b/sources/talk/20141211 Was 2014 The Year of Linux Desktop.md index d8dc37ab8f..4cf00f5161 100644 --- a/sources/talk/20141211 Was 2014 The Year of Linux Desktop.md +++ b/sources/talk/20141211 Was 2014 The Year of Linux Desktop.md @@ -1,3 +1,4 @@ +Translating by ZTinoZ Was 2014 "The Year of Linux Desktop"? ================================================================================ > The Linux desktop is finally hitting all the right notes @@ -42,4 +43,4 @@ via: http://news.softpedia.com/news/Was-2014-The-Year-of-Linux-Desktop-467036.sh 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 -[a]:http://news.softpedia.com/editors/browse/silviu-stahie \ No newline at end of file +[a]:http://news.softpedia.com/editors/browse/silviu-stahie From d64adef0e96fc9b0f19e602cfd26fc1d4d58eec9 Mon Sep 17 00:00:00 2001 From: DoubleC <450760206@qq.com> Date: Tue, 16 Dec 2014 19:57:08 +0800 Subject: [PATCH 2/9] delete source file --- ...backup plan for Debian with backupninja.md | 248 ------------------ 1 file changed, 248 deletions(-) delete mode 100644 sources/tech/20141205 How to create a custom backup plan for Debian with backupninja.md diff --git a/sources/tech/20141205 How to create a custom backup plan for Debian with backupninja.md b/sources/tech/20141205 How to create a custom backup plan for Debian with backupninja.md deleted file mode 100644 index a705c44b3b..0000000000 --- a/sources/tech/20141205 How to create a custom backup plan for Debian with backupninja.md +++ /dev/null @@ -1,248 +0,0 @@ -SPccman translating -How to create a custom backup plan for Debian with backupninja -================================================================================ -Backupninja is a powerful and highly-configurable backup tool for Debian based distributions. In the [previous tutorial][1], we explored how to install backupninja and how to set up two backup actions for the program to perform. However, we should note that those examples were only "the tip of the iceberg," so to speak. In this post we will discuss how to leverage custom handlers and helpers that allow this program to be customized in order to accomplish almost any backup need that you can think of. - -And believe me - that is not an overstatement, so let's begin. - -### A Quick Review of Backupninja ### - -One of backupninja's distinguishing features is the fact that you can just drop plain text configuration or action files in /etc/backup.d, and the program will take care of the rest. In addition, we can write custom scripts (aka "handlers") and place them in /usr/share/backupninja to handle each type of backup action. Furthermore, we can have these scripts be executed via ninjahelper's ncurses-based interactive menus (aka "helpers") to guide us to create the configuration files we mentioned earlier, minimizing the chances of human error. - -### Creating a Custom Handler and Helper ### - -Our goal in this case is to create a script to handle the backup of chosen home directories into a tarball with either **gzip** or **bzip2** compression, excluding music and video files. We will simply name this script home, and place it under /usr/backup/ninja. - -Although you could achieve the same objective with the default tar handler (refer to /usr/share/backupninja/tar and /usr/share/backupninja/tar.helper), we will use this approach to show how to create a useful handler script and ncurses-based helper from scratch. You can then decide how to apply the same principles depending on your specific needs. - -Note that since handlers are sourced from the main script, there is no need to start with #!/bin/bash at the top. - -Our proposed handler (/usr/share/backupninja/home) is as follows. It is heavily commented for clarification. The getconf function is used to read the backup action's configuration file. If you specify a value for a variable here, it will override the corresponding value present in the configuration file: - - # home handler script for backupninja - - # Every backup file will identify the host by its FQDN - getconf backupname - - # Directory to store backups - getconf backupdir - - # Default compression - getconf compress - - # Include /home directory - getconf includes - - # Exclude files with *.mp3 and *.mp4 extensions - getconf excludes - - # Default extension for the packaged backup file - getconf EXTENSION - - # Absolute path to date binary - getconf TAR `which tar` - - # Absolute path to date binary - getconf DATE `which date` - - # Chosen date format - DATEFORMAT="%Y-%m-%d" - - # If backupdir does not exist, exit with fatal error - if [ ! -d "$backupdir" ] - then - mkdir -p "$backupdir" || fatal "Can not make directory $backupdir" - fi - - # If backupdir is not writeable, exit with fatal error as well - if [ ! -w "$backupdir" ] - then - fatal "Directory $backupdir is not writable" - fi - - # Set the right tar option as per the chosen compression format - case $compress in - "gzip") - compress_option="-z" - EXTENSION="tar.gz" - ;; - "bzip") - compress_option="-j" - EXTENSION="tar.bz2" - ;; - "none") - compress_option="" - ;; - *) - warning "Unknown compress filter ($tar_compress)" - compress_option="" - EXTENSION="tar.gz" - ;; - esac - - # Exclude the following file types / directories - exclude_options="" - for i in $excludes - do - exclude_options="$exclude_options --exclude $i" - done - - # Debugging messages, performing backup - debug "Running backup: " $TAR -c -p -v $compress_option $exclude_options \ - -f "$backupdir/$backupname-"`$DATE "+$DATEFORMAT"`".$EXTENSION" \ - $includes - - # Redirect standard output to a file with .list extension - # and standard error to a file with .err extension - $TAR -c -p -v $compress_option $exclude_options \ - -f "$backupdir/$backupname-"`$DATE "+$DATEFORMAT"`".$EXTENSION" \ - $includes \ - > "$backupdir/$backupname-"`$DATE "+$DATEFORMAT"`.list \ - 2> "$backupdir/$backupname-"`$DATE "+$DATEFORMAT"`.err - - [ $? -ne 0 ] && fatal "Tar backup failed" - -Next, we will create our helper file (/usr/share/backupninja/home.helper) so that our handlers shows up as a menu in **ninjahelper**: - - # Backup action's description. Separate words with underscores. - HELPERS="$HELPERS home:backup_of_home_directories" - - home_wizard() { - home_title="Home action wizard" - - backupname=`hostname --fqdn` - - # Specify default value for the time when this backup actions is supposed to run - inputBox "$home_title" "When to run this action?" "everyday at 01" - [ $? = 1 ] && return - home_when_run="when = $REPLY" - - # Specify default value for backup file name - inputBox "$home_title" "\"Name\" of backups" "$backupname" - [ $? = 1 ] && return - home_backupname="backupname = $REPLY" - backupname="$REPLY" - - # Specify default directory to store the backups - inputBox "$home_title" "Directory where to store the backups" "/var/backups/home" - [ $? = 1 ] && return - home_backupdir="backupdir = $REPLY" - - # Specify default values for the radiobox - radioBox "$home_title" "Compression" \ - "none" "No compression" off \ - "gzip" "Compress with gzip" on \ - "bzip" "Compress with bzip" off - [ $? = 1 ] && return; - result="$REPLY" - home_compress="compress = $REPLY " - - REPLY= - while [ -z "$REPLY" ]; do - formBegin "$home_title: Includes" - formItem "Include:" /home/gacanepa - formDisplay - [ $? = 0 ] || return 1 - home_includes="includes = " - for i in $REPLY; do - [ -n "$i" ] && home_includes="$home_includes $i" - done - done - - REPLY= - while [ -z "$REPLY" ]; do - formBegin "$home_title: Excludes" - formItem "Exclude:" *.mp3 - formItem "Exclude:" *.mp4 - # Add as many “Exclude” text boxes as needed to specify other exclude options - formItem "Exclude:" - formItem "Exclude:" - formDisplay - [ $? = 0 ] || return 1 - home_excludes="excludes = " - for i in $REPLY; do - [ -n "$i" ] && home_excludes="$home_excludes $i" - done - done - - # Save the config - get_next_filename $configdirectory/10.home - cat > $next_filename < Date: Tue, 16 Dec 2014 19:57:43 +0800 Subject: [PATCH 3/9] delete source file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 删除原文 --- ...ind Chroot DNS Server on CentOS 7.0 VPS.md | 198 ------------------ 1 file changed, 198 deletions(-) delete mode 100644 sources/tech/20141211 How to Setup Bind Chroot DNS Server on CentOS 7.0 VPS.md diff --git a/sources/tech/20141211 How to Setup Bind Chroot DNS Server on CentOS 7.0 VPS.md b/sources/tech/20141211 How to Setup Bind Chroot DNS Server on CentOS 7.0 VPS.md deleted file mode 100644 index 02cde70e74..0000000000 --- a/sources/tech/20141211 How to Setup Bind Chroot DNS Server on CentOS 7.0 VPS.md +++ /dev/null @@ -1,198 +0,0 @@ -spccman translating -How to Setup Bind Chroot DNS Server on CentOS 7.0 VPS -================================================================================ -BIND (Berkeley Internet Name Daemon) also known as NAMED is the most widely used DNS server in the internet. This tutorial will descibes how we can run BIND in a chroot jail, the process is simply unable to see any part of the filesystem outside the jail. For example, in this post, i will setting up BIND to run chrooted to the directory /var/named/chroot/. Well, to BIND, the contents of this directory will appear to be /, the root directory. A “jail” is a software mechanism for limiting the ability of a process to access resources outside a very limited area, and it’s purposely to enhance the security. Bind Chroot DNS server was by default configured to /var/named/chroot. You may follow this complete steps to implement Bind Chroot DNS Server on CentOS 7.0 virtual private server (VPS). - -1. Install Bind Chroot DNS server : - - [root@centos7 ~]# yum install bind-chroot bind -y - -2. Copy all bind related files to prepare bind chrooted environments : - - [root@centos7 ~]# cp -R /usr/share/doc/bind-*/sample/var/named/* /var/named/chroot/var/named/ - -3. Create bind related files into chrooted directory : - - [root@centos7 ~]# touch /var/named/chroot/var/named/data/cache_dump.db - [root@centos7 ~]# touch /var/named/chroot/var/named/data/named_stats.txt - [root@centos7 ~]# touch /var/named/chroot/var/named/data/named_mem_stats.txt - [root@centos7 ~]# touch /var/named/chroot/var/named/data/named.run - [root@centos7 ~]# mkdir /var/named/chroot/var/named/dynamic - [root@centos7 ~]# touch /var/named/chroot/var/named/dynamic/managed-keys.bind - -4. Bind lock file should be writeable, therefore set the permission to make it writable as below : - - [root@centos7 ~]# chmod -R 777 /var/named/chroot/var/named/data - [root@centos7 ~]# chmod -R 777 /var/named/chroot/var/named/dynamic - -5. Copy /etc/named.conf chrooted bind config folder : - - [root@centos7 ~]# cp -p /etc/named.conf /var/named/chroot/etc/named.conf - -6.Configure main bind configuration in /etc/named.conf. Append the example.local zone information to the file : - - [root@centos7 ~]# vi /var/named/chroot/etc/named.conf - -Create forward and reverse zone into named.conf: - - .. - .. - zone "example.local" { - type master; - file "example.local.zone"; - }; - - zone "0.168.192.in-addr.arpa" IN { - type master; - file "192.168.0.zone"; - }; - .. - .. - -Full named.conf configuration : - - // - // named.conf - // - // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS - // server as a caching only nameserver (as a localhost DNS resolver only). - // - // See /usr/share/doc/bind*/sample/ for example named configuration files. - // - - options { - listen-on port 53 { any; }; - listen-on-v6 port 53 { ::1; }; - directory "/var/named"; - dump-file "/var/named/data/cache_dump.db"; - statistics-file "/var/named/data/named_stats.txt"; - memstatistics-file "/var/named/data/named_mem_stats.txt"; - allow-query { any; }; - - /* - - If you are building an AUTHORITATIVE DNS server, do NOT enable recursion. - - If you are building a RECURSIVE (caching) DNS server, you need to enable - recursion. - - If your recursive DNS server has a public IP address, you MUST enable access - control to limit queries to your legitimate users. Failing to do so will - cause your server to become part of large scale DNS amplification - attacks. Implementing BCP38 within your network would greatly - reduce such attack surface - */ - recursion yes; - - dnssec-enable yes; - dnssec-validation yes; - dnssec-lookaside auto; - - /* Path to ISC DLV key */ - bindkeys-file "/etc/named.iscdlv.key"; - - managed-keys-directory "/var/named/dynamic"; - - pid-file "/run/named/named.pid"; - session-keyfile "/run/named/session.key"; - }; - - logging { - channel default_debug { - file "data/named.run"; - severity dynamic; - }; - }; - - zone "." IN { - type hint; - file "named.ca"; - }; - - zone "example.local" { - type master; - file "example.local.zone"; - }; - - zone "0.168.192.in-addr.arpa" IN { - type master; - file "192.168.0.zone"; - }; - - include "/etc/named.rfc1912.zones"; - include "/etc/named.root.key"; - -7. Create Forward and Reverse zone files for domain example.local. - -a) Create Forward Zone : - - [root@centos7 ~]# vi /var/named/chroot/var/named/example.local.zone - -Add the following and save : - - ; - ; Addresses and other host information. - ; - $TTL 86400 - @ IN SOA example.local. hostmaster.example.local. ( - 2014101901 ; Serial - 43200 ; Refresh - 3600 ; Retry - 3600000 ; Expire - 2592000 ) ; Minimum - - ; Define the nameservers and the mail servers - - IN NS ns1.example.local. - IN NS ns2.example.local. - IN A 192.168.0.70 - IN MX 10 mx.example.local. - - centos7 IN A 192.168.0.70 - mx IN A 192.168.0.50 - ns1 IN A 192.168.0.70 - ns2 IN A 192.168.0.80 - -b) Create Reverse Zone : - - [root@centos7 ~]# vi /var/named/chroot/var/named/192.168.0.zone - ----------- - - ; - ; Addresses and other host information. - ; - $TTL 86400 - @ IN SOA example.local. hostmaster.example.local. ( - 2014101901 ; Serial - 43200 ; Refresh - 3600 ; Retry - 3600000 ; Expire - 2592000 ) ; Minimum - - 0.168.192.in-addr.arpa. IN NS centos7.example.local. - - 70.0.168.192.in-addr.arpa. IN PTR mx.example.local. - 70.0.168.192.in-addr.arpa. IN PTR ns1.example.local. - 80.0.168.192.in-addr.arpa. IN PTR ns2.example.local. - -8. Stop and disable named service. Start and enable bind-chroot service at boot : - - [root@centos7 ~]# /usr/libexec/setup-named-chroot.sh /var/named/chroot on - [root@centos7 ~]# systemctl stop named - [root@centos7 ~]# systemctl disable named - [root@centos7 ~]# systemctl start named-chroot - [root@centos7 ~]# systemctl enable named-chroot - ln -s '/usr/lib/systemd/system/named-chroot.service' '/etc/systemd/system/multi-user.target.wants/named-chroot.service' - -As always if you need any help you can reach us on twitter @ehowstuff or drop us a comment below. [Jumping through archives page to read more articles..][1] - --------------------------------------------------------------------------------- - -via: http://www.ehowstuff.com/how-to-setup-bind-chroot-dns-server-on-centos-7-0-vps/ - -作者:[skytech][a] -译者:[译者ID](https://github.com/译者ID) -校对:[校对者ID](https://github.com/校对者ID) - -本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 - -[a]:http://www.ehowstuff.com/author/mhstar/ -[1]:http://www.ehowstuff.com/archives/ From 246b2f862eb854f5c93f7b691cab9c73f90b8652 Mon Sep 17 00:00:00 2001 From: DoubleC <450760206@qq.com> Date: Tue, 16 Dec 2014 20:00:45 +0800 Subject: [PATCH 4/9] =?UTF-8?q?=E7=BF=BB=E8=AF=91=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 这篇文章,之前应该还有一篇,本来要一起发上来的,群里面催了一下,就算了,这篇先发 --- ...backup plan for Debian with backupninja.md | 246 ++++++++++++++++++ 1 file changed, 246 insertions(+) create mode 100644 translated/tech/How to create a custom backup plan for Debian with backupninja.md diff --git a/translated/tech/How to create a custom backup plan for Debian with backupninja.md b/translated/tech/How to create a custom backup plan for Debian with backupninja.md new file mode 100644 index 0000000000..50cd15c6ce --- /dev/null +++ b/translated/tech/How to create a custom backup plan for Debian with backupninja.md @@ -0,0 +1,246 @@ +使用backupninja为Debian定制备份计划 +======= + +backupninja是Debian系统(以及基于Debian的发行版)中一个强大的、高度可配置的备份软件。在[前一篇文章][1]中,我们探讨了如何安装backupninja以及如何设置两个备份操作并执行。然而,那些只是冰山一角。这一次,我们要讨论如何利用Helper与辅助功能,可以使用这些功能定制策略以完成任何备份需要。 + +###回顾 backupninja + +backupninja的特点是它完全抛弃纯文本的配置文件/etc/backup.d,软件自己会搞定。另外,我们可以编写自定义脚本(又叫 “handlers”)放在/usr/share/backupninja 目录下来完成不同类型的备份操作。此外,可以通过ninjahelper的基于ncurses的交互式菜单(又叫”helpers")来指导我们创建一些配置文件,使得人工错误率降到最低。 + +###创建定制的Handler与Helper + +这一节的目标是创建一个脚本,将home目录以**gzip**或**bzip2**压缩包的形式备份起来,不包括音乐与视频文件。我们将这个文件命名为home,将它放在/usr/backup/ninja目录下。 + +尽管你可以使用默认的tar handler(参考 /usr/share/backupninja/tar 与 /usr/share/backupninja/tar.helper)来达到这个效果,但是我们使用这种方法来展示如何创建实用的 handler 脚本与基于 ncurses 的 helper。你可以根据你的需求来决定如何运用同样的原则。 + +由于 handlers 来源与主脚本,所以无需以#!/bin/bash开始。 + +我们推荐的 handler (/usr/share/backupninja/home)如下所示。它带有非常多的注释说明。getconf 功能用来读取备份操作的配置文件。如果你指定了一个变量的值,那么它会覆盖配置文件中对应变量的值: + + #/home 目录 handler 脚本 + + # 每个备份文件会通过 FQDN 来鉴别主机 + getconf backupname + + # 备份文件的保存目录 + getconf backupdir + + # 默认压缩 + getconf compress + + # 包含 /home 目录 + getconf includes + + #不包含 *.mp3 与 *.mp4 文件 + getconf excludes + + # 默认扩展一打包的备份文件 + getconf EXTENSION + + # Absolute path to date binary + getconf TAR `which tar` + + # Absolute path to date binary + getconf DATE `which date` + + # 日期格式 + DATEFORMAT="%Y-%m-%d" + + # 如果备份目录不存在,以致命错误退出 + if [ ! -d "$backupdir" ] + then + mkdir -p "$backupdir" || fatal "Can not make directory $backupdir" + fi + + # 如果备份目录不可写, 同样以致命错误退出 + if [ ! -w "$backupdir" ] + then + fatal "Directory $backupdir is not writable" + fi + + # 根据压缩格式选择对应的tar选项 + case $compress in + "gzip") + compress_option="-z" + EXTENSION="tar.gz" + ;; + "bzip") + compress_option="-j" + EXTENSION="tar.bz2" + ;; + "none") + compress_option="" + ;; + *) + warning "Unknown compress filter ($tar_compress)" + compress_option="" + EXTENSION="tar.gz" + ;; + esac + + # 不包含一些文件类型/目录 + exclude_options="" + for i in $excludes + do + exclude_options="$exclude_options --exclude $i" + done + + # 调试信息, 执行备份操作 + debug "Running backup: " $TAR -c -p -v $compress_option $exclude_options \ + -f "$backupdir/$backupname-"`$DATE "+$DATEFORMAT"`".$EXTENSION" \ + $includes + + # 将标准输出重定向到以.list为扩展的文件 + # 将标准错误输出重定向到以.err为扩展的文件 + $TAR -c -p -v $compress_option $exclude_options \ + -f "$backupdir/$backupname-"`$DATE "+$DATEFORMAT"`".$EXTENSION" \ + $includes \ + > "$backupdir/$backupname-"`$DATE "+$DATEFORMAT"`.list \ + 2> "$backupdir/$backupname-"`$DATE "+$DATEFORMAT"`.err + + [ $? -ne 0 ] && fatal "Tar backup failed" + +接下来我们将要创建helper文件 (/usr/share/backupninja/home.helper)这样,hendlers将会以菜单的形式在**ninjahelper**中显示: + + # 备份操作描述. 以下划线分割单词. + HELPERS="$HELPERS home:backup_of_home_directories" + + home_wizard() { + home_title="Home action wizard" + + backupname=`hostname --fqdn` + + # 指定备份操作的时间 + inputBox "$home_title" "When to run this action?" "everyday at 01" + [ $? = 1 ] && return + home_when_run="when = $REPLY" + + # 指定备份文件名 + inputBox "$home_title" "\"Name\" of backups" "$backupname" + [ $? = 1 ] && return + home_backupname="backupname = $REPLY" + backupname="$REPLY" + + # 指定保存备份文件的默认路径 + inputBox "$home_title" "Directory where to store the backups" "/var/backups/home" + [ $? = 1 ] && return + home_backupdir="backupdir = $REPLY" + + # 指定复选框的默认值 + radioBox "$home_title" "Compression" \ + "none" "No compression" off \ + "gzip" "Compress with gzip" on \ + "bzip" "Compress with bzip" off + [ $? = 1 ] && return; + result="$REPLY" + home_compress="compress = $REPLY " + + REPLY= + while [ -z "$REPLY" ]; do + formBegin "$home_title: Includes" + formItem "Include:" /home/gacanepa + formDisplay + [ $? = 0 ] || return 1 + home_includes="includes = " + for i in $REPLY; do + [ -n "$i" ] && home_includes="$home_includes $i" + done + done + + REPLY= + while [ -z "$REPLY" ]; do + formBegin "$home_title: Excludes" + formItem "Exclude:" *.mp3 + formItem "Exclude:" *.mp4 + # 按需增加多个“Exclude”文本框指定其他不须包含的内容 + formItem "Exclude:" + formItem "Exclude:" + formDisplay + [ $? = 0 ] || return 1 + home_excludes="excludes = " + for i in $REPLY; do + [ -n "$i" ] && home_excludes="$home_excludes $i" + done + done + + # 保存配置 + get_next_filename $configdirectory/10.home + cat > $next_filename < Date: Tue, 16 Dec 2014 20:01:34 +0800 Subject: [PATCH 5/9] =?UTF-8?q?=E7=BF=BB=E8=AF=91=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ind Chroot DNS Server on CentOS 7.0 VPS.md | 201 ++++++++++++++++++ 1 file changed, 201 insertions(+) create mode 100644 translated/tech/How to Setup Bind Chroot DNS Server on CentOS 7.0 VPS.md diff --git a/translated/tech/How to Setup Bind Chroot DNS Server on CentOS 7.0 VPS.md b/translated/tech/How to Setup Bind Chroot DNS Server on CentOS 7.0 VPS.md new file mode 100644 index 0000000000..0df194fe17 --- /dev/null +++ b/translated/tech/How to Setup Bind Chroot DNS Server on CentOS 7.0 VPS.md @@ -0,0 +1,201 @@ +在CentOS7.0 VPS上搭建 Bind Chroot DNS 服务器 +==================== + +BIND(Berkeley internet Name Daemon)也叫做NAMED是现今互联网上使用最为广泛的DNS 服务器程序。这篇文章将要讲述如何在 chroot jail (chroot “监牢”,所谓“监牢”就是指通过chroot机制来更改某个进程所能看到的根目录,即将某进程限制在指定目录中,保证该进程只能对该目录及其子目录的文件有所动作,从而保证整个服务器的安全)中运行 BIND,这样它就无法访问文件系统中除“jail”以外的其它部分。例如,在这篇文章中,我会将BIND的运行根目录改为/var/named/chroot/。当然,对于BIND来说,这个目录就是/(根目录)。 “jail”(监牢,下同)是一个软件机制,其功能是使得某个程序无法访问规定区域之外的资源,同样也为了增强安全性。Bind Chroot DNS 服务器的默认“jail”为/var/named/chroot。你可以按照下列步骤,在CentOS 7.0 虚拟专用服务器(VPS)上部署 Bind Chroot DNS 服务器。 + + 1. 安装Bind Chroot DNS 服务器: + + [root@centos7 ~]# yum install bind-chroot bind -y + + 2. 拷贝bind相关文件,准备bind chroot 环境 + + [root@centos7 ~]# cp -R /usr/share/doc/bind-*/sample/var/named/* /var/named/chroot/var/named/ + + 3. 在bind chroot 的目录中创建相关文件 + + [root@centos7 ~]# touch /var/named/chroot/var/named/data/cache_dump.db + + [root@centos7 ~]# touch /var/named/chroot/var/named/data/named_stats.txt + + [root@centos7 ~]# touch /var/named/chroot/var/named/data/named_mem_stats.txt + + [root@centos7 ~]# touch /var/named/chroot/var/named/data/named.run + + [root@centos7 ~]# mkdir /var/named/chroot/var/named/dynamic + + [root@centos7 ~]# touch /var/named/chroot/var/named/dynamic/managed-keys.bind + + + 4. 将 Bind 锁定文件设置为可写: + + [root@centos7 ~]# chmod -R 777 /var/named/chroot/var/named/data + [root@centos7 ~]# chmod -R 777 /var/named/chroot/var/named/dynamic + + 5. 将 /etc/named.conf 拷贝到 bind chroot目录 + + [root@centos7 ~]# cp -p /etc/named.conf /var/named/chroot/etc/named.conf + + 6. 在/etc/named.conf中对 bind 进行配置。在文件尾添加 example.local 域信息: + + [root@centos7 ~]# vi /var/named/chroot/etc/named.conf + +在 named.conf 中创建转发域(Forward Zone)与反向域(Reverse Zone): + + + .. + .. + zone "example.local" { + type master; + file "example.local.zone"; + }; + + zone "0.168.192.in-addr.arpa" IN { + type master; + file "192.168.0.zone"; + }; + .. + .. + +named.conf 完全配置 + + // + // named.conf + // + // 由Red Hat提供,将 ISC BIND named(8) DNS服务器 + // 配置为暂存域名服务器 (用来做本地DNS解析). + // + // See /usr/share/doc/bind*/sample/ for example named configuration files. + // + + options { + listen-on port 53 { any; }; + listen-on-v6 port 53 { ::1; }; + directory "/var/named"; + dump-file "/var/named/data/cache_dump.db"; + statistics-file "/var/named/data/named_stats.txt"; + memstatistics-file "/var/named/data/named_mem_stats.txt"; + allow-query { any; }; + + /* + - 如果你要建立一个 授权域名服务器 服务器, 那么不要开启 recursion(递归) 功能。 + - 如果你要建立一个 递归 DNS 服务器, 那么需要开启recursion 功能。 + - 如果你的递归DNS服务器有公网IP地址, 你必须开启访问控制功能, + 只有那些合法用户才可以发询问. 如果不这么做的话,那么你的服 + 服务就会受到DNS 放大攻击。实现BCP38将有效抵御这类攻击。 + */ + recursion yes; + + dnssec-enable yes; + dnssec-validation yes; + dnssec-lookaside auto; + + /* Path to ISC DLV key */ + bindkeys-file "/etc/named.iscdlv.key"; + + managed-keys-directory "/var/named/dynamic"; + + pid-file "/run/named/named.pid"; + session-keyfile "/run/named/session.key"; + }; + + logging { + channel default_debug { + file "data/named.run"; + severity dynamic; + }; + }; + + zone "." IN { + type hint; + file "named.ca"; + }; + + zone "example.local" { + type master; + file "example.local.zone"; + }; + + zone "0.168.192.in-addr.arpa" IN { + type master; + file "192.168.0.zone"; + }; + + include "/etc/named.rfc1912.zones"; + include "/etc/named.root.key"; + + 7. 为 example.local 域名创建转发域与反向域文件 + +a)创建转发域 + + [root@centos7 ~]# vi /var/named/chroot/var/named/example.local.zone + +添加如下内容并保存: + + ; + ; Addresses and other host information. + ; + $TTL 86400 + @ IN SOA example.local. hostmaster.example.local. ( + 2014101901 ; Serial + 43200 ; Refresh + 3600 ; Retry + 3600000 ; Expire + 2592000 ) ; Minimum + + ; Define the nameservers and the mail servers + + IN NS ns1.example.local. + IN NS ns2.example.local. + IN A 192.168.0.70 + IN MX 10 mx.example.local. + + centos7 IN A 192.168.0.70 + mx IN A 192.168.0.50 + ns1 IN A 192.168.0.70 + ns2 IN A 192.168.0.80 + +b)创建反向域 + + [root@centos7 ~]# vi /var/named/chroot/var/named/192.168.0.zone + +---- + + ; + ; Addresses and other host information. + ; + $TTL 86400 + @ IN SOA example.local. hostmaster.example.local. ( + 2014101901 ; Serial + 43200 ; Refresh + 3600 ; Retry + 3600000 ; Expire + 2592000 ) ; Minimum + + 0.168.192.in-addr.arpa. IN NS centos7.example.local. + + 70.0.168.192.in-addr.arpa. IN PTR mx.example.local. + 70.0.168.192.in-addr.arpa. IN PTR ns1.example.local. + 80.0.168.192.in-addr.arpa. IN PTR ns2.example.local.。开机自启动 bind-chroot 服务: + + [root@centos7 ~]# /usr/libexec/setup-named-chroot.sh /var/named/chroot on + [root@centos7 ~]# systemctl stop named + [root@centos7 ~]# systemctl disable named + [root@centos7 ~]# systemctl start named-chroot + [root@centos7 ~]# systemctl enable named-chroot + ln -s '/usr/lib/systemd/system/named-chroot.service' '/etc/systemd/system/multi-user.target.wants/named-chroot.service' + +[跳转到档案页,阅读更多文章][1] + +------------------ + +via: http://www.ehowstuff.com/how-to-setup-bind-chroot-dns-server-on-centos-7-0-vps/ + +作者:[skytech][a] +译者:[SPccman](https://github.com/译者ID) +校对:[校对者ID](https://github.com/校对者ID) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 + +[a]:http://www.ehowstuff.com/author/mhstar/ +[1]:http://www.ehowstuff.com/archives/ + From f627136220594de83b9c904ab7b2db14aaf4a4cc Mon Sep 17 00:00:00 2001 From: wxy Date: Mon, 15 Dec 2014 16:18:04 +0800 Subject: [PATCH 6/9] PUB:20141013 Manage Multiple Logical Volume Management Disks using Striping I O--Part V @GOLinux --- ...gement Disks using Striping I O--Part V.md | 59 ++++++++++++------- 1 file changed, 38 insertions(+), 21 deletions(-) rename {translated/tech => published}/20141013 Manage Multiple Logical Volume Management Disks using Striping I O--Part V.md (88%) diff --git a/translated/tech/20141013 Manage Multiple Logical Volume Management Disks using Striping I O--Part V.md b/published/20141013 Manage Multiple Logical Volume Management Disks using Striping I O--Part V.md similarity index 88% rename from translated/tech/20141013 Manage Multiple Logical Volume Management Disks using Striping I O--Part V.md rename to published/20141013 Manage Multiple Logical Volume Management Disks using Striping I O--Part V.md index c1c6863f8e..7c6b41c7f0 100644 --- a/translated/tech/20141013 Manage Multiple Logical Volume Management Disks using Striping I O--Part V.md +++ b/published/20141013 Manage Multiple Logical Volume Management Disks using Striping I O--Part V.md @@ -1,24 +1,26 @@ -使用条块化I/O管理多个逻辑卷管理磁盘 +使用条块化I/O管理多个LVM磁盘(第五部分) ================================================================================ 在本文中,我们将了解逻辑卷是如何通过条块化I/O来写入数据到磁盘的。逻辑卷管理的酷炫特性之一,就是它能通过条块化I/O跨多个磁盘写入数据。 -![Manage LVM Disks Using Striping I/O](http://www.tecmint.com/wp-content/uploads/2014/09/LVM-Striping.jpeg) -使用条块化I/O管理LVM磁盘 - ### LVM条块化是什么? ### **LVM条块化**是LVM功能之一,该技术会跨多个磁盘写入数据,而不是对单一物理卷持续写入。 +![Manage LVM Disks Using Striping I/O](http://www.tecmint.com/wp-content/uploads/2014/09/LVM-Striping.jpeg) + +*使用条块化I/O管理LVM磁盘* + + #### 条块化特性 #### - 它会改善磁盘性能。 -- 挽救对单一磁盘的重复硬写入。 +- 避免对单一磁盘的不断的大量写入。 - 使用对多个磁盘的条块化写入,可以减少磁盘填满的几率。 在逻辑卷管理中,如果我们需要创建一个逻辑卷,扩展的卷会完全映射到卷组和物理卷。在此种情形中,如果其中一个**PV**(物理卷)被填满,我们需要从其它物理卷中添加更多扩展。这样,添加更多扩展到PV中后,我们可以指定逻辑卷使用特定的物理卷写入I/O。 -假设我们又**四个磁盘**驱动器,分别指向了四个物理卷,如果各个物理卷总计可以达到**100 I/O**,我们卷组就可以获得**400 I/O**。 +假设我们有**四个磁盘**驱动器,分别指向了四个物理卷,如果各个物理卷总计可以达到**100 I/O**,我们卷组就可以获得**400 I/O**。 如果我们不使用**条块化方法**,文件系统将横跨基础物理卷写入。例如,写入一些数据到物理卷达到100 I/O,这些数据只会写入到第一个PV(**sdb1**)。如果我们在写入时使用条块化选项创建逻辑卷,它会分割100 I/O分别写入到四个驱动器中,这就是说每个驱动器中都会接收到25 I/O。 @@ -41,27 +43,31 @@ # fdisk -l | grep sd ![List Hard Drives](http://www.tecmint.com/wp-content/uploads/2014/09/List-Hard-Drives.png) -列出硬盘驱动器 -现在,我们必须为这4个硬盘驱动器**sdb**,**sdc**,**sdd**和**sde**创建分区,我们将用‘**fdisk**’命令来完成该工作。要创建分区,请遵从本文**第一部分**中**步骤#4**的说明,并在创建分区时确保你已将类型修改为**LVM(8e)**。 +*列出硬盘驱动器* + +现在,我们必须为这4个硬盘驱动器**sdb**,**sdc**,**sdd**和**sde**创建分区,我们将用‘**fdisk**’命令来完成该工作。要创建分区,请遵从本文**[第一部分][1]**中**步骤#4**的说明,并在创建分区时确保你已将类型修改为**LVM(8e)**。 # pvcreate /dev/sd[b-e]1 -v ![Create Physical Volumes in LVM](http://www.tecmint.com/wp-content/uploads/2014/09/Create-Physical-Volumes-in-LVM.png) -在LVM中创建物理卷 + +*在LVM中创建物理卷* PV创建完成后,你可以使用‘**pvs**’命令将它们列出来。 # pvs ![Verify Physical Volumes](http://www.tecmint.com/wp-content/uploads/2014/09/Verify-Physical-Volumes.png) -验证物理卷 + +*验证物理卷* 现在,我们需要使用这4个物理卷来定义卷组。这里,我定义了一个物理扩展大小(PE)为**16MB**,名为**vg_strip**的卷组。 # vgcreate -s 16M vg_strip /dev/sd[b-e]1 -v -上面命令中选项的说明。 +上面命令中选项的说明: + - **[b-e]1** – 定义硬盘驱动器名称,如sdb1,sdc1,sdd1,sde1。 - **-s** – 定义物理扩展大小。 - **-v** – 详情。 @@ -71,14 +77,16 @@ PV创建完成后,你可以使用‘**pvs**’命令将它们列出来。 # vgs vg_strip ![Verify Volume Group](http://www.tecmint.com/wp-content/uploads/2014/09/Verify-Volume-Group.png) -验证卷组 + +*验证卷组* 要获取VG更详细的信息,可以在**vgdisplay**命令中使用‘-v’选项,它将给出**vg_strip**卷组中所使用的全部物理卷的详细情况。 # vgdisplay vg_strip -v ![Volume Group Information](http://www.tecmint.com/wp-content/uploads/2014/09/Volume-Group-Information.png) -卷组信息 + +*卷组信息* 回到我们的话题,现在在创建逻辑卷时,我们需要定义条块化值,就是数据需要如何使用条块化方法来写入到我们的逻辑卷中。 @@ -91,46 +99,54 @@ PV创建完成后,你可以使用‘**pvs**’命令将它们列出来。 - **-i** –条块化 ![Create Logical Volumes](http://www.tecmint.com/wp-content/uploads/2014/09/Create-Logical-Volumes.png) -创建逻辑卷 + +*创建逻辑卷* 在上面的图片中,我们可以看到条块尺寸的默认大小为**64 KB**,如果我们需要自定义条块值,我们可以使用**-I**(大写I)。要确认逻辑卷已经是否已经创建,请使用以下命令。 # lvdisplay vg_strip/lv_tecmint_strp1 ![Confirm Logical Volumes](http://www.tecmint.com/wp-content/uploads/2014/09/Confirm-Logical-Volumes.png) -确认逻辑卷 + +*确认逻辑卷* 现在,接下来的问题是,我们怎样才能知道条块被写入到了4个驱动器。这里,我们可以使用‘**lvdisplay**’和**-m**(显示逻辑卷映射)命令来验证。 # lvdisplay vg_strip/lv_tecmint_strp1 -m ![Check Logical Volumes](http://www.tecmint.com/wp-content/uploads/2014/09/Check-Logical-Volumes.png) -检查逻辑卷 + +*检查逻辑卷* 要创建自定义的条块尺寸,我们需要用我们自定义的条块大小**256KB**来创建一个**1GB**大小的逻辑卷。现在,我打算将条块分布到3个PV上。这里,我们可以定义我们想要哪些pv条块化。 # lvcreate -L 1G -i3 -I 256 -n lv_tecmint_strp2 vg_strip /dev/sdb1 /dev/sdc1 /dev/sdd1 ![Define Stripe Size](http://www.tecmint.com/wp-content/uploads/2014/09/Define-Stripe-Size.png) -定义条块大小 + +*定义条块大小* 接下来,检查条块大小和条块化的卷。 # lvdisplay vg_strip/lv_tecmint_strp2 -m ![Check Stripe Size](http://www.tecmint.com/wp-content/uploads/2014/09/Check-Stripe-Size.png) -检查条块大小 + +*检查条块大小* 是时候使用设备映射了,我们使用‘**dmsetup**’命令来完成这项工作。它是一个低级别的逻辑卷管理工具,它用于管理使用了设备映射驱动的逻辑设备。 # dmsetup deps /dev/vg_strip/lv_tecmint_strp[1-2] ![Device Mapper](http://www.tecmint.com/wp-content/uploads/2014/09/Device-Mapper.png) -设备映射 + +*设备映射* 这里,我们可以看到strp1依赖于4个驱动器,strp2依赖于3个设备。 -希望你已经明白,我们怎样能让逻辑卷条块化来写入数据。对于此项设置,必须掌握逻辑卷管理基础知识。在我的下一篇文章中,我将给大家展示怎样在逻辑卷管理中迁移数据。到那时,请静候更新。同时,别忘了对本文提出有价值的建议。 +希望你已经明白,我们怎样能让逻辑卷条块化来写入数据。对于此项设置,必须掌握逻辑卷管理基础知识。 + +在我的下一篇文章中,我将给大家展示怎样在逻辑卷管理中迁移数据。到那时,请静候更新。同时,别忘了对本文提出有价值的建议。 -------------------------------------------------------------------------------- @@ -138,8 +154,9 @@ via: http://www.tecmint.com/manage-multiple-lvm-disks-using-striping-io/ 作者:[Babin Lonston][a] 译者:[GOLinux](https://github.com/GOLinux) -校对:[校对者ID](https://github.com/校对者ID) +校对:[wxy](https://github.com/wxy) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 [a]:http://www.tecmint.com/author/babinlonston/ +[1]:http://linux.cn/article-3965-1.html From 4175ca0b64dbb28ba6f5e93a1f0c94c57a5de29b Mon Sep 17 00:00:00 2001 From: wxy Date: Mon, 15 Dec 2014 16:29:14 +0800 Subject: [PATCH 7/9] PUB:20141211 Linux Kernel 3.18 Released, This Is What' s New @geekpi --- ...rnel 3.18 Released, This Is What' s New.md | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) rename {translated/news => published}/20141211 Linux Kernel 3.18 Released, This Is What' s New.md (65%) diff --git a/translated/news/20141211 Linux Kernel 3.18 Released, This Is What' s New.md b/published/20141211 Linux Kernel 3.18 Released, This Is What' s New.md similarity index 65% rename from translated/news/20141211 Linux Kernel 3.18 Released, This Is What' s New.md rename to published/20141211 Linux Kernel 3.18 Released, This Is What' s New.md index 497c825154..c69a9a0c88 100644 --- a/translated/news/20141211 Linux Kernel 3.18 Released, This Is What' s New.md +++ b/published/20141211 Linux Kernel 3.18 Released, This Is What' s New.md @@ -1,27 +1,26 @@ -、Linux 3.18 内核发布了,下面的是更新的内容 +Linux 3.18 新内核带来了什么新东西? ================================================================================ ![](http://www.omgubuntu.co.uk/wp-content/uploads/2011/07/Tux-psd3894.jpg) -新的一月意味着新的稳定版Linux内核的发布,今天Linus Torvalds[宣布Linux 3.18 很快就会发布了][1]。 +新的一月意味着新的稳定版Linux内核的发布,前一段时间,Linus Torvalds[宣布Linux 3.18 很快就会发布了][1]。 -Torvalds在Linux内核邮件列表中解释到,由于在3.17中还存在几个令一小部分用户烦心的问题,‘**绝不可以在一些人积极解决老问题时其他人无所事事。**’ +Torvalds在Linux内核邮件列表中解释到,由于在3.17中还存在几个令一小部分用户烦心的问题,但是‘**绝不可以在一些人积极解决老问题时其他人无所事事。**’ ### Linux 3.18中有什么新的? ### Linux 3.18内核主要致力于硬件支持、电源效率、bug修复和可靠性。 -如往常一样,这些内容跨越很大,容易让人迷惑 。比如:加密层多重缓冲操作 - 到气冲感知, 就像对雷蛇游戏手柄的支持。 +如往常一样,这些内容跨度很大,容易让人迷惑 。比如:加密层多重缓冲操作 - 到气冲感知, 就像对雷蛇游戏手柄的支持。 下面我们收集了这个版本的重要的改变。这远远不是所有的,只是选取了一些更相关的内容。 - -- Nouveau (免费 Nvidia GPU 驱动) 现在支持基础 DisplayPort 音频 +- Nouveau (开源的 Nvidia GPU 驱动) 现在支持基础 DisplayPort 音频 - 对雷蛇游戏手柄的支持,用在Xbox 360上 - Xilinx USB2 外设 -- 对Microchip AR1021 i2c、PenMount 6000 touch的触摸屏支持。 -- 音频编码: Cirrus Logic CS35L32、 Everest ES8328and Freescale ES8328 -- 音频支持: 通用飞思卡尔声卡, A模拟SSM4567音频放大器 -- 不同的文件系统提升, 包括 Btrfs 和 F2FS +- 对Microchip AR1021 i2c、PenMount 6000 touch的触摸屏支持 +- 音频编码: Cirrus Logic CS35L32、 Everest ES8328 和 Freescale ES8328 +- 音频支持: 通用飞思卡尔声卡, Analog Devices SSM4567音频放大器 +- 几个文件系统提升, 包括 Btrfs 和 F2FS - 现在支持了DCTCP拥塞控制算法 - JIT 编译64位 eBPF程序 - “Tinification” 帮助开发人员编译更精简更小的内核 @@ -34,7 +33,7 @@ Linux 3.18内核主要致力于硬件支持、电源效率、bug修复和可靠 - [下载Linux内核源码包][2] -有一个由Canonical维护的最新Linux内核归档。尽管你可能在其他地方看到过,但是,请注意,这不是针对终端用户的。没有任何保证与支持,你自己承担风险。 +这里有一个由Canonical维护的最新Linux内核归档。尽管你可能在其他地方看到过,但是,请注意,这不是针对终端用户的。没有任何保证与支持,你自己承担风险。 - [访问Ubuntu内核主线归档][3] @@ -44,7 +43,7 @@ via: http://www.omgubuntu.co.uk/2014/12/linux-kernel-3-18-released-whats-new 作者:[Joey-Elijah Sneddon][a] 译者:[geekpi](https://github.com/geekpi) -校对:[校对者ID](https://github.com/校对者ID) +校对:[wxy](https://github.com/wxy) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 From fd54eb2202aea934efbc05665087ae9394e60c42 Mon Sep 17 00:00:00 2001 From: wxy Date: Tue, 16 Dec 2014 23:55:43 +0800 Subject: [PATCH 8/9] PUB:20141204 Readers' Choice Awards 2014--Linux Journal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @yupmoon 翻译的不错! --- ...ders' Choice Awards 2014--Linux Journal.md | 68 ++++++++----------- 1 file changed, 29 insertions(+), 39 deletions(-) rename {translated/news => published}/20141204 Readers' Choice Awards 2014--Linux Journal.md (96%) diff --git a/translated/news/20141204 Readers' Choice Awards 2014--Linux Journal.md b/published/20141204 Readers' Choice Awards 2014--Linux Journal.md similarity index 96% rename from translated/news/20141204 Readers' Choice Awards 2014--Linux Journal.md rename to published/20141204 Readers' Choice Awards 2014--Linux Journal.md index df54a6b4d5..5037ee5d8e 100644 --- a/translated/news/20141204 Readers' Choice Awards 2014--Linux Journal.md +++ b/published/20141204 Readers' Choice Awards 2014--Linux Journal.md @@ -6,7 +6,7 @@ Linux Journal杂志2014读者选择奖 如欲了解完整获奖名单,请查阅本杂志2014年12月刊。 -### 最佳Linux发行版 ### +### 最佳Linux发行版 ### ![](http://www.linuxjournal.com/files/linuxjournal.com/ufiles/imagecache/slideshow-400/11781f1.jpg) @@ -23,7 +23,7 @@ Linux Journal杂志2014读者选择奖 - Gentoo 2.9% - Slackware 2.7% - Xubuntu 2.5% -- Other 2.3% +- 其它 2.3% - Red Hat Enterprise Linux 1.6% - NixOS 1.4% - elementary OS 1.3% @@ -43,12 +43,13 @@ Linux Journal杂志2014读者选择奖 ### 最佳Linux移动系统 ### + 安卓在移动领域是如此的举足轻重,所以我们决定让安卓的各种版本独立参与投票。因此,尽管以下系统本质上属于安卓,但我们仍沿用其名而不改称安卓,因为这样更加一目了然。 - Stock Android 37.1% - Sailfish OS 27.6% - CyanogenMod 20.2% -- Other 3% +- 其它 3% - Ubuntu Phone 3% - Amazon Fire OS 1.5% - Ubuntu for Android 1.4% @@ -62,7 +63,7 @@ Linux Journal杂志2014读者选择奖 - Samsung 29% - Jolla 26.7% - Nexus 16.5% -- Other 7.1%* +- 其它 7.1%* - HTC 7% - LG 5.3% - Sony 3.7% @@ -71,8 +72,7 @@ Linux Journal杂志2014读者选择奖 - GeeksPhone 1% - Amazon .6% - -*在 "其它"当中,摩托罗拉获得最多提名,其次是一加。 +*在"其它"当中,摩托罗拉获得最多提名,其次是一加。 ### 最佳Linux平板 ### @@ -83,7 +83,7 @@ Linux Journal杂志2014读者选择奖 - Samsung Galaxy Tab 14% - Samsung Galaxy Note 9.8% - ASUS Transformer Pad 8.4% -- Other 6.4% +- 其它 6.4% - Kindle Fire HD 4.7% - ASUS MeMO Pad 2% - Dell Venue 1.6% @@ -93,13 +93,12 @@ Linux Journal杂志2014读者选择奖 ### 最佳基于Linux的其它配件(不含智能手机或平板)### - 我们是一群树莓派粉,如假包换!不过说真的,这怎么能怪我们呢?树莓派又出了新款B+,让原本就美妙绝伦的树莓派愈发的标致可人。并非我有未卜先知之功,但我对明年的冠军早就心中有数了。 - Raspberry Pi 71.4% - BeagleBone Black 8.1% -- Other 4.3%* +- 其它 4.3%* - Lego Mindstorms Ev3 3.7% - Moto 360 3.4% - Cubieboard 1.7% @@ -128,7 +127,7 @@ Linux Journal杂志2014读者选择奖 - ASUS 19.3% - Dell 18.5% - System76 10.6% -- Other 7.9%* +- 其它 7.9%* - Acer 4.5% - ThinkPenguin 1.9% - LinuxCertified 1.8% @@ -148,7 +147,7 @@ Linux Journal杂志2014读者选择奖 - Drupal 25.3% - Joomla! 11.1% - MediaWiki 10.5% -- Other 10%* +- 其它 10%* - Alfresco 4.3% - WebGUI 1.3% - ikiwiki 1.1% @@ -164,9 +163,9 @@ Linux Journal杂志2014读者选择奖 ![](http://www.linuxjournal.com/files/linuxjournal.com/ufiles/imagecache/slideshow-400/question.jpg) -提到虚拟主机,这年头要找到不对Linux友好的公司那是相当之难。事实上,要找到一家运行Windows的主机服务商才是一种挑战。这一类别的冠军(“其它”)就显而易见的说明了这一问题,或许设一个“最差虚拟主机”分类更加有用! +提到虚拟主机,这年头要找到不对Linux友好的公司那是相当之难。事实上,要找到一家提供Windows的主机服务商才是一种挑战。这一类别的冠军(“其它”)就显而易见的说明了这一问题,或许设一个“最差虚拟主机”分类更加有用! -- Other 22.8%* +- 其它 22.8%* - Amazon 22.5% - Rackspace 13.1% - Linode 10.4% @@ -198,7 +197,7 @@ Firefox显著优势拨得今年的头筹。即使以Chrome加Chromium计算,Fi - Chromium 8.1% - Iceweasel 4% - Opera 3% -- Other 2% +- 其它 2% - SeaMonkey .8% - rekonq .5% - dwb .4% @@ -217,7 +216,7 @@ Firefox显著优势拨得今年的头筹。即使以Chrome加Chromium计算,Fi - Mutt 6.8% - Evolution 5.5% - KMail 5.3% -- Other 3.2% +- 其它 3.2% - Claws Mail 2.2% - Zimbra 2% - Alpine 1.8% @@ -235,14 +234,12 @@ Firefox显著优势拨得今年的头筹。即使以Chrome加Chromium计算,Fi - FFmpeg 10.8% - VLC 9.7% - Ardour 4.9% -- Other 1.9% +- 其它 1.9% - SoX 1.3% - Mixxx 1.1% - LMMS .7% - Format Junkie .5% - - ### 最佳音频播放器 ### ![](http://www.linuxjournal.com/files/linuxjournal.com/ufiles/imagecache/slideshow-400/11781f10.jpg) @@ -257,7 +254,7 @@ VLC登上视频播放器分类的榜首(见下文)应该是毫无悬念的 - Spotify 5.9% - Audacious 5.5% - Banshee 4.6% -- Other 4%* +- 其它 4%* - XBMC 3.1% - foobar2000 3% - Xmms 2.4% @@ -273,7 +270,7 @@ VLC登上视频播放器分类的榜首(见下文)应该是毫无悬念的 - Decibel Audio Player .2% -*在 "其它"当中,Quod Libet获得最多提名。 +*在"其它"当中,Quod Libet获得最多提名。 ### 最佳视频播放器 ### @@ -283,7 +280,7 @@ VLC登上视频播放器分类的榜首(见下文)应该是毫无悬念的 - MPlayer 14.5% - XBMC 6.4% - Totem 2.7% -- Other 2.7%* +- 其它 2.7%* - Plex 2% - Kaffeine 1.9% - mpv 1.6% @@ -293,7 +290,6 @@ VLC登上视频播放器分类的榜首(见下文)应该是毫无悬念的 - Daum Potplayer .2% - Clementine .1% - *在“其它”当中,提名最多是SMPlayer。 @@ -311,7 +307,7 @@ VLC登上视频播放器分类的榜首(见下文)应该是毫无悬念的 - Cinelerra 7.5% - PiTiVi 4.9% - LightWorks 4.8% -- Other 4.7% +- 其它 4.7% - LiVES 1.4% - Shotcut .6% - Jahshaka .4% @@ -326,7 +322,7 @@ VLC登上视频播放器分类的榜首(见下文)应该是毫无悬念的 - ownCloud 23.6% - Google Drive 16% - rsync 8.3% -- Other 7.5%* +- 其它 7.5%* - Amazon S3 6.6% - SpiderOak 4.4% - Box 1.8% @@ -336,8 +332,6 @@ VLC登上视频播放器分类的榜首(见下文)应该是毫无悬念的 Dropbox在这一领域曾经独步天下,几无对手,虽然这次仍为头魁,但优势已经不那么明显了。Dropbox的方便与稳定无可否认,但是将你的宝贵数据托管在ownCloud上,可管可控,也让ownCloud登上第二名的宝座。 - - *在“其它”当中,提名最多是 Younited 与 MEGA。当然很多人可能会说“非万不得已时不会选择云存储/我的文件都是存在本地”。 ### 最佳Linux游戏 ### @@ -347,7 +341,7 @@ Dropbox在这一领域曾经独步天下,几无对手,虽然这次仍为头 我很少玩游戏,所以每年我都特期待这一类别排名,希望可以从中找到最受欢迎的游戏,以供闲暇之需。看到NetHack排名这么靠前,我倒觉得挺开心的,尤其是在联想到竞争对手后更是心满意足。徘徊在让我们这些老派的龙与地下城玩家痴迷的随机通道确实有点意思。 - Civilization 5 26.5% -- Other 23.5%* +- 其它 23.5%* - Team Fortress 2 8.7% - NetHack 8.4% - X-Plane 10 7.1% @@ -361,8 +355,6 @@ Dropbox在这一领域曾经独步天下,几无对手,虽然这次仍为头 - FreeOrion 1.1% - Ryzom .9% - - *在“其它”当中,提名最多的(依次)是Minecraft, 0 A.D., Frozen Bubble, Battle for Wesnoth, Portal 以及 Counter Strike。 ### 最佳虚拟方案 ### @@ -377,7 +369,7 @@ Dropbox在这一领域曾经独步天下,几无对手,虽然这次仍为头 - XEN 5.7% - QEMU 5.3% - OpenStack 4.9% -- Other 4.2%* +- 其它 4.2%* - OpenVZ 1.7% - Linux-VServer 1.3% - Symantec Workspace Virtualization .1% @@ -393,7 +385,7 @@ Dropbox在这一领域曾经独步天下,几无对手,虽然这次仍为头 - Wireshark 20.7% - htop 12.3% - Zabbix 10.5% -- Other 8.6%* +- 其它 8.6%* - Zenoss 6.2% - Munin 3.4% - PC Monitor 2.8% @@ -422,7 +414,7 @@ Git能拿到本类别第一名倒是蛮有趣的,虽然针对配置文件使 - Subversion 7.6% - Chef 5% - SaltStack 5.4% -- Other 4.6%* +- 其它 4.6%* - CFEngine 3% @@ -437,7 +429,7 @@ Git能拿到本类别第一名倒是蛮有趣的,虽然针对配置文件使 - C 16.7% - Perl 7.1% - Java 6.9% -- Other 4.6% +- 其它 4.6% - Ruby 4.3% - Go 2.4% - JavaScript 2.4% @@ -464,14 +456,13 @@ Python强悍无比,无论在脚本及编程分类都有大量拥趸。对于 - PHP 8.4% - JavaScript 6.7% - Ruby 4.9% -- Other 2.1% +- 其它 2.1% - Lua 2% ### 最佳Linux/开源新产品/新项目 ### ![](http://www.linuxjournal.com/files/linuxjournal.com/ufiles/imagecache/slideshow-400/11781f14.jpg) - Docker无疑是大赢家,当之无愧--游戏规则改变者嘛。 Jolla/Sailfish也小受欢迎,真是令人欣慰。我们爱安卓,不过多个选择不正是我们作为开源鼓手所提倡的一个重要方面吗。 - Docker 28% @@ -498,12 +489,11 @@ Docker无疑是大赢家,当之无愧--游戏规则改变者嘛。 Jolla/Sailf ![](http://www.linuxjournal.com/files/linuxjournal.com/ufiles/imagecache/slideshow-400/tux_cruise.png) - 这是读者选择奖里我最钟爱的新分类。想象一下你参加某次Linux会议,期间询问人们他们用Linux做过的最酷的事情。这里所做的与之大同小异!这里我们仅列出部分我们比较喜欢的,如欲了解完整列表,请访问:[http://www.linuxjournal.com/rc2014/coolest][2]。 注:最常见的答案是:“使用它”;“挽救数据/照片/导致Windows 机器罢工的任何东西”;“说服朋友/家人/业务转向使用Linux”;“学习”;“讲授”;“获得工作”;“家庭自动化”;“构建家庭媒体服务器”。下表是我们选出的并非最常见的答案,而是一些比较具体与有个性的答案。 ---在上世纪90年代中期建立procmail垃圾邮件预过滤规则。 +- 在上世纪90年代中期建立procmail垃圾邮件预过滤规则。 - 450-节点计算集群。 - 7.1 通道前置放大器(集成Mopidy音乐播放器)。 - Linux机器人 (参加Eurobot年度比赛)。 @@ -548,8 +538,8 @@ Docker无疑是大赢家,当之无愧--游戏规则改变者嘛。 Jolla/Sailf via: http://www.linuxjournal.com/rc2014 作者:[Shawn Powers][a] -译者:[译者yupmoon](https://github.com/yupmoon) -校对:[校对者ID](https://github.com/校对者ID) +译者:[yupmoon](https://github.com/yupmoon) +校对:[wxy](https://github.com/wxy) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 From f66dd6081854bd04eb471cff9bb4f86b04bf2fd6 Mon Sep 17 00:00:00 2001 From: wxy Date: Wed, 17 Dec 2014 00:12:04 +0800 Subject: [PATCH 9/9] PUB:20141017 How to check hard disk health on Linux using smartmontools @KayGuoWhu --- ...ck hard disk health on Linux using smartmontools.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename {translated/tech => published}/20141017 How to check hard disk health on Linux using smartmontools.md (92%) diff --git a/translated/tech/20141017 How to check hard disk health on Linux using smartmontools.md b/published/20141017 How to check hard disk health on Linux using smartmontools.md similarity index 92% rename from translated/tech/20141017 How to check hard disk health on Linux using smartmontools.md rename to published/20141017 How to check hard disk health on Linux using smartmontools.md index 9a3a743eda..914f5f382c 100644 --- a/translated/tech/20141017 How to check hard disk health on Linux using smartmontools.md +++ b/published/20141017 How to check hard disk health on Linux using smartmontools.md @@ -1,4 +1,4 @@ -在Linux上使用smartmontools查看硬盘的健康状态 +使用 smartmontools 查看硬盘的健康状态 ================================================================================ 要说Linux用户最不愿意看到的事情,莫过于在毫无警告的情况下发现硬盘崩溃了。诸如[RAID][2]的[备份][1]和存储技术可以在任何时候帮用户恢复数据,但为预防硬件突然崩溃造成数据丢失所花费的代价却是相当可观的,特别是在用户从来没有提前考虑过在这些情况下的应对措施时。 @@ -28,7 +28,7 @@ ![](https://farm4.staticflickr.com/3953/15352881249_96c09f7ccc_o.png) -其中sdx代表分配给机器上对应硬盘上的设备名。 +其中sdX代表分配给机器上对应硬盘上的设备名。 如果想要显示出某个指定硬盘的信息(比如设备模式、S/N、固件版本、大小、ATA版本/修订号、SMART功能的可用性和状态),在运行smartctl命令时添加"--info"选项,并按如下所示指定硬盘的设备名。 @@ -67,8 +67,8 @@ - **THRESH**:在报告硬盘FAILED状态前,WORST可以允许的最小值。 - **TYPE**:属性的类型(Pre-fail或Old_age)。Pre-fail类型的属性可被看成一个关键属性,表示参与磁盘的整体SMART健康评估(PASSED/FAILED)。如果任何Pre-fail类型的属性故障,那么可视为磁盘将要发生故障。另一方面,Old_age类型的属性可被看成一个非关键的属性(如正常的磁盘磨损),表示不会使磁盘本身发生故障。 - **UPDATED**:表示属性的更新频率。Offline代表磁盘上执行离线测试的时间。 -- **WHEN_FAILED**:如果VALUE小于等于THRESH,会被设置成“FAILING_NOW”;如果WORST小于等于THRESH会被设置成“In_the_past”;如果都不是,会被设置成“-”。在“FAILING_NOW”情况下,需要备份重要文件ASAP,特别是属性是Pre-fail类型时。“In_the_past”代表属性已经故障了,但在运行测试的时候没问题。“-”代表这个属性从没故障过。 -- **RAW_VALUE**:制造商定义的原始值,从VALUE派生。 +- **WHEN\_FAILED**:如果VALUE小于等于THRESH,会被设置成“FAILING\_NOW”;如果WORST小于等于THRESH会被设置成“In\_the\_past”;如果都不是,会被设置成“-”。在“FAILING\_NOW”情况下,需要尽快备份重要文件,特别是属性是Pre-fail类型时。“In\_the\_past”代表属性已经故障了,但在运行测试的时候没问题。“-”代表这个属性从没故障过。 +- **RAW\_VALUE**:制造商定义的原始值,从VALUE派生。 这时候你可能会想,“是的,smartctl看起来是个不错的工具,但我更想知道如何避免手动运行的麻烦。”如果能够以指定的间隔运行,同时又能通知我测试结果,那不是更好吗?” @@ -134,7 +134,7 @@ via: http://xmodulo.com/check-hard-disk-health-linux-smartmontools.html 作者:[Gabriel Cánepa][a] 译者:[KayGuoWhu](https://github.com/KayGuoWhu) -校对:[校对者ID](https://github.com/校对者ID) +校对:[wxy](https://github.com/wxy) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出