[TriLUG] An easy one...

Benjamin Reed trilug@trilug.org
02 May 2002 14:32:22 -0400


--=-+Y7xiXIvQybiSAGuUXSB
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Thu, 2002-05-02 at 14:23, Chris Knowles wrote:
> OK, here's a question that has been tickling at the back of my head for s=
ome=20
> time. =20
>=20
> How do you change the hostname of a computer, permanently, from the=20
> command-line?  I know how to do it from the GUI, but how do you do it fro=
m=20
> the console?
>=20
> See, wasn't that horribly easy?  Don't you think less of me now?

on redhat/mandrake/probably others you do:

  hostname <new-hostname>
  vi /etc/sysconfig/network
     [change the HOSTNAME line]

--=20
Ben Reed a.k.a. Ranger Rick (ranger@befunk.com)
http://defiance.dyndns.org/ / http://radio.scenespot.org/
...if humanoids eat chicken, then obviously they'd eat their own
species.  Otherwise they'd just be picking on the chickens. -- Kryten

--=-+Y7xiXIvQybiSAGuUXSB
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA80YY2Uu+jZtP2Zf4RAkJdAJ4ja81aHQC0I1ix367giOS4X/XMpQCfaVIT
K7pdxwqW5hJDXEhBkyOg/G0=
=ypc2
-----END PGP SIGNATURE-----

--=-+Y7xiXIvQybiSAGuUXSB--