From 64bfbe62a6b0701a60b765876fc9ee6f28b7c3ca Mon Sep 17 00:00:00 2001 From: VicYu Date: Sat, 9 May 2015 15:39:32 +0800 Subject: [PATCH 01/18] =?UTF-8?q?=20=E6=8A=A2=E5=9C=B0=E4=B8=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20150504 How To Install Visual Studio Code On Ubuntu.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sources/tech/20150504 How To Install Visual Studio Code On Ubuntu.md b/sources/tech/20150504 How To Install Visual Studio Code On Ubuntu.md index 4b5d2eeae6..8912e3c06c 100644 --- a/sources/tech/20150504 How To Install Visual Studio Code On Ubuntu.md +++ b/sources/tech/20150504 How To Install Visual Studio Code On Ubuntu.md @@ -1,3 +1,5 @@ + Vic020 + How To Install Visual Studio Code On Ubuntu ================================================================================ ![](http://itsfoss.itsfoss.netdna-cdn.com/wp-content/uploads/2015/05/Install-Visual-Studio-Code-in-Ubuntu.jpeg) @@ -58,4 +60,4 @@ via: http://itsfoss.com/install-visual-studio-code-ubuntu/ [1]:http://www.geekwire.com/2015/microsofts-visual-studio-expands-to-mac-and-linux-with-new-code-development-tool/ [2]:https://wiki.ubuntu.com/ubuntu-make [3]:http://itsfoss.com/install-android-studio-ubuntu-linux/ -[4]:https://code.visualstudio.com/Download \ No newline at end of file +[4]:https://code.visualstudio.com/Download From 44f65f05f0e3d4a34ac869cd0b238639c2b04fd1 Mon Sep 17 00:00:00 2001 From: wwy Date: Sun, 10 May 2015 11:21:41 +0800 Subject: [PATCH 02/18] translated half of the article --- ... command-line network monitors on Linux.md | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 translated/tech/20150112 What are useful command-line network monitors on Linux.md diff --git a/translated/tech/20150112 What are useful command-line network monitors on Linux.md b/translated/tech/20150112 What are useful command-line network monitors on Linux.md new file mode 100644 index 0000000000..1019173a65 --- /dev/null +++ b/translated/tech/20150112 What are useful command-line network monitors on Linux.md @@ -0,0 +1,65 @@ +什么是Linux上实用的命令行网络监视器 +=============================================================================== +对任何规模的业务来说,网络监视器都是一个重要的功能。网络监视器的功能可能千差万别。比如,监视活动可以是长期网络供应的一部分,安全保护,性能或者排错,网络使用统计等。由于它的目标不同,网络监视器使用很多不同的方式来完成任务。比如使用包层面的探测,收集流层面的统计数据,向网络中注入探测的流量,分析服务器日志等。 + +尽管有许多专用的网络监视系统可以365天24小时监视,但您依旧可以在特定的情况下使用命令行式的网络监视器,某些命令行式的网络监视器在某方面很有威力。如果您是系统管理员,那您就应该有亲身使用一些知名的命令行式网络监视器的实践经历。这里有一份**Linux上流行且实用的网络监视器**列表。 + +### 包层面的嗅探器 ### + +在这个类别下,监视器工具在链路上捕捉独立的包,分析它们的内容,展示解码后的内容或者包层面的统计数据。这些工具在最低的层面对网络进行监视、管理,同样的也能进行最细粒度的监视,代价是部分网络I/O和分析的过程。 + +1. **dhcpdump**:一个命令行式的DHCP流量嗅探工具,捕捉DHCP的请求/回复通信,以用户友好的方式显示解码的DHCP协议消息。这是一款排查DHCP相关故障的实用工具。 + +2. **[dsniff][1]**:一个基于命令行的嗅探工具的集合,拥有欺骗和劫持功能,被设计用于网络审计和渗透测试。它可以嗅探多种不同的信息,比如密码、NSF流量、email消息、网络地址等。 + +3. **[httpry][2]**:一个HTTP报文嗅探器,用于捕获、解码HTTP请求和回复报文,并以用户友好的方式显示这些信息。 + +4. **IPTraf**:基于命令行的网络统计数据查看器。它实时显示包层面、连接层面、接口层面、协议层面的报文/字节数。抓包过程由协议过滤器控制,且操作过程全部是菜单驱动的。 + +![](https://farm8.staticflickr.com/7519/16055246118_8ea182b413_c.jpg) + +5. **[mysql-sniffer][3]**:一个用于抓取、解码MySQL请求相关的数据包的工具。它以可读的方式显示最频繁或全部的请求。 + +6. **[ngrep][4]**:在网络报文中执行grep。它能实时抓取报文,并使用正则表达式或十六进制表达式的方式匹配报文。它是一个可以对异常流量进行检测、存储或者对实时流中特别模式报文进行抓取的实用工具。 + +7. **[p0f][5]**:一个被动的基于包嗅探的指纹采集工具,可以可靠的识别操作系统、NAT或者代理设置、网络链路类型以及许多其他与活动的TCP连接相关的属性。 + +8. **pktstat**:一个命令行式的工具,通过分析报文,显示实时的连接带宽使用情况以及相关的协议(例如,HTTP GET/POST、FTP、X11)的描述信息。 + +![](https://farm8.staticflickr.com/7477/16048970999_be60f74952_b.jpg + +9. **Snort**:一个入侵检测和预防工具,通过规则驱动的协议分析和内容匹配,来检测/预防活跃流量中各种各样的后门、僵尸网络、网络钓鱼、间谍软件攻击。 + +10. **tcpdump**:一个命令行的嗅探工具,可以基于过滤表达式抓取网络中的报文,分析报文,并且在包层面输出报文内容。他在许多网络相关的错误排查、网络程序debug、或[安全][6]监测方面应用广泛。 + +11. **tshark**:一个与Wireshark窗口程序一起使用的命令行式的嗅探工具。他能捕捉、解码网络上的实时报文,并能以用户友好的方式显示其内容。 + +### 流/进程/接口层面的监视 ### + +在这个分类中,网络监视器通过把流量分为流、相应的进程或接口来收集每个流、每个进程、每个接口的统计数据。其信息的来源可以是libpcap抓包库或者sysfs内核虚拟文件系统。这些工具的监视成本很低,但是缺乏包层面的检查能力。 + +12. **bmon**:一个基于命令行的带宽监测工具,可以显示各种接口相关的信息,不但包括接收/发送的总值/平均值统计数据,而且拥有历史带宽使用视图。 + +![](https://farm9.staticflickr.com/8580/16234265932_87f20c5d17_b.jpg) + +13. **[iftop][7]**:一个带宽使用监测工具,可以实时显示某个连接的带宽使用情况。它对所有带宽使用情况排序并基于ncurses的接口来进行可视化。他可以方便的监视那个连接使用了最多的带宽。 + +14. **nethogs**:一个进程监视工具,提供进程相关的实时的上行/下行带宽使用信息,并基于ncurses显示。它对检测占用大量带宽的进程很有用。 + +15. **netstat**:一个显示诸如TCP/UDP的网络堆栈、网络接口发送/接收、路由表、协议/套接字的统计信息和属性的命令行工具。当您诊断与网络堆栈相关的性能、资源使用时它很有用。 + +16. **[speedometer][8]**:一个可视化某个接口历史发送/接收带宽使用趋势,并且基于ncurses的条状图进行显示的工具。 + +![](https://farm8.staticflickr.com/7485/16048971069_31dd573a4f_c.jpg) + +17. **[sysdig][9]**:一个对Linux子系统拥有统一调试接口的系统级综合性debug工具。它的网络监视模块可以监视在线/离线、许多进程/主机相关的网络统计数据,例如带宽、连接/请求数等。 + +18. **tcptrack**:一个TCP连接监视工具,可以显示活动的TCP连接,包括源/目的的IP地址/端口、TCP状态、带宽使用等。 + +![](https://farm8.staticflickr.com/7507/16047703080_5fdda2e811_b.jpg) + +19. **vnStat**:一个维护了基于接口的历史接收/发送带宽使用视图(例如,当前、每日、每月)的流量监视器。作为一个后台守护进程,它收集并存储统计数据,包括接口带宽使用率和传输字节总数。 + +### 活动网络监视器 ### + + From 965bc4332b94b6b0ebfb493e3b6101c406e3b3ac Mon Sep 17 00:00:00 2001 From: geekpi Date: Sun, 10 May 2015 11:38:58 +0800 Subject: [PATCH 03/18] translating --- .../20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sources/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md b/sources/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md index a8c58b82af..f2ba21d1eb 100644 --- a/sources/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md +++ b/sources/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md @@ -1,3 +1,5 @@ +translating---geekpi + How to Setup OpenERP (Odoo) on CentOS 7.x ================================================================================ Hi everyone, this tutorial is all about how we can setup Odoo (formerly known as OpenERP) on our CentOS 7 Server. Are you thinking to get an awesome ERP (Enterprise Resource Planning) app for your business ?. Then, OpenERP is the best app you are searching as it is a Free and Open Source Software which provides an outstanding features for your business or company. @@ -109,4 +111,4 @@ via: http://linoxide.com/linux-how-to/setup-openerp-odoo-centos-7/ 鏈枃鐢 [LCTT](https://github.com/LCTT/TranslateProject) 鍘熷垱缈昏瘧锛孾Linux涓浗](https://linux.cn/) 鑽h獕鎺ㄥ嚭 [a]:http://linoxide.com/author/arunp/ -[1]:https://www.odoo.com/ \ No newline at end of file +[1]:https://www.odoo.com/ From b248e4a27b0ed03ff2af39a326287dd6beb317af Mon Sep 17 00:00:00 2001 From: Chang Liu Date: Sun, 10 May 2015 12:10:56 +0800 Subject: [PATCH 04/18] Update 20150331 Conky--The Ultimate X Based System Monitor Application.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 鍑嗗缈昏瘧璇ョ瘒銆 --- ... Conky--The Ultimate X Based System Monitor Application.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sources/tech/20150331 Conky--The Ultimate X Based System Monitor Application.md b/sources/tech/20150331 Conky--The Ultimate X Based System Monitor Application.md index fdb2648a36..b54d6763d3 100644 --- a/sources/tech/20150331 Conky--The Ultimate X Based System Monitor Application.md +++ b/sources/tech/20150331 Conky--The Ultimate X Based System Monitor Application.md @@ -1,3 +1,5 @@ +FSSlc translating + Conky 鈥 The Ultimate X Based System Monitor Application ================================================================================ Conky is a system monitor application written in 鈥楥鈥 Programming Language and released under GNU General Public License and BSD License. It is available for Linux and BSD Operating System. The application is X (GUI) based that was originally forked from [Torsmo][1]. @@ -144,4 +146,4 @@ via: http://www.tecmint.com/install-conky-in-ubuntu-debian-fedora/ [3]:http://ubuntuforums.org/showthread.php?t=281865 [4]:http://conky.sourceforge.net/screenshots.html [5]:http://ubuntuforums.org/showthread.php?t=281865/ -[6]:http://conky.sourceforge.net/ \ No newline at end of file +[6]:http://conky.sourceforge.net/ From 154dd4aef9ab91e5a1976bc11676e431368e8294 Mon Sep 17 00:00:00 2001 From: geekpi Date: Sun, 10 May 2015 13:14:50 +0800 Subject: [PATCH 05/18] translated --- ...w to Setup OpenERP (Odoo) on CentOS 7.x.md | 114 ------------------ ...w to Setup OpenERP (Odoo) on CentOS 7.x.md | 112 +++++++++++++++++ 2 files changed, 112 insertions(+), 114 deletions(-) delete mode 100644 sources/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md create mode 100644 translated/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md diff --git a/sources/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md b/sources/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md deleted file mode 100644 index f2ba21d1eb..0000000000 --- a/sources/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md +++ /dev/null @@ -1,114 +0,0 @@ -translating---geekpi - -How to Setup OpenERP (Odoo) on CentOS 7.x -================================================================================ -Hi everyone, this tutorial is all about how we can setup Odoo (formerly known as OpenERP) on our CentOS 7 Server. Are you thinking to get an awesome ERP (Enterprise Resource Planning) app for your business ?. Then, OpenERP is the best app you are searching as it is a Free and Open Source Software which provides an outstanding features for your business or company. - -[OpenERP][1] is a free and open source traditional OpenERP (Enterprise Resource Planning) app which includes Open Source CRM, Website Builder, eCommerce, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management and many more modules included for a better way to boost the productivity and sales. Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps. - -So, here are some quick and easy steps to get your copy of OpenERP installed on your CentOS machine. - -### 1. Installing PostgreSQL ### - -First of all, we'll want to update the packages installed in our CentOS 7 machine to ensure that the latest packages, patches and security are up to date. To update our sytem, we should run the following command in a shell or terminal. - - # yum clean all - # yum update - -Now, we'll want to install PostgreSQL Database System as OpenERP uses PostgreSQL for its database system. To install it, we'll need to run the following command. - - # yum install postgresql postgresql-server postgresql-libs - -![Installing postgresql](http://blog.linoxide.com/wp-content/uploads/2015/03/installing-postgresql.png) - -After it is installed, we'll need to initialize the database with the following command - - # postgresql-setup initdb - -![Intializating postgresql](http://blog.linoxide.com/wp-content/uploads/2015/03/intializating-postgresql.png) - -We'll then set PostgreSQL to start on every boot and start the PostgreSQL Database server. - - # systemctl enable postgresql - # systemctl start postgresql - -As we haven't set a password for the user "postgresql", we'll want to set it now. - - # su - postgres - $ psql - postgres=# \password postgres - postgres=# \q - # exit - -![setting password postgres](http://blog.linoxide.com/wp-content/uploads/2015/03/setting-password-postgres.png) - -### 2. Configuring Odoo Repository ### - -After our Database Server has been installed correctly, we'll want add EPEL (Extra Packages for Enterprise Linux) to our CentOS server. Odoo (or OpenERP) depends on Python run-time and many other packages that are not included in default standard repository. As such, we'll want to add the Extra Packages for Enterprise Linux (or EPEL) repository support so that Odoo can get the required dependencies. To install, we'll need to run the following command. - - # yum install epel-release - -![Installing EPEL Release](http://blog.linoxide.com/wp-content/uploads/2015/03/installing-epel-release.png) - -Now, after we install EPEL, we'll now add repository of Odoo (OpenERP) using yum-config-manager. - - # yum install yum-utils - - # yum-config-manager --add-repo=https://nightly.odoo.com/8.0/nightly/rpm/odoo.repo - -![Adding OpenERP (Odoo) Repo](http://blog.linoxide.com/wp-content/uploads/2015/03/added-odoo-repo.png) - -### 3. Installing Odoo 8 (OpenERP) ### - -Finally after adding repository of Odoo 8 (OpenERP) in our CentOS 7 machine. We'll can install Odoo 8 (OpenERP) using the following command. - - # yum install -y odoo - -The above command will install odoo along with the necessary dependency packages. - -![Installing odoo or OpenERP](http://blog.linoxide.com/wp-content/uploads/2015/03/installing-odoo.png) - -Now, we'll enable automatic startup of Odoo in every boot and will start our Odoo service using the command below. - - # systemctl enable odoo - # systemctl start odoo - -![Starting Odoo](http://blog.linoxide.com/wp-content/uploads/2015/03/starting-odoo.png) - -### 4. Allowing Firewall ### - -As Odoo uses port 8069, we'll need to allow firewall for remote access. We can allow firewall to port 8069 by running the following command. - - # firewall-cmd --zone=public --add-port=8069/tcp --permanent - # firewall-cmd --reload - -![Allowing firewall Port](http://blog.linoxide.com/wp-content/uploads/2015/03/allowing-firewall-port.png) - -**Note: By default, only connections from localhost are allowed. If we want to allow remote access to PostgreSQL databases, we'll need to add the line shown in the below image to pg_hba.conf configuration file:** - - # nano /var/lib/pgsql/data/pg_hba.conf - -![Allowing Remote Access pgsql](http://blog.linoxide.com/wp-content/uploads/2015/03/allowing-remote-access-pgsql.png) - -### 5. Web Interface ### - -Finally, as we have successfully installed our latest Odoo 8 (OpenERP) on our CentOS 7 Server, we can now access our Odoo by browsing to http://ip-address:8069 http://my-site.com:8069 using our favorite web browser. Then, first thing we'll gonna do is we'll create a new database and create a new password for it. Note, the master password is admin by default. Then, we can login to our panel with that username and password. - -![Odoo Panel](http://blog.linoxide.com/wp-content/uploads/2015/03/odoo-panel.png) - -### Conclusion ### - -Odoo 8 (formerly OpenERP) is the best ERP app available in the world of Open Source. We did an excellent work on installing it because OpenERP is a set of many modules which are essential for a complete ERP app for business and company. So, if you have any questions, suggestions, feedback please write them in the comment box below. Thank you ! Enjoy OpenERP (Odoo 8) :-) - --------------------------------------------------------------------------------- - -via: http://linoxide.com/linux-how-to/setup-openerp-odoo-centos-7/ - -浣滆咃細[Arun Pyasi][a] -璇戣咃細[璇戣匢D](https://github.com/璇戣匢D) -鏍″锛歔鏍″鑰匢D](https://github.com/鏍″鑰匢D) - -鏈枃鐢 [LCTT](https://github.com/LCTT/TranslateProject) 鍘熷垱缈昏瘧锛孾Linux涓浗](https://linux.cn/) 鑽h獕鎺ㄥ嚭 - -[a]:http://linoxide.com/author/arunp/ -[1]:https://www.odoo.com/ diff --git a/translated/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md b/translated/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md new file mode 100644 index 0000000000..0cd972b425 --- /dev/null +++ b/translated/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md @@ -0,0 +1,112 @@ +濡備綍鍦–entOS 7.x涓畨瑁匫penERP锛圤doo锛 +================================================================================ +鍚勪綅濂斤紝杩欑瘒鏁欑▼鍏充簬鐨勬槸濡備綍鍦–entOS 7涓畨瑁匫doo锛堝氨鏄垜浠墍鐭ョ殑OpenERP锛夈備綘鏄笉鏄湪鑰冭檻涓轰綘鐨勪笟鍔″畨瑁呬竴涓笉閿欑殑ERP锛堜紒涓氳祫婧愯鍒掞級杞欢锛熼偅涔圤penERP灏辨槸浣犲鎵剧殑鏈濂界殑绋嬪簭锛屽洜涓哄畠鏄竴娆句负浣犵殑鍟嗗姟鎻愪緵鏉板嚭鐗规х殑鑷敱寮婧愯蒋浠躲 + +[OpenERP][1]鏄竴娆捐嚜鐢卞紑婧愮殑浼犵粺鐨凮penERP锛堜紒涓氳祫婧愯鍒掞級锛屽畠鍖呭惈浜嗗紑婧怌RM銆佺綉绔欐瀯寤恒佺數瀛愬晢鍔°侀」鐩鐞嗐佽璐硅处鍔°侀攢鍞偣銆佷汉鍔涜祫婧愩佸競鍦恒佺敓浜с侀噰璐鐞嗕互鍙婂叾浠栨ā鍧楃敤浜庢彁楂樻晥鐜囧強閿鍞侽doo鍙互浣滀负鐙珛绋嬪簭锛屼絾鏄畠鍙互鏃犵紳闆嗘垚鍥犳浣犲彲浠ュ湪瀹夎鏁颁釜绋嬪簭鍚庡緱鍒颁竴涓叏鍔熻兘鐨勫紑婧怑RP銆 + +鍥犳锛屼笅闈㈡槸鍦ㄤ綘鐨凜entOS涓婂畨瑁匫penERP鐨勬楠ゃ + +### 1. 瀹夎 PostgreSQL ### + +棣栧厛锛岄鍏堟垜浠渶瑕佹洿鏂癈entOS 7鐨勮蒋浠跺寘鏉ョ‘淇濇槸鏈鏂扮殑鍖咃紝琛ヤ竵鍜屽畨鍏ㄦ洿鏂般傝鏇存柊鎴戜滑鐨勭郴缁燂紝鎴戜滑瑕佸湪shell涓嬭繍琛屼笅闈㈢殑鍛戒护銆 + + # yum clean all + # yum update + +鐜板湪鎴戜滑瑕佸畨瑁匬ostgreSQL锛屽洜涓篛penERP浣跨敤PostgreSQL浣滀负浠栫殑鏁版嵁搴撱傝瀹夎瀹冿紝鎴戜滑闇瑕佽繍琛屼笅闈㈢殑鍛戒护銆 + + # yum install postgresql postgresql-server postgresql-libs + +![Installing postgresql](http://blog.linoxide.com/wp-content/uploads/2015/03/installing-postgresql.png) + +銆佸畨瑁呭畬鎴愬悗锛屾垜浠渶瑕佺敤涓嬮潰鐨勫懡浠ゅ垵濮嬪寲鏁版嵁搴撱 + + # postgresql-setup initdb + +![Intializating postgresql](http://blog.linoxide.com/wp-content/uploads/2015/03/intializating-postgresql.png) + +鎴戜滑鎺ョ潃璁剧疆PostgreSQL鏉ヤ娇瀹冩瘡娆″紑鏈哄惎鍔ㄣ + + # systemctl enable postgresql + # systemctl start postgresql + +鍥犱负鎴戜滑杩樻病鏈変负鐢ㄦ埛鈥減ostgresql鈥濊缃瘑鐮侊紝鎴戜滑鐜板湪璁剧疆銆 + + # su - postgres + $ psql + postgres=# \password postgres + postgres=# \q + # exit + +![setting password postgres](http://blog.linoxide.com/wp-content/uploads/2015/03/setting-password-postgres.png) + +### 2. 璁剧疆Odoo浠撳簱 ### + +鍦ㄥ垵濮嬪寲鏁版嵁搴撳垵濮嬪寲瀹屾垚鍚庯紝鎴戜滑瑕佹坊鍔燛PEL锛堜紒涓氱増Linux鐨勯澶栧寘锛夊埌鎴戜滑鐨凜entOS涓侽doo锛堟垨鑰匫penERP锛変緷璧栦簬Python杩愯鏃朵互鍙婂叾浠栧寘娌℃湁鍖呭惈鍦ㄦ爣鍑嗕粨搴撲腑銆傝繖鏍锋垜浠浣嶄紒涓氱増Linux娣诲姞棰濆鐨勫寘浠撳簱鏀寔鏉ヨВ鍐砄doo鎵闇瑕佺殑渚濊禆銆傝瀹夎瀹屾垚锛屾垜浠渶瑕佽繍琛屼笅闈㈢殑鍛戒护銆 + + # yum install epel-release + +![Installing EPEL Release](http://blog.linoxide.com/wp-content/uploads/2015/03/installing-epel-release.png) + +鐜板湪锛屽畨瑁匛PEL鍚庯紝鎴戜滑鐜板湪浣跨敤yum-config-manager娣诲姞Odoo锛圤penERp锛夌殑浠撳簱銆 + + # yum install yum-utils + + # yum-config-manager --add-repo=https://nightly.odoo.com/8.0/nightly/rpm/odoo.repo + +![Adding OpenERP (Odoo) Repo](http://blog.linoxide.com/wp-content/uploads/2015/03/added-odoo-repo.png) + +### 3. 瀹夎Odoo 8 (OpenERP) ### + +鍦–entOS 7涓坊鍔燨doo 8锛圤penERP锛夌殑浠撳簱鍚庛傛垜浠娇鐢ㄤ笅闈㈢殑鍛戒护鏉ュ畨瑁匫doo 8(OpenERP)銆 + + # yum install -y odoo + +涓婇潰鐨勫懡浠や細瀹夎odoo浠ュ強蹇呴』鐨勪緷璧栫殑鍖呫 + +![Installing odoo or OpenERP](http://blog.linoxide.com/wp-content/uploads/2015/03/installing-odoo.png) + +鐜板湪鎴戜滑浣跨敤涓嬮潰鐨勫懡浠ゅ湪姣忔鍚姩鍚庡惎鍔∣doo鏈嶅姟銆 + + # systemctl enable odoo + # systemctl start odoo + +![Starting Odoo](http://blog.linoxide.com/wp-content/uploads/2015/03/starting-odoo.png) + +### 4. 闃茬伀澧欏厑璁 ### + +鍥犱负Odoo浣跨敤8069绔彛锛屾垜浠渶瑕佸湪闃茬伀澧欎腑鍏佽杩滅▼璁块棶銆傛垜浠娇鐢ㄤ笅闈㈢殑鍛戒护鏉ュ湪闃茬伀澧欎腑鍏佽8069闃茬伀澧欍 + + # firewall-cmd --zone=public --add-port=8069/tcp --permanent + # firewall-cmd --reload + +![Allowing firewall Port](http://blog.linoxide.com/wp-content/uploads/2015/03/allowing-firewall-port.png) + +**娉ㄦ剰锛氶粯璁や笂锛屽彧鏈夋湰鍦扮殑杩炴帴鎵嶅厑璁搞傚鏋滄垜浠鍏佽PostgreSQL鐨勮繙绋嬭闂紝鎴戜滑闇瑕佸湪pg_hba.conf娣诲姞涓嬮潰鍥剧墖涓竴琛** + + # nano /var/lib/pgsql/data/pg_hba.conf + +![Allowing Remote Access pgsql](http://blog.linoxide.com/wp-content/uploads/2015/03/allowing-remote-access-pgsql.png) + +### 5. Web鎺ュ彛 ### + +鎴戜滑宸茬粡鍦–entOS 7涓畨瑁呬簡鏈鏂扮殑Odoo 8锛圤penERP锛夛紝鎴戜滑鍙互鍦ㄦ祻瑙堝櫒涓緭鍏ttp://ip-address:8069鏉ヨ闂甇doo銆 鎺ョ潃锛屾垜浠鍋氱殑绗竴浠朵簨灏辨槸鍒涘缓涓涓柊鐨勬暟鎹簱鍜屾柊鐨勫瘑鐮併傛敞鎰忥紝涓诲瘑鐮侀粯璁ゆ槸绠$悊鍛樺瘑鐮併傛帴鐫锛屾垜浠彲浠ュ湪闈㈡澘涓緭鍏ョ敤鎴峰悕鍜屽瘑鐮併 + +![Odoo Panel](http://blog.linoxide.com/wp-content/uploads/2015/03/odoo-panel.png) + +### 鎬荤粨 ### + +Odoo 8锛圤penERP锛夋槸涓栫晫涓婃渶濂界殑寮婧怑RP绋嬪簭銆傛垜浠仛浜嗕竴浠跺嚭鑹茬殑宸ヤ綔鏉ュ畨瑁呭畠鍥犱负OpenERP鏄敱璁稿妯″潡缁勬垚鐨勯拡瀵瑰晢鍔″拰鍏徃鐨勫畬鏁碋RP绋嬪簭銆傚洜姝わ紝濡傛灉浣犳湁浠讳綍闂銆佸缓璁佸弽棣堣鍦ㄤ笅闈㈢殑璇勮鏍忓啓涓嬨傝阿璋綘锛佷韩鍙桹penERP锛圤doo 8锛夊惂 锛-锛 + +-------------------------------------------------------------------------------- + +via: http://linoxide.com/linux-how-to/setup-openerp-odoo-centos-7/ + +浣滆咃細[Arun Pyasi][a] +璇戣咃細[geekpi](https://github.com/geekpi) +鏍″锛歔鏍″鑰匢D](https://github.com/鏍″鑰匢D) + +鏈枃鐢 [LCTT](https://github.com/LCTT/TranslateProject) 鍘熷垱缈昏瘧锛孾Linux涓浗](https://linux.cn/) 鑽h獕鎺ㄥ嚭 + +[a]:http://linoxide.com/author/arunp/ +[1]:https://www.odoo.com/ From d8c1f6f0a999ab65d2a7461f37e135be5b02bd11 Mon Sep 17 00:00:00 2001 From: geekpi Date: Sun, 10 May 2015 13:16:26 +0800 Subject: [PATCH 06/18] Revert "translated" This reverts commit 154dd4aef9ab91e5a1976bc11676e431368e8294. --- ...w to Setup OpenERP (Odoo) on CentOS 7.x.md | 114 ++++++++++++++++++ ...w to Setup OpenERP (Odoo) on CentOS 7.x.md | 112 ----------------- 2 files changed, 114 insertions(+), 112 deletions(-) create mode 100644 sources/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md delete mode 100644 translated/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md diff --git a/sources/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md b/sources/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md new file mode 100644 index 0000000000..f2ba21d1eb --- /dev/null +++ b/sources/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md @@ -0,0 +1,114 @@ +translating---geekpi + +How to Setup OpenERP (Odoo) on CentOS 7.x +================================================================================ +Hi everyone, this tutorial is all about how we can setup Odoo (formerly known as OpenERP) on our CentOS 7 Server. Are you thinking to get an awesome ERP (Enterprise Resource Planning) app for your business ?. Then, OpenERP is the best app you are searching as it is a Free and Open Source Software which provides an outstanding features for your business or company. + +[OpenERP][1] is a free and open source traditional OpenERP (Enterprise Resource Planning) app which includes Open Source CRM, Website Builder, eCommerce, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management and many more modules included for a better way to boost the productivity and sales. Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps. + +So, here are some quick and easy steps to get your copy of OpenERP installed on your CentOS machine. + +### 1. Installing PostgreSQL ### + +First of all, we'll want to update the packages installed in our CentOS 7 machine to ensure that the latest packages, patches and security are up to date. To update our sytem, we should run the following command in a shell or terminal. + + # yum clean all + # yum update + +Now, we'll want to install PostgreSQL Database System as OpenERP uses PostgreSQL for its database system. To install it, we'll need to run the following command. + + # yum install postgresql postgresql-server postgresql-libs + +![Installing postgresql](http://blog.linoxide.com/wp-content/uploads/2015/03/installing-postgresql.png) + +After it is installed, we'll need to initialize the database with the following command + + # postgresql-setup initdb + +![Intializating postgresql](http://blog.linoxide.com/wp-content/uploads/2015/03/intializating-postgresql.png) + +We'll then set PostgreSQL to start on every boot and start the PostgreSQL Database server. + + # systemctl enable postgresql + # systemctl start postgresql + +As we haven't set a password for the user "postgresql", we'll want to set it now. + + # su - postgres + $ psql + postgres=# \password postgres + postgres=# \q + # exit + +![setting password postgres](http://blog.linoxide.com/wp-content/uploads/2015/03/setting-password-postgres.png) + +### 2. Configuring Odoo Repository ### + +After our Database Server has been installed correctly, we'll want add EPEL (Extra Packages for Enterprise Linux) to our CentOS server. Odoo (or OpenERP) depends on Python run-time and many other packages that are not included in default standard repository. As such, we'll want to add the Extra Packages for Enterprise Linux (or EPEL) repository support so that Odoo can get the required dependencies. To install, we'll need to run the following command. + + # yum install epel-release + +![Installing EPEL Release](http://blog.linoxide.com/wp-content/uploads/2015/03/installing-epel-release.png) + +Now, after we install EPEL, we'll now add repository of Odoo (OpenERP) using yum-config-manager. + + # yum install yum-utils + + # yum-config-manager --add-repo=https://nightly.odoo.com/8.0/nightly/rpm/odoo.repo + +![Adding OpenERP (Odoo) Repo](http://blog.linoxide.com/wp-content/uploads/2015/03/added-odoo-repo.png) + +### 3. Installing Odoo 8 (OpenERP) ### + +Finally after adding repository of Odoo 8 (OpenERP) in our CentOS 7 machine. We'll can install Odoo 8 (OpenERP) using the following command. + + # yum install -y odoo + +The above command will install odoo along with the necessary dependency packages. + +![Installing odoo or OpenERP](http://blog.linoxide.com/wp-content/uploads/2015/03/installing-odoo.png) + +Now, we'll enable automatic startup of Odoo in every boot and will start our Odoo service using the command below. + + # systemctl enable odoo + # systemctl start odoo + +![Starting Odoo](http://blog.linoxide.com/wp-content/uploads/2015/03/starting-odoo.png) + +### 4. Allowing Firewall ### + +As Odoo uses port 8069, we'll need to allow firewall for remote access. We can allow firewall to port 8069 by running the following command. + + # firewall-cmd --zone=public --add-port=8069/tcp --permanent + # firewall-cmd --reload + +![Allowing firewall Port](http://blog.linoxide.com/wp-content/uploads/2015/03/allowing-firewall-port.png) + +**Note: By default, only connections from localhost are allowed. If we want to allow remote access to PostgreSQL databases, we'll need to add the line shown in the below image to pg_hba.conf configuration file:** + + # nano /var/lib/pgsql/data/pg_hba.conf + +![Allowing Remote Access pgsql](http://blog.linoxide.com/wp-content/uploads/2015/03/allowing-remote-access-pgsql.png) + +### 5. Web Interface ### + +Finally, as we have successfully installed our latest Odoo 8 (OpenERP) on our CentOS 7 Server, we can now access our Odoo by browsing to http://ip-address:8069 http://my-site.com:8069 using our favorite web browser. Then, first thing we'll gonna do is we'll create a new database and create a new password for it. Note, the master password is admin by default. Then, we can login to our panel with that username and password. + +![Odoo Panel](http://blog.linoxide.com/wp-content/uploads/2015/03/odoo-panel.png) + +### Conclusion ### + +Odoo 8 (formerly OpenERP) is the best ERP app available in the world of Open Source. We did an excellent work on installing it because OpenERP is a set of many modules which are essential for a complete ERP app for business and company. So, if you have any questions, suggestions, feedback please write them in the comment box below. Thank you ! Enjoy OpenERP (Odoo 8) :-) + +-------------------------------------------------------------------------------- + +via: http://linoxide.com/linux-how-to/setup-openerp-odoo-centos-7/ + +浣滆咃細[Arun Pyasi][a] +璇戣咃細[璇戣匢D](https://github.com/璇戣匢D) +鏍″锛歔鏍″鑰匢D](https://github.com/鏍″鑰匢D) + +鏈枃鐢 [LCTT](https://github.com/LCTT/TranslateProject) 鍘熷垱缈昏瘧锛孾Linux涓浗](https://linux.cn/) 鑽h獕鎺ㄥ嚭 + +[a]:http://linoxide.com/author/arunp/ +[1]:https://www.odoo.com/ diff --git a/translated/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md b/translated/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md deleted file mode 100644 index 0cd972b425..0000000000 --- a/translated/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md +++ /dev/null @@ -1,112 +0,0 @@ -濡備綍鍦–entOS 7.x涓畨瑁匫penERP锛圤doo锛 -================================================================================ -鍚勪綅濂斤紝杩欑瘒鏁欑▼鍏充簬鐨勬槸濡備綍鍦–entOS 7涓畨瑁匫doo锛堝氨鏄垜浠墍鐭ョ殑OpenERP锛夈備綘鏄笉鏄湪鑰冭檻涓轰綘鐨勪笟鍔″畨瑁呬竴涓笉閿欑殑ERP锛堜紒涓氳祫婧愯鍒掞級杞欢锛熼偅涔圤penERP灏辨槸浣犲鎵剧殑鏈濂界殑绋嬪簭锛屽洜涓哄畠鏄竴娆句负浣犵殑鍟嗗姟鎻愪緵鏉板嚭鐗规х殑鑷敱寮婧愯蒋浠躲 - -[OpenERP][1]鏄竴娆捐嚜鐢卞紑婧愮殑浼犵粺鐨凮penERP锛堜紒涓氳祫婧愯鍒掞級锛屽畠鍖呭惈浜嗗紑婧怌RM銆佺綉绔欐瀯寤恒佺數瀛愬晢鍔°侀」鐩鐞嗐佽璐硅处鍔°侀攢鍞偣銆佷汉鍔涜祫婧愩佸競鍦恒佺敓浜с侀噰璐鐞嗕互鍙婂叾浠栨ā鍧楃敤浜庢彁楂樻晥鐜囧強閿鍞侽doo鍙互浣滀负鐙珛绋嬪簭锛屼絾鏄畠鍙互鏃犵紳闆嗘垚鍥犳浣犲彲浠ュ湪瀹夎鏁颁釜绋嬪簭鍚庡緱鍒颁竴涓叏鍔熻兘鐨勫紑婧怑RP銆 - -鍥犳锛屼笅闈㈡槸鍦ㄤ綘鐨凜entOS涓婂畨瑁匫penERP鐨勬楠ゃ - -### 1. 瀹夎 PostgreSQL ### - -棣栧厛锛岄鍏堟垜浠渶瑕佹洿鏂癈entOS 7鐨勮蒋浠跺寘鏉ョ‘淇濇槸鏈鏂扮殑鍖咃紝琛ヤ竵鍜屽畨鍏ㄦ洿鏂般傝鏇存柊鎴戜滑鐨勭郴缁燂紝鎴戜滑瑕佸湪shell涓嬭繍琛屼笅闈㈢殑鍛戒护銆 - - # yum clean all - # yum update - -鐜板湪鎴戜滑瑕佸畨瑁匬ostgreSQL锛屽洜涓篛penERP浣跨敤PostgreSQL浣滀负浠栫殑鏁版嵁搴撱傝瀹夎瀹冿紝鎴戜滑闇瑕佽繍琛屼笅闈㈢殑鍛戒护銆 - - # yum install postgresql postgresql-server postgresql-libs - -![Installing postgresql](http://blog.linoxide.com/wp-content/uploads/2015/03/installing-postgresql.png) - -銆佸畨瑁呭畬鎴愬悗锛屾垜浠渶瑕佺敤涓嬮潰鐨勫懡浠ゅ垵濮嬪寲鏁版嵁搴撱 - - # postgresql-setup initdb - -![Intializating postgresql](http://blog.linoxide.com/wp-content/uploads/2015/03/intializating-postgresql.png) - -鎴戜滑鎺ョ潃璁剧疆PostgreSQL鏉ヤ娇瀹冩瘡娆″紑鏈哄惎鍔ㄣ - - # systemctl enable postgresql - # systemctl start postgresql - -鍥犱负鎴戜滑杩樻病鏈変负鐢ㄦ埛鈥減ostgresql鈥濊缃瘑鐮侊紝鎴戜滑鐜板湪璁剧疆銆 - - # su - postgres - $ psql - postgres=# \password postgres - postgres=# \q - # exit - -![setting password postgres](http://blog.linoxide.com/wp-content/uploads/2015/03/setting-password-postgres.png) - -### 2. 璁剧疆Odoo浠撳簱 ### - -鍦ㄥ垵濮嬪寲鏁版嵁搴撳垵濮嬪寲瀹屾垚鍚庯紝鎴戜滑瑕佹坊鍔燛PEL锛堜紒涓氱増Linux鐨勯澶栧寘锛夊埌鎴戜滑鐨凜entOS涓侽doo锛堟垨鑰匫penERP锛変緷璧栦簬Python杩愯鏃朵互鍙婂叾浠栧寘娌℃湁鍖呭惈鍦ㄦ爣鍑嗕粨搴撲腑銆傝繖鏍锋垜浠浣嶄紒涓氱増Linux娣诲姞棰濆鐨勫寘浠撳簱鏀寔鏉ヨВ鍐砄doo鎵闇瑕佺殑渚濊禆銆傝瀹夎瀹屾垚锛屾垜浠渶瑕佽繍琛屼笅闈㈢殑鍛戒护銆 - - # yum install epel-release - -![Installing EPEL Release](http://blog.linoxide.com/wp-content/uploads/2015/03/installing-epel-release.png) - -鐜板湪锛屽畨瑁匛PEL鍚庯紝鎴戜滑鐜板湪浣跨敤yum-config-manager娣诲姞Odoo锛圤penERp锛夌殑浠撳簱銆 - - # yum install yum-utils - - # yum-config-manager --add-repo=https://nightly.odoo.com/8.0/nightly/rpm/odoo.repo - -![Adding OpenERP (Odoo) Repo](http://blog.linoxide.com/wp-content/uploads/2015/03/added-odoo-repo.png) - -### 3. 瀹夎Odoo 8 (OpenERP) ### - -鍦–entOS 7涓坊鍔燨doo 8锛圤penERP锛夌殑浠撳簱鍚庛傛垜浠娇鐢ㄤ笅闈㈢殑鍛戒护鏉ュ畨瑁匫doo 8(OpenERP)銆 - - # yum install -y odoo - -涓婇潰鐨勫懡浠や細瀹夎odoo浠ュ強蹇呴』鐨勪緷璧栫殑鍖呫 - -![Installing odoo or OpenERP](http://blog.linoxide.com/wp-content/uploads/2015/03/installing-odoo.png) - -鐜板湪鎴戜滑浣跨敤涓嬮潰鐨勫懡浠ゅ湪姣忔鍚姩鍚庡惎鍔∣doo鏈嶅姟銆 - - # systemctl enable odoo - # systemctl start odoo - -![Starting Odoo](http://blog.linoxide.com/wp-content/uploads/2015/03/starting-odoo.png) - -### 4. 闃茬伀澧欏厑璁 ### - -鍥犱负Odoo浣跨敤8069绔彛锛屾垜浠渶瑕佸湪闃茬伀澧欎腑鍏佽杩滅▼璁块棶銆傛垜浠娇鐢ㄤ笅闈㈢殑鍛戒护鏉ュ湪闃茬伀澧欎腑鍏佽8069闃茬伀澧欍 - - # firewall-cmd --zone=public --add-port=8069/tcp --permanent - # firewall-cmd --reload - -![Allowing firewall Port](http://blog.linoxide.com/wp-content/uploads/2015/03/allowing-firewall-port.png) - -**娉ㄦ剰锛氶粯璁や笂锛屽彧鏈夋湰鍦扮殑杩炴帴鎵嶅厑璁搞傚鏋滄垜浠鍏佽PostgreSQL鐨勮繙绋嬭闂紝鎴戜滑闇瑕佸湪pg_hba.conf娣诲姞涓嬮潰鍥剧墖涓竴琛** - - # nano /var/lib/pgsql/data/pg_hba.conf - -![Allowing Remote Access pgsql](http://blog.linoxide.com/wp-content/uploads/2015/03/allowing-remote-access-pgsql.png) - -### 5. Web鎺ュ彛 ### - -鎴戜滑宸茬粡鍦–entOS 7涓畨瑁呬簡鏈鏂扮殑Odoo 8锛圤penERP锛夛紝鎴戜滑鍙互鍦ㄦ祻瑙堝櫒涓緭鍏ttp://ip-address:8069鏉ヨ闂甇doo銆 鎺ョ潃锛屾垜浠鍋氱殑绗竴浠朵簨灏辨槸鍒涘缓涓涓柊鐨勬暟鎹簱鍜屾柊鐨勫瘑鐮併傛敞鎰忥紝涓诲瘑鐮侀粯璁ゆ槸绠$悊鍛樺瘑鐮併傛帴鐫锛屾垜浠彲浠ュ湪闈㈡澘涓緭鍏ョ敤鎴峰悕鍜屽瘑鐮併 - -![Odoo Panel](http://blog.linoxide.com/wp-content/uploads/2015/03/odoo-panel.png) - -### 鎬荤粨 ### - -Odoo 8锛圤penERP锛夋槸涓栫晫涓婃渶濂界殑寮婧怑RP绋嬪簭銆傛垜浠仛浜嗕竴浠跺嚭鑹茬殑宸ヤ綔鏉ュ畨瑁呭畠鍥犱负OpenERP鏄敱璁稿妯″潡缁勬垚鐨勯拡瀵瑰晢鍔″拰鍏徃鐨勫畬鏁碋RP绋嬪簭銆傚洜姝わ紝濡傛灉浣犳湁浠讳綍闂銆佸缓璁佸弽棣堣鍦ㄤ笅闈㈢殑璇勮鏍忓啓涓嬨傝阿璋綘锛佷韩鍙桹penERP锛圤doo 8锛夊惂 锛-锛 - --------------------------------------------------------------------------------- - -via: http://linoxide.com/linux-how-to/setup-openerp-odoo-centos-7/ - -浣滆咃細[Arun Pyasi][a] -璇戣咃細[geekpi](https://github.com/geekpi) -鏍″锛歔鏍″鑰匢D](https://github.com/鏍″鑰匢D) - -鏈枃鐢 [LCTT](https://github.com/LCTT/TranslateProject) 鍘熷垱缈昏瘧锛孾Linux涓浗](https://linux.cn/) 鑽h獕鎺ㄥ嚭 - -[a]:http://linoxide.com/author/arunp/ -[1]:https://www.odoo.com/ From c25eab63b6a16a414f6926bce1d566e83f14ec28 Mon Sep 17 00:00:00 2001 From: geekpi Date: Sun, 10 May 2015 13:19:28 +0800 Subject: [PATCH 07/18] translated --- ...w to Setup OpenERP (Odoo) on CentOS 7.x.md | 114 ------------------ ...w to Setup OpenERP (Odoo) on CentOS 7.x.md | 112 +++++++++++++++++ 2 files changed, 112 insertions(+), 114 deletions(-) delete mode 100644 sources/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md create mode 100644 translated/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md diff --git a/sources/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md b/sources/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md deleted file mode 100644 index f2ba21d1eb..0000000000 --- a/sources/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md +++ /dev/null @@ -1,114 +0,0 @@ -translating---geekpi - -How to Setup OpenERP (Odoo) on CentOS 7.x -================================================================================ -Hi everyone, this tutorial is all about how we can setup Odoo (formerly known as OpenERP) on our CentOS 7 Server. Are you thinking to get an awesome ERP (Enterprise Resource Planning) app for your business ?. Then, OpenERP is the best app you are searching as it is a Free and Open Source Software which provides an outstanding features for your business or company. - -[OpenERP][1] is a free and open source traditional OpenERP (Enterprise Resource Planning) app which includes Open Source CRM, Website Builder, eCommerce, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management and many more modules included for a better way to boost the productivity and sales. Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps. - -So, here are some quick and easy steps to get your copy of OpenERP installed on your CentOS machine. - -### 1. Installing PostgreSQL ### - -First of all, we'll want to update the packages installed in our CentOS 7 machine to ensure that the latest packages, patches and security are up to date. To update our sytem, we should run the following command in a shell or terminal. - - # yum clean all - # yum update - -Now, we'll want to install PostgreSQL Database System as OpenERP uses PostgreSQL for its database system. To install it, we'll need to run the following command. - - # yum install postgresql postgresql-server postgresql-libs - -![Installing postgresql](http://blog.linoxide.com/wp-content/uploads/2015/03/installing-postgresql.png) - -After it is installed, we'll need to initialize the database with the following command - - # postgresql-setup initdb - -![Intializating postgresql](http://blog.linoxide.com/wp-content/uploads/2015/03/intializating-postgresql.png) - -We'll then set PostgreSQL to start on every boot and start the PostgreSQL Database server. - - # systemctl enable postgresql - # systemctl start postgresql - -As we haven't set a password for the user "postgresql", we'll want to set it now. - - # su - postgres - $ psql - postgres=# \password postgres - postgres=# \q - # exit - -![setting password postgres](http://blog.linoxide.com/wp-content/uploads/2015/03/setting-password-postgres.png) - -### 2. Configuring Odoo Repository ### - -After our Database Server has been installed correctly, we'll want add EPEL (Extra Packages for Enterprise Linux) to our CentOS server. Odoo (or OpenERP) depends on Python run-time and many other packages that are not included in default standard repository. As such, we'll want to add the Extra Packages for Enterprise Linux (or EPEL) repository support so that Odoo can get the required dependencies. To install, we'll need to run the following command. - - # yum install epel-release - -![Installing EPEL Release](http://blog.linoxide.com/wp-content/uploads/2015/03/installing-epel-release.png) - -Now, after we install EPEL, we'll now add repository of Odoo (OpenERP) using yum-config-manager. - - # yum install yum-utils - - # yum-config-manager --add-repo=https://nightly.odoo.com/8.0/nightly/rpm/odoo.repo - -![Adding OpenERP (Odoo) Repo](http://blog.linoxide.com/wp-content/uploads/2015/03/added-odoo-repo.png) - -### 3. Installing Odoo 8 (OpenERP) ### - -Finally after adding repository of Odoo 8 (OpenERP) in our CentOS 7 machine. We'll can install Odoo 8 (OpenERP) using the following command. - - # yum install -y odoo - -The above command will install odoo along with the necessary dependency packages. - -![Installing odoo or OpenERP](http://blog.linoxide.com/wp-content/uploads/2015/03/installing-odoo.png) - -Now, we'll enable automatic startup of Odoo in every boot and will start our Odoo service using the command below. - - # systemctl enable odoo - # systemctl start odoo - -![Starting Odoo](http://blog.linoxide.com/wp-content/uploads/2015/03/starting-odoo.png) - -### 4. Allowing Firewall ### - -As Odoo uses port 8069, we'll need to allow firewall for remote access. We can allow firewall to port 8069 by running the following command. - - # firewall-cmd --zone=public --add-port=8069/tcp --permanent - # firewall-cmd --reload - -![Allowing firewall Port](http://blog.linoxide.com/wp-content/uploads/2015/03/allowing-firewall-port.png) - -**Note: By default, only connections from localhost are allowed. If we want to allow remote access to PostgreSQL databases, we'll need to add the line shown in the below image to pg_hba.conf configuration file:** - - # nano /var/lib/pgsql/data/pg_hba.conf - -![Allowing Remote Access pgsql](http://blog.linoxide.com/wp-content/uploads/2015/03/allowing-remote-access-pgsql.png) - -### 5. Web Interface ### - -Finally, as we have successfully installed our latest Odoo 8 (OpenERP) on our CentOS 7 Server, we can now access our Odoo by browsing to http://ip-address:8069 http://my-site.com:8069 using our favorite web browser. Then, first thing we'll gonna do is we'll create a new database and create a new password for it. Note, the master password is admin by default. Then, we can login to our panel with that username and password. - -![Odoo Panel](http://blog.linoxide.com/wp-content/uploads/2015/03/odoo-panel.png) - -### Conclusion ### - -Odoo 8 (formerly OpenERP) is the best ERP app available in the world of Open Source. We did an excellent work on installing it because OpenERP is a set of many modules which are essential for a complete ERP app for business and company. So, if you have any questions, suggestions, feedback please write them in the comment box below. Thank you ! Enjoy OpenERP (Odoo 8) :-) - --------------------------------------------------------------------------------- - -via: http://linoxide.com/linux-how-to/setup-openerp-odoo-centos-7/ - -浣滆咃細[Arun Pyasi][a] -璇戣咃細[璇戣匢D](https://github.com/璇戣匢D) -鏍″锛歔鏍″鑰匢D](https://github.com/鏍″鑰匢D) - -鏈枃鐢 [LCTT](https://github.com/LCTT/TranslateProject) 鍘熷垱缈昏瘧锛孾Linux涓浗](https://linux.cn/) 鑽h獕鎺ㄥ嚭 - -[a]:http://linoxide.com/author/arunp/ -[1]:https://www.odoo.com/ diff --git a/translated/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md b/translated/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md new file mode 100644 index 0000000000..0cd972b425 --- /dev/null +++ b/translated/tech/20150506 How to Setup OpenERP (Odoo) on CentOS 7.x.md @@ -0,0 +1,112 @@ +濡備綍鍦–entOS 7.x涓畨瑁匫penERP锛圤doo锛 +================================================================================ +鍚勪綅濂斤紝杩欑瘒鏁欑▼鍏充簬鐨勬槸濡備綍鍦–entOS 7涓畨瑁匫doo锛堝氨鏄垜浠墍鐭ョ殑OpenERP锛夈備綘鏄笉鏄湪鑰冭檻涓轰綘鐨勪笟鍔″畨瑁呬竴涓笉閿欑殑ERP锛堜紒涓氳祫婧愯鍒掞級杞欢锛熼偅涔圤penERP灏辨槸浣犲鎵剧殑鏈濂界殑绋嬪簭锛屽洜涓哄畠鏄竴娆句负浣犵殑鍟嗗姟鎻愪緵鏉板嚭鐗规х殑鑷敱寮婧愯蒋浠躲 + +[OpenERP][1]鏄竴娆捐嚜鐢卞紑婧愮殑浼犵粺鐨凮penERP锛堜紒涓氳祫婧愯鍒掞級锛屽畠鍖呭惈浜嗗紑婧怌RM銆佺綉绔欐瀯寤恒佺數瀛愬晢鍔°侀」鐩鐞嗐佽璐硅处鍔°侀攢鍞偣銆佷汉鍔涜祫婧愩佸競鍦恒佺敓浜с侀噰璐鐞嗕互鍙婂叾浠栨ā鍧楃敤浜庢彁楂樻晥鐜囧強閿鍞侽doo鍙互浣滀负鐙珛绋嬪簭锛屼絾鏄畠鍙互鏃犵紳闆嗘垚鍥犳浣犲彲浠ュ湪瀹夎鏁颁釜绋嬪簭鍚庡緱鍒颁竴涓叏鍔熻兘鐨勫紑婧怑RP銆 + +鍥犳锛屼笅闈㈡槸鍦ㄤ綘鐨凜entOS涓婂畨瑁匫penERP鐨勬楠ゃ + +### 1. 瀹夎 PostgreSQL ### + +棣栧厛锛岄鍏堟垜浠渶瑕佹洿鏂癈entOS 7鐨勮蒋浠跺寘鏉ョ‘淇濇槸鏈鏂扮殑鍖咃紝琛ヤ竵鍜屽畨鍏ㄦ洿鏂般傝鏇存柊鎴戜滑鐨勭郴缁燂紝鎴戜滑瑕佸湪shell涓嬭繍琛屼笅闈㈢殑鍛戒护銆 + + # yum clean all + # yum update + +鐜板湪鎴戜滑瑕佸畨瑁匬ostgreSQL锛屽洜涓篛penERP浣跨敤PostgreSQL浣滀负浠栫殑鏁版嵁搴撱傝瀹夎瀹冿紝鎴戜滑闇瑕佽繍琛屼笅闈㈢殑鍛戒护銆 + + # yum install postgresql postgresql-server postgresql-libs + +![Installing postgresql](http://blog.linoxide.com/wp-content/uploads/2015/03/installing-postgresql.png) + +銆佸畨瑁呭畬鎴愬悗锛屾垜浠渶瑕佺敤涓嬮潰鐨勫懡浠ゅ垵濮嬪寲鏁版嵁搴撱 + + # postgresql-setup initdb + +![Intializating postgresql](http://blog.linoxide.com/wp-content/uploads/2015/03/intializating-postgresql.png) + +鎴戜滑鎺ョ潃璁剧疆PostgreSQL鏉ヤ娇瀹冩瘡娆″紑鏈哄惎鍔ㄣ + + # systemctl enable postgresql + # systemctl start postgresql + +鍥犱负鎴戜滑杩樻病鏈変负鐢ㄦ埛鈥減ostgresql鈥濊缃瘑鐮侊紝鎴戜滑鐜板湪璁剧疆銆 + + # su - postgres + $ psql + postgres=# \password postgres + postgres=# \q + # exit + +![setting password postgres](http://blog.linoxide.com/wp-content/uploads/2015/03/setting-password-postgres.png) + +### 2. 璁剧疆Odoo浠撳簱 ### + +鍦ㄥ垵濮嬪寲鏁版嵁搴撳垵濮嬪寲瀹屾垚鍚庯紝鎴戜滑瑕佹坊鍔燛PEL锛堜紒涓氱増Linux鐨勯澶栧寘锛夊埌鎴戜滑鐨凜entOS涓侽doo锛堟垨鑰匫penERP锛変緷璧栦簬Python杩愯鏃朵互鍙婂叾浠栧寘娌℃湁鍖呭惈鍦ㄦ爣鍑嗕粨搴撲腑銆傝繖鏍锋垜浠浣嶄紒涓氱増Linux娣诲姞棰濆鐨勫寘浠撳簱鏀寔鏉ヨВ鍐砄doo鎵闇瑕佺殑渚濊禆銆傝瀹夎瀹屾垚锛屾垜浠渶瑕佽繍琛屼笅闈㈢殑鍛戒护銆 + + # yum install epel-release + +![Installing EPEL Release](http://blog.linoxide.com/wp-content/uploads/2015/03/installing-epel-release.png) + +鐜板湪锛屽畨瑁匛PEL鍚庯紝鎴戜滑鐜板湪浣跨敤yum-config-manager娣诲姞Odoo锛圤penERp锛夌殑浠撳簱銆 + + # yum install yum-utils + + # yum-config-manager --add-repo=https://nightly.odoo.com/8.0/nightly/rpm/odoo.repo + +![Adding OpenERP (Odoo) Repo](http://blog.linoxide.com/wp-content/uploads/2015/03/added-odoo-repo.png) + +### 3. 瀹夎Odoo 8 (OpenERP) ### + +鍦–entOS 7涓坊鍔燨doo 8锛圤penERP锛夌殑浠撳簱鍚庛傛垜浠娇鐢ㄤ笅闈㈢殑鍛戒护鏉ュ畨瑁匫doo 8(OpenERP)銆 + + # yum install -y odoo + +涓婇潰鐨勫懡浠や細瀹夎odoo浠ュ強蹇呴』鐨勪緷璧栫殑鍖呫 + +![Installing odoo or OpenERP](http://blog.linoxide.com/wp-content/uploads/2015/03/installing-odoo.png) + +鐜板湪鎴戜滑浣跨敤涓嬮潰鐨勫懡浠ゅ湪姣忔鍚姩鍚庡惎鍔∣doo鏈嶅姟銆 + + # systemctl enable odoo + # systemctl start odoo + +![Starting Odoo](http://blog.linoxide.com/wp-content/uploads/2015/03/starting-odoo.png) + +### 4. 闃茬伀澧欏厑璁 ### + +鍥犱负Odoo浣跨敤8069绔彛锛屾垜浠渶瑕佸湪闃茬伀澧欎腑鍏佽杩滅▼璁块棶銆傛垜浠娇鐢ㄤ笅闈㈢殑鍛戒护鏉ュ湪闃茬伀澧欎腑鍏佽8069闃茬伀澧欍 + + # firewall-cmd --zone=public --add-port=8069/tcp --permanent + # firewall-cmd --reload + +![Allowing firewall Port](http://blog.linoxide.com/wp-content/uploads/2015/03/allowing-firewall-port.png) + +**娉ㄦ剰锛氶粯璁や笂锛屽彧鏈夋湰鍦扮殑杩炴帴鎵嶅厑璁搞傚鏋滄垜浠鍏佽PostgreSQL鐨勮繙绋嬭闂紝鎴戜滑闇瑕佸湪pg_hba.conf娣诲姞涓嬮潰鍥剧墖涓竴琛** + + # nano /var/lib/pgsql/data/pg_hba.conf + +![Allowing Remote Access pgsql](http://blog.linoxide.com/wp-content/uploads/2015/03/allowing-remote-access-pgsql.png) + +### 5. Web鎺ュ彛 ### + +鎴戜滑宸茬粡鍦–entOS 7涓畨瑁呬簡鏈鏂扮殑Odoo 8锛圤penERP锛夛紝鎴戜滑鍙互鍦ㄦ祻瑙堝櫒涓緭鍏ttp://ip-address:8069鏉ヨ闂甇doo銆 鎺ョ潃锛屾垜浠鍋氱殑绗竴浠朵簨灏辨槸鍒涘缓涓涓柊鐨勬暟鎹簱鍜屾柊鐨勫瘑鐮併傛敞鎰忥紝涓诲瘑鐮侀粯璁ゆ槸绠$悊鍛樺瘑鐮併傛帴鐫锛屾垜浠彲浠ュ湪闈㈡澘涓緭鍏ョ敤鎴峰悕鍜屽瘑鐮併 + +![Odoo Panel](http://blog.linoxide.com/wp-content/uploads/2015/03/odoo-panel.png) + +### 鎬荤粨 ### + +Odoo 8锛圤penERP锛夋槸涓栫晫涓婃渶濂界殑寮婧怑RP绋嬪簭銆傛垜浠仛浜嗕竴浠跺嚭鑹茬殑宸ヤ綔鏉ュ畨瑁呭畠鍥犱负OpenERP鏄敱璁稿妯″潡缁勬垚鐨勯拡瀵瑰晢鍔″拰鍏徃鐨勫畬鏁碋RP绋嬪簭銆傚洜姝わ紝濡傛灉浣犳湁浠讳綍闂銆佸缓璁佸弽棣堣鍦ㄤ笅闈㈢殑璇勮鏍忓啓涓嬨傝阿璋綘锛佷韩鍙桹penERP锛圤doo 8锛夊惂 锛-锛 + +-------------------------------------------------------------------------------- + +via: http://linoxide.com/linux-how-to/setup-openerp-odoo-centos-7/ + +浣滆咃細[Arun Pyasi][a] +璇戣咃細[geekpi](https://github.com/geekpi) +鏍″锛歔鏍″鑰匢D](https://github.com/鏍″鑰匢D) + +鏈枃鐢 [LCTT](https://github.com/LCTT/TranslateProject) 鍘熷垱缈昏瘧锛孾Linux涓浗](https://linux.cn/) 鑽h獕鎺ㄥ嚭 + +[a]:http://linoxide.com/author/arunp/ +[1]:https://www.odoo.com/ From 0041c53ea229e643551fadb067dc0df6b9f8f6f3 Mon Sep 17 00:00:00 2001 From: wi-cuckoo Date: Sun, 10 May 2015 14:47:59 +0800 Subject: [PATCH 08/18] translated wi-cuckoo --- ...x bridge with Network Manager on Ubuntu.md | 97 ------------------ ...x bridge with Network Manager on Ubuntu.md | 98 +++++++++++++++++++ 2 files changed, 98 insertions(+), 97 deletions(-) delete mode 100644 sources/tech/20150506 Linux FAQs with Answers--How to configure a Linux bridge with Network Manager on Ubuntu.md create mode 100644 translated/tech/20150506 Linux FAQs with Answers--How to configure a Linux bridge with Network Manager on Ubuntu.md diff --git a/sources/tech/20150506 Linux FAQs with Answers--How to configure a Linux bridge with Network Manager on Ubuntu.md b/sources/tech/20150506 Linux FAQs with Answers--How to configure a Linux bridge with Network Manager on Ubuntu.md deleted file mode 100644 index a557ee9244..0000000000 --- a/sources/tech/20150506 Linux FAQs with Answers--How to configure a Linux bridge with Network Manager on Ubuntu.md +++ /dev/null @@ -1,97 +0,0 @@ -translating wi-cuckoo -Linux FAQs with Answers--How to configure a Linux bridge with Network Manager on Ubuntu -================================================================================ -> **Question**: I need to set up a Linux bridge on my Ubuntu box to share a NIC with several other virtual machines or containers created on the box. I am currently using Network Manager on my Ubuntu, so preferrably I would like to configure a bridge using Network Manager. How can I do that? - -Network bridge is a hardware equipment used to interconnect two or more Layer-2 network segments, so that network devices on different segments can talk to each other. A similar bridging concept is needed within a Linux host, when you want to interconnect multiple VMs or Ethernet interfaces within a host. That is one use case of a software Linux bridge. - -There are several different ways to configure a Linux bridge. For example, in a headless server environment, you can use [brctl][1] to manually configure a bridge. In desktop environment, bridge support is available in Network Manager. Let's examine how to configure a bridge with Network Manager. - -### Requirement ### - -To avoid [any issue][2], it is recommended that you have Network Manager 0.9.9 and higher, which is the case for Ubuntu 15.04 and later. - - $ apt-cache show network-manager | grep Version - ----------- - - Version: 0.9.10.0-4ubuntu15.1 - Version: 0.9.10.0-4ubuntu15 - -### Create a Bridge ### - -The easiest way to create a bridge with Network Manager is via nm-connection-editor. This GUI tool allows you to configure a bridge in easy-to-follow steps. - -To start, invoke nm-connection-editor. - - $ nm-connection-editor - -The editor window will show you a list of currently configured network connections. Click on "Add" button in the top right to create a bridge. - -![](https://farm9.staticflickr.com/8781/17139502730_c3ca920f7f.jpg) - -Next, choose "Bridge" as a connection type. - -![](https://farm9.staticflickr.com/8873/17301102406_4f75133391_z.jpg) - -Now it's time to configure a bridge, including its name and bridged connection(s). With no other bridges created, the default bridge interface will be named bridge0. - -Recall that the goal of creating a bridge is to share your Ethernet interface via the bridge. So you need to add the Ethernet interface to the bridge. This is achieved by adding a new "bridged connection" in the GUI. Click on "Add" button. - -![](https://farm9.staticflickr.com/8876/17327069755_52f1d81f37_z.jpg) - -Choose "Ethernet" as a connection type. - -![](https://farm9.staticflickr.com/8832/17326664591_632a9001da_z.jpg) - -In "Device MAC address" field, choose the interface that you want to enslave into the bridge. In this example, assume that this interface is eth0. - -![](https://farm9.staticflickr.com/8842/17140820559_07a661f30c_z.jpg) - -Click on "General" tab, and enable both checkboxes that say "Automatically connect to this network when it is available" and "All users may connect to this network". - -![](https://farm8.staticflickr.com/7776/17325199982_801290e172_z.jpg) - -Save the change. - -Now you will see a new slave connection created in the bridge. - -![](https://farm8.staticflickr.com/7674/17119624667_6966b1147e_z.jpg) - -Click on "General" tab of the bridge, and make sure that top-most two checkboxes are enabled. - -![](https://farm8.staticflickr.com/7715/17301102276_4266a1e41d_z.jpg) - -Go to "IPv4 Settings" tab, and configure either DHCP or static IP address for the bridge. Note that you should use the same IPv4 settings as the enslaved Ethernet interface eth0. In this example, we assume that eth0 is configured via DHCP. Thus choose "Automatic (DHCP)" here. If eth0 is assigned a static IP address, you should assign the same IP address to the bridge. - -![](https://farm8.staticflickr.com/7737/17140820469_99955cf916_z.jpg) - -Finally, save the bridge settings. - -Now you will see an additional bridge connection created in "Network Connections" window. You no longer need a previously-configured wired connection for the enslaved interface eth0. So go ahead and delete the original wired connection. - -![](https://farm9.staticflickr.com/8700/17140820439_272a6d5c4e.jpg) - -At this point, the bridge connection will automatically be activated. You will momentarily lose a connection, since the IP address assigned to eth0 is taken over by the bridge. Once an IP address is assigned to the bridge, you will be connected back to your Ethernet interface via the bridge. You can confirm that by checking "Network" settings. - -![](https://farm8.staticflickr.com/7742/17325199902_9ceb67ddc1_c.jpg) - -Also, check the list of available interfaces. As mentioned, the bridge interface must have taken over whatever IP address was possessed by your Ethernet interface. - -![](https://farm8.staticflickr.com/7717/17327069605_6143f1bd6a_b.jpg) - -That's it, and now the bridge is ready to use! - --------------------------------------------------------------------------------- - -via: http://ask.xmodulo.com/configure-linux-bridge-network-manager-ubuntu.html - -浣滆咃細[Dan Nanni][a] -璇戣咃細[璇戣匢D](https://github.com/璇戣匢D) -鏍″锛歔鏍″鑰匢D](https://github.com/鏍″鑰匢D) - -鏈枃鐢 [LCTT](https://github.com/LCTT/TranslateProject) 鍘熷垱缈昏瘧锛孾Linux涓浗](https://linux.cn/) 鑽h獕鎺ㄥ嚭 - -[a]:http://ask.xmodulo.com/author/nanni -[1]:http://xmodulo.com/how-to-configure-linux-bridge-interface.html -[2]:https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1273201 diff --git a/translated/tech/20150506 Linux FAQs with Answers--How to configure a Linux bridge with Network Manager on Ubuntu.md b/translated/tech/20150506 Linux FAQs with Answers--How to configure a Linux bridge with Network Manager on Ubuntu.md new file mode 100644 index 0000000000..ae99e20261 --- /dev/null +++ b/translated/tech/20150506 Linux FAQs with Answers--How to configure a Linux bridge with Network Manager on Ubuntu.md @@ -0,0 +1,98 @@ +nux甯歌闂瑙g瓟--濡備綍鍦║buntu涓婁娇鐢ㄧ綉缁滅鐞嗛厤缃竴涓狶inux缃戞ˉ +=============================================================================== +> **Question**: 鎴戦渶瑕佸湪鎴戠殑Ubuntu涓绘満涓婂缓绔嬩竴涓狶inux缃戞ˉ,鍏变韩涓涓狽IC缁欏叾浠栦竴浜涜櫄鎷熶富鏈烘垨鑰呬富鏈轰笂鍒涘缓鐨勫鍣ㄣ傛垜鐩墠姝e湪Ubunut涓婁娇鐢ㄧ綉缁滅鐞嗭紝鎵浠ユ渶濂>鑳戒娇鐢ㄧ綉缁滅鐞嗘潵閰嶇疆涓涓綉妗ャ傛垜璇ユ庝箞鍋氾紵 + + +缃戞ˉ鏄竴涓‖浠惰澶囷紝鐢ㄦ潵鍐呴儴杩炴帴涓や釜鎴栧涓暟鎹摼璺眰锛圤SI涓冨眰妯″瀷涓浜屽眰锛夛紝鎵浠ヤ娇寰椾笉鍚屾涓婄殑缃戠粶璁惧鍙互浜掔浉璁块棶銆傚綋浣犳兂瑕佸唴杩炲涓櫄鎷熸満鍣ㄦ垨鑰呬竴涓>涓绘満閲岀殑浠ュお鎺ュ彛鏃讹紝灏遍渶瑕佸湪Linux涓绘満閲屾湁涓涓被浼兼ˉ鎺ョ殑姒傚康銆 + +鏈夊緢澶氱殑鏂规硶鏉ラ厤缃竴涓狶inux缃戞ˉ銆備妇涓緥瀛愶紝鍦ㄤ竴涓棤涓績鐨勬湇鍔″櫒鐜閲岋紝浣犲彲浠ヤ娇鐢╗brct][1]鎵嬪姩鍦伴厤缃竴涓綉妗ャ傚湪妗岄潰鐜涓嬶紝鍦ㄧ綉缁滅鐞嗛噷鏈夊缓绔嬬綉妗ユ敮鎸 +銆傞偅灏辫鎴戜滑娴嬭瘯涓涓嬪浣曠敤缃戠粶绠$悊閰嶇疆涓涓綉妗ュ惂銆 + +### 瑕佹眰 ### + +涓轰簡閬垮厤[浠讳綍闂][2]锛屽缓璁綘鐨勭綉缁滅鐞嗙増鏈负0.9.9鎴栬呮洿楂橈紝杩欎富瑕佷负浜嗛厤鍚圲buntu15.05鎴栬呮洿鏂扮殑鐗堟湰銆 + + $ apt-cache show network-manager | grep Version + +---------- + + Version: 0.9.10.0-4ubuntu15.1 + Version: 0.9.10.0-4ubuntu15 + +### 鍒涘缓涓涓綉妗 ### + +浣跨敤缃戠粶绠$悊鍒涘缓缃戞ˉ鏈绠鍗曠殑鏂瑰紡灏辨槸閫氳繃nm-connection-editor銆傝繖娆綠UI锛堝浘褰㈢敤鎴风晫闈級鐨勫伐鍏峰厑璁镐綘鍌荤摐寮忓湴閰嶇疆涓涓綉妗ャ + +棣栧厛锛屽惎鍔╪m-connection-editor銆 + + $ nm-connection-editor + +璇ョ紪杈戝櫒鐨勭獥鍙d細鏄剧ず缁欎綘涓涓垪琛紝鍏充簬鐩墠閰嶇疆濂界殑缃戠粶杩炴帴銆傜偣鍑诲彸涓婅鐨勨淐lick鈥濇寜閽紝鍒涘缓涓涓綉妗ャ + +![](https://farm9.staticflickr.com/8781/17139502730_c3ca920f7f.jpg) + +鎺ヤ笅鏉ワ紝閫夋嫨鈥淏ridge鈥濅綔涓鸿繛鎺ョ被鍨嬨 + +![](https://farm9.staticflickr.com/8873/17301102406_4f75133391_z.jpg) + +鐜板湪锛屽紑濮嬮厤缃綉妗ワ紝鍖呮嫭瀹冪殑鍚嶅瓧鍜屾ˉ鎺ャ傚鏋滄病鏈夊叾浠栫綉妗ヨ鍒涘缓锛岄偅涔堥粯璁ょ殑缃戞ˉ鎺ュ彛浼氳鍛藉悕涓篵ridge0銆 + +鍥為【涓涓嬶紝鍒涘缓缃戞ˉ鐨勭洰鐨勬槸涓轰簡閫氳繃缃戞ˉ鍏变韩浣犵殑浠ュお缃戝崱鎺ュ彛銆傛墍浠ヤ綘闇瑕佹坊鍔犱互澶綉鍗℃帴鍙e埌缃戞ˉ銆傚湪鍥惧舰鐣岄潰娣诲姞涓涓柊鐨勨渂ridged connection鈥濆彲浠ュ疄鐜颁笂杩扮洰鐨勩傜偣鍑烩淎dd鈥濇寜閽 + +![](https://farm9.staticflickr.com/8876/17327069755_52f1d81f37_z.jpg) + +閫夋嫨鈥淓thernet鈥濅綔涓鸿繛鎺ョ被鍨嬨 + +![](https://farm9.staticflickr.com/8832/17326664591_632a9001da_z.jpg) + +鍦ㄢ淒evice MAC address鈥濆尯鍩燂紝閫夋嫨浣犳兂瑕佹帶鍒剁殑鎺ュ彛鍒癰ridge閲屻傛湰渚嬩腑锛屽亣璁炬帴鍙f槸eth0銆 + +![](https://farm9.staticflickr.com/8842/17140820559_07a661f30c_z.jpg) + +鐐瑰嚮鈥淕eneral鈥濇爣绛撅紝骞朵笖閫変腑涓や釜澶嶉夋锛屽垎鍒槸鈥淎utomatically connect to this network when it is available鈥濆拰鈥淎ll users may connect to this network鈥濄 + +![](https://farm8.staticflickr.com/7776/17325199982_801290e172_z.jpg) + +淇濆瓨鏇存敼銆 + +鐜板湪锛屼綘浼氬湪缃戞ˉ閲岀湅瑙佷竴涓柊鐨勪粠灞炶繛鎺ヨ寤虹珛銆 + +![](https://farm8.staticflickr.com/7674/17119624667_6966b1147e_z.jpg) + +鐐瑰嚮缃戞ˉ鐨勨淕eneral鈥濇爣绛撅紝骞朵笖纭繚鏈涓婇潰鐨勪袱涓閫夋琚変腑浜嗐 + +![](https://farm8.staticflickr.com/7715/17301102276_4266a1e41d_z.jpg) + +鍒囨崲鍒扳淚Pv4 Setting鈥濇爣绛撅紝涓虹綉妗ラ厤缃瓺HCP鎴栬呮槸闈欐両P鍦板潃銆傛敞鎰忥紝浣犲簲璇ヤ娇鐢ㄧ浉鍚岀殑IPv4璁惧畾浣滀负浠庡睘鐨勪互澶綉鍗℃帴鍙th0銆傛湰渚嬩腑锛屾垜浠亣璁緀th0鏄敤杩嘍HCP閰嶇疆鐨勩傚洜姝わ紝姝ゅ閫夋嫨鈥淎utomatic锛圖HCP锛夆濄傚鏋渆th0琚寚瀹氫簡涓涓潤鎬両P鍦板潃锛岄偅涔堜綘搴旇鎸囧畾鐩稿悓鐨処P鍦板潃缁欑綉妗ャ + +![](https://farm8.staticflickr.com/7737/17140820469_99955cf916_z.jpg) + +鏈鍚庯紝淇濆瓨缃戞ˉ鐨勮缃 + +鐜板湪锛屼綘浼氱湅瑙佷竴涓澶栫殑缃戞ˉ杩炴帴琚垱寤哄湪鈥淣etwork Connection鈥濈獥鍙i噷銆備綘涓嶅啀闇瑕佷竴涓鍏堥厤缃殑鏈夌嚎杩炴帴锛屼负鐫浠庡睘鐨別th0鎺ュ彛銆傛墍浠ュ幓鍒犻櫎鍘熸潵鐨勬湁绾胯繛鎺ュ惂銆 + +![](https://farm9.staticflickr.com/8700/17140820439_272a6d5c4e.jpg) + +杩欐椂鍊欙紝缃戞ˉ杩炴帴浼氳鑷姩婵娲汇備綘灏嗕細鏆傛椂澶卞幓涓涓繛鎺ワ紝浠庢寚瀹氱粰eth0鐨処P鍦板潃琚綉妗ユ帴绠°備竴鏃P鍦板潃鎸囧畾缁欎簡缃戞ˉ锛屼綘灏嗕細杩炴帴鍥炰綘鐨勪互澶綉鍗℃帴鍙o紝閫氳繃缃戞ˉ銆備綘鍙互閫氳繃鈥淣etwork鈥濊缃‘璁や竴涓嬨 + +![](https://farm8.staticflickr.com/7742/17325199902_9ceb67ddc1_c.jpg) + +鍚屾椂锛屾鏌ュ彲鐢ㄧ殑鎺ュ彛銆傛彁閱掍竴涓嬶紝缃戞ˉ鎺ュ彛蹇呴』宸茬粡鍙栦唬浜嗕换浣曢氳繃浣犵殑浠ュお缃戝崱鎺ュ彛鐨処P鍦板潃銆 + +![](https://farm8.staticflickr.com/7717/17327069605_6143f1bd6a_b.jpg) + +灏辫繖涔堝浜嗭紝鐜板湪锛岀綉妗ュ凡缁忓彲浠ョ敤浜嗐 + +-------------------------------------------------------------------------------- + +via: http://ask.xmodulo.com/configure-linux-bridge-network-manager-ubuntu.html + +浣滆咃細[Dan Nanni][a] +璇戣咃細[wi-cuckoo](https://github.com/wi-cuckoo) +鏍″锛歔鏍″鑰匢D](https://github.com/鏍″鑰匢D) + +鏈枃鐢 [LCTT](https://github.com/LCTT/TranslateProject) 鍘熷垱缈昏瘧锛孾Linux涓浗](https://linux.cn/) 鑽h獕鎺ㄥ嚭 + +[a]:http://ask.xmodulo.com/author/nanni +[1]:http://xmodulo.com/how-to-configure-linux-bridge-interface.html +[2]:https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1273201 From db7cb7fd6a5693800e47951c8ac66679157c1595 Mon Sep 17 00:00:00 2001 From: Vic020 Date: Sun, 10 May 2015 21:05:26 +0800 Subject: [PATCH 09/18] Translated --- ...To Install Visual Studio Code On Ubuntu.md | 35 +++++++++---------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/sources/tech/20150504 How To Install Visual Studio Code On Ubuntu.md b/sources/tech/20150504 How To Install Visual Studio Code On Ubuntu.md index 8912e3c06c..afc8a267f4 100644 --- a/sources/tech/20150504 How To Install Visual Studio Code On Ubuntu.md +++ b/sources/tech/20150504 How To Install Visual Studio Code On Ubuntu.md @@ -1,57 +1,56 @@ - Vic020 - -How To Install Visual Studio Code On Ubuntu +鍦║buntu涓畨瑁匳isual Studio Code ================================================================================ ![](http://itsfoss.itsfoss.netdna-cdn.com/wp-content/uploads/2015/05/Install-Visual-Studio-Code-in-Ubuntu.jpeg) -Microsoft has done the unexpected by [releasing Visual Studio Code][1] for all major desktop platforms that includes Linux as well. If you are a web developer who happens to be using Ubuntu, you can **easily install Visual Studio Code in Ubuntu**. +寰蒋鎰忓鍦癧鍙戝竷浜哣isual Studio Code][1]锛屽苟鏀寔涓昏鐨勬闈㈠钩鍙帮紝褰撶劧鍖呮嫭linux銆傚鏋滀綘鏄竴鍚嶉渶瑕佸湪ubuntu宸ヤ綔鐨剋eb寮鍙戜汉鍛橈紝浣犲彲浠**闈炲父杞绘澗鐨勫畨瑁匳isual Studio Code**銆 -We will be using [Ubuntu Make][2] for installing Visual Studio Code in Ubuntu. Ubuntu Make, previously known as Ubuntu Developer Tools Center, is a command line utility that allows you to easily install various development tools, languages and IDEs. You can easily [install Android Studio][3] and other popular IDEs such as Eclipse with Ubuntu Make. In this tutorial we shall see **how to install Visual Studio Code in Ubuntu with Ubuntu Make**. +鎴戝皢瑕佷娇鐢╗Ubuntu Make][2]鏉ュ畨瑁匳isual Studio Code銆俇buntu Make锛屽氨鏄互鍓嶇殑Ubuntu寮鍙戣呭伐鍏蜂腑蹇冿紝鏄竴涓懡浠よ宸ュ叿锛屽府鍔╃敤鎴峰揩閫熷畨瑁呭悇绉嶅紑鍙戝伐鍏枫佽瑷鍜孖DE銆備篃鍙互浣跨敤Ubuntu Make杞绘澗[瀹夎Android Studio][3] 鍜屽叾浠朓DE锛屽Eclipse銆傛湰鏂囧皢灞曠ず**濡備綍鍦║buntu涓娇鐢║buntu Make瀹夎Visual Studio Code**銆傦紙璇戞敞锛氫篃鍙互鐩存帴鍘诲井杞畼缃戜笅杞藉畨瑁呭寘锛 -### Install Microsoft Visual Studio Code in Ubuntu ### +### 瀹夎寰蒋Visual Studio Code ### -Before installing Visual Studio Code, we need to install Ubuntu Make first. Though Ubuntu Make is available in Ubuntu 15.04 repository, **you鈥檒l need Ubuntu Make 0.7 for Visual Studio**. You can get the latest Ubuntu Make by using the official PPA. The PPA is available for Ubuntu 14.04, 14.10 and 15.04. Also, it **is only available for 64 bit platform**. +寮濮嬩箣鍓嶏紝棣栧厛闇瑕佸畨瑁匲buntu Make銆傝櫧鐒禪buntu Make瀛樺湪Ubuntu15.04瀹樻柟搴撲腑锛**浣嗘槸闇瑕乁buntu Make 0.7浠ヤ笂鐗堟湰鎵嶈兘瀹夎Visual Studio**銆傛墍浠ワ紝闇瑕侀氳繃瀹樻柟PPA鏇存柊鍒版渶鏂扮殑Ubuntu Make銆傛PPA鏀寔Ubuntu 14.04, 14.10 鍜 15.04銆 +娉ㄦ剰锛**浠呮敮鎸64浣嶇増鏈**銆 -Open a terminal and use the following commands to install Ubuntu Make via official PPA: +鎵撳紑缁堢锛屼娇鐢ㄤ笅鍒楀懡浠わ紝閫氳繃瀹樻柟PPA鏉ュ畨瑁匲buntu Make锛 sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make sudo apt-get update sudo apt-get install ubuntu-make -Once you have installed Ubuntu Make, use the command below to install Visual Studio Code: +瀹夎Ubuntu Make瀹屽悗锛屾帴鐫浣跨敤涓嬪垪鍛戒护瀹夎Visual Studio Code锛 umake web visual-studio-code -You鈥檒l be asked to provide a path where it will be installed: +瀹夎杩囩▼涓紝灏嗕細璇㈤棶瀹夎璺緞锛屽涓嬪浘锛 ![](http://itsfoss.itsfoss.netdna-cdn.com/wp-content/uploads/2015/05/Visual_Studio_Code_Ubuntu_1.jpeg) -After throwing a whole lot of terms and conditions, it will ask for your permission to install Visual Studio Code. Press 鈥榓鈥 at this screen: +鍦ㄦ姏鍑轰竴鍫嗙姸鎬佸拰鏉′欢鍚庯紝瀹冧細璇㈤棶浣犳槸鍚︾‘璁ゅ畨瑁匳isual Studio Code銆傝緭鍏モ榓鈥欐潵纭畾锛 ![](http://itsfoss.itsfoss.netdna-cdn.com/wp-content/uploads/2015/05/Visual_Studio_Code_Ubuntu_2.jpeg) -Once you do that it will start downloading and installing it. Once it is installed, you can see that Visual Studio Code icon has already been locked to the Unity Launcher. Just click on it to run it. This is how Visual Studio Code looks like in Ubuntu 15.04 Unity: +纭畾涔嬪悗锛屽畨瑁呯▼搴忎細寮濮嬩笅杞藉苟瀹夎銆傚畨瑁呭畬鎴愬悗锛屼綘鍙互鍙戠幇Visual Studio Code 鍥炬爣宸茬粡鍑虹幇鍦ㄤ簡Unity鍚姩鍣ㄤ笂銆傜偣鍑诲浘鏍囧紑濮嬭繍琛岋紒涓嬪浘鏄疷buntu 15.04 Unity鐨勬埅鍥撅細 ![](http://itsfoss.itsfoss.netdna-cdn.com/wp-content/uploads/2015/05/Visual_Studio_Code_Ubuntu.jpeg) -### Uninstall Visual Studio Code from Ubuntu ### +### 鍗歌浇Visual Studio Code### -To uninstall Visual Studio Code, we鈥檒l use the same command line tool umake. Just use the following command in terminal: +鍗歌浇Visual Studio Code锛屽悓鏍蜂娇鐢║buntu Make鍛戒护銆傚涓嬶細 umake web visual-studio-code --remove -If you do not want to use Ubuntu Make, you can install Visual Studio Code by downloading the files from Microsoft: +濡傛灉浣犱笉鎵撶畻浣跨敤Ubuntu Make锛屼篃鍙互閫氳繃寰蒋瀹樻柟涓嬭浇瀹夎鏂囦欢銆 -- [Download Visual Studio Code for Linux][4] +- [涓嬭浇Visual Studio Code Linux鐗圿[4] -See, how easy it is to install Visual Studio Code in Ubuntu, all thanks to Ubuntu Make. I hope this tutorial helped you. Feel free to drop a comment if you have any questions or suggestions. +鎬庢牱锛佹槸涓嶆槸瓒呯骇绠鍗曞氨鍙互瀹夎Visual Studio Code锛岃繖閮藉綊鍔熶簬Ubuntu Make銆傛垜甯屾湜杩欑瘒鏂囩珷鑳藉府鍔╁埌浣犮傚鏋滄偍鏈変换浣曢棶棰樻垨寤鸿锛屾杩庣粰鎴戠暀瑷銆 -------------------------------------------------------------------------------- via: http://itsfoss.com/install-visual-studio-code-ubuntu/ 浣滆咃細[Abhishek][a] -璇戣咃細[璇戣匢D](https://github.com/璇戣匢D) +璇戣咃細[Vic020/VicYu](http://vicyu.net) 鏍″锛歔鏍″鑰匢D](https://github.com/鏍″鑰匢D) 鏈枃鐢 [LCTT](https://github.com/LCTT/TranslateProject) 鍘熷垱缈昏瘧锛孾Linux涓浗](http://linux.cn/) 鑽h獕鎺ㄥ嚭 From 05faf18bdca12b05e83894584a62a77d5193cf70 Mon Sep 17 00:00:00 2001 From: Vic020 Date: Sun, 10 May 2015 21:09:11 +0800 Subject: [PATCH 10/18] Moved --- .../tech/20150504 How To Install Visual Studio Code On Ubuntu.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {sources => translated}/tech/20150504 How To Install Visual Studio Code On Ubuntu.md (100%) diff --git a/sources/tech/20150504 How To Install Visual Studio Code On Ubuntu.md b/translated/tech/20150504 How To Install Visual Studio Code On Ubuntu.md similarity index 100% rename from sources/tech/20150504 How To Install Visual Studio Code On Ubuntu.md rename to translated/tech/20150504 How To Install Visual Studio Code On Ubuntu.md From 47c5f5111210d0a646c2d37c97014c278c535194 Mon Sep 17 00:00:00 2001 From: wxy Date: Sun, 10 May 2015 21:22:24 +0800 Subject: [PATCH 11/18] PUB:20150504 How To Install Visual Studio Code On Ubuntu @Vic020 --- ...150504 How To Install Visual Studio Code On Ubuntu.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) rename {translated/tech => published}/20150504 How To Install Visual Studio Code On Ubuntu.md (86%) diff --git a/translated/tech/20150504 How To Install Visual Studio Code On Ubuntu.md b/published/20150504 How To Install Visual Studio Code On Ubuntu.md similarity index 86% rename from translated/tech/20150504 How To Install Visual Studio Code On Ubuntu.md rename to published/20150504 How To Install Visual Studio Code On Ubuntu.md index afc8a267f4..b3bb071dc5 100644 --- a/translated/tech/20150504 How To Install Visual Studio Code On Ubuntu.md +++ b/published/20150504 How To Install Visual Studio Code On Ubuntu.md @@ -2,13 +2,14 @@ ================================================================================ ![](http://itsfoss.itsfoss.netdna-cdn.com/wp-content/uploads/2015/05/Install-Visual-Studio-Code-in-Ubuntu.jpeg) -寰蒋鎰忓鍦癧鍙戝竷浜哣isual Studio Code][1]锛屽苟鏀寔涓昏鐨勬闈㈠钩鍙帮紝褰撶劧鍖呮嫭linux銆傚鏋滀綘鏄竴鍚嶉渶瑕佸湪ubuntu宸ヤ綔鐨剋eb寮鍙戜汉鍛橈紝浣犲彲浠**闈炲父杞绘澗鐨勫畨瑁匳isual Studio Code**銆 +寰蒋浠や汉鎰忓鍦癧鍙戝竷浜哣isual Studio Code][1]锛屽苟鏀寔涓昏鐨勬闈㈠钩鍙帮紝褰撶劧鍖呮嫭linux銆傚鏋滀綘鏄竴鍚嶉渶瑕佸湪ubuntu宸ヤ綔鐨剋eb寮鍙戜汉鍛橈紝浣犲彲浠**闈炲父杞绘澗鐨勫畨瑁匳isual Studio Code**銆 鎴戝皢瑕佷娇鐢╗Ubuntu Make][2]鏉ュ畨瑁匳isual Studio Code銆俇buntu Make锛屽氨鏄互鍓嶇殑Ubuntu寮鍙戣呭伐鍏蜂腑蹇冿紝鏄竴涓懡浠よ宸ュ叿锛屽府鍔╃敤鎴峰揩閫熷畨瑁呭悇绉嶅紑鍙戝伐鍏枫佽瑷鍜孖DE銆備篃鍙互浣跨敤Ubuntu Make杞绘澗[瀹夎Android Studio][3] 鍜屽叾浠朓DE锛屽Eclipse銆傛湰鏂囧皢灞曠ず**濡備綍鍦║buntu涓娇鐢║buntu Make瀹夎Visual Studio Code**銆傦紙璇戞敞锛氫篃鍙互鐩存帴鍘诲井杞畼缃戜笅杞藉畨瑁呭寘锛 ### 瀹夎寰蒋Visual Studio Code ### 寮濮嬩箣鍓嶏紝棣栧厛闇瑕佸畨瑁匲buntu Make銆傝櫧鐒禪buntu Make瀛樺湪Ubuntu15.04瀹樻柟搴撲腑锛**浣嗘槸闇瑕乁buntu Make 0.7浠ヤ笂鐗堟湰鎵嶈兘瀹夎Visual Studio**銆傛墍浠ワ紝闇瑕侀氳繃瀹樻柟PPA鏇存柊鍒版渶鏂扮殑Ubuntu Make銆傛PPA鏀寔Ubuntu 14.04, 14.10 鍜 15.04銆 + 娉ㄦ剰锛**浠呮敮鎸64浣嶇増鏈**銆 鎵撳紑缁堢锛屼娇鐢ㄤ笅鍒楀懡浠わ紝閫氳繃瀹樻柟PPA鏉ュ畨瑁匲buntu Make锛 @@ -25,7 +26,7 @@ ![](http://itsfoss.itsfoss.netdna-cdn.com/wp-content/uploads/2015/05/Visual_Studio_Code_Ubuntu_1.jpeg) -鍦ㄦ姏鍑轰竴鍫嗙姸鎬佸拰鏉′欢鍚庯紝瀹冧細璇㈤棶浣犳槸鍚︾‘璁ゅ畨瑁匳isual Studio Code銆傝緭鍏モ榓鈥欐潵纭畾锛 +鍦ㄦ姏鍑轰竴鍫嗚姹傚拰鏉′欢鍚庯紝瀹冧細璇㈤棶浣犳槸鍚︾‘璁ゅ畨瑁匳isual Studio Code銆傝緭鍏モ榓鈥欐潵纭畾锛 ![](http://itsfoss.itsfoss.netdna-cdn.com/wp-content/uploads/2015/05/Visual_Studio_Code_Ubuntu_2.jpeg) @@ -51,12 +52,12 @@ via: http://itsfoss.com/install-visual-studio-code-ubuntu/ 浣滆咃細[Abhishek][a] 璇戣咃細[Vic020/VicYu](http://vicyu.net) -鏍″锛歔鏍″鑰匢D](https://github.com/鏍″鑰匢D) +鏍″锛歔wxy](https://github.com/wxy) 鏈枃鐢 [LCTT](https://github.com/LCTT/TranslateProject) 鍘熷垱缈昏瘧锛孾Linux涓浗](http://linux.cn/) 鑽h獕鎺ㄥ嚭 [a]:http://itsfoss.com/author/abhishek/ -[1]:http://www.geekwire.com/2015/microsofts-visual-studio-expands-to-mac-and-linux-with-new-code-development-tool/ +[1]:https://linux.cn/article-5376-1.html [2]:https://wiki.ubuntu.com/ubuntu-make [3]:http://itsfoss.com/install-android-studio-ubuntu-linux/ [4]:https://code.visualstudio.com/Download From b4d3a5f7b559401c4b69772760d1fd514f25cea3 Mon Sep 17 00:00:00 2001 From: wwy Date: Sun, 10 May 2015 22:06:24 +0800 Subject: [PATCH 12/18] finished translation, need review by myself --- ... command-line network monitors on Linux.md | 200 ++++++++++++------ 1 file changed, 135 insertions(+), 65 deletions(-) diff --git a/translated/tech/20150112 What are useful command-line network monitors on Linux.md b/translated/tech/20150112 What are useful command-line network monitors on Linux.md index 1019173a65..72beed7eb1 100644 --- a/translated/tech/20150112 What are useful command-line network monitors on Linux.md +++ b/translated/tech/20150112 What are useful command-line network monitors on Linux.md @@ -1,65 +1,135 @@ -什么是Linux上实用的命令行网络监视器 -=============================================================================== -对任何规模的业务来说,网络监视器都是一个重要的功能。网络监视器的功能可能千差万别。比如,监视活动可以是长期网络供应的一部分,安全保护,性能或者排错,网络使用统计等。由于它的目标不同,网络监视器使用很多不同的方式来完成任务。比如使用包层面的探测,收集流层面的统计数据,向网络中注入探测的流量,分析服务器日志等。 - -尽管有许多专用的网络监视系统可以365天24小时监视,但您依旧可以在特定的情况下使用命令行式的网络监视器,某些命令行式的网络监视器在某方面很有威力。如果您是系统管理员,那您就应该有亲身使用一些知名的命令行式网络监视器的实践经历。这里有一份**Linux上流行且实用的网络监视器**列表。 - -### 包层面的嗅探器 ### - -在这个类别下,监视器工具在链路上捕捉独立的包,分析它们的内容,展示解码后的内容或者包层面的统计数据。这些工具在最低的层面对网络进行监视、管理,同样的也能进行最细粒度的监视,代价是部分网络I/O和分析的过程。 - -1. **dhcpdump**:一个命令行式的DHCP流量嗅探工具,捕捉DHCP的请求/回复通信,以用户友好的方式显示解码的DHCP协议消息。这是一款排查DHCP相关故障的实用工具。 - -2. **[dsniff][1]**:一个基于命令行的嗅探工具的集合,拥有欺骗和劫持功能,被设计用于网络审计和渗透测试。它可以嗅探多种不同的信息,比如密码、NSF流量、email消息、网络地址等。 - -3. **[httpry][2]**:一个HTTP报文嗅探器,用于捕获、解码HTTP请求和回复报文,并以用户友好的方式显示这些信息。 - -4. **IPTraf**:基于命令行的网络统计数据查看器。它实时显示包层面、连接层面、接口层面、协议层面的报文/字节数。抓包过程由协议过滤器控制,且操作过程全部是菜单驱动的。 - -![](https://farm8.staticflickr.com/7519/16055246118_8ea182b413_c.jpg) - -5. **[mysql-sniffer][3]**:一个用于抓取、解码MySQL请求相关的数据包的工具。它以可读的方式显示最频繁或全部的请求。 - -6. **[ngrep][4]**:在网络报文中执行grep。它能实时抓取报文,并使用正则表达式或十六进制表达式的方式匹配报文。它是一个可以对异常流量进行检测、存储或者对实时流中特别模式报文进行抓取的实用工具。 - -7. **[p0f][5]**:一个被动的基于包嗅探的指纹采集工具,可以可靠的识别操作系统、NAT或者代理设置、网络链路类型以及许多其他与活动的TCP连接相关的属性。 - -8. **pktstat**:一个命令行式的工具,通过分析报文,显示实时的连接带宽使用情况以及相关的协议(例如,HTTP GET/POST、FTP、X11)的描述信息。 - -![](https://farm8.staticflickr.com/7477/16048970999_be60f74952_b.jpg - -9. **Snort**:一个入侵检测和预防工具,通过规则驱动的协议分析和内容匹配,来检测/预防活跃流量中各种各样的后门、僵尸网络、网络钓鱼、间谍软件攻击。 - -10. **tcpdump**:一个命令行的嗅探工具,可以基于过滤表达式抓取网络中的报文,分析报文,并且在包层面输出报文内容。他在许多网络相关的错误排查、网络程序debug、或[安全][6]监测方面应用广泛。 - -11. **tshark**:一个与Wireshark窗口程序一起使用的命令行式的嗅探工具。他能捕捉、解码网络上的实时报文,并能以用户友好的方式显示其内容。 - -### 流/进程/接口层面的监视 ### - -在这个分类中,网络监视器通过把流量分为流、相应的进程或接口来收集每个流、每个进程、每个接口的统计数据。其信息的来源可以是libpcap抓包库或者sysfs内核虚拟文件系统。这些工具的监视成本很低,但是缺乏包层面的检查能力。 - -12. **bmon**:一个基于命令行的带宽监测工具,可以显示各种接口相关的信息,不但包括接收/发送的总值/平均值统计数据,而且拥有历史带宽使用视图。 - -![](https://farm9.staticflickr.com/8580/16234265932_87f20c5d17_b.jpg) - -13. **[iftop][7]**:一个带宽使用监测工具,可以实时显示某个连接的带宽使用情况。它对所有带宽使用情况排序并基于ncurses的接口来进行可视化。他可以方便的监视那个连接使用了最多的带宽。 - -14. **nethogs**:一个进程监视工具,提供进程相关的实时的上行/下行带宽使用信息,并基于ncurses显示。它对检测占用大量带宽的进程很有用。 - -15. **netstat**:一个显示诸如TCP/UDP的网络堆栈、网络接口发送/接收、路由表、协议/套接字的统计信息和属性的命令行工具。当您诊断与网络堆栈相关的性能、资源使用时它很有用。 - -16. **[speedometer][8]**:一个可视化某个接口历史发送/接收带宽使用趋势,并且基于ncurses的条状图进行显示的工具。 - -![](https://farm8.staticflickr.com/7485/16048971069_31dd573a4f_c.jpg) - -17. **[sysdig][9]**:一个对Linux子系统拥有统一调试接口的系统级综合性debug工具。它的网络监视模块可以监视在线/离线、许多进程/主机相关的网络统计数据,例如带宽、连接/请求数等。 - -18. **tcptrack**:一个TCP连接监视工具,可以显示活动的TCP连接,包括源/目的的IP地址/端口、TCP状态、带宽使用等。 - -![](https://farm8.staticflickr.com/7507/16047703080_5fdda2e811_b.jpg) - -19. **vnStat**:一个维护了基于接口的历史接收/发送带宽使用视图(例如,当前、每日、每月)的流量监视器。作为一个后台守护进程,它收集并存储统计数据,包括接口带宽使用率和传输字节总数。 - -### 活动网络监视器 ### - - +什么是Linux上实用的命令行网络监视器 +=============================================================================== +对任何规模的业务来说,网络监视器都是一个重要的功能。网络监视器的功能可能千差万别。比如,监视活动可以是长期网络供应的一部分,安全保护,性能或者排错,网络使用统计等。由于它的目标不同,网络监视器使用很多不同的方式来完成任务。比如使用包层面的探测,收集流层面的统计数据,向网络中注入探测的流量,分析服务器日志等。 + +尽管有许多专用的网络监视系统可以365天24小时监视,但您依旧可以在特定的情况下使用命令行式的网络监视器,某些命令行式的网络监视器在某方面很有威力。如果您是系统管理员,那您就应该有亲身使用一些知名的命令行式网络监视器的实践经历。这里有一份**Linux上流行且实用的网络监视器**列表。 + +### 包层面的嗅探器 ### + +在这个类别下,监视器工具在链路上捕捉独立的包,分析它们的内容,展示解码后的内容或者包层面的统计数据。这些工具在最低的层面对网络进行监视、管理,同样的也能进行最细粒度的监视,代价是部分网络I/O和分析的过程。 + +1. **dhcpdump**:一个命令行式的DHCP流量嗅探工具,捕捉DHCP的请求/回复通信,以用户友好的方式显示解码的DHCP协议消息。这是一款排查DHCP相关故障的实用工具。 + +2. **[dsniff][1]**:一个基于命令行的嗅探工具的集合,拥有欺骗和劫持功能,被设计用于网络审计和渗透测试。它可以嗅探多种不同的信息,比如密码、NSF流量、email消息、网络地址等。 + +3. **[httpry][2]**:一个HTTP报文嗅探器,用于捕获、解码HTTP请求和回复报文,并以用户友好的方式显示这些信息。 + +4. **IPTraf**:基于命令行的网络统计数据查看器。它实时显示包层面、连接层面、接口层面、协议层面的报文/字节数。抓包过程由协议过滤器控制,且操作过程全部是菜单驱动的。 + +![](https://farm8.staticflickr.com/7519/16055246118_8ea182b413_c.jpg) + +5. **[mysql-sniffer][3]**:一个用于抓取、解码MySQL请求相关的数据包的工具。它以可读的方式显示最频繁或全部的请求。 + +6. **[ngrep][4]**:在网络报文中执行grep。它能实时抓取报文,并使用正则表达式或十六进制表达式的方式匹配报文。它是一个可以对异常流量进行检测、存储或者对实时流中特别模式报文进行抓取的实用工具。 + +7. **[p0f][5]**:一个被动的基于包嗅探的指纹采集工具,可以可靠的识别操作系统、NAT或者代理设置、网络链路类型以及许多其他与活动的TCP连接相关的属性。 + +8. **pktstat**:一个命令行式的工具,通过分析报文,显示实时的连接带宽使用情况以及相关的协议(例如,HTTP GET/POST、FTP、X11)的描述信息。 + +![](https://farm8.staticflickr.com/7477/16048970999_be60f74952_b.jpg + +9. **Snort**:一个入侵检测和预防工具,通过规则驱动的协议分析和内容匹配,来检测/预防活跃流量中各种各样的后门、僵尸网络、网络钓鱼、间谍软件攻击。 + +10. **tcpdump**:一个命令行的嗅探工具,可以基于过滤表达式抓取网络中的报文,分析报文,并且在包层面输出报文内容。他在许多网络相关的错误排查、网络程序debug、或[安全][6]监测方面应用广泛。 + +11. **tshark**:一个与Wireshark窗口程序一起使用的命令行式的嗅探工具。他能捕捉、解码网络上的实时报文,并能以用户友好的方式显示其内容。 + +### 流/进程/接口层面的监视 ### + +在这个分类中,网络监视器通过把流量分为流、相应的进程或接口来收集每个流、每个进程、每个接口的统计数据。其信息的来源可以是libpcap抓包库或者sysfs内核虚拟文件系统。这些工具的监视成本很低,但是缺乏包层面的检查能力。 + +12. **bmon**:一个基于命令行的带宽监测工具,可以显示各种接口相关的信息,不但包括接收/发送的总值/平均值统计数据,而且拥有历史带宽使用视图。 + +![](https://farm9.staticflickr.com/8580/16234265932_87f20c5d17_b.jpg) + +13. **[iftop][7]**:一个带宽使用监测工具,可以实时显示某个连接的带宽使用情况。它对所有带宽使用情况排序并基于ncurses的接口来进行可视化。他可以方便的监视那个连接使用了最多的带宽。 + +14. **nethogs**:一个进程监视工具,提供进程相关的实时的上行/下行带宽使用信息,并基于ncurses显示。它对检测占用大量带宽的进程很有用。 + +15. **netstat**:一个显示诸如TCP/UDP的网络堆栈、网络接口发送/接收、路由表、协议/套接字的统计信息和属性的命令行工具。当您诊断与网络堆栈相关的性能、资源使用时它很有用。 + +16. **[speedometer][8]**:一个可视化某个接口历史发送/接收带宽使用趋势,并且基于ncurses的条状图进行显示的工具。 + +![](https://farm8.staticflickr.com/7485/16048971069_31dd573a4f_c.jpg) + +17. **[sysdig][9]**:一个对Linux子系统拥有统一调试接口的系统级综合性debug工具。它的网络监视模块可以监视在线/离线、许多进程/主机相关的网络统计数据,例如带宽、连接/请求数等。 + +18. **tcptrack**:一个TCP连接监视工具,可以显示活动的TCP连接,包括源/目的的IP地址/端口、TCP状态、带宽使用等。 + +![](https://farm8.staticflickr.com/7507/16047703080_5fdda2e811_b.jpg) + +19. **vnStat**:一个维护了基于接口的历史接收/发送带宽使用视图(例如,当前、每日、每月)的流量监视器。作为一个后台守护进程,它收集并存储统计数据,包括接口带宽使用率和传输字节总数。 + +### 活动网络监视器 ### + +不同于前面提到的被动的监听工具,这个类别的工具们在监听时会主动的“注入”探测内容到网络中,并且会收集相应的反应。监听目标包括路由路径、可供使用的带宽、丢包率、延时、抖动、系统设置或者缺陷等。 + +20. **[dnsyo][10]**:一个DNS检测工具,能够管理多达1500个不同网络的开放解析器集群的DNS查询。它在您检查DNS繁殖或者检查DNS设置的时候很有用。 + +21. **[iperf][11]**:一个TCP/UDP带宽测量工具,能够测量两点间最大可用带宽。它通过在两个主机间单向或双向的输出TCP/UDP探测流量来测量可用的带宽。它在监测网络容量、调谐网络协议栈参数时很有用。一个变种叫做[netperf][12]拥有更多的功能及更好的统计数据。 + +22. **[netcat][13]/socat**:通用的网络debug工具,可以对TCP/UDP套接字进行读、写或监听。它通常和其他的程序或脚本结合起来在后端对网络传输或端口进行监听。 + +23. **nmap**:一个命令行端口扫描和网络发现工具。它依赖于一个基于TCP/UDP的扫描技术来查找开放的端口、活动的主机或者在本地网络存在的操作系统。它在你审查本地主机漏洞或者为了维护建立主机映射时很有用。[zmap][14]是一个类似的替代品,是一个用于互联网范围的扫描工具。 + +24. ping:一个常用的网络测试工具。通过对ICMP的echo和reply报文进行增强来实现其功能。它在测量路由的RTT、丢包率以及检测远端系统防火墙规则时很有用。ping的变种有更漂亮的界面(例如,[noping][15])、多协议支持(例如,[hping][16])或者并行探测能力(例如,[fping][17])。 + +![](https://farm8.staticflickr.com/7466/15612665344_a4bb665a5b_c.jpg) + +25. **[sprobe][18]**:一个启发式推断本地主机和任意远端IP地址的网络带宽瓶颈的命令行工具。它使用TCP三次握手机制来评估带宽的瓶颈。它在检测大范围网络性能和路由相关的问题时很有用。 + +26. **traceroute**:一个能发现从本地到远端主机的第三层路由/转发路径的网络发现工具。它通过发送有限TTL的探测报文,收集中间路由的ICMP反馈信息。它在排查低速网络连接或者路由相关的问题时很有用。traceroute的变种有更好的RTT统计功能(例如,[mtr][19])。 + +### 应用日志处理 ### + +在这个类别下,网络监测器把特定的服务器应用作为目标(例如,web服务器或者数据库服务器)。由服务器程序产生或消耗的网络流量通过它的日志被分析和监测。不向前面提到的网络层的监视器,这个类别的工具能够在用用层面分析和监控网络流量。 + +27. **[GoAccess][20]**:一个面向Apache和Nginx服务器流量的交互式查看器。基于获取到的日志,它能展示包括日访问量、最多请求、客户端操作系统、客户端位置、客户端浏览器等在内的多个实时的统计信息,并以滚动方式显示。 + +![](https://farm8.staticflickr.com/7518/16209185266_da6c5c56eb_c.jpg) + +28. **[mtop][21]**:一个面向MySQL/MariaDB服务器的命令行监视器,它可以将当前数据库服务器负载中代价最大的查询进行可视化。它在您优化MySQL服务器性能、调谐服务器参数时很有用。 + +![](https://farm8.staticflickr.com/7472/16047570248_bc996795f2_c.jpg) + +29. **[ngxtop][22]**:一个面向Nginx和Apache的流量监测工具,能够以类似top指令的界面可视化Web服务器的流量。它通过分析web服务器的查询日志文件并且收集某个目的地或请求的流量统计信息。 + +### Conclusion ### + +在这篇文章中,我展示了许多的命令行式监测工具,从最底层的包层面的监视器到最高层应用程序层面的网络监视器。知道那个工具做了什么是一回事,选择哪个工具来使用又是另外一回事。单一的一个工具不能作为您每天使用的通用的解决方案。一个好的系统管理员应该能够决定那个工具更适合当前的环境。希望这个列表对此有所帮助。 + +欢迎您通过回复来改进这个列表的内容! + +-------------------------------------------------------------------------------- + +via: http://xmodulo.com/useful-command-line-network-monitors-linux.html + +作者:[Dan Nanni][a] +译者:[wwy-hust](https://github.com/wwy-hust) +校对:[校对者ID](https://github.com/校对者ID) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 + +[a]:http://xmodulo.com/author/nanni +[1]:http://www.monkey.org/~dugsong/dsniff/ +[2]:http://xmodulo.com/monitor-http-traffic-command-line-linux.html +[3]:https://github.com/zorkian/mysql-sniffer +[4]:http://ngrep.sourceforge.net/ +[5]:http://lcamtuf.coredump.cx/p0f3/ +[6]:http://xmodulo.com/recommend/firewallbook +[7]:http://xmodulo.com/how-to-install-iftop-on-linux.html +[8]:https://excess.org/speedometer/ +[9]:http://xmodulo.com/monitor-troubleshoot-linux-server-sysdig.html +[10]:http://xmodulo.com/check-dns-propagation-linux.html +[11]:https://iperf.fr/ +[12]:http://www.netperf.org/netperf/ +[13]:http://xmodulo.com/useful-netcat-examples-linux.html +[14]:https://zmap.io/ +[15]:http://noping.cc/ +[16]:http://www.hping.org/ +[17]:http://fping.org/ +[18]:http://sprobe.cs.washington.edu/ +[19]:http://xmodulo.com/better-alternatives-basic-command-line-utilities.html#mtr_link +[20]:http://goaccess.io/ +[21]:http://mtop.sourceforge.net/ +[22]:http://xmodulo.com/monitor-nginx-web-server-command-line-real-time.html From d8fc58edf937ce84afa7e284a11bed16e9a9ead5 Mon Sep 17 00:00:00 2001 From: DongShuaike Date: Sun, 10 May 2015 22:13:08 +0800 Subject: [PATCH 13/18] Update 20150126 iptraf--A TCP or UDP Network Monitoring Utility.md --- .../20150126 iptraf--A TCP or UDP Network Monitoring Utility.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sources/tech/20150126 iptraf--A TCP or UDP Network Monitoring Utility.md b/sources/tech/20150126 iptraf--A TCP or UDP Network Monitoring Utility.md index 1d5d3cd0d9..01a9dc18f9 100644 --- a/sources/tech/20150126 iptraf--A TCP or UDP Network Monitoring Utility.md +++ b/sources/tech/20150126 iptraf--A TCP or UDP Network Monitoring Utility.md @@ -1,3 +1,5 @@ +[Trnslating by DongShuaike] + iptraf: A TCP/UDP Network Monitoring Utility ================================================================================ [iptraf][1] is an ncurses-based IP LAN monitor that generates various network statistics including TCP info, UDP counts, ICMP and OSPF information, Ethernet load info, node stats, IP checksum errors, and others. From f464725c8776afef3f85bf774fab5a7ffde1ff7c Mon Sep 17 00:00:00 2001 From: wxy Date: Sun, 10 May 2015 22:55:09 +0800 Subject: [PATCH 14/18] PUB:20150506 How to Securely Store Passwords and Api Keys Using Vault MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @wwy-hust 缈昏瘧鐨勫熀鏈笉閿欙紝涓嶈繃鏈変簺鑻辫涔犳儻鐨勫掕璇彞锛屽簲璇ユ牴鎹腑鏂囦範鎯拰鐞嗚В淇敼杩囨潵銆:>鍔犳补~ --- ...tore Passwords and Api Keys Using Vault.md | 164 ++++++++++++++++++ ...tore Passwords and Api Keys Using Vault.md | 161 ----------------- 2 files changed, 164 insertions(+), 161 deletions(-) create mode 100644 published/20150506 How to Securely Store Passwords and Api Keys Using Vault.md delete mode 100644 translated/tech/20150506 How to Securely Store Passwords and Api Keys Using Vault.md diff --git a/published/20150506 How to Securely Store Passwords and Api Keys Using Vault.md b/published/20150506 How to Securely Store Passwords and Api Keys Using Vault.md new file mode 100644 index 0000000000..e2073d0b18 --- /dev/null +++ b/published/20150506 How to Securely Store Passwords and Api Keys Using Vault.md @@ -0,0 +1,164 @@ +濡備綍浣跨敤Vault瀹夊叏鐨勫瓨鍌ㄥ瘑鐮佸拰API瀵嗛挜 +======================================================================= +Vault鏄敤鏉ュ畨鍏ㄧ殑鑾峰彇绉樺瘑淇℃伅鐨勫伐鍏凤紝瀹冨彲浠ヤ繚瀛樺瘑鐮併丄PI瀵嗛挜銆佽瘉涔︾瓑淇℃伅銆俈ault鎻愪緵浜嗕竴涓粺涓鐨勬帴鍙f潵璁块棶绉樺瘑淇℃伅锛屽叾鍏锋湁鍋ュ.鐨勮闂帶鍒舵満鍒跺拰涓板瘜鐨勪簨浠舵棩蹇椼 + +瀵瑰叧閿俊鎭殑鎺堟潈璁块棶鏄竴涓洶闅剧殑闂锛屽挨鍏舵槸褰撴湁璁稿鐢ㄦ埛瑙掕壊锛屽苟涓旂敤鎴疯姹備笉鍚岀殑鍏抽敭淇℃伅鏃讹紝渚嬪鐢ㄤ笉鍚屾潈闄愮櫥褰曟暟鎹簱鐨勭櫥褰曢厤缃紝鐢ㄤ簬澶栭儴鏈嶅姟鐨凙PI瀵嗛挜锛孲OA閫氫俊鐨勮瘉涔︾瓑銆傚綋淇濆瘑淇℃伅鐢变笉鍚岀殑骞冲彴杩涜绠$悊锛屽苟浣跨敤涓浜涜嚜瀹氫箟鐨勯厤缃椂锛屾儏鍐靛彉寰楁洿绯燂紝鍥犳锛屽畨鍏ㄧ殑瀛樺偍銆佺鐞嗗璁℃棩蹇楀嚑涔庢槸涓嶅彲鑳界殑銆備絾Vault涓鸿繖绉嶅鏉傛儏鍐垫彁渚涗簡涓涓В鍐虫柟妗堛 + +### 绐佸嚭鐗圭偣 ### + +**鏁版嵁鍔犲瘑**锛歏ault鑳藉鍦ㄤ笉瀛樺偍鏁版嵁鐨勬儏鍐典笅瀵规暟鎹繘琛屽姞瀵嗐佽В瀵嗐傚紑鍙戣呬滑渚垮彲浠ュ瓨鍌ㄥ姞瀵嗗悗鐨勬暟鎹屾棤闇寮鍙戣嚜宸辩殑鍔犲瘑鎶鏈紝Vault杩樺厑璁稿畨鍏ㄥ洟闃熻嚜瀹氫箟瀹夊叏鍙傛暟銆 + +**瀹夊叏瀵嗙爜瀛樺偍**锛歏ault鍦ㄥ皢绉樺瘑淇℃伅锛圓PI瀵嗛挜銆佸瘑鐮併佽瘉涔︼級瀛樺偍鍒版寔涔呭寲瀛樺偍涔嬪墠瀵规暟鎹繘琛屽姞瀵嗐傚洜姝わ紝濡傛灉鏈変汉鍋跺皵鎷垮埌浜嗗瓨鍌ㄧ殑鏁版嵁锛岃繖涔熸病鏈変换浣曟剰涔夛紝闄ら潪鍔犲瘑鍚庣殑淇℃伅鑳借瑙e瘑銆 + +**鍔ㄦ佸瘑鐮**锛歏ault鍙互闅忔椂涓篈WS銆丼QL鏁版嵁搴撶瓑绫讳技鐨勭郴缁熶骇鐢熷瘑鐮併傛瘮濡傦紝濡傛灉搴旂敤闇瑕佽闂瓵WS S3 妗讹紝瀹冨悜Vault璇锋眰AWS瀵嗛挜瀵癸紝Vault灏嗙粰鍑哄甫鏈夌鏈熺殑鎵闇绉樺瘑淇℃伅銆備竴鏃︾鐢ㄦ湡杩囨湡锛岃繖涓瀵嗕俊鎭氨涓嶅啀瀛樺偍銆 + +**绉熻祦鍜屾洿鏂**锛歏ault缁欏嚭鐨勭瀵嗕俊鎭甫鏈夌鏈燂紝涓鏃︾鐢ㄦ湡杩囨湡锛屽畠渚跨珛鍒绘敹鍥炵瀵嗕俊鎭紝濡傛灉搴旂敤浠嶉渶瑕佽绉樺瘑淇℃伅锛屽垯鍙互閫氳繃API鏇存柊绉熺敤鏈熴 + +**鎾ら攢**锛氬湪绉熺敤鏈熷埌鏈熶箣鍓嶏紝Vault鍙互鎾ら攢涓涓瀵嗕俊鎭垨鑰呬竴涓瀵嗕俊鎭爲銆 + +### 瀹夎Vault ### + +鏈変袱绉嶆柟寮忔潵瀹夎浣跨敤Vault銆 + +**1. 棰勭紪璇戠殑Vault浜岃繘鍒** 鑳界敤浜庢墍鏈夌殑Linux鍙戣鐗堬紝涓嬭浇鍦板潃濡備笅锛屼笅杞戒箣鍚庯紝瑙e帇骞跺皢瀹冩斁鍦ㄧ郴缁烶ATH璺緞涓嬶紝浠ユ柟渚胯皟鐢ㄣ + +- [涓嬭浇棰勭紪璇戠殑浜岃繘鍒 Vault (32-bit)][1] +- [涓嬭浇棰勭紪璇戠殑浜岃繘鍒 Vault (64-bit)][2] +- [涓嬭浇棰勭紪璇戠殑浜岃繘鍒 Vault (ARM)][3] + +![wget binary](http://blog.linoxide.com/wp-content/uploads/2015/04/wget-binary.png) + +*涓嬭浇鐩稿簲鐨勯缂栬瘧鐨刅ault浜岃繘鍒剁増鏈* + +![vault](http://blog.linoxide.com/wp-content/uploads/2015/04/unzip.png) + +*瑙e帇涓嬭浇鍒版湰鍦扮殑浜岃繘鍒剁増鏈* + +绁濊春浣狅紒鎮ㄧ幇鍦ㄥ彲浠ヤ娇鐢╒ault浜嗐 + +![](http://blog.linoxide.com/wp-content/uploads/2015/04/vault.png) + +**2. 浠庢簮浠g爜缂栬瘧**鏄彟涓绉嶅湪绯荤粺涓畨瑁匳ault鐨勬柟寮忋傚湪瀹夎Vault涔嬪墠闇瑕佸畨瑁匞O鍜孏IT銆 + +鍦 **Redhat绯荤粺涓畨瑁匞O** 浣跨敤涓嬮潰鐨勬寚浠わ細 + + sudo yum install go + +鍦 **Debin绯荤粺涓畨瑁匞O** 浣跨敤涓嬮潰鐨勬寚浠わ細 + + sudo apt-get install golang + +鎴栬 + + sudo add-apt-repository ppa:gophers/go + + sudo apt-get update + + sudo apt-get install golang-stable + +鍦 **Redhat绯荤粺涓畨瑁匞IT** 浣跨敤涓嬮潰鐨勫懡浠わ細 + + sudo yum install git + +鍦 **Debian绯荤粺涓畨瑁匞IT** 浣跨敤涓嬮潰鐨勫懡浠わ細 + + sudo apt-get install git + +涓鏃O鍜孏IT閮藉凡琚畨瑁呭ソ锛屾垜浠究鍙互寮濮嬩粠婧愮爜缂栬瘧瀹夎Vault銆 + +> 灏嗕笅鍒楃殑Vault浠撳簱鎷疯礉鑷矴OPATH + + https://github.com/hashicorp/vault + +> 娴嬭瘯涓嬮潰鐨勬枃浠舵槸鍚﹀瓨鍦紝濡傛灉瀹冧笉瀛樺湪锛岄偅涔圴ault娌℃湁琚厠闅嗗埌鍚堥傜殑璺緞銆 + + $GOPATH/src/github.com/hashicorp/vault/main.go + +> 鎵ц涓嬮潰鐨勬寚浠ゆ潵缂栬瘧Vault锛屽苟灏嗕簩杩涘埗鏂囦欢鏀惧埌绯荤粺bin鐩綍涓嬨 + + make dev + +![path](http://blog.linoxide.com/wp-content/uploads/2015/04/installation4.png) + +### 涓浠絍ault鍏ラ棬鏁欑▼ ### + +鎴戜滑宸茬粡缂栧埗浜嗕竴浠絍ault鐨勫畼鏂逛氦浜掑紡鏁欑▼锛屽苟甯︽湁瀹冨湪SSH涓婄殑杈撳嚭淇℃伅銆 + +**姒傝堪** + +杩欎唤鏁欑▼鍖呮嫭涓嬪垪姝ラ锛 + +- 鍒濆鍖栧苟鍚皝鎮ㄧ殑Vault +- 鍦╒ault涓鎮ㄧ殑璇锋眰鎺堟潈 +- 璇诲啓绉樺瘑淇℃伅 +- 瀵嗗皝鎮ㄧ殑Vault + +#### **鍒濆鍖栨偍鐨刅ault** + +棣栧厛锛屾垜浠渶瑕佷负鎮ㄥ垵濮嬪寲涓涓猇ault鐨勫伐浣滃疄渚嬨傚湪鍒濆鍖栬繃绋嬩腑锛屾偍鍙互閰嶇疆Vault鐨勫瘑灏佽涓恒傜畝鍗曡捣瑙侊紝鐜板湪浣跨敤涓涓惎灏佸瘑閽ユ潵鍒濆鍖朧ault锛屽懡浠ゅ涓嬶細 + + vault init -key-shares=1 -key-threshold=1 + +鎮ㄤ細娉ㄦ剰鍒癡ault鍦ㄨ繖閲岃緭鍑轰簡鍑犱釜瀵嗛挜銆備笉瑕佹竻闄ゆ偍鐨勭粓绔紝杩欎簺瀵嗛挜鍦ㄥ悗闈㈢殑姝ラ涓細浣跨敤鍒般 + +![Initializing SSH](http://blog.linoxide.com/wp-content/uploads/2015/04/Initializing-SSH.png) + +#### **鍚皝鎮ㄧ殑Vault** + +褰撲竴涓猇ault鏈嶅姟鍣ㄥ惎鍔ㄦ椂锛屽畠鏄瘑灏佺殑鐘舵併傚湪杩欑鐘舵佷笅锛孷ault琚厤缃负鐭ラ亾鐗╃悊瀛樺偍鍦ㄥ摢閲屽強濡備綍瀛樺彇瀹冿紝浣嗕笉鐭ラ亾濡備綍瀵瑰叾杩涜瑙e瘑銆俈ault浣跨敤鍔犲瘑瀵嗛挜鏉ュ姞瀵嗘暟鎹傝繖涓瘑閽ョ敱"涓诲瘑閽"鍔犲瘑锛屼富瀵嗛挜涓嶄繚瀛樸傝В瀵嗕富瀵嗛挜闇瑕佸叆鍙e瘑閽ャ傚湪杩欎釜渚嬪瓙涓紝鎴戜滑浣跨敤浜嗕竴涓叆鍙e瘑閽ユ潵瑙e瘑杩欎釜涓诲瘑閽ャ + + vault unseal + +![Unsealing SSH](http://blog.linoxide.com/wp-content/uploads/2015/04/Unsealing-SSH.png) + +####**涓烘偍鐨勮姹傛巿鏉** + +鍦ㄦ墽琛屼换浣曟搷浣滀箣鍓嶏紝杩炴帴鐨勫鎴风蹇呴』鏄鎺堟潈鐨勩傛巿鏉冪殑杩囩▼鏄楠屼竴涓汉鎴栬呮満鍣ㄦ槸鍚﹀鍏舵墍鐢虫槑鐨勯偅鏍峰叿鏈夋纭殑韬唤銆傝繖涓韩浠界敤鍦ㄥ悜Vault鍙戦佽姹傛椂銆備负绠鍗曡捣瑙侊紝鎴戜滑灏嗕娇鐢ㄥ湪姝ラ2涓敓鎴愮殑root浠ょ墝锛岃繖涓俊鎭彲浠ュ洖婊氱粓绔睆骞曠湅鍒般備娇鐢ㄤ竴涓鎴风浠ょ墝杩涜鎺堟潈锛 + + vault auth + +![Authorize SSH](http://blog.linoxide.com/wp-content/uploads/2015/04/Authorize-SSH.png) + +####**璇诲啓淇濆瘑淇℃伅** + +鐜板湪Vault宸茬粡琚缃Ε褰擄紝鎴戜滑鍙互寮濮嬭鍐欓粯璁ゆ寕杞界殑绉樺瘑鍚庣閲岄潰鐨勭瀵嗕俊鎭簡銆傚啓鍦╒ault涓殑绉樺瘑淇℃伅棣栧厛琚姞瀵嗭紝鐒跺悗琚啓鍏ュ悗绔瓨鍌ㄤ腑銆傚悗绔瓨鍌ㄦ満鍒剁粷涓嶄細鐪嬪埌鏈姞瀵嗙殑淇℃伅锛屽苟涓斾篃娌℃湁鍦╒ault涔嬪瑙e瘑鐨勯渶瑕併 + + vault write secret/hello value=world + +褰撶劧锛屾偍鎺ヤ笅鏉ヤ究鍙互璇昏繖涓繚瀵嗕俊鎭簡锛 + + vault read secret/hello + +![RW_SSH](http://blog.linoxide.com/wp-content/uploads/2015/04/RW_SSH.png) + +####**瀵嗗皝鎮ㄧ殑Vault** + +杩樻湁涓涓敤I鏉ュ瘑灏乂ault鐨凙PI銆傚畠灏嗕涪鎺夌幇鍦ㄧ殑鍔犲瘑瀵嗛挜骞堕渶瑕佸彟涓涓惎灏佽繃绋嬫潵鎭㈠瀹冦傚瘑灏佷粎闇瑕佷竴涓嫢鏈塺oot鏉冮檺鐨勬搷浣滆呫傝繖鏄竴绉嶇綍瑙佺殑"鎵撶牬鐜荤拑杩囩▼"鐨勫吀鍨嬮儴鍒嗐 + +杩欑鏂瑰紡涓紝濡傛灉妫娴嬪埌涓涓叆渚碉紝Vault鏁版嵁灏嗕細绔嬪埢琚攣浣忥紝浠ヤ究鏈灏忓寲鎹熷け銆傚鏋滀笉鑳借闂埌涓诲瘑閽ョ鐗囩殑璇濓紝灏变笉鑳藉啀娆¤幏鍙栨暟鎹 + + vault seal + +![Seal Vault SSH](http://blog.linoxide.com/wp-content/uploads/2015/04/Seal-Vault-SSH.png) + +杩欎究鏄叆闂ㄦ暀绋嬬殑缁撳熬銆 + +### 鎬荤粨 ### + +Vault鏄竴涓潪甯告湁鐢ㄧ殑搴旂敤锛屽畠鎻愪緵浜嗕竴涓彲闈犱笖瀹夊叏鐨勫瓨鍌ㄥ叧閿俊鎭殑鏂瑰紡銆傚彟澶栵紝瀹冨湪瀛樺偍鍓嶅姞瀵嗗叧閿俊鎭佸璁℃棩蹇楃淮鎶ゃ佷互绉熸湡鐨勬柟寮忚幏鍙栫瀵嗕俊鎭紝涓斾竴鏃︾鐢ㄦ湡杩囨湡瀹冨皢绔嬪埢鏀跺洖绉樺瘑淇℃伅銆俈ault鏄钩鍙版棤鍏崇殑锛屽苟涓斿彲浠ュ厤璐逛笅杞藉拰瀹夎銆傝鍙戞帢Vault鐨勬洿澶氫俊鎭紝璇疯闂叾[瀹樻柟缃戠珯][4]銆 + +-------------------------------------------------------------------------------- + +via: http://linoxide.com/how-tos/secure-secret-store-vault/ + +浣滆咃細[Aun Raza][a] +璇戣咃細[wwy-hust](https://github.com/wwy-hust) +鏍″锛歔wxy](https://github.com/wxy) + +鏈枃鐢 [LCTT](https://github.com/LCTT/TranslateProject) 鍘熷垱缈昏瘧锛孾Linux涓浗](https://linux.cn/) 鑽h獕鎺ㄥ嚭 + +[a]:http://linoxide.com/author/arunrz/ +[1]:https://dl.bintray.com/mitchellh/vault/vault_0.1.0_linux_386.zip +[2]:https://dl.bintray.com/mitchellh/vault/vault_0.1.0_linux_amd64.zip +[3]:https://dl.bintray.com/mitchellh/vault/vault_0.1.0_linux_arm.zip +[4]:https://vaultproject.io/ diff --git a/translated/tech/20150506 How to Securely Store Passwords and Api Keys Using Vault.md b/translated/tech/20150506 How to Securely Store Passwords and Api Keys Using Vault.md deleted file mode 100644 index e9e54ac43d..0000000000 --- a/translated/tech/20150506 How to Securely Store Passwords and Api Keys Using Vault.md +++ /dev/null @@ -1,161 +0,0 @@ -濡備綍浣跨敤Vault瀹夊叏鐨勫瓨鍌ㄥ瘑鐮佸拰API瀵嗛挜 -======================================================================= -Vault鏄敤鏉ュ畨鍏ㄧ殑鑾峰彇绉樺瘑淇℃伅鐨勫伐鍏枫備粬鍙互淇濆瓨瀵嗙爜銆丄PI瀵嗛挜銆佽瘉涔︾瓑淇℃伅銆俈ault閫氳繃寮鸿闂帶鍒舵満鍒跺拰楂樻墿灞曟х殑浜嬩欢鏃ュ織鎻愪緵浜嗕竴涓粺涓鐨勬帴鍙f潵璁块棶绉樺瘑淇℃伅銆 - -瀵瑰叧閿俊鎭殑鎺堟潈璁块棶鏄竴涓洶闅剧殑闂锛屽挨鍏舵槸褰撴湁璁稿鐢ㄦ埛瑙掕壊鍜岀敤鎴疯姹備笉鍚岀殑鍏抽敭淇℃伅锛屼緥濡傜敤涓嶅悓鏉冮檺鐧诲綍鏁版嵁搴撶殑缁嗚妭锛屽澶栨湇鍔$殑API瀵嗛挜锛岄潰鍚戞湇鍔℃灦鏋勯氫俊鐨勮瘉涔︾瓑銆傚綋淇濆瘑淇℃伅鐢变笉鍚岀殑骞冲彴杩涜绠$悊锛屽苟浣跨敤涓浜涜嚜瀹氫箟鐨勯厤缃椂锛屾儏鍐靛彉寰楁洿绯燂紝鍥犳锛屽畨鍏ㄧ殑瀛樺偍銆佺鐞嗗璁℃棩蹇楀嚑涔庢槸涓嶅彲鑳界殑銆備絾Vault涓鸿繖绉嶅鏉傛儏鍐垫彁渚涗簡涓涓В鍐虫柟妗堛 - -### 绐佸嚭鐗圭偣 ### - -鏁版嵁鍔犲瘑锛歏ault鑳藉鍦ㄤ笉瀛樺偍鏁版嵁鐨勬儏鍐典笅瀵规暟鎹繘琛屽姞瀵嗐佽В瀵嗐傚紑鍙戣呬滑渚垮彲浠ュ瓨鍌ㄥ姞瀵嗗悗鐨勬暟鎹屾棤闇寮鍙戣嚜宸辩殑鍔犲瘑鎶鏈紝Vault杩樺厑璁稿畨鍏ㄥ洟闃熻嚜瀹氫箟瀹夊叏鍙傛暟銆 - -**瀹夊叏瀵嗙爜瀛樺偍**锛歏ault鍦ㄥ皢绉樺瘑淇℃伅锛圓PI瀵嗛挜銆佸瘑鐮併佽瘉涔︼級瀛樺偍鍒版寔涔呭寲瀛樺偍涔嬪墠瀵规暟鎹繘琛屽姞瀵嗐傚洜姝わ紝濡傛灉鏈変汉鍋跺皵鎷垮埌浜嗚幏鍙栧瓨鍌ㄧ殑鏁版嵁鐨勬潈闄愶紝杩欎篃娌℃湁浠讳綍鎰忎箟锛岄櫎闈炲姞瀵嗗悗鐨勪俊鎭瑙e瘑銆 - -**鍔ㄦ佸瘑鐮**锛歏ault涓篈WS銆丼QL鏁版嵁搴撶被浼肩殑绯荤粺鎸夐渶浜х敓瀵嗙爜銆傚鏋滃簲鐢ㄩ渶瑕佽幏寰桝WS S3鐨勬《锛屾瘮濡傦紝瀹冨悜Vault璇锋眰AWS瀵嗛挜瀵癸紝Vault灏嗘巿浜堥渶瑕佺殑绉樺瘑淇℃伅涓娈电鐢ㄦ湡鏃堕棿銆備竴鏃︾鐢ㄦ湡杩囨湡锛岃繖涓瀵嗕俊鎭皢鍙樺緱涓嶅彲鐢ㄣ - -**绉熻祦鍜屾洿鏂**锛歏ault浠ョ鐢ㄦ湡涓洪檺鍒舵巿浜堢瀵嗕俊鎭紝涓鏃︾鐢ㄦ湡杩囨湡锛屽畠渚跨珛鍒绘敹鍥炰繚瀵嗕俊鎭紝濡傛灉搴旂敤浠嶉渶瑕佷繚瀵嗕俊鎭紝鍒欏彲浠ラ氳繃API鏇存柊绉熺敤鏈熴 - -**鎾ら攢**锛氬湪绉熺敤鏈熷埌鏈熶箣鍓嶏紝Vault鍙互鎾ら攢涓涓瀵嗕俊鎭垨鑰呬竴涓瀵嗕俊鎭爲銆 - -### 瀹夎Vault ### - -鏈変袱绉嶆柟寮忔潵瀹夎浣跨敤Vault銆 - -**1. 棰勭紪璇戠殑Vault浜岃繘鍒** 鑳界敤浜庢墍鏈夌殑Linux鍙戣鐗堬紝涓嬭浇鍦板潃濡備笅锛屼竴鏃︿笅杞藉畬鎴愶紝瑙e帇骞跺皢瀹冩斁鍦ㄧ郴缁烶ATH璺緞涓嬶紝浠ユ柟渚胯皟鐢ㄣ - -- [Download Precompiled Vault Binary (32-bit)][1] -- [Download Precompiled Vault Binary (64-bit)][2] -- [Download Precompiled Vault Binary (ARM)][3] - -涓嬭浇鐩稿簲鐨勯缂栬瘧鐨刅ault浜岃繘鍒剁増鏈 - -![wget binary](http://blog.linoxide.com/wp-content/uploads/2015/04/wget-binary.png) - -瑙e帇涓嬭浇鍒版湰鍦扮殑浜岃繘鍒剁増鏈 - -![vault](http://blog.linoxide.com/wp-content/uploads/2015/04/unzip.png) - -绁濊春锛佹偍鐜板湪鍙互浣跨敤Vault浜嗐 - -![](http://blog.linoxide.com/wp-content/uploads/2015/04/vault.png) - -**2. 浠庢簮浠g爜缂栬瘧** 鏄彟涓绉嶅湪绯荤粺涓畨瑁匳ault鐨勬柟寮忋傚湪瀹夎Vault涔嬪墠闇瑕佸畨瑁匞O鍜孏IT銆 - -鍦 **Redhat绯荤粺涓畨瑁匞O** 浣跨敤涓嬮潰鐨勬寚浠ゃ - - sudo yum install go - -鍦 **Debin绯荤粺涓畨瑁匞O** 浣跨敤涓嬮潰鐨勬寚浠ゃ - - sudo apt-get install golang - -鎴栬 - - sudo add-apt-repository ppa:gophers/go - - sudo apt-get update - - sudo apt-get install golang-stable - -鍦 **Redhat绯荤粺涓畨瑁匞IT** 浣跨敤涓嬮潰鐨勫懡浠ゃ - - sudo yum install git - -鍦 **Debian绯荤粺涓畨瑁匞IT** 浣跨敤涓嬮潰鐨勫懡浠ゃ - - sudo apt-get install git - -涓鏃O鍜孏IT閮藉凡琚畨瑁呭ソ锛屾垜浠究鍙互寮濮嬩粠婧愮爜缂栬瘧瀹夎Vault銆 - -> 灏嗕笅鍒楃殑Vault浠撳簱鎷疯礉鑷矴OPATH - - https://github.com/hashicorp/vault - -> 娴嬭瘯涓嬮潰鐨勬枃浠舵槸鍚﹀瓨鍦紝濡傛灉瀹冧笉瀛樺湪锛岄偅涔圴ault娌℃湁琚厠闅嗗埌鍚堥傜殑璺緞銆 - - $GOPATH/src/github.com/hashicorp/vault/main.go - -> 鎵ц涓嬮潰鐨勬寚浠ゆ潵缂栬瘧Vault锛屽苟灏嗕簩杩涘埗鏂囦欢鏀惧埌绯荤粺bin鐩綍涓嬨 - - make dev - -![path](http://blog.linoxide.com/wp-content/uploads/2015/04/installation4.png) - -### 涓浠絍ault鍏ラ棬鏁欑▼ ### - -鎴戜滑宸茬粡缂栬瘧浜哣ault鐨勫畼鏂逛氦浜掑紡鏁欑▼锛屽苟灏嗗畠杈撳嚭鍒癝SH銆 - -**姒傝堪** - -杩欎唤鏁欑▼鍖呮嫭涓嬪垪姝ラ锛 - -- 鍒濆鍖栵紝寮鍚偍鐨刅ault -- 鍦╒ault涓鎮ㄧ殑璇锋眰鎺堟潈 -- 璇诲啓绉樺瘑淇℃伅 -- 瀵嗗皝鎮ㄧ殑Vault - -**鍒濆鍖栨偍鐨刅ault** - -棣栧厛锛屾垜浠渶瑕佷负鎮ㄥ垵濮嬪寲涓涓猇ault鐨勫伐浣滃疄渚嬨傚湪鍒濆鍖栬繃绋嬩腑锛屾偍鍙互閰嶇疆Vault鐨勫瘑灏佽涓恒傜畝鍗曡捣瑙侊紝鐜板湪浣跨敤涓涓潪瀵嗗皝瀵嗛挜鏉ュ垵濮嬪寲Vault銆 - - vault init -key-shares=1 -key-threshold=1 - -鎮ㄤ細娉ㄦ剰鍒癡ault鍦ㄨ繖閲屾墦鍗板嚭浜嗚澶氱殑瀵嗛挜銆備笉瑕佹竻闄ゆ偍鐨勭粓绔紝杩欎簺瀵嗛挜鍦ㄥ悗闈㈢殑姝ラ涓細浣跨敤鍒般 - -![Initializing SSH](http://blog.linoxide.com/wp-content/uploads/2015/04/Initializing-SSH.png) - -**寮鍚偍鐨刅ault** - -褰撲竴涓猇ault鏈嶅姟鍣ㄥ惎鍔ㄦ椂锛屽畠鏄瘑灏佺殑鐘舵併傚湪杩欑鐘舵佷笅锛孷ault琚厤缃负鐭ラ亾鍦ㄥ摢閲屽拰濡備綍瀛樺彇鐗╃悊瀛樺偍锛屼絾涓嶇煡閬撳浣曞鍏惰繘琛岃В瀵嗐俈ault浣跨敤鍔犲瘑瀵嗛挜鏉ュ姞瀵嗘暟鎹傝繖涓瘑閽ョ敱"涓诲瘑閽"鍔犲瘑锛屼富瀵嗛挜涓嶄繚瀛樸傝В瀵嗕富瀵嗛挜闇瑕佷竴涓鐗囩殑闃堝笺傚湪杩欎釜渚嬪瓙涓紝鎴戜滑浣跨敤涓涓鐗囨潵瑙e瘑杩欎釜涓诲瘑閽ャ - - vault unseal - -![Unsealing SSH](http://blog.linoxide.com/wp-content/uploads/2015/04/Unsealing-SSH.png) - -**涓烘偍鐨勮姹傛巿鏉** - -鍦ㄦ墽琛屼换浣曟搷浣滀箣鍓嶏紝杩炴帴鐨勫鎴风搴旇琚巿鏉冦傛巿鏉冪殑杩囩▼鏄楠屼竴涓汉鎴栬呮満鍣ㄦ槸涓嶆槸鍍忎粬浠弿杩扮殑閭f牱锛岃璧嬩簣浜嗚韩浠姐傝繖涓韩浠藉湪鍚慥ault鍙戦佽姹傛椂琚娇鐢ㄣ備负绠鍗曡捣瑙侊紝鎴戜滑灏嗕娇鐢ㄥ湪姝ラ2涓敓鎴愮殑root浠ょ墝銆傝繖涓緭鍑轰細浠ユ粴鍔ㄦā寮忓嚭鐜般備娇鐢ㄤ竴涓鎴风浠ょ墝杩涜鎺堟潈锛 - - vault auth - -![Authorize SSH](http://blog.linoxide.com/wp-content/uploads/2015/04/Authorize-SSH.png) - -**璇诲啓淇濆瘑淇℃伅** - -鐜板湪Vault宸茬粡琚缃Ε褰擄紝鎴戜滑鍙互寮濮嬩娇鐢ㄩ粯璁ょ殑瀵嗙爜鍚庣璇诲啓绉樺瘑淇℃伅浜嗐傚啓鍦╒ault涓殑绉樺瘑淇℃伅棣栧厛琚姞瀵嗭紝鐒跺悗琚啓鍏ュ悗绔殑瀛樺偍銆傚悗绔瓨鍌ㄦ満鍒朵笉浼氭煡鐪嬫湭鍔犲瘑鐨勫硷紝骞朵笖娌℃湁鏃犻渶Vault鍗冲彲瑙e瘑鐨勬柟娉曘 - - vault write secret/hello value=world - -褰撶劧锛屾偍鎺ヤ笅鏉ヤ究鍙互璇昏繖涓繚瀵嗕俊鎭簡锛 - - vault read secret/hello - -![RW_SSH](http://blog.linoxide.com/wp-content/uploads/2015/04/RW_SSH.png) - -**瀵嗗皝鎮ㄧ殑Vault** - -鏈変竴涓狝PI鏉ュ瘑灏乂ault銆傚畠灏嗕涪鎺夊姞瀵嗗瘑閽ュ苟闇瑕佸叾浠栨湭瀵嗗皝鐨勮繃绋嬫潵鎭㈠瀹冦傚瘑灏佷粎闇瑕佷竴涓嫢鏈塺oot鏉冮檺鐨勬搷浣滆呫傝繖閫氬父鏄竴绉嶇綍瑙佺殑"鎵撶牬鐜荤拑杩囩▼"鐨勪竴閮ㄥ垎銆傝繖绉嶆柟寮忎腑锛屽鏋滄湁涓涓娴嬪埌鐨勫叆渚碉紝Vault鏁版嵁灏嗕細绔嬪埢琚攣浣忥紝浠ヤ究鏈灏忓寲鎹熷け銆傚鏋滄病鏈夎幏鍙栧埌涓诲瘑閽ョ鐗囷紝鏁版嵁涓嶄細琚啀娆¤幏鍙栥 - - vault seal - -![Seal Vault SSH](http://blog.linoxide.com/wp-content/uploads/2015/04/Seal-Vault-SSH.png) - -杩欎究鏄叆闂ㄦ暀绋嬬殑缁撳熬銆 - -### 鎬荤粨 ### - -Vault鏄竴涓潪甯告湁鐢ㄧ殑搴旂敤锛屽畠鎻愪緵浜嗕竴涓彲闈犱笖瀹夊叏鐨勫瓨鍌ㄥ叧閿俊鎭殑鏂瑰紡銆傚彟澶栵紝瀹冨湪瀛樺偍鍓嶅姞瀵嗗叧閿俊鎭紝缁存姢浠栫殑瀹¤鏃ュ織锛屽苟浠ョ鐢ㄦ湡鐨勬柟寮忚幏鍙栫瀵嗕俊鎭紝涓斾竴鏃︾鐢ㄦ湡杩囨湡锛屽畠灏嗙珛鍒绘敹鍥炵瀵嗕俊鎭俈ault鏄钩鍙扮嫭绔嬬殑锛屽苟涓斿彲浠ュ厤璐逛笅杞藉拰瀹夎銆傝鍙戞帢Vault鐨勬洿澶氫俊鎭紝璇疯闂畼鏂圭綉绔欍 - --------------------------------------------------------------------------------- - -via: http://linoxide.com/how-tos/secure-secret-store-vault/ - -浣滆咃細[Aun Raza][a] -璇戣咃細[wwy-hust](https://github.com/wwy-hust) -鏍″锛歔鏍″鑰匢D](https://github.com/鏍″鑰匢D) - -鏈枃鐢 [LCTT](https://github.com/LCTT/TranslateProject) 鍘熷垱缈昏瘧锛孾Linux涓浗](https://linux.cn/) 鑽h獕鎺ㄥ嚭 - -[a]:http://linoxide.com/author/arunrz/ -[1]:https://dl.bintray.com/mitchellh/vault/vault_0.1.0_linux_386.zip -[2]:https://dl.bintray.com/mitchellh/vault/vault_0.1.0_linux_amd64.zip -[3]:https://dl.bintray.com/mitchellh/vault/vault_0.1.0_linux_arm.zip From 0528ca534d5df96518e18fce7899e464f96649f8 Mon Sep 17 00:00:00 2001 From: wwy Date: Sun, 10 May 2015 23:03:45 +0800 Subject: [PATCH 15/18] finish review, need merge into LCTT master --- ... command-line network monitors on Linux.md | 56 +++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/translated/tech/20150112 What are useful command-line network monitors on Linux.md b/translated/tech/20150112 What are useful command-line network monitors on Linux.md index 72beed7eb1..37eea5a91b 100644 --- a/translated/tech/20150112 What are useful command-line network monitors on Linux.md +++ b/translated/tech/20150112 What are useful command-line network monitors on Linux.md @@ -1,16 +1,16 @@ -什么是Linux上实用的命令行网络监视器 +什么是Linux上实用的命令行式网络监视工具 =============================================================================== -对任何规模的业务来说,网络监视器都是一个重要的功能。网络监视器的功能可能千差万别。比如,监视活动可以是长期网络供应的一部分,安全保护,性能或者排错,网络使用统计等。由于它的目标不同,网络监视器使用很多不同的方式来完成任务。比如使用包层面的探测,收集流层面的统计数据,向网络中注入探测的流量,分析服务器日志等。 +对任何规模的业务来说,网络监视器都是一个重要的功能。网络监视的目标可能千差万别。比如,监视活动的目标可以是保证长期的网络供应、安全保护、对性能进行排查、网络使用统计等。由于它的目标不同,网络监视器使用很多不同的方式来完成任务。比如使用包层面的嗅探,使用流层面的统计数据,向网络中注入探测的流量,分析服务器日志等。 -尽管有许多专用的网络监视系统可以365天24小时监视,但您依旧可以在特定的情况下使用命令行式的网络监视器,某些命令行式的网络监视器在某方面很有威力。如果您是系统管理员,那您就应该有亲身使用一些知名的命令行式网络监视器的实践经历。这里有一份**Linux上流行且实用的网络监视器**列表。 +尽管有许多专用的网络监视系统可以365天24小时监视,但您依旧可以在特定的情况下使用命令行式的网络监视器,某些命令行式的网络监视器在某方面很有用。如果您是系统管理员,那您就应该有亲身使用一些知名的命令行式网络监视器的经历。这里有一份**Linux上流行且实用的网络监视器**列表。 ### 包层面的嗅探器 ### -在这个类别下,监视器工具在链路上捕捉独立的包,分析它们的内容,展示解码后的内容或者包层面的统计数据。这些工具在最低的层面对网络进行监视、管理,同样的也能进行最细粒度的监视,代价是部分网络I/O和分析的过程。 +在这个类别下,监视工具在链路上捕捉独立的包,分析它们的内容,展示解码后的内容或者包层面的统计数据。这些工具在最底层对网络进行监视、管理,同样的也能进行最细粒度的监视,其代价是部分网络I/O和分析的过程。 -1. **dhcpdump**:一个命令行式的DHCP流量嗅探工具,捕捉DHCP的请求/回复通信,以用户友好的方式显示解码的DHCP协议消息。这是一款排查DHCP相关故障的实用工具。 +1. **dhcpdump**:一个命令行式的DHCP流量嗅探工具,捕捉DHCP的请求/回复流量,并以用户友好的方式显示解码的DHCP协议消息。这是一款排查DHCP相关故障的实用工具。 -2. **[dsniff][1]**:一个基于命令行的嗅探工具的集合,拥有欺骗和劫持功能,被设计用于网络审计和渗透测试。它可以嗅探多种不同的信息,比如密码、NSF流量、email消息、网络地址等。 +2. **[dsniff][1]**:一个基于命令行的嗅探工具集合,拥有欺骗和劫持功能,被设计用于网络审查和渗透测试。它可以嗅探多种信息,比如密码、NSF流量、email消息、网络地址等。 3. **[httpry][2]**:一个HTTP报文嗅探器,用于捕获、解码HTTP请求和回复报文,并以用户友好的方式显示这些信息。 @@ -20,57 +20,57 @@ 5. **[mysql-sniffer][3]**:一个用于抓取、解码MySQL请求相关的数据包的工具。它以可读的方式显示最频繁或全部的请求。 -6. **[ngrep][4]**:在网络报文中执行grep。它能实时抓取报文,并使用正则表达式或十六进制表达式的方式匹配报文。它是一个可以对异常流量进行检测、存储或者对实时流中特别模式报文进行抓取的实用工具。 +6. **[ngrep][4]**:在网络报文中执行grep。它能实时抓取报文,并用正则表达式或十六进制表达式的方式匹配报文。它是一个可以对异常流量进行检测、存储或者对实时流中特定模式报文进行抓取的实用工具。 -7. **[p0f][5]**:一个被动的基于包嗅探的指纹采集工具,可以可靠的识别操作系统、NAT或者代理设置、网络链路类型以及许多其他与活动的TCP连接相关的属性。 +7. **[p0f][5]**:一个被动的基于包嗅探的指纹采集工具,可以可靠地识别操作系统、NAT或者代理设置、网络链路类型以及许多其他与活动的TCP连接相关的属性。 -8. **pktstat**:一个命令行式的工具,通过分析报文,显示实时的连接带宽使用情况以及相关的协议(例如,HTTP GET/POST、FTP、X11)的描述信息。 +8. **pktstat**:一个命令行式的工具,通过实时分析报文,显示连接带宽使用情况以及相关的协议(例如,HTTP GET/POST、FTP、X11)等描述信息。 ![](https://farm8.staticflickr.com/7477/16048970999_be60f74952_b.jpg 9. **Snort**:一个入侵检测和预防工具,通过规则驱动的协议分析和内容匹配,来检测/预防活跃流量中各种各样的后门、僵尸网络、网络钓鱼、间谍软件攻击。 -10. **tcpdump**:一个命令行的嗅探工具,可以基于过滤表达式抓取网络中的报文,分析报文,并且在包层面输出报文内容。他在许多网络相关的错误排查、网络程序debug、或[安全][6]监测方面应用广泛。 +10. **tcpdump**:一个命令行的嗅探工具,可以基于过滤表达式抓取网络中的报文,分析报文,并且在包层面输出报文内容以便于包层面的分析。他在许多网络相关的错误排查、网络程序debug、或[安全][6]监测方面应用广泛。 11. **tshark**:一个与Wireshark窗口程序一起使用的命令行式的嗅探工具。他能捕捉、解码网络上的实时报文,并能以用户友好的方式显示其内容。 ### 流/进程/接口层面的监视 ### -在这个分类中,网络监视器通过把流量分为流、相应的进程或接口来收集每个流、每个进程、每个接口的统计数据。其信息的来源可以是libpcap抓包库或者sysfs内核虚拟文件系统。这些工具的监视成本很低,但是缺乏包层面的检查能力。 +在这个分类中,网络监视器通过把流量分为流、进程或接口来收集每个流、每个进程、每个接口的统计数据。其信息的来源可以是libpcap抓包库或者sysfs内核虚拟文件系统。这些工具的监视成本很低,但是缺乏包层面的检视能力。 12. **bmon**:一个基于命令行的带宽监测工具,可以显示各种接口相关的信息,不但包括接收/发送的总值/平均值统计数据,而且拥有历史带宽使用视图。 ![](https://farm9.staticflickr.com/8580/16234265932_87f20c5d17_b.jpg) -13. **[iftop][7]**:一个带宽使用监测工具,可以实时显示某个连接的带宽使用情况。它对所有带宽使用情况排序并基于ncurses的接口来进行可视化。他可以方便的监视那个连接使用了最多的带宽。 +13. **[iftop][7]**:一个带宽使用监测工具,可以实时显示某个网络连接的带宽使用情况。它对所有带宽使用情况排序并通过ncurses的接口来进行可视化。他可以方便的监视哪个连接消耗了最多的带宽。 14. **nethogs**:一个进程监视工具,提供进程相关的实时的上行/下行带宽使用信息,并基于ncurses显示。它对检测占用大量带宽的进程很有用。 -15. **netstat**:一个显示诸如TCP/UDP的网络堆栈、网络接口发送/接收、路由表、协议/套接字的统计信息和属性的命令行工具。当您诊断与网络堆栈相关的性能、资源使用时它很有用。 +15. **netstat**:一个显示许多TCP/UDP的网络堆栈统计信息的工具。诸如网络接口发送/接收、路由表、协议/套接字的统计信息和属性。当您诊断与网络堆栈相关的性能、资源使用时它很有用。 -16. **[speedometer][8]**:一个可视化某个接口历史发送/接收带宽使用趋势,并且基于ncurses的条状图进行显示的工具。 +16. **[speedometer][8]**:一个可视化某个接口发送/接收的带宽使用的历史趋势,并且基于ncurses的条状图进行显示的工具。 ![](https://farm8.staticflickr.com/7485/16048971069_31dd573a4f_c.jpg) -17. **[sysdig][9]**:一个对Linux子系统拥有统一调试接口的系统级综合性debug工具。它的网络监视模块可以监视在线/离线、许多进程/主机相关的网络统计数据,例如带宽、连接/请求数等。 +17. **[sysdig][9]**:一个对Linux子系统拥有统一调试接口的系统级综合性debug工具。它的网络监视模块可以监视在线或离线、许多进程/主机相关的网络统计数据,例如带宽、连接/请求数等。 -18. **tcptrack**:一个TCP连接监视工具,可以显示活动的TCP连接,包括源/目的的IP地址/端口、TCP状态、带宽使用等。 +18. **tcptrack**:一个TCP连接监视工具,可以显示活动的TCP连接,包括源/目的IP地址/端口、TCP状态、带宽使用等。 ![](https://farm8.staticflickr.com/7507/16047703080_5fdda2e811_b.jpg) -19. **vnStat**:一个维护了基于接口的历史接收/发送带宽使用视图(例如,当前、每日、每月)的流量监视器。作为一个后台守护进程,它收集并存储统计数据,包括接口带宽使用率和传输字节总数。 +19. **vnStat**:一个维护了基于接口的历史接收/发送带宽视图(例如,当前、每日、每月)的流量监视器。作为一个后台守护进程,它收集并存储统计数据,包括接口带宽使用率和传输字节总数。 -### 活动网络监视器 ### +### 主动网络监视器 ### 不同于前面提到的被动的监听工具,这个类别的工具们在监听时会主动的“注入”探测内容到网络中,并且会收集相应的反应。监听目标包括路由路径、可供使用的带宽、丢包率、延时、抖动、系统设置或者缺陷等。 -20. **[dnsyo][10]**:一个DNS检测工具,能够管理多达1500个不同网络的开放解析器集群的DNS查询。它在您检查DNS繁殖或者检查DNS设置的时候很有用。 +20. **[dnsyo][10]**:一个DNS检测工具,能够管理多达1500个不同网络的开放解析器集群的DNS查询。它在您检查DNS传播或排查DNS设置的时候很有用。 -21. **[iperf][11]**:一个TCP/UDP带宽测量工具,能够测量两点间最大可用带宽。它通过在两个主机间单向或双向的输出TCP/UDP探测流量来测量可用的带宽。它在监测网络容量、调谐网络协议栈参数时很有用。一个变种叫做[netperf][12]拥有更多的功能及更好的统计数据。 +21. **[iperf][11]**:一个TCP/UDP带宽测量工具,能够测量两个结点间最大可用带宽。它通过在两个主机间单向或双向的输出TCP/UDP探测流量来测量可用的带宽。它在监测网络容量、调谐网络协议栈参数时很有用。一个叫做[netperf][12]的变种拥有更多的功能及更好的统计数据。 22. **[netcat][13]/socat**:通用的网络debug工具,可以对TCP/UDP套接字进行读、写或监听。它通常和其他的程序或脚本结合起来在后端对网络传输或端口进行监听。 -23. **nmap**:一个命令行端口扫描和网络发现工具。它依赖于一个基于TCP/UDP的扫描技术来查找开放的端口、活动的主机或者在本地网络存在的操作系统。它在你审查本地主机漏洞或者为了维护建立主机映射时很有用。[zmap][14]是一个类似的替代品,是一个用于互联网范围的扫描工具。 +23. **nmap**:一个命令行端口扫描和网络发现工具。它依赖于若干基于TCP/UDP的扫描技术来查找开放的端口、活动的主机或者在本地网络存在的操作系统。它在你审查本地主机漏洞或者建立主机映射时很有用。[zmap][14]是一个类似的替代品,是一个用于互联网范围的扫描工具。 24. ping:一个常用的网络测试工具。通过对ICMP的echo和reply报文进行增强来实现其功能。它在测量路由的RTT、丢包率以及检测远端系统防火墙规则时很有用。ping的变种有更漂亮的界面(例如,[noping][15])、多协议支持(例如,[hping][16])或者并行探测能力(例如,[fping][17])。 @@ -78,25 +78,25 @@ 25. **[sprobe][18]**:一个启发式推断本地主机和任意远端IP地址的网络带宽瓶颈的命令行工具。它使用TCP三次握手机制来评估带宽的瓶颈。它在检测大范围网络性能和路由相关的问题时很有用。 -26. **traceroute**:一个能发现从本地到远端主机的第三层路由/转发路径的网络发现工具。它通过发送有限TTL的探测报文,收集中间路由的ICMP反馈信息。它在排查低速网络连接或者路由相关的问题时很有用。traceroute的变种有更好的RTT统计功能(例如,[mtr][19])。 +26. **traceroute**:一个能发现从本地到远端主机的第三层路由/转发路径的网络发现工具。它发送有限TTL的探测报文,收集中间路由的ICMP反馈信息。它在排查低速网络连接或者路由相关的问题时很有用。traceroute的变种有更好的RTT统计功能(例如,[mtr][19])。 -### 应用日志处理 ### +### 应用日志解析器 ### -在这个类别下,网络监测器把特定的服务器应用作为目标(例如,web服务器或者数据库服务器)。由服务器程序产生或消耗的网络流量通过它的日志被分析和监测。不向前面提到的网络层的监视器,这个类别的工具能够在用用层面分析和监控网络流量。 +在这个类别下,网络监测器把特定的服务器应用程序作为目标(例如,web服务器或者数据库服务器)。由服务器程序产生或消耗的网络流量通过它的日志被分析和监测。不像前面提到的网络层的监视器,这个类别的工具能够在应用层面分析和监控网络流量。 -27. **[GoAccess][20]**:一个面向Apache和Nginx服务器流量的交互式查看器。基于获取到的日志,它能展示包括日访问量、最多请求、客户端操作系统、客户端位置、客户端浏览器等在内的多个实时的统计信息,并以滚动方式显示。 +27. **[GoAccess][20]**:一个针对Apache和Nginx服务器流量的交互式查看器。基于对获取到的日志的分析,它能展示包括日访问量、最多请求、客户端操作系统、客户端位置、客户端浏览器等在内的多个实时的统计信息,并以滚动方式显示。 ![](https://farm8.staticflickr.com/7518/16209185266_da6c5c56eb_c.jpg) -28. **[mtop][21]**:一个面向MySQL/MariaDB服务器的命令行监视器,它可以将当前数据库服务器负载中代价最大的查询进行可视化。它在您优化MySQL服务器性能、调谐服务器参数时很有用。 +28. **[mtop][21]**:一个面向MySQL/MariaDB服务器的命令行监视器,它可以将当前数据库服务器负载中代价最大的查询以可视化的方式进行显示。它在您优化MySQL服务器性能、调谐服务器参数时很有用。 ![](https://farm8.staticflickr.com/7472/16047570248_bc996795f2_c.jpg) -29. **[ngxtop][22]**:一个面向Nginx和Apache的流量监测工具,能够以类似top指令的界面可视化Web服务器的流量。它通过分析web服务器的查询日志文件并且收集某个目的地或请求的流量统计信息。 +29. **[ngxtop][22]**:一个面向Nginx和Apache服务器的流量监测工具,能够以类似top指令的方式可视化的显示Web服务器的流量。它解析web服务器的查询日志文件并收集某个目的地或请求的流量统计信息。 ### Conclusion ### -在这篇文章中,我展示了许多的命令行式监测工具,从最底层的包层面的监视器到最高层应用程序层面的网络监视器。知道那个工具做了什么是一回事,选择哪个工具来使用又是另外一回事。单一的一个工具不能作为您每天使用的通用的解决方案。一个好的系统管理员应该能够决定那个工具更适合当前的环境。希望这个列表对此有所帮助。 +在这篇文章中,我展示了许多的命令行式监测工具,从最底层的包层面的监视器到最高层应用程序层面的网络监视器。知道那个工具的作用是一回事,选择哪个工具使用又是另外一回事。单一的一个工具不能作为您每天使用的通用的解决方案。一个好的系统管理员应该能决定哪个工具更适合当前的环境。希望这个列表对此有所帮助。 欢迎您通过回复来改进这个列表的内容! From cba0d0e294be62733c5822bc1e46576f3da8636e Mon Sep 17 00:00:00 2001 From: wwy-hust Date: Sun, 10 May 2015 23:21:41 +0800 Subject: [PATCH 16/18] remote the origin english article --- ... command-line network monitors on Linux.md | 137 ------------------ 1 file changed, 137 deletions(-) delete mode 100644 sources/tech/20150112 What are useful command-line network monitors on Linux.md diff --git a/sources/tech/20150112 What are useful command-line network monitors on Linux.md b/sources/tech/20150112 What are useful command-line network monitors on Linux.md deleted file mode 100644 index 8f6b9596d1..0000000000 --- a/sources/tech/20150112 What are useful command-line network monitors on Linux.md +++ /dev/null @@ -1,137 +0,0 @@ -translating by wwy-hust - -What are useful command-line network monitors on Linux -================================================================================ -Network monitoring is a critical IT function for businesses of all sizes. The goal of network monitoring can vary. For example, the monitoring activity can be part of long-term network provisioning, security protection, performance troubleshooting, network usage accounting, and so on. Depending on its goal, network monitoring is done in many different ways, such as performing packet-level sniffing, collecting flow-level statistics, actively injecting probes into the network, parsing server logs, etc. - -While there are many dedicated network monitoring systems capable of 24/7/365 monitoring, you can also leverage command-line network monitors in certain situations, where a dedicated monitor is an overkill. If you are a system admin, you are expected to have hands-on experience with some of well known CLI network monitors. Here is a list of **popular and useful command-line network monitors on Linux**. - -### Packet-Level Sniffing ### - -In this category, monitoring tools capture individual packets on the wire, dissect their content, and display decoded packet content or packet-level statistics. These tools conduct network monitoring from the lowest level, and as such, can possibly do the most fine-grained monitoring at the cost of network I/O and analysis efforts. - -1. **dhcpdump**: a comman-line DHCP traffic sniffer capturing DHCP request/response traffic, and displays dissected DHCP protocol messages in a human-friendly format. It is useful when you are troubleshooting DHCP related issues. - -2. **[dsniff][1]**: a collection of command-line based sniffing, spoofing and hijacking tools designed for network auditing and penetration testing. They can sniff various information such as passwords, NSF traffic, email messages, website URLs, and so on. - -3. **[httpry][2]**: an HTTP packet sniffer which captures and decode HTTP requests and response packets, and display them in a human-readable format. - -4. **IPTraf**: a console-based network statistics viewer. It displays packet-level, connection-level, interface-level, protocol-level packet/byte counters in real-time. Packet capturing can be controlled by protocol filters, and its operation is full menu-driven. - -![](https://farm8.staticflickr.com/7519/16055246118_8ea182b413_c.jpg) - -5. **[mysql-sniffer][3]**: a packet sniffer which captures and decodes packets associated with MySQL queries. It displays the most frequent or all queries in a human-readable format. - -6. **[ngrep][4]**: grep over network packets. It can capture live packets, and match (filtered) packets against regular expressions or hexadecimal expressions. It is useful for detecting and storing any anomalous traffic, or for sniffing particular patterns of information from live traffic. - -7. **[p0f][5]**: a passive fingerprinting tool which, based on packet sniffing, reliably identifies operating systems, NAT or proxy settings, network link types and various other properites associated with an active TCP connection. - -8. **pktstat**: a command-line tool which analyzes live packets to display connection-level bandwidth usages as well as descriptive information of protocols involved (e.g., HTTP GET/POST, FTP, X11). - -![](https://farm8.staticflickr.com/7477/16048970999_be60f74952_b.jpg) - -9. **Snort**: an intrusion detection and prevention tool which can detect/prevent a variety of backdoor, botnets, phishing, spyware attacks from live traffic based on rule-driven protocol analysis and content matching. - -10. **tcpdump**: a command-line packet sniffer which is capable of capturing nework packets on the wire based on filter expressions, dissect the packets, and dump the packet content for packet-level analysis. It is widely used for any kinds of networking related troubleshooting, network application debugging, or [security][6] monitoring. - -11. **tshark**: a command-line packet sniffing tool that comes with Wireshark GUI program. It can capture and decode live packets on the wire, and show decoded packet content in a human-friendly fashion. - -### Flow-/Process-/Interface-Level Monitoring ### - -In this category, network monitoring is done by classifying network traffic into flows, associated processes or interfaces, and collecting per-flow, per-process or per-interface statistics. Source of information can be libpcap packet capture library or sysfs kernel virtual filesystem. Monitoring overhead of these tools is low, but packet-level inspection capabilities are missing. - -12. **bmon**: a console-based bandwidth monitoring tool which shows various per-interface information, including not-only aggregate/average RX/TX statistics, but also a historical view of bandwidth usage. - -![](https://farm9.staticflickr.com/8580/16234265932_87f20c5d17_b.jpg) - -13. **[iftop][7]**: a bandwidth usage monitoring tool that can shows bandwidth usage for individual network connections in real time. It comes with ncurses-based interface to visualize bandwidth usage of all connections in a sorted order. It is useful for monitoring which connections are consuming the most bandwidth. - -14. **nethogs**: a process monitoring tool which offers a real-time view of upload/download bandwidth usage of individual processes or programs in an ncurses-based interface. This is useful for detecting bandwidth hogging processes. - -15. **netstat**: a command-line tool that shows various statistics and properties of the networking stack, such as open TCP/UDP connections, network interface RX/TX statistics, routing tables, protocol/socket statistics. It is useful when you diagnose performance and resource usage related problems of the networking stack. - -16. **[speedometer][8]**: a console-based traffic monitor which visualizes the historical trend of an interface's RX/TX bandwidth usage with ncurses-drawn bar charts. - -![](https://farm8.staticflickr.com/7485/16048971069_31dd573a4f_c.jpg) - -17. **[sysdig][9]**: a comprehensive system-level debugging tool with a unified interface for investigating different Linux subsystems. Its network monitoring module is capable of monitoring, either online or offline, various per-process/per-host networking statistics such as bandwidth usage, number of connections/requests, etc. - -18. **tcptrack**: a TCP connection monitoring tool which displays information of active TCP connections, including source/destination IP addresses/ports, TCP state, and bandwidth usage. - -![](https://farm8.staticflickr.com/7507/16047703080_5fdda2e811_b.jpg) - -19. **vnStat**: a command-line traffic monitor which maintains a historical view of RX/TX bandwidh usage (e.g., current, daily, monthly) on a per-interface basis. Running as a background daemon, it collects and stores interface statistics on bandwidth rate and total bytes transferred. - -### Active Network Monitoring ### - -Unlike passive monitoring tools presented so far, tools in this category perform network monitoring by actively "injecting" probes into the network and collecting corresponding responses. Monitoring targets include routing path, available bandwidth, loss rates, delay, jitter, system settings or vulnerabilities, and so on. - -20. **[dnsyo][10]**: a DNS monitoring tool which can conduct DNS lookup from open resolvers scattered across more than 1,500 different networks. It is useful when you check DNS propagation or troubleshoot DNS configuration. - -21. **[iperf][11]**: a TCP/UDP bandwidth measurement utility which can measure maximum available bandwidth between two end points. It measures available bandwidth by having two hosts pump out TCP/UDP probe traffic between them either unidirectionally or bi-directionally. It is useful when you test the network capacity, or tune the parameters of network stack. A variant called [netperf][12] exists with more features and better statistics. - -22. **[netcat][13]/socat**: versatile network debugging tools capable of reading from, writing to, or listen on TCP/UDP sockets. They are often used alongside with other programs or scripts for backend network transfer or port listening. - -23. **nmap**: a command-line port scanning and network discovery utility. It relies on a number of TCP/UDP based scanning techniques to detect open ports, live hosts, or existing operating systems on the local network. It is useful when you audit local hosts for vulnerabilities or build a host map for maintenance purpose. [zmap][14] is an alernative scanning tool with Internet-wide scanning capability. - -24. ping: a network testing tool which works by exchaning ICMP echo and reply packets with a remote host. It is useful when you measure round-trip-time (RTT) delay and loss rate of a routing path, as well as test the status or firewall rules of a remote system. Variations of ping exist with fancier interface (e.g., [noping][15]), multi-protocol support (e.g., [hping][16]) or parallel probing capability (e.g., [fping][17]). - -![](https://farm8.staticflickr.com/7466/15612665344_a4bb665a5b_c.jpg) - -25. **[sprobe][18]**: a command-line tool that heuristically infers the bottleneck bandwidth between a local host and any arbitrary remote IP address. It uses TCP three-way handshake tricks to estimate the bottleneck bandwidth. It is useful when troubleshooting wide-area network performance and routing related problems. - -26. **traceroute**: a network discovery tool which reveals a layer-3 routing/forwarding path from a local host to a remote host. It works by sending TTL-limited probe packets and collecting ICMP responses from intermediate routers. It is useful when troubleshooting slow network connections or routing related problems. Variations of traceroute exist with better RTT statistics (e.g., [mtr][19]). - -### Application Log Parsing ### - -In this category, network monitoring is targeted at a specific server application (e.g., web server or database server). Network traffic generated or consumed by a server application is monitored by analyzing its log file. Unlike network-level monitors presented in earlier categories, tools in this category can analyze and monitor network traffic from application-level. - -27. **[GoAccess][20]**: a console-based interactive viewer for Apache and Nginx web server traffic. Based on access log analysis, it presents a real-time statistics of a number of metrics including daily visits, top requests, client operating systems, client locations, client browsers, in a scrollable view. - -![](https://farm8.staticflickr.com/7518/16209185266_da6c5c56eb_c.jpg) - -28. **[mtop][21]**: a command-line MySQL/MariaDB server moniter which visualizes the most expensive queries and current database server load. It is useful when you optimize MySQL server performance and tune server configurations. - -![](https://farm8.staticflickr.com/7472/16047570248_bc996795f2_c.jpg) - -29. **[ngxtop][22]**: a traffic monitoring tool for Nginx and Apache web server, which visualizes web server traffic in a top-like interface. It works by parsing a web server's access log file and collecting traffic statistics for individual destinations or requests. - -### Conclusion ### - -In this article, I presented a wide variety of command-line network monitoring tools, ranging from the lowest packet-level monitors to the highest application-level network monitors. Knowing which tool does what is one thing, and choosing which tool to use is another, as any single tool cannot be a universal solution for your every need. A good system admin should be able to decide which tool is right for the circumstance at hand. Hopefully the list helps with that. - -You are always welcome to improve the list with your comment! - --------------------------------------------------------------------------------- - -via: http://xmodulo.com/useful-command-line-network-monitors-linux.html - -浣滆咃細[Dan Nanni][a] -璇戣咃細[璇戣匢D](https://github.com/璇戣匢D) -鏍″锛歔鏍″鑰匢D](https://github.com/鏍″鑰匢D) - -鏈枃鐢 [LCTT](https://github.com/LCTT/TranslateProject) 鍘熷垱缈昏瘧锛孾Linux涓浗](http://linux.cn/) 鑽h獕鎺ㄥ嚭 - -[a]:http://xmodulo.com/author/nanni -[1]:http://www.monkey.org/~dugsong/dsniff/ -[2]:http://xmodulo.com/monitor-http-traffic-command-line-linux.html -[3]:https://github.com/zorkian/mysql-sniffer -[4]:http://ngrep.sourceforge.net/ -[5]:http://lcamtuf.coredump.cx/p0f3/ -[6]:http://xmodulo.com/recommend/firewallbook -[7]:http://xmodulo.com/how-to-install-iftop-on-linux.html -[8]:https://excess.org/speedometer/ -[9]:http://xmodulo.com/monitor-troubleshoot-linux-server-sysdig.html -[10]:http://xmodulo.com/check-dns-propagation-linux.html -[11]:https://iperf.fr/ -[12]:http://www.netperf.org/netperf/ -[13]:http://xmodulo.com/useful-netcat-examples-linux.html -[14]:https://zmap.io/ -[15]:http://noping.cc/ -[16]:http://www.hping.org/ -[17]:http://fping.org/ -[18]:http://sprobe.cs.washington.edu/ -[19]:http://xmodulo.com/better-alternatives-basic-command-line-utilities.html#mtr_link -[20]:http://goaccess.io/ -[21]:http://mtop.sourceforge.net/ -[22]:http://xmodulo.com/monitor-nginx-web-server-command-line-real-time.html From b14b922f2f05ddb8ea7f9b44564ca61916a22845 Mon Sep 17 00:00:00 2001 From: wwy-hust Date: Sun, 10 May 2015 23:21:41 +0800 Subject: [PATCH 17/18] remove the origin english article --- ... command-line network monitors on Linux.md | 137 ------------------ 1 file changed, 137 deletions(-) delete mode 100644 sources/tech/20150112 What are useful command-line network monitors on Linux.md diff --git a/sources/tech/20150112 What are useful command-line network monitors on Linux.md b/sources/tech/20150112 What are useful command-line network monitors on Linux.md deleted file mode 100644 index 8f6b9596d1..0000000000 --- a/sources/tech/20150112 What are useful command-line network monitors on Linux.md +++ /dev/null @@ -1,137 +0,0 @@ -translating by wwy-hust - -What are useful command-line network monitors on Linux -================================================================================ -Network monitoring is a critical IT function for businesses of all sizes. The goal of network monitoring can vary. For example, the monitoring activity can be part of long-term network provisioning, security protection, performance troubleshooting, network usage accounting, and so on. Depending on its goal, network monitoring is done in many different ways, such as performing packet-level sniffing, collecting flow-level statistics, actively injecting probes into the network, parsing server logs, etc. - -While there are many dedicated network monitoring systems capable of 24/7/365 monitoring, you can also leverage command-line network monitors in certain situations, where a dedicated monitor is an overkill. If you are a system admin, you are expected to have hands-on experience with some of well known CLI network monitors. Here is a list of **popular and useful command-line network monitors on Linux**. - -### Packet-Level Sniffing ### - -In this category, monitoring tools capture individual packets on the wire, dissect their content, and display decoded packet content or packet-level statistics. These tools conduct network monitoring from the lowest level, and as such, can possibly do the most fine-grained monitoring at the cost of network I/O and analysis efforts. - -1. **dhcpdump**: a comman-line DHCP traffic sniffer capturing DHCP request/response traffic, and displays dissected DHCP protocol messages in a human-friendly format. It is useful when you are troubleshooting DHCP related issues. - -2. **[dsniff][1]**: a collection of command-line based sniffing, spoofing and hijacking tools designed for network auditing and penetration testing. They can sniff various information such as passwords, NSF traffic, email messages, website URLs, and so on. - -3. **[httpry][2]**: an HTTP packet sniffer which captures and decode HTTP requests and response packets, and display them in a human-readable format. - -4. **IPTraf**: a console-based network statistics viewer. It displays packet-level, connection-level, interface-level, protocol-level packet/byte counters in real-time. Packet capturing can be controlled by protocol filters, and its operation is full menu-driven. - -![](https://farm8.staticflickr.com/7519/16055246118_8ea182b413_c.jpg) - -5. **[mysql-sniffer][3]**: a packet sniffer which captures and decodes packets associated with MySQL queries. It displays the most frequent or all queries in a human-readable format. - -6. **[ngrep][4]**: grep over network packets. It can capture live packets, and match (filtered) packets against regular expressions or hexadecimal expressions. It is useful for detecting and storing any anomalous traffic, or for sniffing particular patterns of information from live traffic. - -7. **[p0f][5]**: a passive fingerprinting tool which, based on packet sniffing, reliably identifies operating systems, NAT or proxy settings, network link types and various other properites associated with an active TCP connection. - -8. **pktstat**: a command-line tool which analyzes live packets to display connection-level bandwidth usages as well as descriptive information of protocols involved (e.g., HTTP GET/POST, FTP, X11). - -![](https://farm8.staticflickr.com/7477/16048970999_be60f74952_b.jpg) - -9. **Snort**: an intrusion detection and prevention tool which can detect/prevent a variety of backdoor, botnets, phishing, spyware attacks from live traffic based on rule-driven protocol analysis and content matching. - -10. **tcpdump**: a command-line packet sniffer which is capable of capturing nework packets on the wire based on filter expressions, dissect the packets, and dump the packet content for packet-level analysis. It is widely used for any kinds of networking related troubleshooting, network application debugging, or [security][6] monitoring. - -11. **tshark**: a command-line packet sniffing tool that comes with Wireshark GUI program. It can capture and decode live packets on the wire, and show decoded packet content in a human-friendly fashion. - -### Flow-/Process-/Interface-Level Monitoring ### - -In this category, network monitoring is done by classifying network traffic into flows, associated processes or interfaces, and collecting per-flow, per-process or per-interface statistics. Source of information can be libpcap packet capture library or sysfs kernel virtual filesystem. Monitoring overhead of these tools is low, but packet-level inspection capabilities are missing. - -12. **bmon**: a console-based bandwidth monitoring tool which shows various per-interface information, including not-only aggregate/average RX/TX statistics, but also a historical view of bandwidth usage. - -![](https://farm9.staticflickr.com/8580/16234265932_87f20c5d17_b.jpg) - -13. **[iftop][7]**: a bandwidth usage monitoring tool that can shows bandwidth usage for individual network connections in real time. It comes with ncurses-based interface to visualize bandwidth usage of all connections in a sorted order. It is useful for monitoring which connections are consuming the most bandwidth. - -14. **nethogs**: a process monitoring tool which offers a real-time view of upload/download bandwidth usage of individual processes or programs in an ncurses-based interface. This is useful for detecting bandwidth hogging processes. - -15. **netstat**: a command-line tool that shows various statistics and properties of the networking stack, such as open TCP/UDP connections, network interface RX/TX statistics, routing tables, protocol/socket statistics. It is useful when you diagnose performance and resource usage related problems of the networking stack. - -16. **[speedometer][8]**: a console-based traffic monitor which visualizes the historical trend of an interface's RX/TX bandwidth usage with ncurses-drawn bar charts. - -![](https://farm8.staticflickr.com/7485/16048971069_31dd573a4f_c.jpg) - -17. **[sysdig][9]**: a comprehensive system-level debugging tool with a unified interface for investigating different Linux subsystems. Its network monitoring module is capable of monitoring, either online or offline, various per-process/per-host networking statistics such as bandwidth usage, number of connections/requests, etc. - -18. **tcptrack**: a TCP connection monitoring tool which displays information of active TCP connections, including source/destination IP addresses/ports, TCP state, and bandwidth usage. - -![](https://farm8.staticflickr.com/7507/16047703080_5fdda2e811_b.jpg) - -19. **vnStat**: a command-line traffic monitor which maintains a historical view of RX/TX bandwidh usage (e.g., current, daily, monthly) on a per-interface basis. Running as a background daemon, it collects and stores interface statistics on bandwidth rate and total bytes transferred. - -### Active Network Monitoring ### - -Unlike passive monitoring tools presented so far, tools in this category perform network monitoring by actively "injecting" probes into the network and collecting corresponding responses. Monitoring targets include routing path, available bandwidth, loss rates, delay, jitter, system settings or vulnerabilities, and so on. - -20. **[dnsyo][10]**: a DNS monitoring tool which can conduct DNS lookup from open resolvers scattered across more than 1,500 different networks. It is useful when you check DNS propagation or troubleshoot DNS configuration. - -21. **[iperf][11]**: a TCP/UDP bandwidth measurement utility which can measure maximum available bandwidth between two end points. It measures available bandwidth by having two hosts pump out TCP/UDP probe traffic between them either unidirectionally or bi-directionally. It is useful when you test the network capacity, or tune the parameters of network stack. A variant called [netperf][12] exists with more features and better statistics. - -22. **[netcat][13]/socat**: versatile network debugging tools capable of reading from, writing to, or listen on TCP/UDP sockets. They are often used alongside with other programs or scripts for backend network transfer or port listening. - -23. **nmap**: a command-line port scanning and network discovery utility. It relies on a number of TCP/UDP based scanning techniques to detect open ports, live hosts, or existing operating systems on the local network. It is useful when you audit local hosts for vulnerabilities or build a host map for maintenance purpose. [zmap][14] is an alernative scanning tool with Internet-wide scanning capability. - -24. ping: a network testing tool which works by exchaning ICMP echo and reply packets with a remote host. It is useful when you measure round-trip-time (RTT) delay and loss rate of a routing path, as well as test the status or firewall rules of a remote system. Variations of ping exist with fancier interface (e.g., [noping][15]), multi-protocol support (e.g., [hping][16]) or parallel probing capability (e.g., [fping][17]). - -![](https://farm8.staticflickr.com/7466/15612665344_a4bb665a5b_c.jpg) - -25. **[sprobe][18]**: a command-line tool that heuristically infers the bottleneck bandwidth between a local host and any arbitrary remote IP address. It uses TCP three-way handshake tricks to estimate the bottleneck bandwidth. It is useful when troubleshooting wide-area network performance and routing related problems. - -26. **traceroute**: a network discovery tool which reveals a layer-3 routing/forwarding path from a local host to a remote host. It works by sending TTL-limited probe packets and collecting ICMP responses from intermediate routers. It is useful when troubleshooting slow network connections or routing related problems. Variations of traceroute exist with better RTT statistics (e.g., [mtr][19]). - -### Application Log Parsing ### - -In this category, network monitoring is targeted at a specific server application (e.g., web server or database server). Network traffic generated or consumed by a server application is monitored by analyzing its log file. Unlike network-level monitors presented in earlier categories, tools in this category can analyze and monitor network traffic from application-level. - -27. **[GoAccess][20]**: a console-based interactive viewer for Apache and Nginx web server traffic. Based on access log analysis, it presents a real-time statistics of a number of metrics including daily visits, top requests, client operating systems, client locations, client browsers, in a scrollable view. - -![](https://farm8.staticflickr.com/7518/16209185266_da6c5c56eb_c.jpg) - -28. **[mtop][21]**: a command-line MySQL/MariaDB server moniter which visualizes the most expensive queries and current database server load. It is useful when you optimize MySQL server performance and tune server configurations. - -![](https://farm8.staticflickr.com/7472/16047570248_bc996795f2_c.jpg) - -29. **[ngxtop][22]**: a traffic monitoring tool for Nginx and Apache web server, which visualizes web server traffic in a top-like interface. It works by parsing a web server's access log file and collecting traffic statistics for individual destinations or requests. - -### Conclusion ### - -In this article, I presented a wide variety of command-line network monitoring tools, ranging from the lowest packet-level monitors to the highest application-level network monitors. Knowing which tool does what is one thing, and choosing which tool to use is another, as any single tool cannot be a universal solution for your every need. A good system admin should be able to decide which tool is right for the circumstance at hand. Hopefully the list helps with that. - -You are always welcome to improve the list with your comment! - --------------------------------------------------------------------------------- - -via: http://xmodulo.com/useful-command-line-network-monitors-linux.html - -浣滆咃細[Dan Nanni][a] -璇戣咃細[璇戣匢D](https://github.com/璇戣匢D) -鏍″锛歔鏍″鑰匢D](https://github.com/鏍″鑰匢D) - -鏈枃鐢 [LCTT](https://github.com/LCTT/TranslateProject) 鍘熷垱缈昏瘧锛孾Linux涓浗](http://linux.cn/) 鑽h獕鎺ㄥ嚭 - -[a]:http://xmodulo.com/author/nanni -[1]:http://www.monkey.org/~dugsong/dsniff/ -[2]:http://xmodulo.com/monitor-http-traffic-command-line-linux.html -[3]:https://github.com/zorkian/mysql-sniffer -[4]:http://ngrep.sourceforge.net/ -[5]:http://lcamtuf.coredump.cx/p0f3/ -[6]:http://xmodulo.com/recommend/firewallbook -[7]:http://xmodulo.com/how-to-install-iftop-on-linux.html -[8]:https://excess.org/speedometer/ -[9]:http://xmodulo.com/monitor-troubleshoot-linux-server-sysdig.html -[10]:http://xmodulo.com/check-dns-propagation-linux.html -[11]:https://iperf.fr/ -[12]:http://www.netperf.org/netperf/ -[13]:http://xmodulo.com/useful-netcat-examples-linux.html -[14]:https://zmap.io/ -[15]:http://noping.cc/ -[16]:http://www.hping.org/ -[17]:http://fping.org/ -[18]:http://sprobe.cs.washington.edu/ -[19]:http://xmodulo.com/better-alternatives-basic-command-line-utilities.html#mtr_link -[20]:http://goaccess.io/ -[21]:http://mtop.sourceforge.net/ -[22]:http://xmodulo.com/monitor-nginx-web-server-command-line-real-time.html From ad5f645ef0457b3ce906d384495bd340a58ce131 Mon Sep 17 00:00:00 2001 From: joeren Date: Mon, 11 May 2015 07:59:20 +0800 Subject: [PATCH 18/18] Update 20150505 Bodhi Linux Introduces Moksha Desktop.md --- sources/tech/20150505 Bodhi Linux Introduces Moksha Desktop.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/tech/20150505 Bodhi Linux Introduces Moksha Desktop.md b/sources/tech/20150505 Bodhi Linux Introduces Moksha Desktop.md index 0b4d61993d..cdc649666d 100644 --- a/sources/tech/20150505 Bodhi Linux Introduces Moksha Desktop.md +++ b/sources/tech/20150505 Bodhi Linux Introduces Moksha Desktop.md @@ -1,3 +1,4 @@ +Translating by GOLinux! Bodhi Linux Introduces Moksha Desktop ================================================================================ ![](http://itsfoss.itsfoss.netdna-cdn.com/wp-content/uploads/2015/05/Bodhi_Linux.jpg) @@ -37,4 +38,4 @@ via: http://itsfoss.com/bodhi-linux-introduces-moksha-desktop/ [2]:https://www.enlightenment.org/ [3]:http://www.bodhilinux.com/2015/04/28/introducing-the-moksha-desktop/ [4]:http://itsfoss.com/bodhi-linux-3/ -[5]:http://forums.bodhilinux.com/index.php?/topic/12322-e17-vs-e19-which-are-you-using-and-why/ \ No newline at end of file +[5]:http://forums.bodhilinux.com/index.php?/topic/12322-e17-vs-e19-which-are-you-using-and-why/