mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-02-03 23:40:14 +08:00
commit
2f88e19491
@ -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, that’s 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 isn’t for pros, it’s for newbies and users who are just starting out with Ubuntu.
|
||||
|
||||
So, why would you want to change your computer name again? If you don’t have a good reason other than to learn how to do it, then don’t. 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 what’s 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 you’re done.
|
||||
|
||||
![](http://www.liberiangeek.net/wp-content/uploads/2013/10/ubuntuhostnamechange.png)
|
||||
|
||||
That’s 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/) 荣誉推出
|
@ -1,3 +1,5 @@
|
||||
Vic020翻译中
|
||||
|
||||
Daily Ubuntu Tips – Resize Ubuntu Unity Launcher
|
||||
================================================================================
|
||||
Here’s another tip for users who are new to Ubuntu. This series aims to help new users to Ubuntu configure and manage their computer easily. It’s not geared towards Ubuntu power users or pros, rather users who are just starting with Ubuntu.
|
||||
|
@ -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/) 荣誉推出
|
Loading…
Reference in New Issue
Block a user