<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Jun 1, 2013 at 5:02 PM, Bob <span dir="ltr"><<a href="mailto:ubuntu-qygzanxc@listemail.net" target="_blank">ubuntu-qygzanxc@listemail.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">** Reply to message from Colin Law <<a href="mailto:clanlaw@googlemail.com">clanlaw@googlemail.com</a>> on Sat, 1 Jun 2013<br>
22:18:49 +0100<br>
<div class="im"><br>
> >> What command do I use to change the "host name" for my computer?<br>
> >><br>
> >> --<br>
> >> Robert Blair<br>
> >><br>
> > Welcome!<br>
> ><br>
> > You just need to edit /etc/hostname file whatever your text editor is.<br>
> > Just make sure you have enough privilege to edit it.<br>
> > Mines is below:<br>
> > toshi@ubuntu13-04:/etc$ ll hostname<br>
> > -rw-r--r-- 1 root root 12 May 21 20:09 hostname<br>
> > toshi@ubuntu13-04:/etc$ cat hostname<br>
> > ubuntu13-04<br>
><br>
> I think you have to change /etc/hosts also, so if you open a terminal and type<br>
> gksu gedit /etc/hostname<br>
> edit it, save and exit. Then<br>
> gksu gedit /etc/hosts<br>
> and edit a line which should be something like<br>
> 127.0.1.1 your_current_host_name<br>
> replacing the current name with the desired new one (leave the rest of<br>
> the file as it is), then save exit and reboot and I believe that<br>
> should do it. It might be best to hang on a bit however in case<br>
> someone else comes up with more things you need to do.<br>
<br>
</div>Thank you Toshi and Colin.<br>
<br>
I have change /etc/hostname and /etc/hosts, it looks like that works.<br></blockquote><div><br></div><div style>If you have an MTA installed (exim, postfix, sendmail, etc) you may also need to change /etc/mailname and any other appropriate MTA configuration files (e.g.; /etc/postfix/<a href="http://mail.cf">mail.cf</a>). That said, you can accomplish this with the appropriate dpkg-reconfigure command. For example:</div>
<div style><br></div><div style>$ sudo dpkg-reconfigure postfix</div><div> </div></div>-- <br><div dir="ltr"><div>Chris<br><br></div>"If you wish to make an apple pie from scratch, you must first invent the Universe." -- Carl Sagan<br>
<div><br><br></div></div>
</div></div>