Monday, February 8, 2010

glCreateShaderObjectARB( GL_FRAGMENT_SHADER_ARB ) fails

because the card doesn't support frag or vertex 

if (GLEW_ARB_vertex_shader && GLEW_ARB_fragment_shader)
      printf("Ready for GLSL\n");

Thursday, October 1, 2009

apt-build

used to build source packages from apt WITH deps optimized for your architecture
booyeah!

Wednesday, September 30, 2009

'Password-less login with ssh'

These instructions explain what to do in order to be able to use ssh for
logging on a remote machine without entering your password.
All our machines use ssh protocol 2, so please follow the corresponding
instructions. However, for completeness, the instructions for protocol 1
are provided here as well.
Please note that all instructions pertain to
<a href="http://www.openssh.org/">OpenSSH</a>.

<h3>Protocol 2</h3>

On the originating machine, say<br>
<blockquote>
<b>ssh-keygen -t rsa</b>
</blockquote>
Save the key in the default file (~/.ssh/id_rsa) and do not use a passphrase.
This will create a file ~/.ssh/id_rsa.pub. Add the contents of this file to the
file ~/.ssh/authorized_keys2 on the <em>remote</em> machine (i.e., the machine
on which you want to log on). Whereas the id_rsa.pub file is world readable,
the authorized_keys2 file should only be readable by you. Use chmod to set the
permissions accordingly.

Monday, August 24, 2009

distcc with cmake

apt-get install distcc ccache avahidaemon
edit /etc/default/distcc
STARTDISTCC="true" ALLOWEDNETS="192.168.1.0/24" LISTENER=""
edit ~/.bashrc
CCACHE_PREFIX=distcc CXX=<homeDir>/g++-4.1 CC=<homeDir>/gcc-4.1
echo "#!/bin/bash" > <homeDir>/g++4.1
echo " " >> <homeDir>/g++4.1
echo " /usr/bin/ccache /usr/bin/g++-4.1 $@" >> <homeDir>/g++4.1
echo "#!/bin/bash" > <homeDir>/gcc4.1
echo " " >> <homeDir>/gcc4.1
echo " /usr/bin/ccache /usr/bin/gcc-4.1 $@" >> <homeDir>/gc4.1
run:
sudo /etc/init.d/avahi-daemon restart
sudo /etc/init.d/distcc restart
distcc show-hosts

Friday, May 15, 2009