Showing posts with label RaLink. Show all posts
Showing posts with label RaLink. Show all posts
Saturday, March 14, 2009
Screwing The Pooch, Linux-Style
My dear wife, Pinky Dink, has been running Ubuntu 6.04 LTS (LTS="Long Term Support") for close to three years now. She has been quite pleased with it but I've been bugging her about upgrading to 8.04 LTS for months.
But she's seen how my "upgrades" go (the long saga of EXP IV being the most recent) and wanted nothing to do with it. So we compromised for a while. 6.04 came stock with FireFox 1.x, which is dreadfully out of date. I found a hack on the Web and upgraded here to 2.x, which is only woefully out of date. The problem there is the upgrade was out-of-band, so she stopped getting updates to FireFox or important plug-ins like Flash (which is full of vulnerabilities and has been hacked to death lately).
Not a good situation.
So I finally talked her into it and she let me do it.
I anticipated the SCSI issue. Maybe you haven't noticed, but IDE hard drives are obsolete. SATA is now king and to simplify things, Linux now treats all drives as SCSI drives. If you upgrade to a new kernel and your root drive is on /dev/hda1 (the old IDE drive designation), the kernel will choke on boot because it thinks it should be /dev/sda1 (SCSI). The way around that is to either use LVM (Logical Volume Manager - which I despise) or to label your drives before you upgrade, which is exactly what I did, having learned that the hard way over several VM Linux upgrades and the EXP III/IV debacle. Use e2label for ext2/3/4 drives and mkswap /dev/whatever -L yourlabel for the swap partition. Then edit /etc/fstab with LABEL=yourlabel where /dev/hdax used to be. Reboot to make sure it works. If it doesn't... call me. Leave a message.
I knew there were going to be other issues. VNC4 is a wash, as I mentioned before. I was prepared for that. The alternative has always been Cygwin/X, which is slower and suffers from a lack of a dependable clipboard, among other things.
What I didn't expect was problems with her wireless drivers. When I first set that box up back in '06, the RaLink drivers had to be built from alpha or beta source and had to be rebuilt every time there was a kernel upgrade.
But over the years, the RaLink drivers were mainlined into the Linux kernel and that problem disappeared.
Turns out, it's back. With a vengeance. And it's apparently due to some "philosophical" differences the developers at Ubuntu have with the driver. For details, see this exasperated posting from some poor schmuck who can't get Ubuntu to admit they have a problem. I followed his lead, downloaded the source code, and blacklisted the stock Ubuntu drivers. Wireless is fine again, but I will be fucked on the next kernel upgrade.
One problem down.
The next was the remoting issue. Pinky's box is in the kitchen, but I always used VNC4 to hook up to it and do patching and housekeeping (which is a really bad idea - if your session gets trashed during an upgrade you can leave the box in an "undefined" state - but I'm prepared to take that risk because I'm too lazy to get up out of my chair).
As I said, I expected to fall back on Cygwin/X. Silly me.
Cygwin, for those who may not know, is a set of Linux utilities that run on top of Windows. Cygwin/X is an X server that allows you to run graphical programs or full graphical desktop sessions on another Unix box across the network while you're logged in to Windows.
This is very nice, considering it's free when most third party X servers (such as Hummingbird Exceed) cost hundreds of dollars.
The problem is, with all due respect to the Cygwin developers, they keep fucking the god damned thing up.
Upgrading Cygwin is a crap shoot. Something is always guaranteed to be broken.
So when I tried to connect to Pinkie's box and the X screen kept bouncing, blinking on and off, I knew I was in for more fun. I crossed my fingers, girded my loins, and upgraded Cygwin.
It worked. Or perhaps I should say I simply haven't found what's broken in it yet.
Now I have the box where I want it to be (almost). In fact I'm posting from it now, wirelessly and over a network Cygwin/X session! I'm 90% pleased with the way things turned out and this is still the best Linux box I ever built.
Labels:
cygwin/X,
linux,
pooch screwing,
RaLink,
Ubuntu
Sunday, September 02, 2007
Even More Debian Updates In Store
Debian has released yet another kernel upgrade that will affect both BOT House and Experimental II. This update has also made it's way into the Ubuntu tree and it's going to take down Mrs. Hinky's computer as well.
Lady Dink has been running Ubuntu 6.06 LTS for over a year on a refurb all-in-one IBM NetVista similar in speed & capacity to the EXP II server.
It has run flawlessly all this time and updates have never beeen an issue, but since she runs the same RaLink wireless NIC as EXP II, I expect the same problems (although, thinking back on it, she has had several kernel upgrades in the past year with no NIC problems whatsoever - perhaps that particular driver is in the Ubuntu tree).
Mrs. D. was a latecomer to the 21st century. We've been married 23 years (as of September 4th), and for two decades she has stared at the back of my head while I hacked away at my various projects.
She realized last year she needed the Internet and email to survive.
Her little Ubuntu box resides in a corner of the kitchen and when she's not cranking out batches of her award winning peanut butter fudge or Norwegian Almond Nut Bars she diddles away at the computer writing emails to her various relatives or to our Worthless Kid, who is attending "college" at the Moody Bible Institute, studying Creationology and Faith-Based Logic.
Since this is a three day weekend (I never understood why the USA decided to celebrate May Day in September), I may do the maintenance early tomorrow. BOT House shouldn't be an issue, but EXP II may be down for a couple of hours.
Lady Dink has been running Ubuntu 6.06 LTS for over a year on a refurb all-in-one IBM NetVista similar in speed & capacity to the EXP II server.
It has run flawlessly all this time and updates have never beeen an issue, but since she runs the same RaLink wireless NIC as EXP II, I expect the same problems (although, thinking back on it, she has had several kernel upgrades in the past year with no NIC problems whatsoever - perhaps that particular driver is in the Ubuntu tree).
Mrs. D. was a latecomer to the 21st century. We've been married 23 years (as of September 4th), and for two decades she has stared at the back of my head while I hacked away at my various projects.
She realized last year she needed the Internet and email to survive.
Her little Ubuntu box resides in a corner of the kitchen and when she's not cranking out batches of her award winning peanut butter fudge or Norwegian Almond Nut Bars she diddles away at the computer writing emails to her various relatives or to our Worthless Kid, who is attending "college" at the Moody Bible Institute, studying Creationology and Faith-Based Logic.
Since this is a three day weekend (I never understood why the USA decided to celebrate May Day in September), I may do the maintenance early tomorrow. BOT House shouldn't be an issue, but EXP II may be down for a couple of hours.
Saturday, August 18, 2007
Debian Update takes out EXP II
On 8/17 I did a remote Debian 40r0 update to the piece of crap IBM box that runs EXPERIMENTAL II.
I think Debian dropped the ball on this round of updates. A new kernel (in my case 2.6.18-5-686) was installed, but the reboot notification did not appear. When the server entered a period of quiet time I rebooted it and it did not come back up.
Not much I could do. I was at work and EXP II was at home. Sucks to be Hinky.
The same update on a variety of other boxes and VMs had the same problem (no reboot notification), but EXP II was the only one that did not come back up.
Then I remembered the RaLink rt61 wireless driver.
Ooops.
It doesn't come stock with the Linux kernel and if you upgrade the kernel, you have to recompile the driver. Not a big deal, but it completely slipped my mind, or what's left of it.
Since EXP II run headless in the corner of the Dink Family rumpus room and connects to DinkNet wirelessly, doing anything at all to it is a Major Operation™.
But I girded my loins (heh), unplugged it, and dragged it over to the workbench to recompile the rt61 driver.
Huh. No headers for the new kernel. You'd think those would come with the new kernel, but no. So I got those, ran make install, and rebooted.
Son of a bitch overwrote my interfaces file and set it up for DHCP. I don't have any any philosophical issues with DHCP but in my experience these RaLink drivers just don't do DHCP well.
Fixed that, rebooted again, checked everything out, shut 'er down, shoved it back into the corner, powered up, and let 'er rip.
I love this shit. Gives me something to do.
I think Debian dropped the ball on this round of updates. A new kernel (in my case 2.6.18-5-686) was installed, but the reboot notification did not appear. When the server entered a period of quiet time I rebooted it and it did not come back up.
Not much I could do. I was at work and EXP II was at home. Sucks to be Hinky.
The same update on a variety of other boxes and VMs had the same problem (no reboot notification), but EXP II was the only one that did not come back up.
Then I remembered the RaLink rt61 wireless driver.
Ooops.
It doesn't come stock with the Linux kernel and if you upgrade the kernel, you have to recompile the driver. Not a big deal, but it completely slipped my mind, or what's left of it.
Since EXP II run headless in the corner of the Dink Family rumpus room and connects to DinkNet wirelessly, doing anything at all to it is a Major Operation™.
But I girded my loins (heh), unplugged it, and dragged it over to the workbench to recompile the rt61 driver.
Huh. No headers for the new kernel. You'd think those would come with the new kernel, but no. So I got those, ran make install, and rebooted.
Son of a bitch overwrote my interfaces file and set it up for DHCP. I don't have any any philosophical issues with DHCP but in my experience these RaLink drivers just don't do DHCP well.
Fixed that, rebooted again, checked everything out, shut 'er down, shoved it back into the corner, powered up, and let 'er rip.
I love this shit. Gives me something to do.
Saturday, June 09, 2007
EXPERIMENTAL I & II
It's been a long time since my last post.
January, huh? Wow.
A lot has happened. Sometime in late January I put up EXPERIMENTAL I on an Ubuntu 6.04 VM I had on my desktop system. It ran surprisingly well. I had a couple of goals in mind:
There were a few bumps in the Robo-Hinky transition but it went well, so I bought a Hiro H50069 802.11g Wireless Adapter from TigerDirect for the wireless part of the project.
After that, everything started to go to Hell.
I never really had any complaints about TigerDirect until I bought that card. Real tech specs are hard to come by, and many manufacturers will ship a variety of hardware products under a single model number. You never know what's under the hood until you rip it off and look.
BUT, at the time (they're out of stock now) TigerDirect had a "photo gallery" on this... thing... and the photographs clearly showed it was based on a RaLink chipset, which is A Good Thing™ for Linux tards such as myself. Native RaLink drivers exist, work well, and are under active development. I was looking for a RaLink card. And I thought I had found one. After all, there was a picture! And it showed the right chip!
caveat emptor
What I got was a card, same make and model number as the one advertised, but with a Marvell Libertas 88w8335 chipset.
WTF? Those bastards!
Don't get me wrong. It turns out Marvell makes marvelous (heh) wireless chips. Absolutely the lowest power consumption on the planet. In fact, a Marvell chipset has been chosen for use in the One Laptop Per Child (OLPC) project.
But there weren't any Linux drivers (not exactly true, but the drivers were only available to the OLPC development team - something to do with the proprietary ARM OS burned onto the chips).
So after a lot of bad feeling, negative reviews, support calls, RMAs, etc., etc., I said my final farewells to TigerDirect (sorry, fellas but someone else is getting my money from here on out) and bit the bullet.
I decided to keep the card because I couldn't find a RaLink card. I chalked the TigerDirect fiasco up to experience.
I used the NDISwrapper driver, which is a Linux user's driver of last resort. Through a bit of serious programming wizardry NDISwrapper allows you to use any network card you can find an... ugh... Windows driver for.
And it "sort of" worked for about six weeks. But I got tired of the hanging and the core dumps so I put it back on the wired network.
And the problems didn't go away.
As it turns out, Slackware 11.0 itself is a pile of crap. And I hate to say that because:
In the middle of this entire driver/access point/OS fiasco I made a fatal error with fdisk (long story) and wiped out the BOT House server in the process. Since I had backups I put the whole shebang on the NetVista until I could rebuild the BOT House server. Performance was painful.
I thought I was going to rebuild with Ubuntu because it is a very, very slick Linux distro, but I have some serious problems with their basic philosophy (otherwise, if you can buy that drivel, I highly recommend it... not the drivel, the OS... Mrs.HinkyDink runs Ubuntu 6.04 and loves it). But Debian 4.0r0 came out in April, so I figured I'd give it a shot (BOT House was on an aging Debian Sarge distro before I trashed it).
And, as luck would have it, I found a GigaBit RaLink-based wireless NIC (VERIFIED!) at NewEgg.
Once BOT House was back on Debian I threw EXPERIMENTAL I on it as well, gutted the NetVista, wiped it, and replaced Slackware with Debian 4.0r0. The RaLink driver worked as expected (I never had any doubts about that) and the TrendNet access point proved to be rock solid (oddly, it too is powered by a Marvell Libertas chipset on an embedded Linux OS - go figure). I retired EXPERIMENTAL I and put EXPERIMENTAL II on the NetVista. I moved the NetVista to its new resting place where it is now doing double duty as a wireless print server. And a damned good wireless print server as well!
Everything works great now. It took six months and a lot of pain, but it works great. But what the Hell, I have too much free time as it is.
January, huh? Wow.
A lot has happened. Sometime in late January I put up EXPERIMENTAL I on an Ubuntu 6.04 VM I had on my desktop system. It ran surprisingly well. I had a couple of goals in mind:
- Re-write Robo-Hinky to use a common code base across all running games
- Implement a snort-based anti-cheat of my own design
- Make a wireless UT server that I could toss into the garage, basement, attic, whatever, if and when I wanted.
There were a few bumps in the Robo-Hinky transition but it went well, so I bought a Hiro H50069 802.11g Wireless Adapter from TigerDirect for the wireless part of the project.
After that, everything started to go to Hell.
I never really had any complaints about TigerDirect until I bought that card. Real tech specs are hard to come by, and many manufacturers will ship a variety of hardware products under a single model number. You never know what's under the hood until you rip it off and look.
BUT, at the time (they're out of stock now) TigerDirect had a "photo gallery" on this... thing... and the photographs clearly showed it was based on a RaLink chipset, which is A Good Thing™ for Linux tards such as myself. Native RaLink drivers exist, work well, and are under active development. I was looking for a RaLink card. And I thought I had found one. After all, there was a picture! And it showed the right chip!
caveat emptor
What I got was a card, same make and model number as the one advertised, but with a Marvell Libertas 88w8335 chipset.
WTF? Those bastards!
Don't get me wrong. It turns out Marvell makes marvelous (heh) wireless chips. Absolutely the lowest power consumption on the planet. In fact, a Marvell chipset has been chosen for use in the One Laptop Per Child (OLPC) project.
But there weren't any Linux drivers (not exactly true, but the drivers were only available to the OLPC development team - something to do with the proprietary ARM OS burned onto the chips).
So after a lot of bad feeling, negative reviews, support calls, RMAs, etc., etc., I said my final farewells to TigerDirect (sorry, fellas but someone else is getting my money from here on out) and bit the bullet.
I decided to keep the card because I couldn't find a RaLink card. I chalked the TigerDirect fiasco up to experience.
I used the NDISwrapper driver, which is a Linux user's driver of last resort. Through a bit of serious programming wizardry NDISwrapper allows you to use any network card you can find an... ugh... Windows driver for.
And it "sort of" worked for about six weeks. But I got tired of the hanging and the core dumps so I put it back on the wired network.
And the problems didn't go away.
As it turns out, Slackware 11.0 itself is a pile of crap. And I hate to say that because:
- Slackware was my first experience with Linux (way back in 1994)
- Slackware is blessed by (PRAISE HIS SWEET NAME!) Bob
In the middle of this entire driver/access point/OS fiasco I made a fatal error with fdisk (long story) and wiped out the BOT House server in the process. Since I had backups I put the whole shebang on the NetVista until I could rebuild the BOT House server. Performance was painful.
I thought I was going to rebuild with Ubuntu because it is a very, very slick Linux distro, but I have some serious problems with their basic philosophy (otherwise, if you can buy that drivel, I highly recommend it... not the drivel, the OS... Mrs.HinkyDink runs Ubuntu 6.04 and loves it). But Debian 4.0r0 came out in April, so I figured I'd give it a shot (BOT House was on an aging Debian Sarge distro before I trashed it).
And, as luck would have it, I found a GigaBit RaLink-based wireless NIC (VERIFIED!) at NewEgg.
Once BOT House was back on Debian I threw EXPERIMENTAL I on it as well, gutted the NetVista, wiped it, and replaced Slackware with Debian 4.0r0. The RaLink driver worked as expected (I never had any doubts about that) and the TrendNet access point proved to be rock solid (oddly, it too is powered by a Marvell Libertas chipset on an embedded Linux OS - go figure). I retired EXPERIMENTAL I and put EXPERIMENTAL II on the NetVista. I moved the NetVista to its new resting place where it is now doing double duty as a wireless print server. And a damned good wireless print server as well!
Everything works great now. It took six months and a lot of pain, but it works great. But what the Hell, I have too much free time as it is.
Labels:
Debian 4.0r0,
Marvell,
NDISwrapper,
NetVista,
OLPC,
RaLink,
Slackware,
TigerDirect,
TrendNet,
Ubuntu
Subscribe to:
Posts (Atom)