Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@marcopg.org>2008-12-17 14:10:24 (GMT)
committer Marco Pesenti Gritti <marco@marcopg.org>2008-12-17 14:10:24 (GMT)
commit919a734072c39f74df46c3fc8b9da2544bc319d7 (patch)
tree3a07d9615d075d38cf36bd5bef5b0da1bab5445b
parent1c72cf86cfce916633a91493e9d2566a64bbc71c (diff)
xorg.conf for QEMU
-rw-r--r--fedora-live-base.ks1
-rw-r--r--soas.ks41
2 files changed, 42 insertions, 0 deletions
diff --git a/fedora-live-base.ks b/fedora-live-base.ks
index 8869d94..d406fd8 100644
--- a/fedora-live-base.ks
+++ b/fedora-live-base.ks
@@ -13,6 +13,7 @@ timezone US/Eastern
auth --useshadow --enablemd5
selinux --disabled
firewall --enabled
+bootloader --timeout=1
xconfig --startxonboot
part / --size 3072
services --enabled=NetworkManager --disabled=network,sshd
diff --git a/soas.ks b/soas.ks
index 9f59916..2f3e91e 100644
--- a/soas.ks
+++ b/soas.ks
@@ -91,6 +91,47 @@ echo "sugar" > /home/liveuser/.Xclients
chmod a+x /home/liveuser/.Xclients
chown liveuser:liveuser /home/liveuser/.Xclients
+if [ \`grep -c QEMU /proc/cpuinfo\` -ne 0 ]; then
+ cat > /etc/X11/xorg.conf <<FOE
+Section "ServerLayout"
+ Identifier "Default layout"
+ Screen 0 "Screen0" 0 0
+ InputDevice "Keyboard0" "CoreKeyboard"
+EndSection
+
+Section "InputDevice"
+ Identifier "Keyboard0"
+ Driver "kbd"
+ Option "XkbModel" "pc105+inet"
+ Option "XkbLayout" "us"
+EndSection
+
+Section "Monitor"
+ Identifier "Monitor0"
+ ModelName "Monitor 1024x768"
+ HorizSync 31.5 - 61.0
+ VertRefresh 50.0 - 75.0
+ Option "dpms"
+EndSection
+
+Section "Device"
+ Identifier "Videocard0"
+ Driver "cirrus"
+EndSection
+
+Section "Screen"
+ Identifier "Screen0"
+ Device "Videocard0"
+ Monitor "Monitor0"
+ DefaultDepth 24
+ SubSection "Display"
+ Viewport 0 0
+ Depth 24
+ EndSubSection
+EndSection
+FOE
+fi
+
EOF
%end