Something I've been working on.
Wednesday, December 23, 2009
Thursday, July 2, 2009
Thursday, May 14, 2009
Adding Routes at startup
To add routes to be started, the file located at /etc/sysconfig/network-scripts/ifup-routes will parse each file named route-eth*. The file should end up looking like:
ADDRESS0=192.168.2.0
NETMASK0=255.255.255.0
GATEWAY0=192.168.2.1
Wednesday, April 29, 2009
Senior Design Done
It's the end of the semester, and that means the end of Senior Design. If you are interested in a Linux 3D immersive game using Wii motes, here's the link.
XWarpPointer
Just came across a way to move the mouse pointer to an absolute position in X. Follow the code below:
int main()
{
Display* xdisplay1 = XOpenDisplay(NULL);
if(!xdisplay1) {
printf("display = null\n");
}
Window root = DefaultRootWindow(xdisplay1);
XWarpPointer(xdisplay1, 0, root, 0, 0, 0, 0, 10, 10);
XCloseDisplay(xdisplay1);
}
Wednesday, February 25, 2009
Parsing HTTP Responses
Just so I don't have to remember again, in order to seperate a header from the body of a http response, in C:
Notice the \r, that is a carriage return, something that Linux/unix doesn't care much about, but is used more in Windows. I couldn't find any websites to help with this.
char* endOfHeader = strstr(buf, "\n\r\n");
Notice the \r, that is a carriage return, something that Linux/unix doesn't care much about, but is used more in Windows. I couldn't find any websites to help with this.
Tuesday, February 17, 2009
No devices: No Screens Detected.
Had a problem today with the no screens detected on the new Viz wall computers. Solved it by first installing the Nvidia binaries straight from their website, and then allowing X configure itself:
After it configured itself, starting X was only a matter of:
Then, I had a problem with getting 3 seperate X screens configured to be on top of each other. This was to prove that it was possible, for use on the Viz Wall. I copied over a working xorg.conf from another tile wall with the same configuration, but that one didn't pick up both of the monitors on the single card. There was an error involving not having DFP-0 and DFP-1 setup to be configured. So, after much work, I got the cards to recognize the DFP-0 and DFP-1 as seperate screens (ie. in different screen declarations).
The Xorg.conf (Google Docs)
Moral of the story, Nvidia-Settings is very good at figuring out how to configure monitors.
X -configure
cp xorg.conf.new /etc/X11/xorg.conf
nvidia-xconfig
After it configured itself, starting X was only a matter of:
init 5
Then, I had a problem with getting 3 seperate X screens configured to be on top of each other. This was to prove that it was possible, for use on the Viz Wall. I copied over a working xorg.conf from another tile wall with the same configuration, but that one didn't pick up both of the monitors on the single card. There was an error involving not having DFP-0 and DFP-1 setup to be configured. So, after much work, I got the cards to recognize the DFP-0 and DFP-1 as seperate screens (ie. in different screen declarations).
The Xorg.conf (Google Docs)
Moral of the story, Nvidia-Settings is very good at figuring out how to configure monitors.
Thursday, February 12, 2009
Fuse DFS Error
So, today I was having problems getting the fuse-dfs to work with my cluster. I was an error compiling fuse for my kernel (2.6.18-92.1.17.el5). It seems that yum has stop providing this kernel, and it's headers (yum install kernel-headers wanted to install a newer version).
To solve this problem, I simply compiled with a older kernel-headers already installed on the machine (2.6.18-53.1.13.el5). To do this:
The kernel module is in the directory kernel/. Modprobe will not work, instead use insmod.
This way is probably not the best way to do something like this, but it works.
To solve this problem, I simply compiled with a older kernel-headers already installed on the machine (2.6.18-53.1.13.el5). To do this:
./configure --with-kernel=kernel-dir && make
The kernel module is in the directory kernel/. Modprobe will not work, instead use insmod.
cd kernel
insmod fuse.ko
This way is probably not the best way to do something like this, but it works.
Tuesday, February 10, 2009
Fish Monitoring
After a few years of working on the Fish, I have finally published a video of them running, so that they could be demonstrated easier.
Monday, February 9, 2009
Viz Wall Computers
Today I put together a computer spec for the viz wall we are building here at RCF.
Here's the link to the page:
http://docs.google.com/Doc?id=dgjdk82m_23vp8rwfc2
Here's the link to the page:
http://docs.google.com/Doc?id=dgjdk82m_23vp8rwfc2
Subscribe to:
Posts (Atom)