弥补过错...已翻译 by Luox

This commit is contained in:
Luoxcat 2013-11-19 16:42:45 +08:00
parent 701cee00f1
commit eafbe8c320
3 changed files with 218 additions and 0 deletions

View File

@ -0,0 +1,42 @@
[scusjs占坑]Daily Ubuntu Tips Adding User Accounts In Ubuntu
================================================================================
Ubuntu is a multi-user operating system. Multi-user OS means that more than one users are access the computer with separate and individual profile with home folder, documents, and settings. User A can login and make changes to his/her profile without affecting user **Bs** profile.
So, instead of creating a single shared account for everyone in your household, you can create an individual account for each user who will be using your home computer. This brief tutorial is going to show you how to do that when using Ubuntu.
To get started, click on the far fight of the menu bar and select the gear icon, then click System Settings.
![](http://www.liberiangeek.net/wp-content/uploads/2013/09/ubuntulockscreendisable4.png)
When that opens, click **User Accounts** from the bottom of your screen as shown below
![](http://www.liberiangeek.net/wp-content/uploads/2013/09/useraccountsubuntu.png)
You need administrative privileges to add user accounts to Ubuntu. If you do, click Unlock before adding accounts.
![](http://www.liberiangeek.net/wp-content/uploads/2013/09/useraccountsubuntu1.png)
Next, click the plus ( + ) button to create a user account.
![](http://www.liberiangeek.net/wp-content/uploads/2013/09/useraccountsubuntu2.png)
There are two primary account types when creating new users. **Standard User** and **Administrator**. User with administrative rights can delete users, install software and drivers, change the date and time and can make changes that may render the computer unstable.
Standard wont be able to make these changes. He/she can only change stuff in his/her profile.
When you enter the full name of the user, the username will automatically be selected for you based on his full name. Its ok to keep it but you can change it if you like. When youre done, click Create to create the account.
By default, the account is disabled and will remain so until you change/add a password. To enable the account, click the Account disabled button, then type a new password.
![](http://www.liberiangeek.net/wp-content/uploads/2013/09/useraccountsubuntu3.png)
If you want to user to automatically logon without typing password, you can choose the drop-down option while setting his/her password to logon automatically.
Enjoy!
--------------------------------------------------------------------------------
via: http://www.liberiangeek.net/2013/09/daily-ubuntu-tips-adding-user-accounts-ubuntu/
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)

View File

@ -0,0 +1,69 @@
五个 ping 工具的实例
================================================================================
### 什么是 ping 工具###
在传授一些关于ping工具真实大观的实例前,先让我来解释一下这个命令行工具及其目的.ping工具通常用来测试一台主机在互联网协议(IP)网络内的连通性.其名字源于主动声纳法,这是用来在水下创建一个脉冲声音(ping)并遇到周围的对象而返回信号.用这个方法是对ping网络工具最通俗易懂的解释.ping工具对一台主机发送回应请求然后等待ICMP响应.
用于实践ping工具的一些例子:
### 查询主机的IP地址 ###
有时候你需要得到某一台的IP地址,你可以使用ping工具如图一所示.键入ping命令后面跟上要查询的主机名.
ping www.omgubuntu.com
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/11/ping1.png)
### 查询正在使用的ping工具的版本信息 ###
用 -V 选项可以用来查询你手头上ping工具的版本信息.键入下列命令显示正在使用的ping工具的版本信息.
ping -V
正如你从图二见到的,我正在用ping utility,iputils-sss20101006
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/11/ping2.png)
### 自动退出 ping ###
当你用ping 主机命令ping一台机器,ping时无法停止必需按CTRL+C强行退出,或者你可以用 -c (count)选项指定发送包的数量.当用-c选项,当网络管理员(无论那个用户)发送了指定数量的包,无需按CTRL+C,ping进程会自动停止.
ping -c 13 127.0.0.1
上列的命令发送了13个包到我的本地主机上.
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/11/ping3.png)
正如你从图三看到的,我并没有按CTRL+C,而ping自动退出了.
### 指定数据包之间的时间间隔 ###
你知道ping每秒钟发送一个数据包吗?你要加快还是减慢呢?用 -i 选项能指定包之间的时间间隔.用下列命令快速发送或慢速发送包.
### 每0.13秒发送一个包 ###
ping -i 0.13
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/11/ping4.png)
### 每13秒发送一个包 ###
ping -i 13
### 结合 -i 选项和 -c 选项 ###
ping -c 13 -i 3
用39秒发出13个数据包,数据包的时间间隔为三秒.
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/11/ping6.png)
--------------------------------------------------------------------------------
via: http://www.unixmen.com/five-examples-ping-utility/
译者:[Luoxcat](https://github.com/Luoxcat) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出

View File

@ -0,0 +1,107 @@
如何在Linux下监控系统温度
================================================================================
在大多数情况下,你无需担心你电脑的温度.除非制造缺陷,设计硬件一般都不会超过最大的工作温度.但即使没有任何硬件故障,各样的软件问题也会导致硬件过热,例如,显卡驱动的大量bug,错误风扇控制程序配置,CPU频率调节守护进程的故障,等.
过热可能会严重到对你硬件造成永久性的伤害.所以小心你系统上的任何过热问题.如果有适当的温度监控系统,那再好不过了,这样在系统温度突然急速上升时可以第一时间收到警告.
在这个教程,我将描述**如何在Linux下监控系统温度**.
在Linux下有几个允许你检查和监控各种系统组件的用户级工具.
[lm-sensors][1] 是一款从硬件嵌入式传感器获取信息,以达到监测温度,电压,湿度和风扇
在下文中,我将会描述如何设置psensor来监控CPUs和硬盘的温度.
### 在Linux 桌面版上安装 psensor###
psensor可以可视化系统温度,但其中信息的获取是基于其他类似lm-sensors和hddtemp的工具.因此你需要在安装psensor的同时,一并安装所需工具.
在Debian或Ubuntu下安装psensor:
$ sudo apt-get install lm-sensors hddtemp psensor
在Fedora下安装psensor
$ sudo yum install lm_sensors hddtemp
$ sudo yum install gcc gtk3-devel GConf2-devel lm_sensors-devel cppcheck libatasmart-devel libcurl-devel json-c-devel libmicrohttpd-devel help2man libnotify-devel libgtop2-devel make
$ wget http://wpitchoune.net/psensor/files/psensor-0.8.0.3.tar.gz
$ tar xvfvz psensor-0.8.0.3.tar.gz
$ cd psensor-0.8.0.3
$ ./configure
$ make
$ sudo make install
由于必需要有GTK3库,psensor不能跟搭载GNOME2桌面的CentOs或RHEL 6兼容.
### 在Linux中配置 psensor ###
在启动 psensor之前,你需要先配置lm_sensors和hddtemp.
#### lm_sensors 配置 ####
允许以下命令,配置lm_sensors,每一项都选择YES.
$ sudo sensors-detect
这个命令将会探查和检测你硬件中嵌入式的传感器(包括CPUs,储存控制器,I/O芯片),然后在你的系统上自动决定那个驱动模块需要被载入检查温度.
一旦传感器检测完成,你将被要求把检测到的驱动模块添加到/etc配置中,这样它们才可以在开机时自动加载.
在Debian或Ubuntu下,检测到的驱动模块将会被添加到/et/modules.在Fedora下,驱动信息会添加到/etc/sysconfig/lm_sersors.
接下来,继续加载必要的模块,如下:
Ubuntu:
$ sudo service module-init-tools start
Debian:
$ sudo /etc/init.d/kmod start
Fedora
$ sudo service lm_sensors start
#### hddtemp 配置 ####
你还需要启动hddtemp,让它监控硬盘驱动器的温度.
运行下列命令,作为一个守护进程启动hddtemp.替代 “/dev/sda” 来监控你系统上的硬盘驱动器.
$ sudo hddtemp -d /dev/sda
### 用 psensor 监控系统温度 ###
开始用psensor监测温度:
$ psensor
psensor的窗口将显示一个可用传感器的列表,并可视化从这些传感器中读出的温度.你可以选择性地启用或禁用每个传感器.
[![](http://farm8.staticflickr.com/7448/10719475225_f89b6f7191_z.jpg)][5]
另外,你可以为每个传感器设置警报级别,这样当传感器温度超过某一阈值将会通知你.
--------------------------------------------------------------------------------
via: http://xmodulo.com/2013/11/monitor-system-temperature-linux.html
译者:[Luoxcat](https://github.com/Luoxcat) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://lm-sensors.org/
[2]:http://www.guzu.net/linux/hddtemp.php
[3]:http://en.wikipedia.org/wiki/S.M.A.R.T.
[4]:http://wpitchoune.net/blog/psensor/
[5]:http://www.flickr.com/photos/xmodulo/10719475225/