You are not logged in.
hi
i put up the nvidia installer to my repo
now you can install/upgrade/deinstall the nvidia driver with pacman
if it works for you all nvidia users
i will put it up to staging
feedback is very welcome
i included an installation instruction as well with further steps after installing
have a look at it if i forgot something contact me
here are the files
PKGBUILD
# Contributor : Tobias Powalowski
pkgname=nvidia
pkgver=1.0.5336
pkgbinary=NVIDIA-Linux-x86-1.0-5336
pkgrel=1
pkgdesc="The Nvidia drivers for XFree86"
url="http://www.nvidia.com"
depends=('kernel26' 'xfree86' 'bash')
source=('ftp://download.nvidia.com/XFree86/Linux-x86/1.0-5336/NVIDIA-Linux-x86-1.0-5336-pkg0.run' 'ftp://download.nvidia.com/XFree86/Linux … 336/README')
install="nvidia.install"
build() {
cd $startdir/src/
chmod +x $pkgbinary-pkg0.run
mkdir -p $startdir/pkg/opt/nvidia
mv * $startdir/pkg/opt/nvidia
}
md5sums=('2ceffa20391d5471b8a483101563eccb' 'e739db6166f31e5cb7d2d5c8c1cd26a5')
nvidia.install
post_install() {
cat << EOF
==> Nvidia-Driver installed to /opt/nvidia
==> turn to console mode and
==> run /opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run as root
==> to finish installation
==> If you are in console mode installer starts now!
EOF
/bin/true
/opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run -a -q --no-network
modprobe nvidia
cat << EOF
==> After installation do the following steps:
==> XF86Config:
==> Disable in modules section
==> GLcore and DRI
==> Add to modules section
==> Load "glx"
==> change driver "nv" to
==> driver "nvidia"
==> Finally:
==> Add nvidia to rc.conf modules section
==> For more options have a look at the README file in /opt/nvidia
EOF
}
post_upgrade() {
cat << EOF
==> Nvidia-Driver installed to /opt/nvidia
==> turn to console mode and
==> run /opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run as root
==> to finish update
==> If you are in console mode installer starts now!
EOF
/bin/true
rmmod nvidia
/opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run -a -q --no-network
modprobe nvidia
}
pre_remove() {
cat << EOF
==> Deinstaller starts now!
==> Don't forget to update XF86Config
EOF
/bin/true
rmmod nvidia
/opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run -a -q --no-network --uninstall
}
op=$1
shift
$op $*
Offline
Works Fine For Me
Good Work tpowa.
Offline
at the moment only kernel 2.6.5 work with the package
don't try the scsi kernel you'll get a message to remove your kernel
i'll try to fix that
Offline
package fixed
please give feedback
here is the new PKGBUILD for all who cannot wait till database is synced:
# Contributor : Tobias Powalowski
pkgname=nvidia
pkgver=1.0.5336
pkgbinary=NVIDIA-Linux-x86-1.0-5336
pkgrel=2
pkgdesc="The Nvidia drivers for XFree86"
url="http://www.nvidia.com"
depends=('xfree86' 'bash')
source=('ftp://download.nvidia.com/XFree86/Linux-x86/1.0-5336/NVIDIA-Linux-x86-1.0-5336-pkg0.run' 'ftp://download.nvidia.com/XFree86/Linux … 336/README')
install="nvidia.install"
build() {
cd $startdir/src/
chmod +x $pkgbinary-pkg0.run
mkdir -p $startdir/pkg/opt/nvidia
mv * $startdir/pkg/opt/nvidia
}
md5sums=('2ceffa20391d5471b8a483101563eccb' 'e739db6166f31e5cb7d2d5c8c1cd26a5')
nvidia.install file:
post_install() {
cat << EOF
==> REQUIREMENT FOR NVIDIA DRIVER INSTALLATION:
YOU NEED THE KERNEL-SOURCES OF YOUR CURRENT KERNEL
THE STOCK KERNEL >=2.6.5 SOLVES THAT REQUIREMENT
==> Nvidia-Driver installed to /opt/nvidia
==> turn to console mode and run as root:
==> /opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run
==> to finish installation
==> If you are in console mode installer starts now!
EOF
/bin/true
/opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run -a -q --no-network
modprobe nvidia
cat << EOF
==> After installation do the following steps:
==> XF86Config:
==> Disable in modules section
==> GLcore and DRI
==> Add to modules section
==> Load "glx"
==> change driver "nv" to
==> driver "nvidia"
==> Finally:
==> Add nvidia to rc.conf modules section
==> For more options have a look at the README file in /opt/nvidia
EOF
}
post_upgrade() {
cat << EOF
==> REQUIREMENT FOR NVIDIA DRIVER INSTALLATION:
YOU NEED THE KERNEL-SOURCES OF YOUR CURRENT KERNEL
THE STOCK KERNEL >=2.6.5 SOLVES THAT REQUIREMENT
==> Nvidia-Driver installed to /opt/nvidia
==> turn to console mode and run as root:
==> /opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run
==> to finish update
==> If you are in console mode installer starts now!
EOF
/bin/true
rmmod nvidia
/opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run -a -q --no-network
modprobe nvidia
}
pre_remove() {
cat << EOF
==> Deinstaller starts now!
==> Don't forget to update XF86Config
EOF
/bin/true
rmmod nvidia
/opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run -a -q --no-network --uninstall
}
op=$1
shift
$op $*
Offline
That's some nice work but if I may criticize, I think that it still in the end amounts to little more than the user downloading the nvidia installer and running it.
I noticed this little part in NVIDIA's license which may be to our benefit:
2.1.2 Linux Exception. Notwithstanding the foregoing terms of Section 2.1.1, SOFTWARE designed exclusively for use on the Linux operating system may be copied and redistributed, provided that the binary files thereof are not modified in any way (except for unzipping of compressed files).
Given this, why can't we then just distribute nvidia like we do other packages which include kernel modules, i. e. as a set of precompiled modules which gets updated each time the kernel is?
The PKGBUILD above still requires the user to use NVIDIA's installer, and the installed files also can not be tracked by pacman (as they are installed post-install, not into a destroot during makepkg).
In the spirit of Arch's packaging, I would suggest making a true nvidia package rather than this.
Offline
it uses the installer because in that way you can use your own compiled kernel
not all archers are using the newest kernel
or modify them to their needs
with this method all goes well
sorry i didn't get it work with a other method
the files are not traced by pacman
but the uninstall routine is called if you remove the driver
with pacman -R that should be enough
suggestions are welcome
Offline
Given this, why can't we then just distribute nvidia like we do other packages which include kernel modules, i. e. as a set of precompiled modules which gets updated each time the kernel is?
Once upon a time the nvidia driver was packaged like this but changes in their installer made it more difficult to install to a seperate directory (like makepkg needs). Not only that, but the nvidia installer got so good that we felt we didn't need to include a package anymore.
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal
Offline
I installed your package few days ago, and i noticed tha opengl programs run
much slower than did in my previous distro slackware with nvidia drivers.
I also noticed that it gives me the following warning:
/usr/lib/libGL.so.1: no version information available
Has anyone noticed something similar?
Offline
hi
i will put up a new package on friday
but that fixes only doc and type of installation
have you tried to run the installer from /opt/nvidia?
the package does nothing more than running the installer
and show up some hints from the docs
so i can't imagine it is much slower than on any other distro
i guess the libGL.so.1 of your system is wrong linked perhaps to mesa or so
check the link
and try deinstall and reinstall of the driver and run the installer from the /opt/nvidia directory
bye
Offline
here are the new PKGBUILDS that will come up on friday
# Contributor : Tobias Powalowski
pkgname=nvidia
pkgver=1.0.5336
pkgbinary=NVIDIA-Linux-x86-1.0-5336
pkgrel=3
pkgdesc="The Nvidia drivers for XFree86"
url="http://www.nvidia.com"
depends=('xfree86' 'bash')
source=('ftp://download.nvidia.com/XFree86/Linux-x86/1.0-5336/NVIDIA-Linux-x86-1.0-5336-pkg0.run')
install="nvidia.install"
build() {
cd $startdir/src/
chmod +x $pkgbinary-pkg0.run
mkdir -p $startdir/pkg/opt/nvidia
mv * $startdir/pkg/opt/nvidia
}
md5sums=('2ceffa20391d5471b8a483101563eccb')
nvidia.install:
post_install() {
cat << EOF
==> REQUIREMENT FOR NVIDIA DRIVER INSTALLATION:
YOU NEED THE KERNEL-SOURCES OF YOUR CURRENT KERNEL
THE STOCK KERNEL >=2.6.5 SOLVES THAT REQUIREMENT
==> Nvidia-Driver installed to /opt/nvidia
==> turn to console mode and run as root:
==> /opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run
==> to finish installation.
==> If you are in console mode installer starts now!
EOF
/bin/true
/opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run -a -q --no-network --ui=none -n
modprobe nvidia
cat << EOF
==> After installation do the following steps:
==> edit /etc/X11/XF86Config:
==> Disable in modules section
==> GLcore and DRI
==> Add to modules section
==> Load "glx"
==> change driver "nv" to
==> driver "nvidia"
==> Finally:
==> Add nvidia to /etc/rc.conf modules section
==> For more options and information have a look at the README file:
==> /usr/share/doc/NVIDIA_GLX-1.0/README
EOF
}
post_upgrade() {
cat << EOF
==> REQUIREMENT FOR NVIDIA DRIVER INSTALLATION:
YOU NEED THE KERNEL-SOURCES OF YOUR CURRENT KERNEL
THE STOCK KERNEL >=2.6.5 SOLVES THAT REQUIREMENT
==> Nvidia-Driver installed to /opt/nvidia
==> turn to console mode and run as root:
==> /opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run
==> to finish update.
==> If you are in console mode update starts now!
EOF
/bin/true
rmmod nvidia
/opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run -a -q --no-network --ui=none -n
modprobe nvidia
}
pre_remove() {
cat << EOF
==> Deinstallation starts now!
EOF
/bin/true
rmmod nvidia
/opt/nvidia/./NVIDIA-Linux-x86-1.0-5336-pkg0.run -a -q --no-network --ui=none --uninstall
cat << EOF
==> Don't forget to update your /etc/X11/XF86Config!
EOF
}
op=$1
shift
$op $*
Offline
Sorry my mistake :oops:
libGL was linked with mesa,
i removed mesa and now works fine.
Thx for the help.
Offline
The nvidia installer has an option to add the newly compiled module to the installer, that way other people can just use that new installer without compiling their own module, and they also don't need to have any kernel sources. The only reason I didn't make a package yet is because I don't use a default Arch kernel (the module I get isn't compatible with Arch's kernel), and because I didn't figure out yet how to get rid of the existing precompiled modules, the nvidia installer could be about 5 Mb smaller without those.
Offline
the package is made for the stock kernel
there i can test it
it should work with custom kernels if you have installed kernel sources
the package uses the version of the installer without any precompiled driver so it is 4.5MB instead of 5.5MB
Offline
With all my respect and appretiation to tpowa's work, I can't understand the use of the current nvidia package. Why not offer only precompiled modules as suggested. If the problem is that not everybody runs the latest kernel the package could then include precompiled modules for several previous kernel versions (say 2.6.2, 2.6.3, 2.6.4 and 2.6.5) and installs the module corresponding the kernel of the system of concern, or even give the choice to the user (incase he's running several kernel versions) . The size of the package will significantly fall cause it will not include the nvidia installer itself. If somebody wants to compile his own module he can always download the nvidia installer from nvidia's website.
Offline
Really, I don't mind anymore, now that I've tried it. tpowa, your pkg works great as-is, and is at least a step up from running the curses installer.
If you develop an ear for sounds that are musical it is like developing an ego. You begin to refuse sounds that are not musical and that way cut yourself off from a good deal of experience.
- John Cage
Offline
where it says "
if you are in console mode the installer will start now"
it does not if you are in console mode and running 'mc'
Off to using Peanut and Slackware, no hard feelings but I need my CD to burn, PDA and scanner to connect and arch won't do it.
[img]http://www.flightsimhq.org/images/war-is-bushit_s.jpg[/img]
Offline
thanks that i didn't try
with console mode
that means you are not running X
and do a
pacman -S nvidia from the normal console login
i'll try to fix the message that it becomes more clear
Offline
you could also mention that you need to remain connected to the internet
while you install
those troopers on dialup will need a console conection tool.
wvdial?
Off to using Peanut and Slackware, no hard feelings but I need my CD to burn, PDA and scanner to connect and arch won't do it.
[img]http://www.flightsimhq.org/images/war-is-bushit_s.jpg[/img]
Offline
no a connection to the internet is not needed at all
after you have downloaded my package
Offline
@ potentials:
the package i made is for most compatibility
think of custom kernel or older kernels
it's just the nvidia-installer called by pacman
without user interaction + get some hints to get the driver to work
so you have control over the files you have installed
and know how to configure XF86Config etc.
i didn't find a way to make a PKGBUILD for the case you described
the installer is tricky with this situation. i tried it i found no way to do it.
in the state as it is now it works on most systems and i think thats an important point.
An other thing what if the module you have installed doesn't work no chance to get your card to run (you have to take vesa or nv to get X running again), if you use my package you can use the installer at /opt/nvidia to get debugging what went wrong.
think of other distros suse, red hat have to download the big package 5.6 MB if you don't want to have the kernel-sources installed
i only use the "small" 4.5 MB package without the other precompiled modules for other distros
Offline
i moved the package to staging
i think it's stable enough
Offline
new version is in staging
DRIVER 1.0.6106
i have no probs with the new drivers
if you want to be on the safe side hold a copy of the old drivers
(like always it's a little bit a roulette to change the graphics driver, but there are some new features that might be interesting)
Offline
sorry but i still don't see the point of having a nvidia pkg.
there were plenty of reasons that it was removed in the first place.
AKA uknowme
I am not your friend
Offline
i dont really see the reason for all this messing arround (maybe its to hard but its the closest words) with this nvidia pkg.
now I ask:
why souldnt there be an nvidia pkg?
______
"Ignorance, the root and the stem of every evil." - Plato
Offline