Archive for category info
Reinstalling…
After being fed up with the firmware of the network appliance that runs this blog, I wiped everything and installed Debian. Until I get everything sorted out, stuff isn’t going to work quite the way it should.
Linux and SSH Filesystem permissions
I find the SSH Filesystem to be a huge help when working with several computers at the same time. I access my department’s storage as well as my network hard drive from anywhere. Until today, sometimes I was unable to overwrite or delete files mounted by sshfs. I realized that this was because by default, an sshfs mounted filesystem retains the userid and groupid of the remote owner. So, if I have userid and groupid 1000 on my local filesystem but userid 1024 and groupid 2048 on the remote filesystem, I may have trouble writing stuff on the remote filesystem. Linux sees that the userid and groupid are not my own, so I’m in trouble if the file I want to write to doesn’t allow others to write.
Looking here and here I found that you can mount a remote filesystem as a particular local user and/or group. I modified my /etc/fstab accordingly so that all users of the “fuse” group can correctly mount my remote filesystem:
sshfs#username@remotehost:/remotedir /path/to/mountpoint fuse user,noauto 0 0
You can also specify a user or group id by replacing user with uid=xxxx,gid=xxxx.
TinyOS and NesC syntax highlighting
Posted by Matt in development, info on February 20, 2009
Since I’ve been doing some more work with TinyOS, here is a gedit .lang file that provides nesC syntax highlighting. I got the file from the author of this post on the TinyOS mailing list and it’s been pretty useful. To install it in Ubuntu, place the file in /usr/share/gtksourceview-2.0/language-specs/. Unfortunately, you’ve got to be root to do this and I don’t know of another way to add .lang files if you aren’t. This is a problem for the departmental machines where I don’t have root access, so I can’t use custom gedit syntax highlighting.
There is a more heavyweight solution, if you like Eclipse. Since I’ve been using Subclipse with Eclipse on several machines to keep all my code in sync, I’ve found Eclipse to be pretty useful. A TinyOS 2.x Eclipse plugin is available on this site that provides syntax highlighting and it appears as though it will compile and install source code as well (though I haven’t tried that part).
2/21/2009: Since I’m on the topic of Eclipse, I’ve noticed that the Ubuntu repository Eclipse version is 3.2, but 3.4 is available from the Eclipse website. Following this guide, it seems that you can override the /usr/eclipse directory with the new version if you want to upgrade. Plugins will have to be reinstalled, though.
Upgrade Headaches…
Posted by Matt in development, general, info on January 29, 2009
Yesterday I installed Intrepid Ibex 8.10 on my aging (now ex-gaming) desktop machine in an attempt to breathe new life into it. I wound up biting the bullet and ordering a new monitor and Xbox 360 for games, so now I’ve got two monitors. Neither the Lenovo nor the Mac laptop I’ve got support two external monitors, so I thought I would give the desktop a try. Though the installation went fairly well, two really annoying things weren’t working correctly, and a third I’m still dealing with.
First, the mouse. I have a Razer Copperhead USB mouse that’s been great for years and when I first booted after the installation, it didn’t work. The lights came on, but I couldn’t move it. If I unplugged it and plugged it back in, it worked fine. This would happen every time I rebooted the machine: no movement, unplug, plug back in. After some digging around, I found the problem was that the mouse firmware had to be upgraded. Of course, Razer only has the update software for Windows, so after some screwing around with that, I rebooted with the Linux machine and it worked fine without having to unplug the mouse.
Second, the dual head support for my ATI video card was lacking after the initial install, just mirroring my primary monitor onto the other. I was able to fix this by installing the proprietary ATI drivers and using the ATI Catalyst Control Center to “merge” both screens into one. Of course, this didn’t entirely fix the problem since every time I rebooted, the mirroring came back. I finally found out that after I set the displays correctly in the ATI Control Center that I had to open up the Ubuntu Display Settings panel and hit “Apply”.
Both of these problems were really annoying, kept me searching and frustrated for hours, and have rather quirky solutions. While I really like Linux, stuff like this doesn’t seem to happen as much with Mac or Windows. However, community support is pretty good so after some extensive research I was finally able to find others with my problems that had found solutions.
Now everything seems to be working well, except that the stand for my monitor arrived bent. It’s only a couple millimeters out of shape and the box it came in seemed undamaged, so I’m not sure what happened. It’s bad enough that when I type sometimes the monitor wobbles. It’s something I could probably live with, but the wobbling is annoying and I paid for a new product (not refurbished) so I don’t feel like letting it go. So, I spent two hours with phone tree hell HP tech support about returning it and then filed an RMA request from the online vendor. It would be best if I could just replace the stand since the monitor is fine — there’s only one stuck pixel. Shipping the whole thing back is going to be expensive if the RMA is approved. I guess the question is if the bent stand is worth another $30.
I still haven’t gotten to the Xbox yet because of all this (and some other annoying legwork type stuff for a research proposal that is due this week). It also turns out that I got the wrong RCA to mini-stereo adapter and will have to try to exchange that so I can plug in the Xbox sound to the line in on my PC. The whole thing is kind of funny because part of the reason I went with an Xbox was to avoid dealing with putting together a new system and troubleshooting the whole thing when a bunch of stuff doesn’t work. Instead, I got more than I bargained for.
Enough of LiveJournal
I’ve had it with the Kid Pix themes and appeal. It’s now time to graduate to something more professional.
Fake PSP Memory Stick: Paypal Refund
I was lucky, the seller of the fake 8GB Memory Stick Duo for my PSP gave me a refund, as I returned the item.
I doubt this happens to many people. I think I’ve learned my lesson and will have to do more extensive research the next time I think about buying something on eBay.
Recent Comments