03/17/16

  04: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"

03/08/16

  10: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.

  09: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>192.168.0.65:37084-37084,udp,on,Skype UDP at 192.168.0.65:37084 (2587)
forward_port67=37084-37084>192.168.0.65:37084-37084,tcp,on,Skype TCP at 192.168.0.65:37084 (2587)
forward_port68=45327-45327>192.168.0.244:45327-45327,udp,on,Skype UDP at 192.168.0.244:45327 (2587)
forward_port69=45327-45327>192.168.0.244:45327-45327,tcp,on,Skype TCP at 192.168.0.244:45327 (2587)
forward_port350=14494-14494>192.168.0.228:14494-14494,udp,on,Skype UDP at 192.168.0.228:14494 (2718)
forward_port351=14494-14494>192.168.0.228:14494-14494,tcp,on,Skype TCP at 192.168.0.228:14494 (2718)
forward_port190=58936-58936>192.168.0.207:58936-58936,udp,on,Teredo
forward_port191=51556-51556>192.168.0.156:51556-51556,udp,on,Teredo
forward_port352=49419-49419>192.168.0.228:49419-49419,udp,on,Teredo
forward_port353=21858-21858>192.168.0.159:21858-21858,udp,on,Skype UDP at 192.168.0.159:21858 (2718)
forward_port192=15255-15255>192.168.0.199:15254-15254,udp,on,Skype UDP at 192.168.0.199:15254 (2661)
forward_port354=21858-21858>192.168.0.159:21858-21858,tcp,on,Skype TCP at 192.168.0.159:21858 (2718)
forward_port193=49313-49313>192.168.0.228:49313-49313,udp,on,Teredo
forward_port194=49977-49977>192.168.0.167:49977-49977,udp,on,Teredo
forward_port230=49460-49460>192.168.0.207:49460-49460,udp,on,Teredo
forward_port355=63293-63293>192.168.0.159:63293-63293,udp,on,Teredo
forward_port231=56557-56557>192.168.0.228:56557-56557,udp,on,Teredo
forward_port195=60778-60778>192.168.0.156:60778-60778,udp,on,Teredo
forward_port356=61598-61598>192.168.0.244:61598-61598,udp,on,Teredo
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
forward_port7=51891-51891>192.168.0.228:51891-51891,udp,on,Teredo
size: 26808 bytes (38728 left)

  09: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)

05/29/14

  03:20:00 am by wdawe, Categories: General

My 3D scan from the Beginner 3D workshop I took at Hot Pop Factory rendered on the web using SketchFab.


Me!
by wayne1
on Sketchfab

::

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

Search

  XML Feeds

Web Site Builder