LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-24-2006, 11:25 PM   #1
ahmedb72
Member
 
Registered: Jan 2006
Location: Sydney
Distribution: RHEL
Posts: 72

Rep: Reputation: 15
hostname in kickstart config


I created a kickstart configuration file using system-config-kickstart utility. The utility doesn't ask me about the "hostname".

When trying to install Redhat linux on a pc using the file I created, it gives me a message "determining hostname and domain".

My questions are:
- on what bases the installer tries to determine the hostname and domain providing that no domain server is connected to the network?
- can I identify the hostname as part of the installation using kickstart file? and how?

Thanks in advance.
 
Old 02-26-2006, 11:05 PM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
You need to modify the “network...” line in the kickstart config file in order to specify the hostname.

It might look something like this:

Code:
network --device eth0 --bootproto dhcp --hostname WhateverYouWantToCallIt
 
Old 02-27-2006, 05:46 AM   #3
ahmedb72
Member
 
Registered: Jan 2006
Location: Sydney
Distribution: RHEL
Posts: 72

Original Poster
Rep: Reputation: 15
thanks for your reply.

But why the system-config-kickstart utility doesn't have the option to add the hostname?
 
Old 03-03-2006, 01:54 AM   #4
shterenhaim
LQ Newbie
 
Registered: Apr 2005
Posts: 3

Rep: Reputation: 0
first you need to save your kickstart configuration then open the saved file with your editor (vi emacs ...)and then add
^--hostname WhateverYouWantToCallIt^ to the network line
 
Old 01-27-2009, 08:42 AM   #5
bkrocker
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Rep: Reputation: 0
If I'm using the Kickstart file to auto load several computers I would like kickstart to ask for the host name. I can use 'ask' in autoyast.xml for Opensuse and during the install it will bring up a box for the user to enter the hostname. Is there an option to do so for Fedora?
 
Old 01-30-2013, 01:32 AM   #6
ouzmoutous
LQ Newbie
 
Registered: Jan 2013
Posts: 1

Rep: Reputation: Disabled
It's a very old thread but it might help someone.
To ask for hostname with kickstart I put this code in my ks file :
Quote:
%pre
#!/bin/bash

###DEMANDE DU HOSTNAME#########################################
exec < /dev/tty6 > /dev/tty6
chvt 6
clear
echo "################################"
echo "# Une petite question ! #"
echo "################################"
echo -n "Entrer le nom de la machine (hostname): "
read hostn
hostname $hostn
echo -e "NETWORKING=yes\nHOSTNAME=$hostn" > /etc/sysconfig/network
echo "Vous avez choisit $hostn. Appuyer sur entrer pour continuer ou ctrl alt suppr pour redemarrer"
read
###Go back to tty1##
exec < /dev/tty1 > /dev/tty1
chvt 1
################################################################
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MBR location specified in kickstart config file owenh Linux - General 2 03-22-2005 05:06 PM
Which config file do I set the hostname in (RH9)? anachron Linux - Newbie 8 06-02-2004 07:48 PM
redhat8, changed hostname by editing config file, X no longer recognizes it infamous41md Linux - Newbie 2 03-31-2004 12:20 AM
RH 9, Netz und DNS Config, Fehler "set visible hostname" j.kopitzke Linux - Newbie 0 06-18-2003 11:31 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration