Skip to content

Instantly share code, notes, and snippets.

@kaorimatz
Created February 9, 2013 05:14
Show Gist options
  • Save kaorimatz/4743929 to your computer and use it in GitHub Desktop.
Save kaorimatz/4743929 to your computer and use it in GitHub Desktop.

Fedora 18 Installation

Kickstart File

install
url --url=http://ftp.jaist.ac.jp/pub/Linux/Fedora/releases/18/Fedora/x86_64/os/

# Yum Repos
repo --name=fedora \
     --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-18&arch=x86_64
repo --name=fedora-updates \
     --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f18&arch=x86_64

# Network
network --hostname=spherical.x220i

# Language
lang en_US.UTF-8
keyboard us
timezone Asia/Tokyo

# Security
selinux --disabled
firewall --disabled

# Disk
part / --noformat --onpart=LABEL=ROOT-F18
part /home --noformat --onpart=LABEL=HOME

%packages
@core --nodefaults
@development-tools --nodefaults
@base-x --nodefaults
tmux
zsh
vim
tree
ack
man-pages
texlive-ptex
mercurial
git
subversion
mysql
mongodb
PackageKit
gdm
gnome-session
gnome-session-xsession
gnome-terminal
gnome-tweak-tool
firefox
evince
eog
inkscape
ibus-skk
%end

%pre
%end

%post
yum update -y
# yum makecache && yum distro-sync
useradd --home=/home/kaorimatz --shell=/bin/zsh
ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
systemctl enable gdm
%end

Filesystem Label

The label on the partition can be managed by e2label if the target partition is formatted as either ext2, ext3 or ext4.

Display

# e2label /dev/sda1
# e2label /dev/sda2

Modify

# e2label /dev/sda1 ROOT-F18
# e2label /dev/sda2 HOME

Starting Installation

We can tell anaconda the path to the kickstart file with --kickstart option.

# anaconda --kickstart=/root/ks.cfg

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment