Meego Wiki
Views

File:Nvidia-meego.ks

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
(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

Revision as of 18:37, 22 August 2010

  1. Do not Edit! Generated by:
  2. 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

  1. @Virtual Machine Support
  2. @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


  1. build tool for nvidia

wget gcc make

  1. 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


  1. 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


  1. save a little bit of space at least...

rm -f /boot/initrd*

  1. make sure there aren't core files lying around

rm -f /core*


  1. Prelink can reduce boot time

if [ -x /usr/sbin/prelink ]; then

   /usr/sbin/prelink -aRqm

fi


  1. 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

  1. 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


  1. 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

  1. 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


  1. Extract NVIDIA drivers

pushd tmp sh NVIDIA-Linux-x86-256.44.run -x pushd NVIDIA-Linux-x86-256.44

  1. 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

  1. Install binaries

popd sh NVIDIA-Linux-x86-256.44.run -q -a -n -s --no-kernel-module popd


  1. Set Xorg permission

chmod 4755 /usr/bin/Xorg %end

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current18: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.

Personal tools