01:14:00 am by wdawe, Categories: General

There was an error when compiling the vcglib package, access.not in vcglib/wrap/ply/plystuff. All you have to do is add #include <unitstd.h> on a new line after #include <fcntl.h>

 PermalinkLeave a comment »


  12:47:00 am by wdawe, Categories: General

Port forwarding mysteriously stopped working on my Dlink DIR825-C1 running DD-WRT. After trying many different things and almost ditching my ISP I found the following solution on http://www.dd-wrt.com/phpBB2/viewtopic.php?p=673373, thanks to user mojud.

In the Control Panel click on "Administration" then on "Commands". Copy and paste the following inside the Commands box:

iptables -t nat -A POSTROUTING -j MASQUERADE

Click on "Save Firewall" and then "Run Commands"


  05:46:00 pm by wdawe, Categories: General

Before installing CUDA 7.5 on Centos 7 you need to update both your kernel and X using yum update otherwise mayhem will ensue and X won't start. I installed them in the wrong order and ended up with the following error when I tried to start X.

[ 467.272] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[ 467.272] (EE) NVIDIA(0): log file that the GLX module has been loaded in your X
[ 467.272] (EE) NVIDIA(0): server, and that the module is the NVIDIA GLX module. If
[ 467.272] (EE) NVIDIA(0): you continue to encounter problems, Please try
[ 467.272] (EE) NVIDIA(0): reinstalling the NVIDIA driver.

reinstalling the nvidia drivers didn't solve the problem the key turned out to be this which occurs a bit higher in the Xorg.0.log file

[ 467.240] (II) LoadModule: "glx"
[ 467.240] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 467.261] (II) Module glx: vendor="X.Org Foundation"
[ 467.261] compiled for 1.17.2, module version = 1.0.0
[ 467.261] ABI class: X.Org Server Extension, version 9.0
[ 467.261] (==) AIGLX enabled

That's not the glx driver that NVIDIA needs so I went to /usr/lib64/xorg/modules/extensions and removed the libglx.so that was there and made a link to the NVIDIA version.

cd /usr/lib64/xorg/modules/extensions/
rm libglx.so
ln -s /usr/lib64/nvidia/xorg/libglx.so

not pretty but it worked.

  04:35:00 pm by wdawe, Categories: General

All of a sudden port forwarding stopped working in dd-wrt, checking the nvram showed lots of old upnp port forwards hanging around and no space left in the nvram.

root@DD-WRT:~# nvram show | grep forward_port

forward_port66=37084-37084>,udp,on,Skype UDP at (2587)
forward_port67=37084-37084>,tcp,on,Skype TCP at (2587)
forward_port68=45327-45327>,udp,on,Skype UDP at (2587)
forward_port69=45327-45327>,tcp,on,Skype TCP at (2587)
forward_port350=14494-14494>,udp,on,Skype UDP at (2718)
forward_port351=14494-14494>,tcp,on,Skype TCP at (2718)
forward_port353=21858-21858>,udp,on,Skype UDP at (2718)
forward_port192=15255-15255>,udp,on,Skype UDP at (2661)
forward_port354=21858-21858>,tcp,on,Skype TCP at (2718)
size: 65549 bytes (-13 left)

This command removes all the old forwards and freed up enough nvram so that the wifi parameters could be saved.

root@DD-WRT:~# for i in `nvram show | grep forward_port | cut -f1 -d=""`; do nvram unset $i; done
root@DD-WRT:~# nvram commit

root@DD-WRT:~# nvram show | grep forward_port
size: 26808 bytes (38728 left)

  04:33:00 pm by wdawe, Categories: General

By opening System Settings > Displays you can change your "primary" screen by dragging the black little bar to the display you want and hit the Apply button. ( from http://askubuntu.com/questions/113246/permanantly-set-monitor-as-primary)

Copy the configuration file over to the gdm settings
cp ~/.config/monitors.xml /var/lib/gdm/.config/ (from http://askubuntu.com/questions/11738/force-gdm-login-screen-to-the-primary-monitor)


Cool web tools, EEPC tips and Linux info. Browse around, I'm sure you will find something to interest you.


  XML Feeds