Fedora Linux Support Community & Resources Center
  #16  
Old 7th December 2011, 09:53 PM
seabird Offline
Registered User
 
Join Date: Jan 2009
Location: Den Bosch, Netherlands
Posts: 260
windows_7ie
Re: Automating install

Quote:
Originally Posted by jpollard View Post
Each field in the shadow file is separated by a ":"
anaconda-ks.cfg provided me with the root passwd:
Code:
$6$B93DCBF5BkNUbUAS$LzhT10o3XWF2U34YD.Au8DstmmdxJhTScKSU7DjRT0nbreCCJQPGiL6WtLe6QIfACySb5SmDtO/Eqw0URjE8t/
vi /etc/shadow provides me with root passwd:
Code:
$6$OCxNS33XACUM2a7V$gP.dWHvHCoRH/VzVYbiedJ4NJ2Tp7oC5e6XYPpa2bc23a9kyqj0nLKpWUvLYyWoRQRrxoNYWJvwUTyBXxoPPi/
They look nothing alike. If I stick this in a ks.cfg file, how do I know with which password I end up???

so reading that means:
My passwd: (according to shadow)
Code:
$6$oy48FbPV2JURBzel$9cuWOgMe/yGsT/rQ2wOBudoOPx5baQkTRGTzgNtyt2GhbaQwwO/aE32qYltAErSz8MYM6MrY74AQF6ZDhsxR1.
can be used in ks.conf like this: (?)
Code:
user --name=username1 --gecos="User Name" --password=$6$oy48FbPV2JURBzel$9cuWOgMe/yGsT/rQ2wOBudoOPx5baQkTRGTzgNtyt2GhbaQwwO/aE32qYltAErSz8MYM6MrY74AQF6ZDhsxR1. --iscrypted
and I end up with the same passwd as I do now??
__________________
OS: Fedora 16
Casing: Chenbro RM21508B
Mainboard: ATX D2778
Processor: Intel Xeon W3550 (8 core)
Memory: 6Gb DDR3, ECC, 1333 MHz, PC3-10600
HD #1: OCZ Vertex 3 60Gb
Storage Drives: 4x 2Tb WD20EARS + 2x 2Tb WD20EARX
Graphics: Nvidia GeForce 210 Silent
PCI Card: Promise FastTrak TX4
Reply With Quote
  #17  
Old 7th December 2011, 10:46 PM
AdamW's Avatar
AdamW Offline
Fedora QA Community Monkey
 
Join Date: Dec 2008
Location: Vancouver, BC
Posts: 3,768
linuxfirefox
Re: Automating install

kickstart is certainly intended for single-system deployment as well as more complex cases. I use it all the time for QA - I just keep a kickstart file on my webserver which does a clean unattended install of each currently supported Fedora release. makes it very easy to quickly spin up a clean install if I need one. making and using kickstarts is very quick and easy.
__________________
Adam Williamson | awilliam AT redhat DOT com
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net
Reply With Quote
  #18  
Old 8th December 2011, 11:24 AM
seabird Offline
Registered User
 
Join Date: Jan 2009
Location: Den Bosch, Netherlands
Posts: 260
windows_7ie
Re: Automating install

I figured I would go and give it a try with my ks.cfg. Unfortunatly it boosted a error real quick.

Code:
No preexisting RAID device with the name "md0" was found
Here is the ks.cfg I used:
Code:
# Kickstart file for home server.

#version=DEVEL
install
cdrom
lang en_US.UTF-8
keyboard us
network --onboot yes --device eth0 --noipv6 --nameserver 8.8.8.8,8.8.4.4 --hostname server.domain.com --bootproto=static --ip=192.168.2.99 --netmask=255.255.255.0 --gateway=192.168.2.254
timezone --utc Europe/Amsterdam
rootpw  --iscrypted $6$B93DCBF5BkNUbUAS$LzhT10o3XWF2U34YD.Au8DstmmdxJhTScKSU7DjRT0nbreCCJQPGiL6WtLe6QIfACySb5SmDtO/Eqw0URjE8t/
selinux --disabled
authconfig --enableshadow --passalgo=sha512
firewall --disabled
#My users
<emptied for posting>
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --linux --drives=sda

part raid.008097 --onpart=sdg1 --noformat
part raid.008081 --onpart=sdf1 --noformat
part raid.008065 --onpart=sde1 --noformat
part raid.008049 --onpart=sdd1 --noformat
part raid.008033 --onpart=sdc1 --noformat
part raid.008017 --onpart=sdb1 --noformat
raid /home --fstype=ext4 --level=6 --device=md0 --useexisting --noformat raid.008081 raid.008097 raid.008017 raid.008033 raid.008049 raid.008065

part pv.008003 --grow --size=500
volgroup vg_server --pesize=32768 pv.008003
logvol swap --name=lv_swap --vgname=vg_server --size=8064
logvol / --fstype=ext4 --name=lv_root --vgname=vg_server --size=48672
part /boot --fstype=ext4 --size=500
part biosboot --fstype=biosboot --size=1

bootloader --location=mbr --timeout=1 --driveorder=sda,sdb,sdc,sdd,sde,sdf,sdg --append=" "
repo --name="Fedora 16 - x86_64"  --baseurl=http://mirror.nl.leaseweb.net/fedora/linux/releases/16/Everything/x86_64/os/ --cost=1000
repo --name="Fedora 16 - x86_64 - Updates"  --baseurl=http://mirror.nl.leaseweb.net/fedora/linux/updates/16/x86_64/ --cost=1000

%packages
@admin-tools
@base
@core
@dns-server
@development-libs
@development-tools
@dutch-support
@editors
@british-support
@ftp-server
@gnome-desktop
@graphical-internet
@graphics
@hardware-support
@java
@mail-server
@mysql
@office
@online-docs
@printing
@server-cfg
@sound-and-video
@system-tools
@text-internet
@web-server
@smb-server
@base-x
xfsprogs
mtools
gpgme
gpm
brltty
bind
lua
cmake
gvfs-obexftp
pcsc-lite
gypsy
hdparm
pcsc-lite-ccid
php-mysql
vorbis-tools
jack-audio-connection-kit
gssdp
geoclue
PackageKit-command-not-found
enca
apg
festival
xsel
gupnp
fuse
ncftp
gdm
%end


---------- Post added at 12:24 PM ---------- Previous post was at 10:32 AM ----------

Just to clarify, I want to mount /dev/md0 as /home, but not have it re-partitioned or formatted. Should I change the ks.cfg?
Code:
#part raid.008097 --onpart=sdg1 --noformat
#part raid.008081 --onpart=sdf1 --noformat
#part raid.008065 --onpart=sde1 --noformat
#part raid.008049 --onpart=sdd1 --noformat
#part raid.008033 --onpart=sdc1 --noformat
#part raid.008017 --onpart=sdb1 --noformat
#raid /home --fstype=ext4 --level=6 --device=md0 --useexisting --noformat raid.008081 raid.008097 raid.008017 raid.008033 raid.008049 raid.008065
I removed the # because this way it looks to me like it won't be mounted ....
__________________
OS: Fedora 16
Casing: Chenbro RM21508B
Mainboard: ATX D2778
Processor: Intel Xeon W3550 (8 core)
Memory: 6Gb DDR3, ECC, 1333 MHz, PC3-10600
HD #1: OCZ Vertex 3 60Gb
Storage Drives: 4x 2Tb WD20EARS + 2x 2Tb WD20EARX
Graphics: Nvidia GeForce 210 Silent
PCI Card: Promise FastTrak TX4
Reply With Quote
  #19  
Old 8th December 2011, 11:52 PM
AdamW's Avatar
AdamW Offline
Fedora QA Community Monkey
 
Join Date: Dec 2008
Location: Vancouver, BC
Posts: 3,768
linuxfirefox
Re: Automating install

I haven't used a RAID setup via kickstart before, but at a guess, you'd want to uncomment all the other partitioning-related lines too.
__________________
Adam Williamson | awilliam AT redhat DOT com
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net
Reply With Quote
  #20  
Old 9th December 2011, 10:16 AM
seabird Offline
Registered User
 
Join Date: Jan 2009
Location: Den Bosch, Netherlands
Posts: 260
windows_7ie
Re: Automating install

Yes, that was my first guess, but that gave me the error saying no pre-exsisting md0 ....

Afraid the automated setup will break my raid (and with it all my documents etc). Can I do "semi-automatic". Everything except the partitioning? Do that manually?

Also, what is the way to burn one fedora disc and edit the ks.cfg to usb so I don't have to create coasters all the time

---------- Post added at 10:45 AM ---------- Previous post was at 10:33 AM ----------

or even better, on my md0 raid layout!!!!

---------- Post added at 11:16 AM ---------- Previous post was at 10:45 AM ----------

Maybe this is what is going wrong ...... http://fedoraproject.org/wiki/Common...tart-clearpart
__________________
OS: Fedora 16
Casing: Chenbro RM21508B
Mainboard: ATX D2778
Processor: Intel Xeon W3550 (8 core)
Memory: 6Gb DDR3, ECC, 1333 MHz, PC3-10600
HD #1: OCZ Vertex 3 60Gb
Storage Drives: 4x 2Tb WD20EARS + 2x 2Tb WD20EARX
Graphics: Nvidia GeForce 210 Silent
PCI Card: Promise FastTrak TX4
Reply With Quote
Reply

Tags
automating, install

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automating Evolution - Is it Possible? twohot Using Fedora 4 10th December 2010 04:54 AM
Automating the keyring prdufresne Servers & Networking 16 6th November 2006 10:57 PM
Help with automating a bridge setup bsnyder Servers & Networking 0 9th August 2006 10:33 PM
Automating User Additions rob2000007 Using Fedora 6 24th October 2005 09:29 PM
Automating tasks cutesneakers Using Fedora 2 22nd July 2005 04:21 PM


Current GMT-time: 20:57 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat