LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-06-2005, 02:38 PM   #1
Guignol
Member
 
Registered: Mar 2005
Location: Ottawa
Distribution: CentOS x86_64
Posts: 90

Rep: Reputation: 15
Network installation


Hi Guy's,

I have FC3 on the server.When I need to blast the image I just fetch it VIA ftp and boom,it installs..BUT,I need to ajust the monitor frequency in the script before installation.

Is there a way to blast the image VIA FTP without ajusting the monitor specs in the script before downloading the image to the Pc?What is the best way for Fedora to auto-detect the monitor Freq?

Thanks in advance

Mart.
 
Old 09-07-2005, 06:53 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Are you using kickstart ? If so, the best thing to do is to post the ks.cfg file (with the root password taken out).

Autodetection should be the default, but of course the installer may not have the default settings for your monitor on it's hardware list.
 
Old 09-08-2005, 01:14 PM   #3
Guignol
Member
 
Registered: Mar 2005
Location: Ottawa
Distribution: CentOS x86_64
Posts: 90

Original Poster
Rep: Reputation: 15
Hi Hob,

Thx for the reply.Here it is...And thanks again !

#!/bin/sh
#########################################################################
# This script genereates a KickStart configuration (ks.cfg) file for the
# installation of Fedora Core 2. It can be customized by changing values
# of environment variables.
#########################################################################
# NB.01: (EOF) needs to be quoted ('EOF') in order to work well.
#########################################################################
# NB.02: SUGGESTION: Manually inspect the "passwd" file: machines for
# specific groups may need adjustments...
#########################################################################
# NB.05: Add Fedora packages to be installed after line "ADD_PACKAGES"
########################### Disk Partitions #############################
# TODO: A configuration file to be read (optionnally), to ease reuse.
# if [ -n "$1" ] ; then . "$1" ; fi
#########################################################################
# Manager Account to allow login (even when not connected)
MGR_ACCOUNT=Me
MGR_EMAIL=Me@nowhere
MGR_PWD=Dtapg5BeX3FAg
MGR_UID=000000
MGR_GID=oooooo
#########################################################################

# check for and load configuration file
if [ "x$1" == "x" ]; then
echo you must specify a configuration file as argument
exit 1
fi
if [ ! -f "$1" ] ; then
echo the configuration file specified was not found
exit 1
fi
. "$1"

echo configuration: $SIGNATURE

# backup any existing "ks.cfg" file
if [ -e ks.cfg ]; then
mv -f ks.cfg ks.cfg.bak
fi
touch ks.cfg

echo "# CONFID=$SIGNATURE" >> ks.cfg

# Have the installation done in text mode:
echo "install" >> ks.cfg
echo "text" >> ks.cfg

# Have 'phase#2' start automatically after 'phase#1':
echo "reboot" >> ks.cfg

#########################################################################
# Just hit <CR> if you want to use the "standard" passwd (ref. Michel)
# For UNMANAGED, the name of the owner might be a good choice...
echo 'Enter root passwd (or hit <CR> to use MANAGED password):'
read ROOT_PASSWD

# Server to use (100.000. or 192.168, depending...)
echo "url --url http://$URL_SERVER/$URL_DIR/i386/os" >> ks.cfg

if [ ! "$KEYBOARD" == "" ]; then
echo "keyboard $KEYBOARD" >> ks.cfg
fi

if [ ! "$MOUSE" == "" ]; then
echo "mouse $MOUSE" >> ks.cfg
fi

if [ ! "$VIDEO_CARD" == "" ]; then
VIDEO_CARD_ARG="--card $VIDEO_CARD"
fi

if [ ! "$VIDEO_RAM" == "" ]; then
VIDEO_RAM_ARG="--videoram $VIDEO_RAM"
fi

if [ ! "$VIDEO_HSYNC" == "" ]; then
VIDEO_HSYNC_ARG="--hsync $VIDEO_HSYNC"
fi

if [ ! "$VIDEO_VSYNC" == "" ]; then
VIDEO_VSYNC_ARG="--vsync $VIDEO_VSYNC"
fi

if [ ! "$VIDEO_RES" == "" ]; then
VIDEO_RES_ARG="--resolution $VIDEO_RES"
fi

if [ ! "$VIDEO_DEPTH" == "" ]; then
VIDEO_DEPTH_ARG="--depth $VIDEO_DEPTH"
fi

if [ "$STARTXONBOOT" == 1 ]; then
echo "xconfig $VIDEO_CARD_ARG $VIDEO_RAM_ARG $VIDEO_HSYNC_ARG $VIDEO_VSYNC_ARG $VIDEO_RES_ARG $VIDEO_DEPTH_ARG --startxonboot --defaultdesktop=$WMGR" >> ks.cfg
fi

if [ ! "$ROOT_PASSWD" == "" ]; then
echo Using new root passwd
ENCRYPTED_ROOT_PASSWD=`openssl passwd -1 $ROOT_PASSWD`
else
echo Using MANAGED root passwd
ENCRYPTED_ROOT_PASSWD='$1$SZNuK75w$qP5Pnj69UPUEgTwka2yqd/'
fi
echo "rootpw --iscrypted $ENCRYPTED_ROOT_PASSWD" >> ks.cfg

cat - << 'FROM_HERE_TO_THERE1' >> ks.cfg
lang en_US.UTF-8
langsupport --default en_CA.UTF-8 en_CA.UTF-8 en_US.UTF-8 fr_CA.UTF-8
network --device eth0 --bootproto dhcp
firewall --enabled
selinux --permissive
authconfig --enablenis --nisdomain info
timezone America/Montreal
FROM_HERE_TO_THERE1

if [ 1 == $DUAL_NETWORK_CARDS ]; then
echo "network --device eth1 --bootproto dhcp" >> ks.cfg
fi

# (UNMANAGED) DualBoot leaves other OS alone and uses default bootloader (GRUB)
if [ 1 == $DUAL_BOOT ]; then
echo "bootloader --location=mbr" >> ks.cfg
if [ 1 == $DUAL_DISK ]; then
echo "clearpart --linux --drives=$HDD,$HDD2" >> ks.cfg
else
echo "clearpart --linux --drives=$HDD" >> ks.cfg
fi
echo "part / --fstype ext3 --size=$DISK_ROOT_MIN --grow --ondisk=$HDD" >> ks.cfg
echo "part swap --size=$DISK_SWAP_MIN --grow --maxsize=$DISK_SWAP_MAX --ondisk=$HDD" >> ks.cfg
echo "part /boot --fstype ext3 --size=$DISK_BOOT --ondisk=$HDD" >> ks.cfg
else
# SingleBoot (Fedora)
# RAID-1 is "manually" formatted during Pre-Installation
if [ 1 == $RAID1 ]; then
# echo "bootloader --useLilo --location=mbr" >> ks.cfg
# echo "bootloader --useLilo --lba32 --location=mbr" >> ks.cfg
# LILO disappeared from Fedora Core 4...
echo "bootloader --lba32 --location=mbr" >> ks.cfg
echo "clearpart --all --drives=$HDD,$HDD2" >> ks.cfg
echo "part raid.1 --size=$DISK_BOOT --ondisk $HDD" >> ks.cfg
echo "part raid.2 --size=$DISK_SWAP_MAX --ondisk $HDD" >> ks.cfg
echo "part raid.3 --size=$DISK_ROOT_MIN --ondisk $HDD" >> ks.cfg
echo "part raid.4 --size=$DISK_H_MIN --grow --ondisk $HDD" >> ks.cfg
echo "part raid.5 --size=$DISK_BOOT --ondisk $HDD2" >> ks.cfg
echo "part raid.6 --size=$DISK_SWAP_MAX --ondisk $HDD2" >> ks.cfg
echo "part raid.7 --size=$DISK_ROOT_MIN --ondisk $HDD2" >> ks.cfg
echo "part raid.8 --size=$DISK_H_MIN --grow --ondisk $HDD2" >> ks.cfg
# echo "clearpart --none" >> ks.cfg
# echo "part raid.1 --noformat --onpart $HDD"1 >> ks.cfg
# echo "part raid.2 --noformat --onpart $HDD"2 >> ks.cfg
# echo "part raid.3 --noformat --onpart $HDD"3 >> ks.cfg
# echo "part raid.4 --noformat --onpart $HDD"4 >> ks.cfg
# echo "part raid.5 --noformat --onpart $HDD2"1 >> ks.cfg
# echo "part raid.6 --noformat --onpart $HDD2"2 >> ks.cfg
# echo "part raid.7 --noformat --onpart $HDD2"3 >> ks.cfg
# echo "part raid.8 --noformat --onpart $HDD2"4 >> ks.cfg
echo "raid swap --level=RAID1 --device=md1 raid.2 raid.6" >> ks.cfg
echo "raid / --level=RAID1 --device=md2 raid.3 raid.7" >> ks.cfg
echo "raid /boot --level=RAID1 --device=md0 raid.1 raid.5" >> ks.cfg
echo "raid /usr1 --level=RAID1 --device=md3 raid.4 raid.8" >> ks.cfg
# no RAID-1
else
# LILO disappeared from Fedora Core 4...
# echo "bootloader --useLilo --location=mbr" >> ks.cfg
echo "bootloader --location=mbr" >> ks.cfg
if [ 1 == $DUAL_DISK ]; then
echo "clearpart --all --drives=$HDD,$HDD2" >> ks.cfg
else
echo "clearpart --all --drives=$HDD" >> ks.cfg
fi
echo "part / --fstype ext3 --size=$DISK_ROOT_MIN --grow --ondisk=$HDD" >> ks.cfg
echo "part swap --size=$DISK_SWAP_MIN --grow --maxsize=$DISK_SWAP_MAX --ondisk=$HDD" >> ks.cfg
echo "part /boot --fstype ext3 --size=$DISK_BOOT --ondisk=$HDD" >> ks.cfg
fi
fi

# Make a dedicated partition for { /h , /home }
# 1) on second disk if it exists
# 2) if the machine is UNMANAGED
if [ 1 == $DUAL_DISK ]; then
if [ "x0" == "x$RAID1" ]; then
echo "part /$FHOME --fstype ext3 --size=$DISK_H_MIN --grow --ondisk=$HDD2" >> ks.cfg
fi
else
if [ 0 == $MANAGED ]; then
echo "part /$FHOME --fstype ext3 --size=$DISK_H_MIN --grow --maxsize=$DISK_H_MAX --ondisk=$HDD" >> ks.cfg
fi
fi

# Manually ADD_PACKAGES to be installed to the list below, like:
# ddd
# xorg-x11-X.........................And so fourth is go's...:0

MArtin
 
Old 09-08-2005, 02:39 PM   #4
Guignol
Member
 
Registered: Mar 2005
Location: Ottawa
Distribution: CentOS x86_64
Posts: 90

Original Poster
Rep: Reputation: 15
So to conclude I always need to edit this file before...

#!/bin/sh

# Not used yet...
SIGNATURE=xxx_ThinkCentre

# RAID-1
RAID1=0
#RAID1=1

# Disks & Partitions Sizes
# /boot : (8 AS THE BARE MINIMUM) suggested 96
DISK_BOOT=128
# / : (4122 ABSOLUTE MININUM) suggested 5120
DISK_ROOT_MIN=10240
# swap: Rule of thumb...
DISK_SWAP_MIN=512
DISK_SWAP_MAX=1024

# Users' Partition: (used for dual disk systems and UNmanaged ones)
DISK_H_MIN=1024
DISK_H_MAX=30720

# The first Hard Drive is NOT always /dev/hda! (used by smartd, grub)
#HDD=hda
#HDD=hdb
# For SCSI and ATA:
HDD=sda

# If there are 2 disks AND if both should be used => (DUAL_DISK=1)
DUAL_DISK=0
#DUAL_DISK=1

# If (DUAL_DISK==1) OR (RAID1==1) then specify the Second Hard Drive (HDD2):
HDD2=hdb
#HDD2=sdb

#########################################################################
# Force installation on a particular disk (usefull for dual boot)
# *** NOT USED YET ***
#FORCE_DISK=--ondisk=$HDD
#FORCE_DISK=

#########################################################################
# Whether MANAGED (by xxx Support Staff) or not (owner will be root)
#MANAGED=0
MANAGED=1

# Not only UNMANAGED, but also NFS impaired (Fedora gets back its HOME)
ISOLATED=0
FHOME=h
#ISOLATED=1
#FHOME=home

# (MANAGED==1) ==> (DUAL_BOOT==0)
# (DUAL_BOOT==1) ==> (MANAGED==0)
DUAL_BOOT=0
#DUAL_BOOT=1

# Mode: XTERMINAL|SERVER|NORMAL
#MODE=XTERMINAL
#MODE=SERVER
MODE=NORMAL

#########################################################################
# Where the Fedora Core 4 installation files reside

URL_SERVER=xxx
URL_DIR=Fedora/core/4

########################### Mouse & Keyboard ############################
# [optionnal] Specify the KEYBOARD type
KEYBOARD=us

# [optionnal] Specify the MOUSE type
#MOUSE=genericwheelusb
#MOUSE=generic3ps/2
#MOUSE=genericps/2

################################ MONITOR ################################

# L190p (flat), L170p (flat)
VIDEO_HSYNC=31-81
VIDEO_VSYNC=55-76
VIDEO_RES=1280x1024

#########################################################################
# Network
# Only 1 NIC is ever used (at least, for now). But having 2 active NICs
# may slow down some operations, so the "unused" one is turned off.
# Trying to turn off a NIC that does not exist will kill the ks installation.

DUAL_NETWORK_CARDS=0
#DUAL_NETWORK_CARDS=1

#########################################################################
# Window Manager: KDE or GNOME
WMGR=KDE

# Whether to start X Window when booted (or not -> TTY)
STARTXONBOOT=1
#STARTXONBOOT=0

#########################################################################
# When not(MANAGED): User/Owner Identification (more in file "accounts")

#USER_ACCOUNT=
#USER_UID=
#USER_GID=

#########################################################################

Thanks@!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
network installation Ratwod Slackware - Installation 7 06-13-2005 01:21 PM
network installation slackr007 Linux - Newbie 5 03-05-2005 01:16 PM
network installation Basslord1124 Fedora 2 10-23-2004 11:04 AM
network installation of RH7.3 on laptop with pcmcia network card. Smerk Linux - Distributions 1 10-31-2002 11:56 PM
Network Installation ketan_mech Linux - General 1 03-13-2002 12:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:45 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