This commit is contained in:
wxy 2013-11-26 22:01:25 +08:00
parent f0f1a4b049
commit cde876423b
2 changed files with 1 additions and 93 deletions

View File

@ -1,47 +0,0 @@
<<<<<<< HEAD
(translating by whatever1992)
=======
crowner的坑
>>>>>>> 6ee657b05c5722935988e91e1fc2bfdb9e6f6c79
Daily Ubuntu Tips Change Samba Workgroup And Computer Name
================================================================================
Heres another question new users to Ubuntu asked the most. The answer to the question is simple but when youre new to anything, it takes time to fully understand it.
Heres the question we received few days ago;
> How to change samba workgroup name and computer name in Ubuntu?
For most computer Ubuntu users, changing their computer name is the least thing on their list, let alone samba workgroup. A few power users may want to learn how to do this easily with using Ubuntu.
When it comes to changing the computer name in Ubuntu, weve written a simple post on that which can be [found here][1]. Follow the this simple guide on [changing your computer name in Ubuntu][1] to accomplish your goal.
There maybe other ways to changing your PC name in Ubuntu but this is the easiest and fastest. For those using Ubuntu server, you can use vi or vim to edit the hostname and hosts files. Using vi or vim maybe difficult for most so only someone with knowledge of using these editors should use it.
To change Samba workgroup in Ubuntu, press **Ctrl Alt T** on your keyboard to open the terminal. When it opens, run the commands below to edit Sambas configure file.
sudo gedit /etc/samba/smb.conf
When the file opens, make sure the line starting with workgroup in the [global] section has the word or value you want the workgroup to be. For example, if you want the workgroup to be UBGP, replace WORKGROUP with that and save the file. In most cases, youll have to restart the computer for the change to apply.
![](http://www.liberiangeek.net/wp-content/uploads/2013/11/workgroupubuntu.png)
This is how you change your computer name as well as its workgroup in Ubuntu. Remember, if you are doing this to share or access Windows files and folders, you must also install Samba. Without Samba, it would be difficult sharing files with Windows.
To install Samba, run the commands below.
sudo apt-get install samba
Please come back and check out other future tips about Ubuntu.
Enjoy!
--------------------------------------------------------------------------------
via: http://www.liberiangeek.net/2013/11/daily-ubuntu-tips-change-samba-workgroup-and-computer-name/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://www.liberiangeek.net/2013/10/daily-ubuntu-tips-change-computer-name/

View File

@ -1,4 +1,3 @@
<<<<<<< HEAD
每日Ubuntu小技巧-更改Samba工作组和计算机名
================================================================================
这是另一个Ubuntu的新用户问的最多的问题。这个问题的答案很简单但当你接触新事物时你需要时间来完全理解它。
@ -33,53 +32,9 @@ To install Samba, run the commands below.
尽情享受吧!
=======
Ubuntu小贴士-改变Samba工作组和计算机名
================================================================================
这里还有另一个Ubuntu新手经常问的问题答案很简单但是对于新人来说完全理解需要花费一些时间。
这里有一些我们几天前收到的问题:
> 怎样在Ubuntu里改变Samba工作组和计算机名
对于大多数的Ubuntu用户来说给计算机改一个名字一定会在最低限度完成的列表上更不用说Samba工作组了一些少量的高级用户或者也会想轻松地在使用Ubuntu时做到这些。
如果是在Ubuntu里改变计算机名这个问题的话我们之前已经写过一个简单的文章了你真可以在[这里][1]找到。紧紧跟随[在Ubuntu里改变计算机名(changing your computer name in Ubuntu)][1]这篇向导性文章就可以达到你的目标。
或许还有别的方法可以在Ubuntu里改变你的计算机名但是这是最简单而快速的方法。对于那些使用Ubuntu服务器的你可以使用Vi或者Vim编辑hostname和host等文件。使用Vi或者Vim对大多数人有点儿难所以只有部分由使用这些编辑器的知识的人才会使用它。
要在Ubuntu里改变Samba工作组按下键盘上的**Ctrl Alt T** 打开终端。但它终端打开后运行下面的命令以编辑Samba的配置文件。
sudo gedit /etc/samba/smb.conf
这个文件打开之后,确定在[global]段的以workgroup开头的行有你想要起给工作组的名字。例如如果你想要让工作组叫UBGP将WORKGROUP替换成UBGP然后保存文件。在大多数情况下你会必须重启计算机以应用这些改变。
![](http://www.liberiangeek.net/wp-content/uploads/2013/11/workgroupubuntu.png)
这就是怎样在Unbuntu里改变你的计算机的名字和它的工作组。切记如果你想做这些以分享或者访问Windows的文件或者文件夹你必须安装Samba。离了Samba和Windows共享文件会很难。
运行以下命令以安装Samba。
sudo apt-get install samba
请继续关注和访问更多关于Ubuntu的小贴士。
尽情享受吧!
>>>>>>> c011190f089700f3e40aad9289d60f1a5b609f05
--------------------------------------------------------------------------------
via: http://www.liberiangeek.net/2013/11/daily-ubuntu-tips-change-samba-workgroup-and-computer-name/
<<<<<<< HEAD
译者:[whatever1992](https://github.com/whatever1992) 校对:[校对者ID](https://github.com/校对者ID)
译者:[crowner](https://github.com/crowner)[whatever1992](https://github.com/whatever1992) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://www.liberiangeek.net/2013/10/daily-ubuntu-tips-change-computer-name/
=======
译者:[crowner](https://github.com/crowner) 校对:[wxy](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://www.liberiangeek.net/2013/10/daily-ubuntu-tips-change-computer-name/
>>>>>>> c011190f089700f3e40aad9289d60f1a5b609f05