Merge pull request #299 from Vic020/master

Translated & Chose
This commit is contained in:
Xingyu.Wang 2013-10-28 22:44:45 -07:00
commit 2f88e19491
3 changed files with 38 additions and 35 deletions

View File

@ -1,35 +0,0 @@
翻译中啦Vic___
Daily Ubuntu Tips How To Change Your Computer Name
================================================================================
Another blog post that is geared towards new Ubuntu users or newbies. This post shows you how to easily change your computer name when using Ubuntu. Many users will never worry about changing their computer name or hostname in Ubuntu. In most cases, thats the least of their worries.
Many will use the name that was created or given to the machine during Ubuntu installation. But for those new users who would like to know how to do it, continue below to learn how. This post isnt for pros, its for newbies and users who are just starting out with Ubuntu.
So, why would you want to change your computer name again? If you dont have a good reason other than to learn how to do it, then dont. If you want to do it for a good reason or learn how to do it, then do this.
Press **Ctrl Alt T** on your keyboard to open the terminal. When it opens, run the commands below to edit the hostname file using gedit.
sudo gedit /etc/hostname
Next, change whatever in there to be the new computer name. For example, if you want your computer name to be RDOMNU, delete whats currently in there and type **RDOMNU** and save the file.
Next, run the commands below to open the hosts file.
sudo gedit /etc/hosts
Then change the value of the second line highlighted below to match your computer name you entered earlier. Save the file when youre done.
![](http://www.liberiangeek.net/wp-content/uploads/2013/10/ubuntuhostnamechange.png)
Thats it! Restart your computer and your machine will reflect the new name. This is how one changes the name of a Ubuntu machine.
Enjoy!
--------------------------------------------------------------------------------
via: http://www.liberiangeek.net/2013/10/daily-ubuntu-tips-change-computer-name/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出

View File

@ -1,3 +1,5 @@
Vic020翻译中
Daily Ubuntu Tips Resize Ubuntu Unity Launcher
================================================================================
Heres another tip for users who are new to Ubuntu. This series aims to help new users to Ubuntu configure and manage their computer easily. Its not geared towards Ubuntu power users or pros, rather users who are just starting with Ubuntu.

View File

@ -0,0 +1,36 @@
每日Ubuntu小技巧——怎样修改你的计算机名字
================================================================================
其他blog更新过这篇是面向新Ubuntu用户和初学者。这篇blog告诉你当在使用Ubuntu时怎么样简单改变你的计算机名字。许多用户将再也不用担心在Ubuntu上怎么改变他们的计算机名字和主机名至少这是他们关心的。
许多人会使用创建好的名字或者安装的时候会给机器一个名字。但是对于那些新用户想要知道怎么做到改名字请继续接下来的学习。这篇不是给专家的是为那些刚刚开始使用Ubuntu的初学者用户。
所以,你为什么不想再一次改变你的计算机名字?如果你没有一个好的原因比学习怎么做更好,那就不要。如果你有一个好的理由学习怎么做,那就跟着学。
按下 **Ctrl Alt T** 组合键,打开终端。
当终端打开输入下列命令使用gedit编辑hostname文件
sudo gedit /etc/hostname
接下来无论文件里面有什么改变一个新的计算机名字吧。例如如果你想要你的计算机名字为“RDOMNU”先删除文件内容输入 **RDOMNU**,然后保存文件。
然后输入下列命令来打开hosts文件
sudo gedit /etc/hosts
改变第二行下面所指你早先输入的计算机名字的值,完后后保存。
![](http://www.liberiangeek.net/wp-content/uploads/2013/10/ubuntuhostnamechange.png)
就是这样重启你的计算机然后你的机器将会显示新的名字。这就是怎么改变Ubuntu机器的名字。
享受吧!
--------------------------------------------------------------------------------
via: http://www.liberiangeek.net/2013/10/daily-ubuntu-tips-change-computer-name/
译者:[Vic___](https://blog.csdn.net/Vic___) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出