(uploaded a new version of "File:Nvidia-meego.ks") |
|||
| Line 1: | Line 1: | ||
| + | # | ||
| + | # Do not Edit! Generated by: | ||
| + | # kickstarter.py | ||
| + | # | ||
| + | lang en_US.UTF-8 | ||
| + | keyboard us | ||
| + | timezone --utc America/New_York | ||
| + | auth --useshadow --enablemd5 | ||
| + | part / --size 3000 --ondisk sda --fstype=ext3 | ||
| + | rootpw meego | ||
| + | xconfig --startxonboot | ||
| + | bootloader --timeout=0 --append="quiet" | ||
| + | desktop --autologinuser=meego --defaultdesktop=moblin | ||
| + | user --name meego --groups audio,video --password meego | ||
| + | |||
| + | repo --name=adobe --baseurl=http://linuxdownload.adobe.com/linux/i386/ | ||
| + | repo --name=trunk --baseurl=http://repo.meego.com/MeeGo/releases/1.0/core/repos/ia32/packages/ | ||
| + | repo --name=extra --baseurl=http://repo.meego.com/MeeGo/releases/1.0/extra/repos/ia32/packages/ | ||
| + | repo --name=netbook --baseurl=http://repo.meego.com/MeeGo/releases/1.0/netbook/repos/ia32/packages/ | ||
| + | repo --name=non-oss --baseurl=http://repo.meego.com/MeeGo/releases/1.0/non-oss/repos/ia32/packages | ||
| + | |||
| + | |||
| + | repo --name=xinerama-xorg --baseurl=http://download.obs.maemo.org/home:/vljn/MeeGo_1.0_Core/ | ||
| + | |||
| + | |||
| + | %packages | ||
| + | |||
| + | @MeeGo Core | ||
| + | @MeeGo Netbook Desktop | ||
| + | @X for Netbooks | ||
| + | @MeeGo X Window System | ||
| + | #@Virtual Machine Support | ||
| + | #@Games | ||
| + | @Basic Desktop | ||
| + | @Basic Hardware Support | ||
| + | @Printing | ||
| + | @Base Double Byte IME Support | ||
| + | |||
| + | kernel-netbook-devel | ||
| + | |||
| + | -google-chrome | ||
| + | chromium | ||
| + | meego-netbook-intro | ||
| + | |||
| + | adobe-release | ||
| + | flash-plugin | ||
| + | |||
| + | |||
| + | #build tool for nvidia | ||
| + | wget | ||
| + | gcc | ||
| + | make | ||
| + | |||
| + | #xorg with xinerama | ||
| + | xorg-x11-server-Xorg-1.8.0 | ||
| + | xorg-x11-server-Xorg-setuid-1.8.0 | ||
| + | xorg-x11-server-common-1.8.0 | ||
| + | xorg-x11-server-1.8.0 | ||
| + | |||
| + | |||
| + | |||
| + | %end | ||
| + | |||
| + | |||
| + | %post | ||
| + | |||
| + | |||
| + | # verify link of flash plugin | ||
| + | if [ -f /usr/lib/flash-plugin/setup ]; then | ||
| + | sh /usr/lib/flash-plugin/setup install | ||
| + | rm -f /root/oldflashplugins.tar.gz | ||
| + | fi | ||
| + | |||
| + | |||
| + | |||
| + | # save a little bit of space at least... | ||
| + | rm -f /boot/initrd* | ||
| + | |||
| + | # make sure there aren't core files lying around | ||
| + | rm -f /core* | ||
| + | |||
| + | |||
| + | |||
| + | # Prelink can reduce boot time | ||
| + | if [ -x /usr/sbin/prelink ]; then | ||
| + | /usr/sbin/prelink -aRqm | ||
| + | fi | ||
| + | |||
| + | |||
| + | # work around for poor key import UI in PackageKit | ||
| + | rm -f /var/lib/rpm/__db* | ||
| + | rpm --rebuilddb | ||
| + | if [ -f /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux ]; then | ||
| + | rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux | ||
| + | fi | ||
| + | |||
| + | if [ -f /etc/pki/rpm-gpg/RPM-GPG-KEY-meego ]; then | ||
| + | rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-meego | ||
| + | fi | ||
| + | |||
| + | |||
| + | |||
| + | %end | ||
| + | |||
| + | %post --nochroot | ||
| + | if [ -n "$IMG_NAME" ]; then | ||
| + | echo "BUILD: $IMG_NAME" >> $INSTALL_ROOT/etc/meego-release | ||
| + | fi | ||
| + | |||
| + | %end | ||
| + | |||
| + | |||
| + | |||
| + | %post --nochroot | ||
| + | |||
| + | # Download NVIDIA drivers | ||
| + | wget -c http://us.download.nvidia.com/XFree86/Linux-x86/256.44/NVIDIA-Linux-x86-256.44.run | ||
| + | cp NVIDIA-Linux-x86-256.44.run $INSTALL_ROOT/tmp | ||
| + | |||
| + | |||
| + | # Write xorg.conf | ||
| + | cat > $INSTALL_ROOT/etc/X11/xorg.conf << EOF | ||
| + | Section "InputClass" | ||
| + | Identifier "evdev pointer catchall" | ||
| + | MatchIsPointer "on" | ||
| + | MatchDevicePath "/dev/input/event*" | ||
| + | Driver "evdev" | ||
| + | EndSection | ||
| + | |||
| + | Section "InputClass" | ||
| + | Identifier "evdev keyboard catchall" | ||
| + | MatchIsKeyboard "on" | ||
| + | MatchDevicePath "/dev/input/event*" | ||
| + | Driver "evdev" | ||
| + | EndSection | ||
| + | |||
| + | Section "Device" | ||
| + | Identifier "Device0" | ||
| + | Driver "nvidia" | ||
| + | VendorName "NVIDIA Corporation" | ||
| + | EndSection | ||
| + | EOF | ||
| + | |||
| + | # Set Nvidia access permission | ||
| + | cat > $INSTALL_ROOT/etc/modprobe.d/nvidia.conf << EOF | ||
| + | options nvidia NVreg_DeviceFileUID=0 | ||
| + | options nvidia NVreg_DeviceFileGID=500 | ||
| + | options nvidia NVreg_DeviceFileMode=0660 | ||
| + | EOF | ||
| + | |||
| + | |||
| + | |||
| + | %end | ||
| + | |||
| + | %post | ||
| + | |||
| + | |||
| + | # Extract NVIDIA drivers | ||
| + | pushd tmp | ||
| + | sh NVIDIA-Linux-x86-256.44.run -x | ||
| + | pushd NVIDIA-Linux-x86-256.44 | ||
| + | |||
| + | # Build kernel module | ||
| + | pushd kernel | ||
| + | SYSSRC=/usr/src/kernels/*/ make | ||
| + | SYSSRC=/usr/src/kernels/*/ make -C /usr/src/linux-obj/i586/netbook/ M=`pwd` modules | ||
| + | SYSSRC=/usr/src/kernels/*/ make -C /usr/src/linux-obj/i586/netbook/ M=`pwd` modules_install | ||
| + | popd | ||
| + | |||
| + | # Install binaries | ||
| + | popd | ||
| + | sh NVIDIA-Linux-x86-256.44.run -q -a -n -s --no-kernel-module | ||
| + | popd | ||
| + | |||
| + | |||
| + | # Set Xorg permission | ||
| + | chmod 4755 /usr/bin/Xorg | ||
| + | %end | ||
lang en_US.UTF-8 keyboard us timezone --utc America/New_York auth --useshadow --enablemd5 part / --size 3000 --ondisk sda --fstype=ext3 rootpw meego xconfig --startxonboot bootloader --timeout=0 --append="quiet" desktop --autologinuser=meego --defaultdesktop=moblin user --name meego --groups audio,video --password meego
repo --name=adobe --baseurl=http://linuxdownload.adobe.com/linux/i386/ repo --name=trunk --baseurl=http://repo.meego.com/MeeGo/releases/1.0/core/repos/ia32/packages/ repo --name=extra --baseurl=http://repo.meego.com/MeeGo/releases/1.0/extra/repos/ia32/packages/ repo --name=netbook --baseurl=http://repo.meego.com/MeeGo/releases/1.0/netbook/repos/ia32/packages/ repo --name=non-oss --baseurl=http://repo.meego.com/MeeGo/releases/1.0/non-oss/repos/ia32/packages
repo --name=xinerama-xorg --baseurl=http://download.obs.maemo.org/home:/vljn/MeeGo_1.0_Core/
%packages
@MeeGo Core @MeeGo Netbook Desktop @X for Netbooks @MeeGo X Window System
@Basic Desktop @Basic Hardware Support @Printing @Base Double Byte IME Support
kernel-netbook-devel
-google-chrome chromium meego-netbook-intro
adobe-release flash-plugin
wget gcc make
xorg-x11-server-Xorg-1.8.0 xorg-x11-server-Xorg-setuid-1.8.0 xorg-x11-server-common-1.8.0 xorg-x11-server-1.8.0
%end
%post
if [ -f /usr/lib/flash-plugin/setup ]; then
sh /usr/lib/flash-plugin/setup install rm -f /root/oldflashplugins.tar.gz
fi
rm -f /boot/initrd*
rm -f /core*
if [ -x /usr/sbin/prelink ]; then
/usr/sbin/prelink -aRqm
fi
rm -f /var/lib/rpm/__db* rpm --rebuilddb if [ -f /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux ]; then
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
fi
if [ -f /etc/pki/rpm-gpg/RPM-GPG-KEY-meego ]; then
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-meego
fi
%end
%post --nochroot if [ -n "$IMG_NAME" ]; then
echo "BUILD: $IMG_NAME" >> $INSTALL_ROOT/etc/meego-release
fi
%end
%post --nochroot
wget -c http://us.download.nvidia.com/XFree86/Linux-x86/256.44/NVIDIA-Linux-x86-256.44.run cp NVIDIA-Linux-x86-256.44.run $INSTALL_ROOT/tmp
cat > $INSTALL_ROOT/etc/X11/xorg.conf << EOF Section "InputClass"
Identifier "evdev pointer catchall"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
EndSection
Section "InputClass"
Identifier "evdev keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
EndSection
Section "Device"
Identifier "Device0" Driver "nvidia" VendorName "NVIDIA Corporation"
EndSection EOF
cat > $INSTALL_ROOT/etc/modprobe.d/nvidia.conf << EOF options nvidia NVreg_DeviceFileUID=0 options nvidia NVreg_DeviceFileGID=500 options nvidia NVreg_DeviceFileMode=0660 EOF
%end
%post
pushd tmp sh NVIDIA-Linux-x86-256.44.run -x pushd NVIDIA-Linux-x86-256.44
pushd kernel SYSSRC=/usr/src/kernels/*/ make SYSSRC=/usr/src/kernels/*/ make -C /usr/src/linux-obj/i586/netbook/ M=`pwd` modules SYSSRC=/usr/src/kernels/*/ make -C /usr/src/linux-obj/i586/netbook/ M=`pwd` modules_install popd
popd sh NVIDIA-Linux-x86-256.44.run -q -a -n -s --no-kernel-module popd
chmod 4755 /usr/bin/Xorg %end
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Dimensions | User | Comment | |
|---|---|---|---|---|
| current | 18:41, 22 August 2010 | (3 KB) | Vljn (Talk | contribs) | (Reverted to version as of 22:44, 21 August 2010) |
| 18:39, 22 August 2010 | (4 KB) | Vljn (Talk | contribs) | ||
| 18:37, 22 August 2010 | (4 KB) | Vljn (Talk | contribs) | ||
| 22:44, 21 August 2010 | (3 KB) | Vljn (Talk | contribs) |
There are no pages that link to this file.