Merge pull request #2 from LCTT/master

更新
This commit is contained in:
cvsher 2014-07-14 21:43:41 +08:00
commit 99d0ac360e
25 changed files with 796 additions and 421 deletions

View File

@ -1,4 +1,4 @@
查看Linux硬盘分区和磁盘空间的9个命令 Linux下掌控磁盘分区的九大神器
================================================================================ ================================================================================
在这篇文章中,我们来了解一些用来检查你的系统分区的一些命令,这些命令将检查每个磁盘的分区情况和其它细节,例如总空间容量,已用完的空间和文件系统等。 在这篇文章中,我们来了解一些用来检查你的系统分区的一些命令,这些命令将检查每个磁盘的分区情况和其它细节,例如总空间容量,已用完的空间和文件系统等。
@ -7,7 +7,7 @@
### 1. fdisk ### ### 1. fdisk ###
Fdisk是检查磁盘上分区的最常用命令fdisk命令可以显示分区和细节如文件系统类型但是它并不报告每个分区的大小。 Fdisk是检查磁盘上分区的最常用命令fdisk命令可以显示分区和细节如文件系统类型但是它并不报告每个分区的字节大小。
$ sudo fdisk -l $ sudo fdisk -l
@ -36,7 +36,7 @@ Fdisk是检查磁盘上分区的最常用命令fdisk命令可以显示分区
Device Boot Start End Blocks Id System Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 7907327 3952640 b W95 FAT32 /dev/sdb1 * 2048 7907327 3952640 b W95 FAT32
单独显示了每个设备的详细信息大小ID和单个分区。 每个设备都单独显示其详细信息容量大小扇区数设备ID及其包含的每个分区。
### 2. sfdisk ### ### 2. sfdisk ###
@ -81,13 +81,14 @@ Cfdisk是一个基于ncurses提供字符终端处理库包括面板和菜
![linux cfdisk disk partitions](http://www.binarytides.com/blog/wp-content/uploads/2014/06/linux-cfdisk.png) ![linux cfdisk disk partitions](http://www.binarytides.com/blog/wp-content/uploads/2014/06/linux-cfdisk.png)
Cfdisk一次只能列出一个分区所以如果你需要看某一磁盘的细节可以把设备名传给Cfdisk Cfdisk一次只能列出一个分区所以如果你需要看某一磁盘的细节可以把该磁盘的设备名作为Cfdisk的参数
$ sudo cfdisk /dev/sdb $ sudo cfdisk /dev/sdb
### 4. parted ### ### 4. parted ###
Parted是另一个命令行实用程序用来列出分区如果需要的话也可进行修改。 Parted是另一个命令行实用程序可以列出分区如果需要的话也可进行修改。
下面是一个例子,列出了详细的分区信息。 下面是一个例子,列出了详细的分区信息。
$ sudo parted -l $ sudo parted -l
@ -131,9 +132,9 @@ Df是不是一个分区工具但它打印出挂装文件系统的细节Df
/dev/sda8 196G 154G 33G 83% /media/13f35f59-f023-4d98-b06f-9dfaebefd6c1 /dev/sda8 196G 154G 33G 83% /media/13f35f59-f023-4d98-b06f-9dfaebefd6c1
/dev/sda5 98G 37G 62G 38% /media/4668484A68483B47 /dev/sda5 98G 37G 62G 38% /media/4668484A68483B47
文件系统只有以 /dev 开始的,是实际设备或分区。 只有以 /dev 开始的文件系统才是实际的设备或分区。
使用grep命令来筛选出实际的硬盘分区或文件系统。 可以使用grep命令来筛选出实际的硬盘分区或文件系统。
$ df -h | grep ^/dev $ df -h | grep ^/dev
/dev/sda6 97G 43G 49G 48% / /dev/sda6 97G 43G 49G 48% /
@ -152,7 +153,7 @@ Df是不是一个分区工具但它打印出挂装文件系统的细节Df
### 6. pydf ### ### 6. pydf ###
它是用Python写的Df的改进版本一个方便阅读的方式打印出所有磁盘分区。 它是用Python写的Df的改进版本读的方式打印出所有磁盘分区。
$ pydf $ pydf
Filesystem Size Used Avail Use% Mounted on Filesystem Size Used Avail Use% Mounted on
@ -160,13 +161,13 @@ Df是不是一个分区工具但它打印出挂装文件系统的细节Df
/dev/sda8 195G 153G 32G 78.4 [#######..] /media/13f35f59-f023-4d98-b06f-9dfaebefd6c1 /dev/sda8 195G 153G 32G 78.4 [#######..] /media/13f35f59-f023-4d98-b06f-9dfaebefd6c1
/dev/sda5 98G 36G 61G 37.1 [###......] /media/4668484A68483B47 /dev/sda5 98G 36G 61G 37.1 [###......] /media/4668484A68483B47
另外pydf限制为仅显示已挂载的文件系统 另外pydf限制为仅显示已挂载的文件系统
### 7. lsblk ### ### 7. lsblk ###
列出了所有的存储块,包括磁盘分区和光盘驱动器。细节包括所有分区/块总大小和挂载点。 列出了所有的块存储设备,包括磁盘分区和光盘驱动器。细节包括所有分区/块总大小和挂载点。
不报告分区上的已使用和空闲磁盘空间。 报告分区上的已使用和空闲磁盘空间。
$ lsblk $ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
@ -182,13 +183,13 @@ Df是不是一个分区工具但它打印出挂装文件系统的细节Df
sr0 11:0 1 1024M 0 rom sr0 11:0 1 1024M 0 rom
如果没有挂载点,这就意味着文件系统未安装,对于cd/dvd这意味着没有磁盘。 如果没有挂载点,这就意味着文件系统未安装,而对于cd/dvd这意味着没有插入光盘。
lsblk能够显示每个设备的更多信息如标签和型,更多请查看信息手册。 lsblk能够显示每个设备的更多信息如标签和型,更多请查看信息手册。
### 8. blkid ### ### 8. blkid ###
打印块设备分区和存储介质属性例如UUID和文件系统类型不报告分区空间。 显示块设备分区和存储介质属性例如UUID和文件系统类型不报告分区空间。
$ sudo blkid $ sudo blkid
/dev/sda1: UUID="5E38BE8B38BE6227" TYPE="ntfs" /dev/sda1: UUID="5E38BE8B38BE6227" TYPE="ntfs"
@ -219,9 +220,9 @@ hwinfo是一个通用的硬件信息的工具可以用来打印出磁盘和
### 总结 ### ### 总结 ###
parted的输出可以得到简洁而完整的不同分区的概述、上的文件系统以及总空间。pydf和df被限制为只显示和它们一样的已挂载文件系统。 parted的输出可以得到简洁而完整的不同分区的概述、上的文件系统以及总空间。pydf和df它们一样,只是被限制为只显示已挂载文件系统。
fdisk和sfdisk显示完整大量的信息需要花些时间来解释。cfdisk是一个互动的分区工具,每次显示一个单一的设备。 fdisk和sfdisk显示完整大量的信息需要花些时间来解释。cfdisk是一个交互式分区工具,每次显示一个单一的设备。
来尝试下这些命令吧,别忘了在下面评论哟! 来尝试下这些命令吧,别忘了在下面评论哟!

View File

@ -7,11 +7,11 @@
Curlew可以转换超过100种不同的格式、显示文件的详细信息、转换预览、插入字幕等等。 Curlew可以转换超过100种不同的格式、显示文件的详细信息、转换预览、插入字幕等等。
根据变更日志,转换前后实例的最后大小和位置会被记住、加入了一些失去对话图标、文件系统会在挂起前同步 此次更新包括:该软件打开时会记住上次的窗口大小和位置、增加了丢失了的对话框图标、在系统挂起前会主动同步文件系统
这个程序有一些依赖至少Python 2.7 小于3.0、python-gobject 3.0、gir1.2-gtk 3.0、 ffmpeg 0.8、libav-tools 0.8、 mencoder、libavcodec-extra、xdg-utils、mediainfo 这个程序需要的依赖环境包括Python 2.7及其以上 但是不兼容3.x、python-gobject 3.0、gir1.2-gtk 3.0、 ffmpeg 0.8、libav-tools 0.8、 mencoder、libavcodec-extra、xdg-utils和mediainfo等
来自noobslab.com的提供一种通过PPA来简单地安装这个应用的方法。你要做的是在命令行下输入少量的命令你需要使用root权限来生效 来自noobslab.com的兄弟们提供一种通过PPA来简单地安装这个应用的方法。你要做的是在命令行下输入少量的命令你需要有root权限才行
sudo add-apt-repository ppa:noobslab/apps sudo add-apt-repository ppa:noobslab/apps
sudo apt-get update sudo apt-get update
@ -30,7 +30,7 @@ Curlew可以转换超过100种不同的格式、显示文件的详细信息、
via: http://news.softpedia.com/news/Open-Source-Multimedia-Converter-Curlew-0-1-22-3-Is-Out-448028.shtml via: http://news.softpedia.com/news/Open-Source-Multimedia-Converter-Curlew-0-1-22-3-Is-Out-448028.shtml
译者:[geekpi](https://github.com/geekpi) 校对:[校对者ID](https://github.com/校对者ID) 译者:[geekpi](https://github.com/geekpi) 校对:[wxy](https://github.com/wxy)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出

View File

@ -1,6 +1,6 @@
在Ubuntu下使用“Reprepro”工具在Sourceforge.net中创建".deb"包仓库 在Ubuntu下如何创建远程".deb"包仓库
================================================================================ ================================================================================
**Reprepro**是一款小巧的命令行工具来方便地创建并管理**.deb**仓库。今天我们会战士如何人使用reprepro简单地创建一个Debian包仓库并使用**rsync**上传到Sourceforge.net。 **Reprepro**是一款小巧的命令行工具来方便地创建并管理**.deb**仓库。今天我们会展示给你如何使用reprepro简单地创建一个Debian包仓库并使用**rsync**上传到Sourceforge.net。
![Create Deb Package Repository](http://www.tecmint.com/wp-content/uploads/2014/06/Create-Debian-Package-Repository1.png) ![Create Deb Package Repository](http://www.tecmint.com/wp-content/uploads/2014/06/Create-Debian-Package-Repository1.png)
@ -10,11 +10,11 @@
$ sudo apt-get install reprepro gnupg $ sudo apt-get install reprepro gnupg
现在你需要使用hnupg生成一个gpg key这里使用下面的命令。 现在你需要使用gnupg生成一个gpg key这里使用下面的命令。
$ gpg --gen-key $ gpg --gen-key
它会询问你一些问题比如你想要哪种key、key的有效期、如果你不知道如何回答只需点击**Enter** 来选择默认选项(建议) 它会询问你一些问题比如你想要哪种key、key的有效期、如果你不知道如何回答只需点击**回车** 来选择默认选项(建议)
当然,它会询问你用户名和密码,在脑海中记住这些,因为我们会在之后需要它。 当然,它会询问你用户名和密码,在脑海中记住这些,因为我们会在之后需要它。
@ -85,7 +85,7 @@
### 步骤 2: 创建一个包仓库并导出key ### ### 步骤 2: 创建一个包仓库并导出key ###
我们现在要开始创建仓库,首先你需要创建一些文件夹,我们的仓库会在**/var/www/apt**目录,让我们先创建这些目录。 我们现在要开始创建仓库,首先你需要创建一些文件夹,我们的仓库会在**/var/www/apt**目录,让我们先创建这些目录。
$ sudo su $ sudo su
# cd /var/www # cd /var/www
@ -98,7 +98,7 @@
# gpg --armor --export username yourmail@mail.com >> /var/www/apt/key/deb.gpg.key # gpg --armor --export username yourmail@mail.com >> /var/www/apt/key/deb.gpg.key
注意用你之前步骤中输入的用户名代替username用你的email代替yourmail@mail.com。 注意用你之前步骤中输入的用户名代替username用你的email代替上面的yourmail@mail.com。
我们需要在**/var/www/apt/conf**创建一个文件“**distributions**”。 我们需要在**/var/www/apt/conf**创建一个文件“**distributions**”。
@ -106,14 +106,14 @@
加入下面这几行到distributions这个文件中并保存。 加入下面这几行到distributions这个文件中并保存。
Origin: (yourname) Origin: (你的名字)
Label: (name of repository) Label: (库的名字)
Suite: (stable or unstable) Suite: (stable unstable)
Codename: (the codename for the distribution you are using, like trusty) Codename: (发布的代码名,比如 trusty)
Version: (the version for the distribution you are using, like 14.04) Version: (发布的版本,比如 14.04)
Architectures: (the repository packages architecture, like i386 or amd64) Architectures: (软件包所支持的架构, 比如 i386 或 amd64)
Components: (main restricted universe multiverse) Components: (包含的部件,比如 main restricted universe multiverse)
Description: (Some information about the repository) Description: (描述)
SignWith: yes SignWith: yes
接下来我们会创建仓库树,运行这些命令: 接下来我们会创建仓库树,运行这些命令:
@ -137,7 +137,7 @@
### 步骤 3: 在新创建的仓库中加入包 ### ### 步骤 3: 在新创建的仓库中加入包 ###
现在准备你的**.deb**包来加入到仓库中。进入 **/var/www/apt**目录,你每次要加包的时候都不得不这么做。 现在准备你的**.deb**包来加入到仓库中。进入 **/var/www/apt**目录,你每次要加包的时候都必须这么做。
# cd /var/www/apt # cd /var/www/apt
# reprepro --ask-passphrase -Vb . includedeb Trusty /home/ravisaive/packages.deb # reprepro --ask-passphrase -Vb . includedeb Trusty /home/ravisaive/packages.deb
@ -159,7 +159,7 @@
Please enter passphrase: Please enter passphrase:
Successfully created './dists/Trusty/InRelease.new' Successfully created './dists/Trusty/InRelease.new'
你的包已经加入了仓库,要移除它: 你的包已经加入了仓库,如果要移除它的话采用如下命令
# reprepro --ask-passphrase -Vb /var/www/apt remove trusty package.deb # reprepro --ask-passphrase -Vb /var/www/apt remove trusty package.deb
@ -167,13 +167,15 @@
### 步骤 4: 上传仓库到Sourceforge.net ### ### 步骤 4: 上传仓库到Sourceforge.net ###
要上传仓库到**Sourceforge.net**,你当然需要一个活跃账号与一个活跃项目,让我假设你想要上传仓库到**http://sourceforge.net/projects/myfoo/testrepository**这里的myfoo是项目名UNIX名称不是URL不是标题testrepository是你想要上传文件到这上面的目录这里我们会使用[rsync 命令][1] 要上传仓库到**Sourceforge.net**,你当然需要一个可用的账号与一个可用的项目,让我假设你想要上传仓库到**http://sourceforge.net/projects/myfoo/testrepository**这里的myfoo是项目名UNIX上的名称不是URL不是标题testrepository是你想要上传文件到这上面的目录这里我们会使用[rsync 命令][1]LCTT译注当然你也可以上传到其它的支持Http/Rsync的服务器上以提供远程软件库的服务。
# rsync -avP -e ssh /var/www/apt/ username@frs.sourceforge.net:/home/frs/project/myfoo/testrepository/ # rsync -avP -e ssh /var/www/apt/ username@frs.sourceforge.net:/home/frs/project/myfoo/testrepository/
**注意**用你在sourceforge.net上的用户名代替username用你的项目的UNIX类型名称代替myfoo用你想要存储的文件夹代替testrepository。 **注意**用你在sourceforge.net上的用户名代替username用你的项目的UNIX名称代替myfoo用你想要存储的文件夹代替testrepository。
现在你的仓库上传到了**http://sourceforge.net/projects/myfoo/testrepository**要把它加入到已安装的系统首先你需要导入仓库key它会在**/var/www/apt/key/deb.gpg.key**但是这是一个本地路径并且你仓库的用户不能添加到他们的系统中这就是为什么我们要导入来自sourceforge.net的key的原因。 现在你的仓库包括设置和key等等上传到了**http://sourceforge.net/projects/myfoo/testrepository**。
要把它加入到一个已装好的系统首先你需要导入仓库key它实际上就是**/var/www/apt/key/deb.gpg.key**但是这是一个本地路径使用你的仓库的其它用户不能添加到他们的系统中这就是为什么我们要导入来自sourceforge.net的key的原因。
$ sudo su $ sudo su
# wget -O - http://sourceforge.net/projects/myfoo/testrepository/apt/key/deb.gpg.key | apt-key add - # wget -O - http://sourceforge.net/projects/myfoo/testrepository/apt/key/deb.gpg.key | apt-key add -
@ -194,7 +196,7 @@
via: http://www.tecmint.com/create-deb-pacakge-repository-in-ubuntu/ via: http://www.tecmint.com/create-deb-pacakge-repository-in-ubuntu/
译者:[geekpi](https://github.com/geekpi) 校对:[校对者ID](https://github.com/校对者ID) 译者:[geekpi](https://github.com/geekpi) 校对:[wxy](https://github.com/wxy)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出

View File

@ -0,0 +1,57 @@
RHEL 7值得注意的5个新特性
================================================================================
> RHEL 7 支持Docker容器systemd兼容微软的身份管理和支持高达500TB的XFS文件系统。
![](http://www.infoworld.com/sites/infoworld.com/files/media/image/140.jpg)
在前一个主版本发布3年之后经过至少6个月的[公开测试][1]RHELRed Hat Enterprise Linux版本7终于发布了。这次更新表明了红帽子公司对于在RHEL中添加最新的以企业和数据为中心的特性的兴趣。这里列举了其中5个最吸引人眼球的新特性。
### 1. Docker ###
RHEL 7中最大的新特性就是[紧密集成][2]了广受欢迎的应用程序虚拟化技术[Docker][3]。随着[Docker 1.0发布][4]把它集成到RHEL 7里正是恰逢其时。
用Docker包装的应用程序可以独立于操作系统所以它们可以在操作系统之间移植并且正常运行。RHEL 7打算尽可能高效地使用Docker以防止应用程序竞争资源或者为使用哪种运行时环境而困惑。
从RHEL的Docker路线图上的长期计划表来看这可能会超越操作系统本身发展成一系列的Docker容器它可以支持用最小的开销部署一个系统。这个被称为"[Atomic项目][5]"的计划还处于早期阶段红帽公司准备首先将它部署在他的Fedora Linux发行版仅仅当做对前沿技术的测试。
### 2. Systemd ###
引入systemd进程管理器可能引起系统管理员和Linux专家之间激烈的争论。systemd就被开发用于替代自专用Unix出现以来就在使用的init系统它使得启动过程中装载服务更加高效。
因为systemd可能会带来一些不适红帽公司没有马上在RHEL上使用systemd。早在2010发布的Fedora版本15就已经包含了systemd作为默认项目这给了红帽公司一次很好的了解systemd在真实世界的运行的经验。同样systemd也没有孤立地加入RHEL 7而是作为这个OS大计划的一部分。例如红帽公司希望通过使用systemd加强对RHEL 7中Docker容器的支持。
### 3. 默认使用 XFS ###
第3个主要的改变是使XFS成为RHEL默认的文件系统尽管这可能不那么引人瞩目。
最初由Silicon Graphics International硅谷图形公司创建的XFS在Linux系统上用做生产环境已经很长时间了。在RHEL 7上它将支持高达500TB的文件系统。RHEL 6默认使用ext4尽管它有XFS选项。红帽子的竞争对手Suse Linux [也支持XFS][6],尽管它安装时[默认使用ext3][7]。
非常不幸的是没有真正的方法可以将RHEL目前使用的其他文件系统比如ext4或者btrfs移植到XFS。只能备份然后重建来进行移植
### 4. 兼容微软的身份管理 ###
就算是那些不是微软系统粉丝的管理员也对微软目录服务保持一定的尊重。RHEL 7添加了两个关键的特性以优化处理微软目录服务AD的方式。跨域认证现在可以在RHEL 7和微软目录服务之间建立所以目录服务用户可以直接访问Linux侧的资源不需要再进行一次登录。RHEL 7另一个目录服务相关的附加特性是基于DNS信息自动发现和加入目录服务或者其他红帽子认证服务
### 5. 性能监控PCPPerformance Co-Pilot ###
进行性能调整的时候看不到实时数据就像是开着一辆挡风玻璃被刷上了油漆的车所以RHEL 7添加了一个新的性能监控系统PCP([Performance Co-Pilot][8])PCP最初由Silicon Graphics International硅谷图形[创建][9]但是现在它是RHEL 7的一部分。除了监控和记录系统状态PCP还为其他子系统提供获取数据的API和工具集比如正如你猜到的刚刚介绍的systemd。
遵循这个思路另一个次要的附加特性新的性能配置文件。RHEL 6已经有符合特殊应用场景的调整RHEL的配置文件。RHEL 7不仅默认有一个新的性能最大化的配置文件而且包含另一个新的平衡性能表现和能源消耗的配置文件。
-------------------------------------------------------------------------------
via:http://www.infoworld.com/t/linux/keep-eye-these-5-new-features-in-rhel-7-244023
译者:[love\_daisy\_love](https://github.com/CNprober) 校对:[wxy](https://github.com/wxy)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://www.infoworld.com/t/linux/red-hat-enterprise-linux-7-beta-now-available-232520
[2]:http://www.infoworld.com/t/application-virtualization/red-hat-fast-tracks-docker-apps-enterprise-linux-238122
[3]:http://www.infoworld.com/t/application-virtualization/docker-unleashed-app-portability-gets-boost-231716
[4]:http://www.infoworld.com/d/application-development/review-docker-10-ready-prime-time-243935
[5]:http://www.projectatomic.io/
[6]:https://www.suse.com/products/server/technical-information/
[7]:https://www.suse.com/products/server/technical-information/
[8]:http://developerblog.redhat.com/2013/11/19/exploratory-performance-pcp/
[9]:http://oss.sgi.com/projects/pcp/index.html

View File

@ -0,0 +1,34 @@
Linux 播客软件Vocal进入Beta阶段准备测试
================================================================================
**在四月份我们就被一款叫做['Vocal'][1]的Ubuntu下的播客软件吸引了但它从一个漂亮的草图到能真正可用还有一段路要走而你则可以帮助我们测试一下Vocal。**
该软件的开发者Nathan Dyer已经完成了一个beta版本仍然不够稳定其中还有很多功能也未完成但它已经可以通过专用的PPA在Ubuntu 14.04 LTS以及14.10版本下进行测试了。
新闻的发布者宣称这个beta版本只能**安装在下一代Elementary OS桌面的系统中**。并且自从Elementary OS不再为用户提供官方的Beta预览版后让测试这事更加的麻烦了。
对于Unity、GNOME或者KDE来说试试也许并不太难我想大概。如果你是Ubuntu的用户想要试用Vocal首先得安装不稳定版的Elementary OS的PPA通常我们都不是很建议这样做。
Dyer建议感兴趣的用户等待下一代的Elementary OS桌面的beta版本开发完毕吧。
现在,我们只能望梅止渴了。
![Vocal Beta 在 Elementary OS中 (图: Dyer)](http://www.omgubuntu.co.uk/wp-content/uploads/2014/06/vocal-beta.png)
Vocal Beta 在 Elementary OS中(图: Dyer)
因为Vocal是开源的那将没有任何东西能阻挡它被完美的移植到类似Unity的主流Linux桌面系统中。
了解更多请访问[开发者的Blog][1]、[查看最新版本][2]或者在Launchpad.net上[查看Vocal的最新信息][3]
--------------------------------------------------------------------------------
via: http://www.omgubuntu.co.uk/2014/06/linux-podcast-app-vocal-hits-preview-kicker
译者:[nd0104](https://github.com/nd0104) 校对:[wxy](https://github.com/wxy)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://www.omgubuntu.co.uk/2014/04/vocal-podcast-manager-linux
[2]:http://nathandyer.me/2014/06/28/vocal-beta-released-daily-ppa-available/
[3]:https://launchpad.net/~nathandyer/+archive/vocal-daily
[4]:https://launchpad.net/vocal

View File

@ -1,34 +0,0 @@
nd0104 is translating
New Linux Podcast App Vocal Hits Beta, Ready for Testing
================================================================================
**Back in April we found ourselves enamoured by a promising new [podcast app for Ubuntu called Vocal][1]. Well, the app has since gone from being a stylish mockup to real working code — and you can help test it.**
The projects developer, Nathan Dyer, has made beta builds — still unstable and not feature complete — available for testing through a dedicated PPA for Ubuntu 14.04 LTS and 14.10.
The kicker to this (rather sweet) news is that the beta builds of the app **can only be installed if youre using the next-gen elementary desktop**. And since elementary do not provide official pre-beta development builds for users to test, that makes it a trite difficult.
Not quite as difficult as trying it out on Unity, GNOME or KDE desktops, mind. If youre an Ubuntu user wanting to kick the tires on Vocal you will first need to add an unstable elementary desktop PPA to your systems, something we strongly advise against doing.
Dyer suggests interested users wait until the first beta of the next elementary version is made available.
For now we can at least look at it:
![Vocal Beta running on Elementary (Image: Dyer)](http://www.omgubuntu.co.uk/wp-content/uploads/2014/06/vocal-beta.png)
Vocal Beta running on Elementary (Image: Dyer)
Since Vocal is open source theres nothing to stop it being ported over to mainstream Linux desktop environments such as Unity.
In the meantime to learn more visit [the developers blog][1], [check out the unstable PPA][2] or hit up [Vocal on Launchpad][3].
--------------------------------------------------------------------------------
via: http://www.omgubuntu.co.uk/2014/06/linux-podcast-app-vocal-hits-preview-kicker
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://www.omgubuntu.co.uk/2014/04/vocal-podcast-manager-linux
[2]:http://nathandyer.me/2014/06/28/vocal-beta-released-daily-ppa-available/
[3]:https://launchpad.net/~nathandyer/+archive/vocal-daily
[4]:https://launchpad.net/vocal

View File

@ -1,19 +1,19 @@
linuhap 翻译中
CoreOS Linux ending the upgrade cycle CoreOS Linux ending the upgrade cycle
CoreOS Linux结束升级周期
================================================================================ ================================================================================
> CoreOS launches commercially supported version of its Linux distribution and vows to do away with manual upgrading > CoreOS发布了他的Linux发行版的商用支持版并且宣称将废除手动更新。
IDG News Service - Hoping to simplify life for system administrators, CoreOS has launched a commercial Linux distribution that continually updates itself, eliminating the need to perform major upgrades. 国际数据集团新闻社消息——CoreOS发布了商用Linux发行版以期能简化系统管理员的生活。这个Linux发行版可持续进行自动更新不需要进行重大升级。
CoreOS is offering its namesake Linux distribution as a commercial service, [starting][1] at $100 a month. CoreOS提供其同名的Linux发行版做为商业服务开始为一个月100美元。
"Businesses today can begin to think of CoreOS as an extension of their OS team, and for enterprise Linux customers this is the last migration they will ever need," said Alex Polvi, founder and CEO of CoreOS, in a statement. “商家现在可以开始考虑将CoreOS作为他们系统团队的延伸对于企业Linux客户这将是他们会需要的最后一次迁移。”CoreOS的创始人和CEO在一份声明中这样说。
Commercial Linux subscriptions are nothing new: Both [Red Hat][2] and [Suse][3] offer commercial subscriptions for their respective distributions. 商业Linux订阅并不是什么新鲜事[Red Hat][2]和[Suse][3]都在为他们各自的发行版提供商业订阅。
Because the applications and libraries these Linux-based companies use are open source and freely available, the cost of the subscriptions doesn't cover the software itself, but rather pays for the updates, bug fixes, integration and technical support for when issues occur. 因为这些以Linux为基础的公司使用的应用程序和库都是开源和免费提供的所以订阅的费用不包括软件本身而收费来自更新漏洞修复集成以及发生问题时的技术支持。
CoreOS will be different from these distributions, the company asserted, in that there will be no major updates, which typically require updating all the packages in the distribution at once. Instead, updates and new features will be streamed automatically to the copy of the OS and applied as soon as they are ready. CoreOS公司声称CoreOS将会和这些发行版不同它将不会有重大更新而这些更新通常需要一次更新更新所有的包。它的更新和新特征将会在就绪后自动。。。。CoreOS will be different from these distributions, the company asserted, in that there will be no major updates, which typically require updating all the packages in the distribution at once. Instead, updates and new features will be streamed automatically to the copy of the OS and applied as soon as they are ready.
The service offers a dashboard, called CoreUpdate, that provides controls for designating which software packages should get updated, should the administrator not want all the packages to be updated automatically. The service offers a dashboard, called CoreUpdate, that provides controls for designating which software packages should get updated, should the administrator not want all the packages to be updated automatically.

View File

@ -1,3 +1,4 @@
nd0104 is translating
Red Hat Announces Availability of its OpenStack Platform 5 Red Hat Announces Availability of its OpenStack Platform 5
================================================================================ ================================================================================
![](http://farm4.static.flickr.com/3108/3191608123_67e1da2b79_o.jpg) ![](http://farm4.static.flickr.com/3108/3191608123_67e1da2b79_o.jpg)

View File

@ -0,0 +1,29 @@
Canonical and Ubuntu Helped Munich Save Millions of Dollars by Ditching Microsoft Products
================================================================================
![](http://i1-news.softpedia-static.com/images/news2/Canonical-and-Ubuntu-Helped-Munich-Save-Millions-of-Dollars-By-Ditching-Microsoft-Products-450571-2.jpg)
**The City of Munich has become one of the most prominent examples of a city administration that switched from Microsoft products to open source, and it looks like Canonical and Ubuntu were an instrumental part of that change.**
The City of Munich managed to shake off the Microsoft dependency, but it took a lot of work and it wasn't cheap. The benefits of moving from Microsoft products to open source might look expensive, but the costs are significantly lower than an upgrade, and it will prove to be a lot cheaper in the future.
Moving from a proprietary solution to an open source one is not all that simple when you have a city the size of Munich. It has 22 organizational units and each of those units has its own IT department, not to mention different versions of the applications.
The local authorities couldn't just adopt a Linux distribution on the fly. The first try was made with Debian back in 2006, but that particular OS didn't have a predictable release schedule. This is how the new LiMux was born, an operating system based on Ubuntu.
“The LiMux/open source project was a long and iterative one, but after a few years of running such a large Linux base, we realized Ubuntu was the platform that could satisfy our requirements best. By combining the low costs and freedom of open source software with ongoing support for the hardware and applications we need, it was one of the critical elements to the success of this project. Most important was the backing of our politicians throughout the project,” [said][1] Peter Hofmann, project manager for the City of Munich.
This tremendous project helped Munich save €10 million ($13.6 million) by 2013, but that is if we take into consideration only the upgrade costs. That sum might be a lot bigger if we could quantify the official support for the software and other hidden costs.
Right now, in Munich, there are 14,000 PCs that are running LiMux and that number is still increasing. It's very likely that other German cities will do the same in the future, especially the ones neighboring Munich.
It took the authorities of Munich 13 years to finish the transition, but in the end they managed to save a lot of money and prove that Linux is actually a very good and free solution for the IT infrastructure of an entire city.
--------------------------------------------------------------------------------
via: http://news.softpedia.com/news/Canonical-and-Ubuntu-Helped-Munich-Save-Millions-of-Dollars-By-Ditching-Microsoft-Products-450571.shtml
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:https://insights.ubuntu.com/2014/07/07/ubuntu-and-open-source-help-the-city-of-munich-save-millions/

View File

@ -0,0 +1,38 @@
IPFire 2.13 Core 77 Linux Firewall Distro Brings Major OpenVPN Improvements
================================================================================
![](http://i1-news.softpedia-static.com/images/news2/IPFire-2-13-Core-77-Linux-Firewall-Distro-Brings-Major-OpenVPN-Improvements-450605-2.jpg)
**Michael Tremer, a developer for the ipfire.org team, has announced that IPFire 2.13 Core 79, a new stable build of the popular Linux-based firewall distribution, is now out with some exciting new features.**
IPFire is a modular Linux distribution, which means that it can be deployed as a firewall, a proxy server, or a VPN gateway. The main concern of the developers is security and every step has been taken in order to ensure that users can feel really safe when using this operation system.
The developers are saying in the official [announcement][1] that the “Core Update 79 is finally arriving with many bug fixes and enhancements. Among the big changes with this update are lots feature enhancements that massively increase the security level of OpenVPN connections, some enhancements of the web user interface and a lot more awesome stuff under the hood.”
The IPFire devs had another huge release a few months ago and it looks like they have made another one, this time focusing on the improvement of the OpenVPN features and a few other aspects.
“The certificate authority that can be created on the OpenVPN page now uses much better hashes to protect the integrity of itself. The CA root certificate uses a SHA512 hash and a RSA key with length of 4096 bit. All new created host certificates use a RSA key with 2048 bit length and a SHA256 hash. Additionally, a set of Diffie-Hellman parameters can be generated for better protection of the session keys. The length of the pregenerated DH parameters can be chosen in the web interface,” also noted the devs.
According to the changelog, the cipher that is used for each net-to-net connection can now be changed, the hash function is now configurable with a few options like SHA2 (512, 384, and 256-bit), Whirpool (512 bit), and SHA1 (160 bit), and the tls-auth option can be enabled, which uses a HMAC function.
The Linux kernel used by the distribution has also been updated in this release and the OS now packs the 3.10.44 version. This should bring support for new hardware, a number of security fixes, and more stability.
Also, snort (the Intrusion Detection System) has been updated to version 2.9.6.1, the new firewall GUI now supports blocking access to the GREEN firewall interface, the PIE packet scheduler has been added, and the default size of the root partition has been increased.
The developers recommend all users of IPFire to upgrade their distributions. More details can be found on the official website.
Download IPFire 2.13 Core 79:
- [IPFire 2.15 Core 79][1] (ISO)[iso] [126 MB]
- [IPFire 3.0 Alpha 1][2] (ISO)[iso] [76 MB]
--------------------------------------------------------------------------------
via: http://news.softpedia.com/news/IPFire-2-13-Core-77-Linux-Firewall-Distro-Brings-Major-OpenVPN-Improvements-450605.shtml
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://www.ipfire.org/news/ipfire-2-15-core-update-79-released
[2]:http://downloads.ipfire.org/releases/ipfire-2.x/2.15-core79/ipfire-2.15.i586-full-core79.iso
[3]:http://www.rowie.at/ipfire/iso/ipfire-3.0-alpha1.i686.iso

View File

@ -0,0 +1,28 @@
LFTP 4.5.3 File Transfer Software Is for People Who Love the Terminal
================================================================================
![](http://i1-news.softpedia-static.com/images/news2/LFTP-4-5-3-File-Transfer-Software-Is-for-People-Who-Love-the-Terminal-450596-2.jpg)
**LFTP 4.5.3, a sophisticated file transfer program with a command-line interface that supports FTP, HTTP, FISH, SFTP, HTTPS, and FTPS protocols, has been released and is ready for download.**
Every operation made with LFTP is reliable, which means that, if any non-fatal error occurs, the operation is retried automatically. The software supports numerous protocols, but it can also handle a few other tasks, such as BitTorrent downloads, SRV DNS records, job queuing, bookmarks, aliases, and many more.
“lftp has shell-like command syntax allowing you to launch several commands in parallel in background (&). It is also possible to group commands within () and execute them in background. All background jobs are executed in the same single process. You can bring a foreground job to background with ^Z (c-z) and back with command wait (or fg which is alias to wait),” reads the official website.
According to the changelog, a new setting ftp:site has been added, the http body is not uncompressed when the Contrent-Type is compressed, the source address of DHT replies is now checked, and the disconnected torrent peers are now discarded after only a timeout.
A complete list of changes and improvements can be found in the official [announcement][1].
Download LFTP 4.5.3:
- [LFTP 4.5.3 tar.xz][2][sources] [1.40 MB]
--------------------------------------------------------------------------------
via: http://news.softpedia.com/news/LFTP-4-5-3-File-Transfer-Software-Is-for-People-Who-Love-the-Terminal-450596.shtml
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://lftp.yar.ru/news.html
[2]:http://lftp.yar.ru/ftp/lftp-4.4.15.tar.xz

View File

@ -1,63 +0,0 @@
Love-xuan翻译中
Ubuntu 14.04 LTS: Customizing Unity
================================================================================
Although the Unity Desktop Manager has made HUGE performance and usability strides since the initial release in Ubuntu 11.10, some people are still put off by a number of the limitations in customizing the look and behavior of the window manager. We are going to take a look at how to customize Unity and bring back a sense of control to your desktop.
### Unity Customizations Available ###
In Ubuntu 14.04, Unity has several customizations that are available that were not previously. If you log into Unity, go the the “Settings” and choose “Display”, you will see the following screen:
![Ubuntu 14.04 LTS Display and Unity Settings](https://linuxacademy.com/blog/wp-content/uploads/2014/06/unitysettings.png)
Ubuntu 14.04 LTS Display and Unity Settings
Most of what you see is new since the Ubuntu 11.10 Unity introduction and several are new since just the latest version of Ubuntu 13.10. New since 13.10 are the ability to scale the menu and title bars. This is useful in very high resolution screens OR as a visual impairment option. Everything scales equally.
Specific to Unity we can also turn on or off that “sticky edges” option. This is the somewhat annoying “pause” your mouse does on the edge of each screen of a multi-monitor setup. It stops the mouse momentarily at the edge, like it gets stuck. Finally, we have to option to turn that off.
In the “Settings” screen still, choose the “Appearance” option to see the following:
![Ubuntu 14.04 LTS Appearance and Unity Settings](https://linuxacademy.com/blog/wp-content/uploads/2014/06/unityappearance.png)
Ubuntu 14.04 LTS Appearance and Unity Settings
Here we have one of the most requested options for the Unity Dock, the ability to change the Launcher size. Although it could be done in multiple ways in various versions of Ubuntu since 11.10, including it in the Appearance setting just makes it all official. I like that it allows you to change the icon size all the way down to 16 (even the tool we will talk about next only supports 24).
### Unity Tweak Tool Now Repo Strong! ###
This tool has been around since the early days of Ubuntu 11.10 when Unity was first introduced, although you had to jump through a large number of hoops (and progressively smaller as the versions went on) to get it installed and it would be broken by Unity updates.
Now however, it has officially been added to the default Ubuntu repositories and gets updated when Unity gets updated. There are a large number of customizations, so lets get it installed:
sudo apt-get install unity-tweak-tool
After installation, start it up and you will see the following screen:
![Ubuntu 14.04 LTS Official Unity Tweak Tool](https://linuxacademy.com/blog/wp-content/uploads/2014/06/unitytweaktool.png)
Ubuntu 14.04 LTS Official Unity Tweak Tool
This tool encapsulates a large number of Unity Desktop customizations all in once convenient location. Most of these options can be had in the default Unity settings, at the command line or by editing sometimes hard to find configuration files.
We can change the behavior of the dock, the panel, web applet integration, search within the Unity menu, etc. all within this one tool. Take the time to explore the options available to you Unity Tweak Tool learn it, live it, love it (at least if you use Unity).
### Final Thoughts ###
Ubuntu 14.04 LTS is shaping up more and more to be the Linux Desktop (sorry Canonical, you are still Linux) of choice for both the casual Linux user (is there such a thing) as well as the die hard professional.
We now have more control than every over the Unity Desktop without resorting to tools, utilities or configuration file edits that may break with each subsequent Unity update. The desktop performance is pretty rock solid and, by adding some flavor with the Unity Tweak Tool, looks pretty cool as well! Drop us your thoughts or post links to your Unity Desktop set up in the comments below, we would be interested to see how you are using Ubuntu 14.04 LTS.
----------
#### Terrence T. Cox ####
Developer, Linux Advocate, Open Source Junkie. Been at this whole tech thing long enough to be considered 'very experienced' but not so long as to be bored of it.
[Twitter][1]
--------------------------------------------------------------------------------
via: https://linuxacademy.com/blog/linux/ubuntu-14-04-lts-customizing-unity/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:https://twitter.com/mourngrymtc/

View File

@ -1,3 +1,4 @@
zpl1025
Here Are 5 Amazing Ascii Art Generators! Here Are 5 Amazing Ascii Art Generators!
================================================================================ ================================================================================
![](http://www.efytimes.com/admin/useradmin/photo/nin511907PM712014.jpg) ![](http://www.efytimes.com/admin/useradmin/photo/nin511907PM712014.jpg)
@ -36,4 +37,4 @@ via: http://www.efytimes.com/e1/fullnews.asp?edid=142480
[2]:http://www.ascii-art-generator.org/ [2]:http://www.ascii-art-generator.org/
[3]:http://ascii.mastervb.net/ [3]:http://ascii.mastervb.net/
[4]:http://www.degraeve.com/img2txt.php [4]:http://www.degraeve.com/img2txt.php
[5]:http://picascii.com/ [5]:http://picascii.com/

View File

@ -1,84 +0,0 @@
暑假 先来一发 Luoxcat 翻译
Command Line Tuesdays Part Three
================================================================================
Today, mr Shotts takes us on a first part of a guided tour through our file system. Well learn how to visit, list files within directories and well learn to use some options for the first time. So lets begin with the first command of the week.
### ls ###
ls is a command used to list files in a directory. It can be used in various ways. These various ways come with using a form of adding an **option** to our command. To make things clearer; You can type only ls. But, you can also add an option, which will modify your command. It can come in useful when you want to sandbox some of the information, when looking for something specific, and the command issues a very long output, you can, for example, narrow it down to only specific information.
Thats what an option is. And formally we can write it down like this:
command -option argument
Command is, well, a command we write in (like pwd, ls or anything else we have learned by now).
We already stated above the purpose of an option. But let me note it should be written exactly as its in the form; With a dash in front of it. So, if the option is l, you should put **-l** after the command.
An **argument** is an object upon which the command operates (in this case, it will be directories, as well learning how to navigate through them).
So, lets try out ls, and use it on the /etc directory in our home folder. This time, without any options.
![](https://news.opensuse.org/wp-content/uploads/2014/06/Screenshot-30.-06.-2014-184127.png)
There you go, a whole bunch of files. It also sorts them by colours. The blue ones are directories, the white ones are files, the green one seems like a shell script of some sort. There are more colors, as they represent different file types.
Next, you can use the same command, but with an option -l added. Option -l will list the same files and directories, but in a long format. In case you need more information:
![](https://news.opensuse.org/wp-content/uploads/2014/06/Screenshot-30.-06.-2014-184542.png)
### The Long Format ###
So, using the long format, you see much more information, and some crazy looking signs like -rw-rr at the beginning of all lines. Actually, heres a scheme, representing what all of the given information actually means.
![](https://news.opensuse.org/wp-content/uploads/2014/06/Screenshot-30.-06.-2014-184829.png)
File Name is the name of the file. Modification time is the last time the file has been modified. Size is the size of the file in bytes. Group is the name of the group that has file permissions along with the owner, and Owner is the user who owns the file. The most important one is…
### …File Permissions ###
Thats the gibberish at the beginning of every line in long format. The first character is the file type. If its a d, it means the files a directory. If its -, it means its an ordinary file. The next three characters represent the read, write and execution rights of the files owner. The next three are the same rights of the group that also has access to the file, and the last three characters represent rights of everyone else trying to use the file.
So for example, if we have a file which in long format displays: -rw-rr, it means its an ordinary file (the first -), the owner of the file can read and write the file, but he cant execute it, as its not an executable file (the rw- characters after the initial -), and the user group and everyone else can only read the file (you can see r sequence repeating twice. If the user group had rwx instead of r, it would mean they could read, write and execute the file).
Next option for ls is ls -la .. this will list all of the files, as in a usual command, hidden files are not shown. It will list all files in the parent of the working directory in long format.
### less ###
Less is a command which will display your text file. For example, youre looking for text file os-release in /etc. You have succesfully found it there with ls /etc, and now you want to read it.
You just use less /etc/os-release.
![](https://news.opensuse.org/wp-content/uploads/2014/06/Screenshot-30.-06.-2014-190252.png)
..and there you go.
How do you control less?
Easy, with your keyboard!
less will display only one page of your text at a time. To go forward one page, you can press **Page Up, or b**. To go back one page, you can use **Page Down, or space**. Capital **G** will take you to the end of the text file, while **1G** will take you to the beginning of the text. **/characters** will search for characters inside the text (for example, if you write /suse, it will search for occurances of suse inside your text and mark them). n will repeat the last search you performed, and **h** will display all your options (h, as in haalp!).
![](https://news.opensuse.org/wp-content/uploads/2014/06/halp.jpg)
You quit less with the letter q.
### file ###
The file command will show what kind of file is that youre looking for, be it ASCII text, a jpg image, a bash script etc. As we performed our exercise with /etc/os-release, lets use it here also.
![](https://news.opensuse.org/wp-content/uploads/2014/06/Screenshot-30.-06.-2014-191402.png)
There you go, os-release is an ASCII text file. Please, do try it out with something else, and see the output.
And until next time, remember to…
…have a lot of fun!
--------------------------------------------------------------------------------
via: https://news.opensuse.org/2014/07/01/command-line-tuesdays-part-three/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出

View File

@ -1,80 +0,0 @@
cvsher 翻译中
Command Line Tuesdays Part Four
================================================================================
Heya there geekos! New week, new adventure!
Today, well learn how to manipulate files using four fairly simple commands. So lets begin!
Before we start with the commands themselves, lets take a quick stop at a section called…
### …wildcards: ###
Copying, pasting files, creating directories etc. is probably easier using graphical tools, but, if youd like to perform more complicated tasks, like copying only .html files from one folder to another, and only copying files that dont exist in the destination directory, CLI just might come in handy. So, to get back to wildcards, its basically a shell feature, a set of special characters, that helps you pick out a set of files based on some simple rules (which characters appear in a file name, how many characters, upper/lower case characters etc.). Heres the table (click to enlarge):
![](https://news.opensuse.org/wp-content/uploads/2014/07/Screenshot-08.-07.-2014-125946.png)
And here are a few examples mr Shotts posted in a table of usage also click to enlarge:
![](https://news.opensuse.org/wp-content/uploads/2014/07/Screenshot-08.-07.-2014-125959.png)
If you use a command with an argument containing a filename, you can use wildcards with no problem.
### cp ###
cp is used to copy files or directories. You can use it pretty easily: navigate to the folder youd like to copy the files from and to, and simply do
`cp file1 file2` to copy single files,
or
`cp file1 file2 … directory` to copy files from your current working directory to the directory specified. Heres mr Shotts table with numerous options:
![](https://news.opensuse.org/wp-content/uploads/2014/07/Screenshot-08.-07.-2014-134248.png)
### mv ###
mv is the second command of the day. We can use mv to rename a file or directory, or to move a file or directory. We can use it this way:
`mv filename1 filename2` if we want to rename filename1 to filename2
or
`mv file directory` if we want to move file to directory.
Heres a table of few examples of mv with options used with it:
![](https://news.opensuse.org/wp-content/uploads/2014/07/Screenshot-08.-07.-2014-133515.png)
### rm ###
The rm command removes/deletes files and directories. Usage is pretty straightforward:
rm file
or
rm -r directory
And heres also a table with some additional options:
![](https://news.opensuse.org/wp-content/uploads/2014/07/Screenshot-08.-07.-2014-133529.png)
But, do be careful when using rm as there is no undelete option, so be extra careful not to inflict unwanted damage to your system!
### mkdir ###
mkdir is used for creating directories. Its the most simple command of the day. Simply:
mkdir directory
Voila, directory created!
So this is it for this week, geekos. Hope to see you next tuesday! All the best and kind regards,
--------------------------------------------------------------------------------
via: https://news.opensuse.org/2014/07/08/command-line-tuesdays-part-four/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出

View File

@ -1,50 +0,0 @@
How To Enable Tab Complete Heroku Commands In Oh-My-Zsh
================================================================================
**Heroku** Client is the (Command Line Interface) CLI tool for creating and managing Heroku apps.
Requirements:
- Heroku toolbelt
- Oh-My-Zsh ([How to Install][1])
Note this post is not talk about heroku, its just to show users how they can ease typing of commands with oh-my-zsh, so am NOT going to talk into detail on doing things. Also you should have [heroku toolbelt][2] installed to make this work. Is simple for Ubuntu and Debian derivatives,Install by running the command below:
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
Open Terminal and login into heroku with you account created [here][3]:
heroku login
Enter your Heroku credentials.
Email: enockseth@unixmen.com
Password (typing will be hidden):
Authentication successful.
That shows heroku is up and running.
Open **.zshrc** in your favourite text editor
vim .zshrc
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/07/zsh_git.png)
By default git is the only plugin enabled.
Add **heroku** to the plugins section as shown below:
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/07/zsh_heroku.png)
Restart teminal, type **heroku** press tab and youre good to go:
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/07/heroku_tab_complete.png)
--------------------------------------------------------------------------------
via: http://www.unixmen.com/enable-tab-complete-heroku-commands-oh-zsh/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://www.unixmen.com/install-oh-zsh-ubuntu-arch-linux-fedora/
[2]:https://toolbelt.heroku.com/
[3]:https://www.heroku.com/

View File

@ -1,3 +1,4 @@
cvsher翻译中
Linux Basics: How To Find Size of Directory Commands Linux Basics: How To Find Size of Directory Commands
================================================================================ ================================================================================
This is the first in a series of posts in coming where Ill be writing about some **basic commands** that that will be of good use to new users. This is the first in a series of posts in coming where Ill be writing about some **basic commands** that that will be of good use to new users.
@ -62,4 +63,4 @@ via: http://www.unixmen.com/linux-basics-find-size-directory-commands/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID) 译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出

View File

@ -0,0 +1,61 @@
Fix No Sound In Ubuntu 14.04 As HDMI Enabled BY Default
================================================================================
Sound problem is not new in Ubuntu. I have previously written on various ways to [fix “no sound” issue in Ubuntu][1]. But the soud issue I am going to discuss here is different than those mentioned in the other article.
So I installed Ubuntu 14.04, actually re-installed it. As always, I did all those [things to do after a fresh install of Ubuntu 14.04][2]. And than I realized that the system had no sound. While investigating the issue I found one strange thing. I checked [alsamixer][3] and it was in a weird state:
![](http://itsfoss.itsfoss.netdna-cdn.com/wp-content/uploads/2014/06/alsamixer_Set_HDMI_Default.jpeg)
As you can see, **HDMI is set by default in alsamixer**. Which means by default HDMI output has been selected instead of the built in speakers. This is why I get no sound from the built in speakers in my system.
Use the following command to check the state of alsamixer:
alsamixer
If alsamixer is set by default to HDMI or some other audio output, continue this article to see how can we fix it.
### Fixing no sound in Ubuntu when HDMI is set as default ###
Now to force Ubuntu to use analog output instead of HDMI by default, we need a little information. Open a terminal and use the following command:
aplay -l
This will list the devices, card number etc. Note down the card and device number for analog output. For me the output was like this:
![](http://itsfoss.itsfoss.netdna-cdn.com/wp-content/uploads/2014/07/AlsaMixer_List_Device.jpeg)
Once you have the required card and device number, make a new configuration file like this:
sudo gedit /etc/asound.conf
The above command will also open the file. Add the following lines to it, replacing with your card and device number of course:
defaults.pcm.card 1
defaults.pcm.device 0
Save the file and restart the computer. You should hear the sound now. Just to mention, this will work for all the Linux distributions such as Linux Mint, Elementary OS, Fedora, Arch Linux etc. As I said previously, this “no sound fix” only works with the case where HDMI is set by default. For other cases, you can read [this article about fixing no sound issue in Ubuntu and Linux Mint][4].
Feel free to use the comment section to let me know if it worked or not or if you have some better trick to handle this such issue. Ciao ![](http://itsfoss.itsfoss.netdna-cdn.com/wp-includes/images/smilies/icon_smile.gif)
----------
![](http://1.gravatar.com/avatar/20749c268f5d3e4d2c785499eb6a17c0?s=100&r=pg&d=mm)
About Abhishek
I am Abhishek Prakash, 'creator' of It's F.O.S.S. I have a Masters in Communication System Engineering. I am an avid Linux lover and Open Source enthusiast. I use Ubuntu and believe in sharing knowledge. Apart from Linux, I love classic detective mystery. Huge fan of Agatha Christie work. Feel free to circle me on [Google Plus][g] and Follow [@abhishek_pc][t]
--------------------------------------------------------------------------------
via: http://itsfoss.com/fix-sound-ubuntu-1404/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://itsfoss.com/fix-sound-ubuntu-1304-quick-tip/
[2]:http://itsfoss.com/things-to-do-after-installing-ubuntu-14-04/
[3]:http://en.wikipedia.org/wiki/Alsamixer
[4]:http://itsfoss.com/fix-sound-ubuntu-1304-quick-tip/
[g]:https://plus.google.com/u/0/110180944531110746460
[t]:https://twitter.com/abhishek_pc

View File

@ -0,0 +1,139 @@
Linux slabtop command - Display Kernel Slab Cache Information
================================================================================
The Linux kernel needs to allocate memory for temporary objects such as task or device structures and inodes. The caching memory allocator manages caches of these types of objects. The modern Linux kernel implements this caching memory allocator to hold the caches called the slabs. Different types of slab caches are maintained by the slab allocator. This article concentrates on the slabtop command which shows real-time kernel slab cache information.
### 1. Command Usage: ###
The command is simple to use. Default execution does not mandate any arguments to the command. But it does require root privileges to access the kernel slab information. Executing the command as normal user gives following error:
![Run slabtop as non-privileged user](http://linoxide.com/wp-content/uploads/2014/07/001.slabtop_normal_user.png)
You can run it by prepending “sudo” with slabtop. The default output looks like:
![Slabtop default output](http://linoxide.com/wp-content/uploads/2014/07/002.slabtop_output.png)
To quit from slabtop, just hit q like you do for top command.
### 2. Slabtop options: ###
#### 2.1 Display Interval: ####
By default slabtop refreshes every 3 seconds. But if you want, you can provide the refreshing interval in seconds with -d or --delay=N option:
![Custom delay interval 01](http://linoxide.com/wp-content/uploads/2014/07/003.slabtop_delay01.png)
![Custom delay interval 02](http://linoxide.com/wp-content/uploads/2014/07/004.slabtop_delay02.png)
#### 2.2 Sort criteria: ####
There are many fields in slabtop output. The -s or --sort=S option sorts the output according to the mentioned sort criteria. This option will be discussed in detail in the next section.
#### 2.3 Output once: ####
The -o or --once option does not refresh the output, instead it just throws the output once on STDOUT and exits.
![Output once and exit](http://linoxide.com/wp-content/uploads/2014/07/005.slabtop_output_once.png)
#### 2.4 Version info: ####
The -V or --version displays the version of the command and exits.
![Slabtop version](http://linoxide.com/wp-content/uploads/2014/07/006.slabtop_version.png)
#### 2.5 Help: ####
The common option, -h or --help displays usage of the command.
![Slabtop help options](http://linoxide.com/wp-content/uploads/2014/07/007.slabtop_help.png)
### 3. Sort Criteria: ###
The sort criteria determines which slab caches are displayed on top. Following are the sort criteria for slabtop:
#### 3.1 ACTIVE: ####
Caches can be sorted by number of active objects with “a”.
![Sort by Active 01](http://linoxide.com/wp-content/uploads/2014/07/008.slabtop_sort_active01.png)
![Sort by Active 02](http://linoxide.com/wp-content/uploads/2014/07/009.slabtop_sort_active02.png)
#### 3.2 OBJ/SLAB: ####
The Objects per Slab can be selected with “b”.
![Sort by objects per slab 01](http://linoxide.com/wp-content/uploads/2014/07/010.slabtop_sort_objslab01.png)
![Sort by objects per slab 02](http://linoxide.com/wp-content/uploads/2014/07/011.slabtop_sort_objslab02.png)
#### 3.3 CACHE SIZE: ####
For selecting cache size, you need to provide “c”.
![Sort by cache size 01](http://linoxide.com/wp-content/uploads/2014/07/012.slabtop_sort_cache_size01.png)
![Sort by cache size 02](http://linoxide.com/wp-content/uploads/2014/07/013.slabtop_sort_cache_size02.png)
#### 3.4 SLABS: ####
The number of slabs. Select it with “l”
![Sort by number of slabs 01](http://linoxide.com/wp-content/uploads/2014/07/014.slabtop_sort_slabs01.png)
![Sort by number of slabs 02](http://linoxide.com/wp-content/uploads/2014/07/015.slabtop_sort_slabs02.png)
#### 3.5 Active Slabs: ####
The number of Active Slabs. (Note that this is different from number of Active Objects described above.) Use “v” to sort according to this criteria.
![Sort by Active Slabs 01](http://linoxide.com/wp-content/uploads/2014/07/016.slabtop_sort_active_slabs01.png)
![Sort by Active Slabs 02](http://linoxide.com/wp-content/uploads/2014/07/017.slabtop_sort_active_slabs02.png)
#### 3.6 NAME: ####
Name of cache. Corresponding character is “n”
![Sort by cache name 01](http://linoxide.com/wp-content/uploads/2014/07/018.slabtop_sort_cache_name01.png)
![Sort by cache name 02](http://linoxide.com/wp-content/uploads/2014/07/019.slabtop_sort_cache_name02.png)
#### 3.7 OBJS: ####
To sort by number of objects, use “o”
![Sort by number of objects 01](http://linoxide.com/wp-content/uploads/2014/07/020.slabtop_sort_objectnunber01.png)
![Sort by number of objects 02](http://linoxide.com/wp-content/uploads/2014/07/021.slabtop_sort_objectnunber02.png)
#### 3.8 Pages Per Slab: ####
“p” will sort by pages per slab
![Sort by pages per slab 01](http://linoxide.com/wp-content/uploads/2014/07/022.slabtop_sort_pagesperslab01.png)
![Sort by pages per slab 02](http://linoxide.com/wp-content/uploads/2014/07/023.slabtop_sort_pagesperslab02.png)
#### 3.9 OBJ SIZE: ####
The object size is sorted by “s”
![Sort by object size 01](http://linoxide.com/wp-content/uploads/2014/07/024.slabtop_sort_object_size01.png)
![Sort by object size 02](http://linoxide.com/wp-content/uploads/2014/07/025.slabtop_sort_object_size02.png)
#### 3.10 USE: ####
“u” sorts by the cache utilization.
![Sort by cache utilization 01](http://linoxide.com/wp-content/uploads/2014/07/026.slabtop_sort_cache_utilization01.png)
![Sort by cache utilization 02](http://linoxide.com/wp-content/uploads/2014/07/027.slabtop_sort_cache_utilization02.png)
--------------------------------------------------------------------------------
via: http://linoxide.com/linux-command/kernel-slab-cache-information/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出

View File

@ -0,0 +1,26 @@
[Quick Tip] Set Default Browser on Debian/Ubuntu Using Terminal
================================================================================
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/07/Browsers-790x436.jpg)
Hey Guys,
In this post, we are going to use the terminal to make a browser default.
Even though, this can easily be done using the browsers main interface, is handy sometimes if you need to do this remotely.
To do this you simply open up the terminal and run the line of code below:
Enter the number beside the browser you wish to make default and you are done.
sudo update-alternatives --config x-www-browser
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/07/change_default_browser_from_terminal_debian_enock.png)
Enjoy!
--------------------------------------------------------------------------------
via: http://www.unixmen.com/quick-tip-set-default-browser-debianubuntu-using-terminal/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出

View File

@ -0,0 +1,139 @@
Test read/write speed of usb and ssd drives with dd command on Linux
================================================================================
### Drive speed ###
The speed of a drive is measured in terms of how much data it can read or write in unit time. The dd command is a simple command line tool that can be used to read and write arbitrary blocks of data to a drive and measure the speed at which the data transfer took place.
In this post we shall use the dd command to test and read and write speed of usb and ssd drives using the dd command.
The data transfer speed does not depend solely on the drive, but also on the interface it is connected to. For example a usb 2.0 port has a maximum operational speed limit of 35 Mbytes/s, so even if you were to plug a high speed usb 3 pen drive into a usb 2 port, the speed would be capped to the lower limit.
The same applies to SSD. SSD connect via SATA ports which have different versions. Sata 2.0 has a maximum theoretical speed limit of 3Gbits/s which is roughly 375 Mbytes/s. Whereas Sata 3.0 supports twice that speed.
### Test Method ###
Mount the drive and navigate into it from the terminal. Then use the dd command to first write a file using fixed sized blocks. Then read the same file out using the same block site.
The general syntax of the dd command looks like this
dd if=path/to/input_file of=/path/to/output_file bs=block_size count=number_of_blocks
When writing to the drive, we simply read from /dev/zero which is a source of infinite useless bytes. And when read from the drive, we read the file written earlier and send it to /dev/null which is nowhere. In the whole process, dd keeps track of the speed with which the transfer takes place and reports it.
### SSD ###
The SSD that we are using is a "Samsung Evo 120GB" ssd. It is a beginner level ssd that comes within a decent budget and is also my first SSD. It is also one of the best performing ssds, in the market.
In this test the ssd is connected to a sata 2.0 port.
#### Write speed ####
Lets first write to the ssd
$ dd if=/dev/zero of=./largefile bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 4.82364 s, 223 MB/s
Block size is actually quite large. You can try with smaller sizes like 64k or even 4k.
#### Read speed ####
Now read back the same file. However, first clear the memory cache to ensure that the file is actually read from drive.
Run the following command to clear the memory cache
$ sudo sh -c "sync && echo 3 > /proc/sys/vm/drop_caches"
Now read the file
$ dd if=./largefile of=/dev/null bs=4k
165118+0 records in
165118+0 records out
676323328 bytes (676 MB) copied, 3.0114 s, 225 MB/s
The Arch Linux wiki has a page full of information about the read/write speed of various SSDs from different vendors like Intel, Samsung, Sandisk etc. Check it out at the following url.
[https://wiki.archlinux.org/index.php/SSD_Benchmarking][1]
### USB ###
In this test we shall measure the read and write speed of ordinary usb/pen drives. The drives are plugged to standard usb 2 ports. The first one is a sony 4gb usb drive and the second is a strontium 16gb drive.
First plug the drive into the port and mount it, so that it is readable. Then navigate into the mount directory from the command line.
#### Sony 4GB - Write ####
In this test, the dd command is used to write 10,000 chunks of 8 Kbyte each to a single file on the drive.
# dd if=/dev/zero of=./largefile bs=8k count=10000
10000+0 records in
10000+0 records out
81920000 bytes (82 MB) copied, 11.0626 s, 7.4 MB/s
So the write speed is around 7.5 MBytes/s. This is a low figure.
#### Sony 4GB - Read ####
The same file is read back to test the read speed. Run the following command to clear the memory cache
$ sudo sh -c "sync && echo 3 > /proc/sys/vm/drop_caches"
Now read the file using the dd command
# dd if=./largefile of=/dev/null bs=8k
8000+0 records in
8000+0 records out
65536000 bytes (66 MB) copied, 2.65218 s, 24.7 MB/s
The read speed comes out around 25 Mbytes/s which is a more or less the standard for cheap usb drives.
> USB 2.0 has a theoretical maximum signaling rate of 480 Mbits/s or 60 Mbytes/s. However due to various constraints the maximum throughput is restricted to around 280 Mbit/s or 35 Mbytes/s. Beyond this the actual speed achieved depends on the quality of the pen drives and other factors too.
And the above usb drive was plugged inside a USB 2.0 port and it achieved a read speed of 24.7 Mbytes/s which is not very bad. But the write speed lags much behind
Now lets do the same test with a Strontium 16gb drive. Strontium is another very cheapy brand, although usb drives are reliable.
#### Strontium 16gb write speed ####
# dd if=/dev/zero of=./largefile bs=64k count=1000
1000+0 records in
1000+0 records out
65536000 bytes (66 MB) copied, 8.3834 s, 7.8 MB/s
Strontium 16gb read speed
# sudo sh -c "sync && echo 3 > /proc/sys/vm/drop_caches"
# dd if=./largefile of=/dev/null bs=8k
8000+0 records in
8000+0 records out
65536000 bytes (66 MB) copied, 2.90366 s, 22.6 MB/s
The read speed is lower than the Sony drive.
### Resources ###
- [http://en.wikipedia.org/wiki/USB][2]
- [https://wiki.archlinux.org/index.php/SSD_Benchmarking][1]
----------
![](http://0.gravatar.com/avatar/e23f2767e6907e798da5b28694a2bf28?s=64&d=&r=G)
About Silver Moon
Php developer, blogger and Linux enthusiast. He can be reached at [m00n.silv3r@gmail.com][e]. Or find him on [Google+][g]
--------------------------------------------------------------------------------
via: http://www.binarytides.com/linux-test-drive-speed/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://wiki.archlinux.org/index.php/SSD_Benchmarking
[2]:http://en.wikipedia.org/wiki/USB
[e]:m00n.silv3r@gmail.com
[g]:http://plus.google.com/117145272367995638274/posts

View File

@ -1,60 +0,0 @@
CNprober translatinged... 619913541
RHEL 7值得注意的5个新特性
================================================================================
> RHEL 7 支持Docker容器systemd兼容微软的身份管理和支持500TB的XFS文件系统。
![](http://www.infoworld.com/sites/infoworld.com/files/media/image/140.jpg)
After six-plus months of [public beta testing][1] and more than three years after its previous major point release, RHEL (Red Hat Enterprise Linux) version 7 is out. The update speaks to Red Hat's interests in outfitting RHEL with many of the latest enterprise and data center features. Here are the five top-of-the-line new additions to RHEL 7 that caught our eyes.
在前一个主版本发布3年之后经过至少6个月的[公开测试][1]RHELRed Hat Enterprise Linux版本7终于发布了。这次更新表明了红帽子公司对于在RHEL中添加最新的以企业和数据为中心的特性的兴趣。这里列举了其中5个最吸引人眼球的新特性。
### 1. Docker ###
RHEL 7中最大的新特性就是[紧密集成][2]了巨受欢迎的应用程序虚拟化技术[Docker][3]。随着[Docker 1.0发布][4]把它集成到RHEL 7的时机是最合适不过了。
用Docker包装的应用程序可以独立于操作系统所以他们可以在操作系统之间移植并且正常运行。RHEL 7打算尽可能高效地使用Docker以防止应用程序竞争资源或者为使用哪种运行时环境而困惑。
从RHEL的Docker地图上的长期计划表来看这可能会超越操作系统本身发展成一系列的Docker容器它可以支持用最小的开销部署一个系统。这个被称为"[Atomic项目][5]"的计划还处于早期阶段红帽子公司准备首先将它首先部署在他的Fedora Linux发行版仅仅当做对前沿技术的测试。
### 2. Systemd ###
包含systemd进程管理器可能引起系统管理员和Linux专家之间激烈的争论。自专用Unix出现以来systemd就被开发用于替代init系统它使得启动过程中装载服务更加高效。
因为systemd的这个潜在的痛处红帽子公司没有立刻添加systemd到RHEL。早在2010发布的Fedora版本15就已经包含了systemd作为默认项目这给了红帽子公司一次很好的了解systemd在真实世界的运行的经验。同样systemd也没有武断地加入RHEL 7只是作为这个OS大计划的一部分。例如红帽子公司希望通过使用systemd加强对RHEL 7中Docker容器的支持。
### 3. XFS by default ###
第3个主要的改变是使XFS成为RHEL默认的文件系统尽管这可能不那么引人瞩目。
最初由Silicon Graphics International硅谷图形公司创建的XFS在Linux系统上用做生产环境已经很长时间了。在RHEL 7上它将支持高达500TB的文件系统。RHEL 6默认使用ext4尽管它有XFS选项。红帽子的竞争对手Suse Linux [也支持XFS][6],尽管它安装时[默认使用ext3][7]。
非常不幸的是没有真正的方法可以将RHEL目前使用的其他文件系统比如ext4或者btrfs移植到XFS。只能备份然后重建来进行移植
### 4. 兼容微软的身份管理 ###
就算是那些不是微软系统粉丝的管理员也对微软目录服务保持勉强的尊重。RHEL 7添加了两个关键的特性以优化处理微软目录服务的方式。跨域认证现在可以在RHEL 7和微软目录服务之间建立所以目录服务用户可以直接访问Linux侧的资源不需要再进行一次登录。RHEL 7另一个目录服务相关的附加特性是基于DNS信息自动发现和加入目录服务或者其他红帽子认证服务
### 5. Performance Co-Pilot ###
进行性能调整的时候看不到实时数据就像是开着挡风玻璃被刷上了油漆的车所以RHEL 7添加了一个新的性能监控系统PCP([Performance Co-Pilot][8])PCP最初由Silicon Graphics International硅谷图形[创建][9]但是现在它是RHEL 7的一部分。除了监控和记录系统状态PCP还为其他子系统提供获取数据的API和工具集比如正如你猜到的刚刚介绍的systemd。
遵循这个思路另一个次要的附加特性新的性能配置文件。RHEL 6已经有符合特殊应用场景的调整RHEL的配置文件。RHEL 7不仅默认有一个新的着重使产量最大化的配置文件而且包含另一个新的平衡性能表现和能源消耗的配置文件。
-------------------------------------------------------------------------------
via:http://www.infoworld.com/t/linux/keep-eye-these-5-new-features-in-rhel-7-244023
译者:[love_daisy_love](https://github.com/CNprober) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://www.infoworld.com/t/linux/red-hat-enterprise-linux-7-beta-now-available-232520
[2]:http://www.infoworld.com/t/application-virtualization/red-hat-fast-tracks-docker-apps-enterprise-linux-238122
[3]:http://www.infoworld.com/t/application-virtualization/docker-unleashed-app-portability-gets-boost-231716
[4]:http://www.infoworld.com/d/application-development/review-docker-10-ready-prime-time-243935
[5]:http://www.projectatomic.io/
[6]:https://www.suse.com/products/server/technical-information/
[7]:https://www.suse.com/products/server/technical-information/
[8]:http://developerblog.redhat.com/2013/11/19/exploratory-performance-pcp/
[9]:http://oss.sgi.com/projects/pcp/index.html

View File

@ -0,0 +1,54 @@
Ubuntu 14.04 LTS: 定制 Unity
================================================================================
虽然Unity桌面管理器自从伴随 Ubuntu 11.01首次发布以来表现出了强劲的性能并在可用性上迈进了一大步但是有人对自定义其外观和行为所带的限制感到反感。我们马上就去看看如何自定义Unity让你重拾自己掌控桌面的感觉。
### Unity中的可用定制项目 ###
在ubuntu 14.04中Unity 有一些以前没有的可定制项。登入你的 Unity进入“设置”并选择“显示”你将看到以下画面
![Ubuntu 14.04 LTS Display and Unity Settings](https://linuxacademy.com/blog/wp-content/uploads/2014/06/unitysettings.png)
Ubuntu 14.04 LTS 显示和 Unity 设置
你看到的大多数项目相比Ubuntu 11.01 中所采用的都是新的而且一些相比较最近的Ubuntu 版本Ubuntu13.10也是新的。从Ubuntu13.10开始Ubuntu加入了可以改变菜单栏和标题栏大小的新特性。
Unity中所特有的一个特性是我们能够打开或者关闭的“粘性边缘”功能它能让你的鼠标停止在多显示器组的每个屏幕的边缘它使光标暂时停在边缘仿佛是鼠标卡住了一样我们可以选择关闭它。
在“设置”中选择“外观”选项,可以看到如下画面。
![Ubuntu 14.04 LTS Appearance and Unity Settings](https://linuxacademy.com/blog/wp-content/uploads/2014/06/unityappearance.png)
Ubuntu 14.04 LTS 显示和Unity设置
这里我们可以看到对于 Unity 启动器栏被要求最多的选项-能够改变启动器大小的特性。虽然在Ubuntu 11.10及以后的各种版本中可以通过多种方法实现这个特性但将其放入外观设置中使其显得更加正式。我喜欢它能将启动器图标缩小直至16号的功能我们接下来所要谈论的工具仅能支持最小调至24号
### Unity Tweak Tool-强大! ###
在Unity首次伴随Ubuntu 11.10发布的几天之内这款工具就跟着出现了只是你得大费周折去自己把它安装好而且在Unity升级时它可能会损坏。
然而现在它被正式添加进了Ubuntu的默认软件仓库并且会在Unity更新时同时更新。它附带大量的定制项那么我们就来安装它吧
sudo apt-get install unity-tweak-tool
安装好,启动后你将看到如下画面:
![Ubuntu 14.04 LTS Official Unity Tweak Tool](https://linuxacademy.com/blog/wp-content/uploads/2014/06/unitytweaktool.png)
正式的Unity Tweak Tool
这款工具集中大量的Unity桌面定制项目于一体。这些定制项大多能通过默认的Unity设置命令行操作或者是编辑有时候很难寻找的配置文件来实现。
我们可以改变启动器栏网页小程序和面板的行为可以在Unity菜单中搜索等等。所有的都通过着一个工具来实现。花些时间去挖掘适合你的选项-Unity Tweak Tool-学习它和它一起生活爱上它如果你使用Unity这是起码的
### 结尾的一些想法 ###
Ubuntu 14.04 LTS 越来越向成为Linux Desktop迈进Canonical对不起你还是LinuxLinux Desktop不仅可以作为非正式的Linux使用者的确有这样的事的选择也适用于骨灰级linux专家。
那现在相比较于不借助工具公共程序或是进行在随后的更新中可能损坏的配置文件编辑的Unity桌面我们就拥有了更多的控制权Unity桌面性能强劲可靠又通过Unity Tweak Tool加入一些风味元素使得它的外观也酷极了!!!请给我们你的想法或者点击链接发表你对Unity桌面的评论我们将有兴趣知道你是如何使用Ubuntu 14.04 LTS 的。
----------
#### Terrence T. Cox ####
开发者Linux倡导者开源爱好者。 进入这个技术领域很久,被认为经验丰富,但从未感到厌倦。
[Twitter][1]
--------------------------------------------------------------------------------
via: https://linuxacademy.com/blog/linux/ubuntu-14-04-lts-customizing-unity/
译者:[Love-xuan](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:https://twitter.com/mourngrymtc/

View File

@ -0,0 +1,85 @@
暑假 先来一发 Luoxcat 翻译
命令行星期二 - 第三篇
================================================================================
今天Shotts 将带领我们游历文件系统的第一部分。我们将学到如何访问列出目录内的文件以及首次介绍一些选项的运用。OK,让我们开始学习这周的第一个命令。
### ls ###
ls 是一个用来列出目录内文件的命令。通过添加**选项**来实现多种不同的用途。当然为了得心应手,你可以只需键入 ls 。但是,你也可以添加一个选项后,它会帮助你修饰你的命令。如果你想要"沙盒"一些信息时,这会帮到你的。举例来说,当你要从一个命令的大量输出中找寻指定信息,你可以用选项缩小范围来实现。
这就是选项的基础概念。我们可以用下面书写格式表示:
command(命令) -option(选项) argument(参数)
命令,恩...,我们可以输入 pwd, ls, 或者是我们到目前为止所有学过的命令。
以上我们已经阐述了选项的目的。但是我们需要注意一下书写格式:在前头添加一个破折号。所以,如果选项为 l, 你需要在命令后键入**-l**。
**参数**是一个命令的操作对象(在这个例子中,它是一个目录,我们将会学到如何浏览它们)。
接着,让我们尝试在主目录里尝试用 ls 命令列出 /etc 目录内容。这次我们先不添加选项。
![](https://news.opensuse.org/wp-content/uploads/2014/06/Screenshot-30.-06.-2014-184127.png)
就这样,列出了一大堆的文件。它们还根据颜色进行了分类。蓝色的是目录,白色的为普通文件,绿色的似乎是一个 shell 脚本文件。除此之外,还有其他不同的颜色来代表不同的文件类型。
接下来,你可以在刚才的命令里添加 -l 选项。添加选项 -l 后也会列出同样的文件和目录,但是会有长格式(the long format)的输出。如果你需要查看更多信息的话,这个选项将是不错的选择。
![](https://news.opensuse.org/wp-content/uploads/2014/06/Screenshot-30.-06.-2014-184542.png)
### 长格式 ###
所以,用了长格式后,你可以看到更详细的信息,以及在每行开头类似-rw-r--r-- 令人抓狂的标示。实际上,这只是一种组合,代替了所有有意义的信息。
![](https://news.opensuse.org/wp-content/uploads/2014/06/Screenshot-30.-06.-2014-184829.png)
(File Name)就是文件的名称。Modification time是文件最后修改的时间。(Size) 用 byte 计量的文件大小。(Group) 是组的名称和拥有者一起形成文件权限。(Owner) 是文件拥有者的名称。最最重要的。。。
### 。。。文件权限 ###
文件权限在长格式每一行的开端都显得非常的杂乱。第一个字符代表文件类型。如果是 'd' , 意味着它是一个目录。如果是 '-' , 意味着它是一个一般文件。接下来的三个字符分别代表拥有者的 可读, 可写 ,可执行的权限。再接着三个字符表示组成员的享有的文件权限,而最后三个字符表示其他人对文件的享有权限。
例如,如果有个文件在长格式下显示为:-rw-r--r--, 这说明这是个普通文件(首字符 '-'), 拥有者享有可读可写权限,但是没有可执行权限,导致拥有者无法执行该文件(首字符'-'后'rw-'),用户组和其他用户只享有可读权限(你不难发现r--'字段在后面出现了两次 。如果用户组是 'rwx' 而不是 'r-', 则意味着它们可读,可写,可执行文件)。
ls 的下个选项是 ls -la .. -a 它会列出所用文件包括隐藏文件,在通常情况下,隐藏文件是不可见的。用长格式列出当前工作目录下的父目录的所有文件。
### less ###
less 是一个可以显示你的文本文件的命令。举例来说,你要在 /etc 下找寻名为 os-release 的文本文件。你可以使用 ls /etc 成功实现,而现在你想要阅读它。
你只需要使用 less /etc/os-release。
![](https://news.opensuse.org/wp-content/uploads/2014/06/Screenshot-30.-06.-2014-190252.png)
..就这样了。
你要如何控制 less 呢?
简单的, 你只需要动动键盘就行了!
less 一次只会显示一个页面的文本。往页面之前你需要按 **Page Up, 或者 'b'**。往页面之后你可以按**Page Don, 或者 space**。大写的**G**会跳转到文本的末尾,**1G**会跳转到文本的开端。**/字符**会在文本内搜索指定字符(例如,如果你输入 /suse ,它会找寻所有文本含有的 suse 并标记出来)。n 会重复执行你的搜索,**h**会显示所有的选项(h,haalp!)。
译注haalp !不懂求解释
![](https://news.opensuse.org/wp-content/uploads/2014/06/halp.jpg)
按q退出 less 命令。
### file ###
file 会显示文件的类型,是否是你要找的 ASCII 文本,还是 jpg 图片bash 脚本等。让我们用 /etc/os-release 执行练习。
![](https://news.opensuse.org/wp-content/uploads/2014/06/Screenshot-30.-06.-2014-191402.png)
就这样os-release 是一个 ASCII 文本文件。 请尝试其他文件,并观察结果。
下回见了,记住。。。
。。。一定要玩的开心啊!
--------------------------------------------------------------------------------
via: https://news.opensuse.org/2014/07/01/command-line-tuesdays-part-three/
译者:[Luoxcat](https://github.com/Luoxcat) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出

View File

@ -0,0 +1,50 @@
如何在Oh-My-Zsh中启用Heroku命令tab按键补全功能
================================================================================
**Heroku**客户端是创建和管理Heroku应用的命令行界面工具。
需求:
- Heroku toolbelt
- Oh-My-Zsh ([如何安装][1])
本文不是讲关于hereku的知识也不是讲关于heroku的使用细节而是仅仅展示给用户他们怎样可以使用oh-my-zsh来方便地敲写命令。此外你还应该安装[heroku toolbelt][2]来进行本文的相应的操作。对于Ubuntu和Debian发行版你可以通过运行下面的命令来安装
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
打开终端,用你在[这里]创建的用户登陆heroku
heroku登陆
输入您的Heroku认证。
邮箱: enockseth@unixmen.com
密码 (您的输入会被隐藏):
认证成功。
这显示heroku正在运行。
使用你喜欢的文本编辑器打开**.zshrc**
vim .zshrc
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/07/zsh_git.png)
git是唯一默认启用的插件。
在下图显示的插件选择区添加**heroku**
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/07/zsh_heroku.png)
重启终端,输入**heroku**按下tab键到此就搞定啦
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/07/heroku_tab_complete.png)
--------------------------------------------------------------------------------
via: http://www.unixmen.com/enable-tab-complete-heroku-commands-oh-zsh/
译者:[JonathanKang](https://github.com/JonathanKang) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://www.unixmen.com/install-oh-zsh-ubuntu-arch-linux-fedora/
[2]:https://toolbelt.heroku.com/
[3]:https://www.heroku.com/