Created
September 17, 2010 16:04
-
-
Save rmoriz/584439 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… | |
# Language selection | |
ubiquity languagechooser/language-name select English | |
ubiquity countrychooser/shortlist select US | |
ubiquity time/zone select America/Los_Angeles | |
ubiquity debian-installer/locale select en_US.UTF-8 | |
ubiquity localechooser/supported-locales multiselect en_US.UTF-8 | |
console-setup console-setup/layoutcode string us | |
console-setup console-setup/layout select U.S. English | |
console-setup console-setup/variantcode select U.S. English | |
console-setup console-setup/codeset select . Combined - Latin; Slavic Cyrillic; Hebrew; basic Arabic | |
# Partitioning | |
ubiquity partman-auto/init_automatically_partition select Guided - use entire disk | |
ubiquity partman-auto/disk string /dev/sda | |
ubiquity partman-auto/method string regular | |
ubiquity partman-auto/choose_recipe select All files in one partition (recommended for new users) | |
ubiquity partman/confirm_write_new_label boolean true | |
ubiquity partman/choose_partition select Finish partitioning and write changes to disk | |
ubiquity partman/confirm boolean true | |
ubiquity partman/confirm_nooverwrite boolean true | |
# User name and password | |
ubiquity passwd/user-fullname string | |
ubiquity passwd/username string login | |
ubiquity passwd/user-password-crypted password $1$... | |
ubiquity user-setup/encrypt-home boolean false | |
# Miscellaneous | |
ubiquity ubiquity/reboot boolean true | |
ubiquity migration-assistant/partitions multiselect | |
ubiquity ubiquity/summary note | |
ubiquity apt-setup/security-updates-failed note | |
ubiquity ubiquity/success_command string \ | |
mkdir -p /tmp/vmware-toolsmnt0; \ | |
mount -t iso9660 /dev/scd0 /tmp/vmware-toolsmnt0; \ | |
cp -a /tmp/vmware-toolsmnt0 /target/opt/vmware-tools-installer; \ | |
cd /target/opt/vmware-tools-installer/; \ | |
mv upgra32 vmware-tools-upgrader-32; \ | |
mv upgra64 vmware-tools-upgrader-64; \ | |
mv upgrade.sh run_upgrader.sh; \ | |
chmod +x /target/opt/vmware-tools-installer/*upgr*; \ | |
mv /target/etc/rc.local /target/etc/rc.local.backup; \ | |
sed '$d' /target/etc/rc.local.backup > /target/etc/rc.local; \ | |
mv /target/etc/rc2.d/S*gdm /target/opt/vmware-tools-installer || true; \ | |
mv /target/etc/rc2.d/S*kdm /target/opt/vmware-tools-installer || true; \ | |
mv /target/etc/rc2.d/S*kdm-kde4 /target/opt/vmware-tools-installer || true; \ | |
mv /target/etc/init/*dm.conf /target/opt/vmware-tools-installer || true; \ | |
cp /target/etc/issue /target/etc/issue.backup; \ | |
echo "************************************************" >/target/etc/issue; \ | |
echo "************************************************" >>/target/etc/issue; \ | |
echo " VMware Easy Install" >>/target/etc/issue; \ | |
echo >>/target/etc/issue; \ | |
echo " PLEASE WAIT! VMware Tools is currently being" >>/target/etc/issue; \ | |
echo " installed on your system. Depending on the" >>/target/etc/issue; \ | |
echo " version of Ubuntu you are installing, you may" >>/target/etc/issue; \ | |
echo " log in below and use the system during the" >>/target/etc/issue; \ | |
echo " installation. Otherwise, please wait for the" >>/target/etc/issue; \ | |
echo " graphical environment to launch. Thank you." >>/target/etc/issue; \ | |
echo >>/target/etc/issue; \ | |
echo "************************************************" >>/target/etc/issue; \ | |
echo "************************************************" >>/target/etc/issue; \ | |
chmod +x /target/etc/rc.local; \ | |
echo "chvt 2 < /dev/tty0 > /dev/tty0" >> /target/etc/rc.local; \ | |
echo "cd /opt/vmware-tools-installer" >> /target/etc/rc.local; \ | |
echo "./run_upgrader.sh" >> /target/etc/rc.local; \ | |
echo "mv /etc/rc.local.backup /etc/rc.local" >> /target/etc/rc.local; \ | |
echo "mv /etc/issue.backup /etc/issue" >> /target/etc/rc.local; \ | |
echo "mv /opt/vmware-tools-installer/S*gdm /etc/rc2.d/ 2>/dev/null || true" >> /target/etc/rc.local; \ | |
echo "mv /opt/vmware-tools-installer/S*kdm /etc/rc2.d/ 2>/dev/null || true" >> /target/etc/rc.local; \ | |
echo "mv /opt/vmware-tools-installer/S*kdm-kde4 /etc/rc2.d/ 2>/dev/null || true" >> /target/etc/rc.local; \ | |
echo "mv /opt/vmware-tools-installer/*dm.conf /etc/init/ 2>/dev/null || true" >> /target/etc/rc.local; \ | |
echo "rm -rf /opt/vmware-tools-installer" >> /target/etc/rc.local; \ | |
echo "chvt 1 < /dev/tty0 > /dev/tty0" >> /target/etc/rc.local; \ | |
echo "(/etc/init.d/gdm restart || /etc/init.d/kdm restart || /etc/init.d/kdm-kde4 restart) 2>/dev/null" >> /target/etc/rc.local | |
d-i preseed/late_command string \ | |
mkdir -p /tmp/vmware-toolsmnt0; \ | |
mount -t iso9660 /dev/scd0 /tmp/vmware-toolsmnt0; \ | |
cp -a /tmp/vmware-toolsmnt0 /target/opt/vmware-tools-installer; \ | |
cd /target/opt/vmware-tools-installer/; \ | |
mv upgra32 vmware-tools-upgrader-32; \ | |
mv upgra64 vmware-tools-upgrader-64; \ | |
mv upgrade.sh run_upgrader.sh; \ | |
chmod +x /target/opt/vmware-tools-installer/*upgr*; \ | |
mv /target/etc/rc.local /target/etc/rc.local.backup; \ | |
sed '$d' /target/etc/rc.local.backup > /target/etc/rc.local; \ | |
mv /target/etc/rc2.d/S*gdm /target/opt/vmware-tools-installer || true; \ | |
mv /target/etc/rc2.d/S*kdm /target/opt/vmware-tools-installer || true; \ | |
mv /target/etc/rc2.d/S*kdm-kde4 /target/opt/vmware-tools-installer || true; \ | |
mv /target/etc/init/*dm.conf /target/opt/vmware-tools-installer || true; \ | |
cp /target/etc/issue /target/etc/issue.backup; \ | |
echo "************************************************" >/target/etc/issue; \ | |
echo "************************************************" >>/target/etc/issue; \ | |
echo " VMware Easy Install" >>/target/etc/issue; \ | |
echo >>/target/etc/issue; \ | |
echo " PLEASE WAIT! VMware Tools is currently being" >>/target/etc/issue; \ | |
echo " installed on your system. Depending on the" >>/target/etc/issue; \ | |
echo " version of Ubuntu you are installing, you may" >>/target/etc/issue; \ | |
echo " log in below and use the system during the" >>/target/etc/issue; \ | |
echo " installation. Otherwise, please wait for the" >>/target/etc/issue; \ | |
echo " graphical environment to launch. Thank you." >>/target/etc/issue; \ | |
echo >>/target/etc/issue; \ | |
echo "************************************************" >>/target/etc/issue; \ | |
echo "************************************************" >>/target/etc/issue; \ | |
chmod +x /target/etc/rc.local; \ | |
echo "chvt 2 < /dev/tty0 > /dev/tty0" >> /target/etc/rc.local; \ | |
echo "cd /opt/vmware-tools-installer" >> /target/etc/rc.local; \ | |
echo "./run_upgrader.sh" >> /target/etc/rc.local; \ | |
echo "mv /etc/rc.local.backup /etc/rc.local" >> /target/etc/rc.local; \ | |
echo "mv /etc/issue.backup /etc/issue" >> /target/etc/rc.local; \ | |
echo "mv /opt/vmware-tools-installer/S*gdm /etc/rc2.d/ 2>/dev/null || true" >> /target/etc/rc.local; \ | |
echo "mv /opt/vmware-tools-installer/S*kdm /etc/rc2.d/ 2>/dev/null || true" >> /target/etc/rc.local; \ | |
echo "mv /opt/vmware-tools-installer/S*kdm-kde4 /etc/rc2.d/ 2>/dev/null || true" >> /target/etc/rc.local; \ | |
echo "mv /opt/vmware-tools-installer/*dm.conf /etc/init/ 2>/dev/null || true" >> /target/etc/rc.local; \ | |
echo "rm -rf /opt/vmware-tools-installer" >> /target/etc/rc.local; \ | |
echo "chvt 1 < /dev/tty0 > /dev/tty0" >> /target/etc/rc.local; \ | |
echo "(/etc/init.d/gdm restart || /etc/init.d/kdm restart || /etc/init.d/kdm-kde4 restart) 2>/dev/null" >> /target/etc/rc.local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment