Home/Support/Support Forum/Setting hostname in Linux Version
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Setting hostname in Linux Version

0 votes
How does one set the hostname on the CC9P linux module? I see that /etc/hostname does not exist.

asked May 22, 2007 in Linux by kromberg New to the Community (0 points)
recategorized Nov 26, 2013 by tuxembb

Please log in or register to answer this question.

1 Answer

0 votes
I simply created the file /etc/hostname and created a .sh script, which is now part of init.d. In this script I do one thing only:

/bin/hostname -F /etc/hostname

Now every time the module boots this script is called and the hostname is set. This works fine.
answered Jan 11, 2009 by tt024678 New to the Community (3 points)