[ale] vmware changing hostname thru scripts

The Don Lachlan ale-at-ale.org at unpopularminds.org
Tue May 24 12:38:13 EDT 2011


On Tue, May 24, 2011 at 09:02:38AM -0700, Damon Chesser wrote:
> Don't forget /etc/hosts

And any daemons which recognize a hostname, e.g. smtp, http.

-L

> -----Original Message-----
> From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of Derek Atkins
> Sent: Tuesday, May 24, 2011 11:27 AM
> To: Atlanta Linux Enthusiasts
> Subject: Re: [ale] vmware changing hostname thru scripts
> 
> Hi,
> 
> David Tomaschik <david at systemoverlord.com> writes:
> 
> > sudo hostname <new hostname>.
> >
> > man hostname.
> >
> > David
> >
> > On Tue, May 24, 2011 at 9:23 AM, Narahari 'n' Savitha
> > <savithari at gmail.com> wrote:
> >> Friends:
> >>
> >> Is there a way thru sudo to change the hostname of a ubuntu session running
> >> inside vmware ?
> >>
> >> I am rolling out vmware files to users and would like for them to be able to
> >> run the script and the host name changes.
> >>
> >> -Narahari
> 
> Note that this will only change the hostname for the current run of the
> VM.  If you want to change the hostname "permanently" for the VM Image
> you'll need to change it in a config file.  On Red Hat/Fedora it's
> /etc/sysconfig/network; I have no idea how to do it on Debian/Ubuntu.
> 
> -derek
> 
> 
> --
>        Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
>        Member, MIT Student Information Processing Board  (SIPB)
>        URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
>        warlord at MIT.EDU                        PGP key available
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
> 
> _____________________________________________________________________________
> Scanned by IBM Email Security Management Services powered by MessageLabs. For more information please visit http://www-935.ibm.com/services/us/index.wss/offerfamily/iss/a1026954
> _____________________________________________________________________________
> 
> Disclaimer: This electronic transmission and any attachments contain confidential information belonging to the sender. This information may be legally protected. The information is intended only for the use of the individual or entity named above. If you are not the intended recipient or receive this message in error, you are hereby notified that any disclosure, copying, distribution or taking of any action in reliance on or regarding the contents of this information is strictly prohibited. Please notify the sender immediately if you have received this information in error.
> 
> www.acsi2000.com
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo


More information about the Ale mailing list