Monday, December 22, 2008

Nvidia custom driver install using module assistant

First after a clean install, just leave the stock kernel and do NOT
install nvidia-glx

1) apt-get install module-assistant gcc nvidia-kernel-common
2) m-a update
3) m-a prepare
4) m-a auto-install nvidia (accept all the additional packages it
needs to install)
5) IMMEDIATELY AFTER: apt-get remove nvidia-kernel-`uname -a` (remove
the kernel module you just built, this was to prepare the latest
NVIDIA driver to build)
6) Download NVIDIA's latest drivers here :
http://www.nvidia.com/object/linux_display_ia32_177.82.html
7) Run the installer, it'll have to build a kernel module and it
should complain about the XLib path, but everything should be okay

At that point it should all be ready to go just copy the X config from
the other machine and it should be fine

- A.C.

Distcc/avahi daemon failed to parse host lists file

edit the avahi daeamon config file and set use-ipv6=no

apt-get returning package errors for valid packages

make sure your /etc/apt/preferences file is legit

Monday, October 13, 2008

NFS share with write access

Unless you are running NIS to share your logon information you have to
all_squash access on the server to a known server uid/guid

Server(/etc/exports): /<nfs_share>
192.168.1.0/255.255.255.0(rw,async,all_squash,anonuid=1000,anongid=1000)
Client(/etc/fstab
): <server_ip>:/<nfs_share> /mnt/<mount_point> nfs
defaults,users,rsize=32768,wsize=32786 0 0

Thursday, September 18, 2008

install nvidia's package drivers with a compiled kernel

cd /usr/src
CC=gcc SYSSRC=/usr/src/linux-2.6.26 SYSOUT=/usr/src/linux-2.6.26 sh
NVIDIA-Linux-x86-173.14.12-pkg1.run
startx

Firefox3 diverted links in background tab

about:config
browser.tabs.loadDivertedInBackground

Monday, September 8, 2008

making a kernel from source

apt-get update && apt-get install initrd-tools kernel-package

make mrpropper
make menuconfig
make-kpkg --initrd kernel_image

make sure initrd (ramdisk) is installed /boot/initrd-`kernalversion` in grub or lilo
(initrd /boot/initrd.img-2.6.18-6-k7)

DISTCC masquerade recursion issue

make sure that g++/gcc has absolute linkage to g++-/gcc-(version) otherwise there is will be a recursion issue

mkdir /usr/lib/distcc/bin
cd /usr/lib/distcc/bin
ln -s ../../../bin/distcc gcc
ln -s ../../../bin/distcc cc
ln -s ../../../bin/distcc g++

mkdir /etc/distcc
echo 'localhost' >> /etc/distcc/hosts

echo "export PATH=/usr/lib/distcc/bin:$PATH"
ln -sf /usr/bin/g++-4.1 /usr/bin/g++
ln -sf /usr/bin/gcc-4.1 /usr/bin/gcc

set path variable to have distcc as the first

Wednesday, September 3, 2008

Startup scripts enable disable

Enable:
- sudo update-rc.d  <scriptname> defaults
Disable:
- sudo update-rc.d -f  <scriptname> remove

http://www.debian-administration.org/articles/28

Command shell linux logon

edit /etc/inittab
change default runlevel to 1

ALSA Woes

If you have alsa configured correctly {sudo alsaconfig no error} you are using oss. Make sure that nothing is using the sounds card (XMMS).
Explicitly create the device files
mknod -m 777 /dev/dsp c 14 3
mknod -m 777 /dev/mixer c 14 0
Make sure xmms
- using alsa
- NOT software mixer

to reload
sudo alsa reload

Wednesday, August 27, 2008

Thursday, August 21, 2008

CUPS 'No authentication data provided'

Change LogLevel from info -> debug to see the above error
Instead of using ipp which the xerox supports, use lpd

Sunday, August 17, 2008

firefox 3 on debian etch

It bitches about not having at leat 2.10 gtk files. DONT download 2.12 because that has several other dependencies. Just download 2.10 and it will work.
cd /usr/src ; wget http://ftp.gnome.org/pub/gnome/sources/gtk+/2.10/gtk+-2.10.14.tar.bz2; tar xvfj gtk+-2.10.14.tar.bz2; cd gtk+-2.10.14; ./configure && make && make install