Monday, December 5, 2011

Mouse Speed

I have been using #! 10 (Openbox) on a USB HDD and a regular USB pendrive because I don't have a computer to dedicate completely.  As such, occasionally I will get running on a computer and the touchpad is either way too fast or too slow.  This can be controlled using the xset command.  To avoid doing this all the time, I added this to my autostart.sh file (and commenting out the ones I did not need but left in for reference).  These were lifted from the crunchbang forums: (http://crunchbanglinux.org/forums/topic/1511/how-to-increase-mouse-speed-or-motion-for-lack-of-a-better-word/)

       xset m 7 10 &                  Very Fast
       xset m 3 10 &                  Normal (Fast)  
       xset m default &              Default speed
       xset m 0 10 &                 Glacial



So, in your autostart.sh file, this might look like this for 'default' speed: 


       ##   xset m 7 10 &             ## Very Fast
       ##   xset m 3 10 &             ## Normal (Fast)
       xset m default &                ## Default speed     <--- not commented out
       ##   xset m 0 10 &             ## Glacial

This way, you can change the sensitivity for a given computer / notebook that you are using on a regular basis without having to change it each time. Of course, if you swap computers a lot, it is worth just knowing the command you can enter at the terminal as well.  It is fairly convenient to remember simply xset m default and this has worked for me on most of the computers I have used thus far.

Tuesday, November 29, 2011

Debian SqueeZe Repositories

This is a good newbie thing to learn:

I was trying to update my #! and was getting EXTREMELY slow downloads.  The default ftp debian repository is in Europe, so I thought I should probably make this closer, say, in the U.S. for example.  So, how do you do that?

The debian repository that is std on #! Statler is for debian SqeeZe is listed in a file called sources.list, and it can be found from within the terminal at:

     /etc/apt/sources.list

so, you can start by changing into that directory:

     cd  /etc/apt

then

     sudo gedit sources.list


(I did this as sudo because I don't presently know how to access this file otherwise. Please feel free to comment if there is a better way to change read-only permission!)

This will provide the list of sources within the file.  I added a # in front of the currently used ftp from Europe, which is listed as:


     http://ftp.de.debian.org/debian/ squeeze main contrib non-free


which I changed to:
   
     http://ftp.us.debian.org/debian/ squeeze main contrib non-free


This sped things up quite a bit and I completed all updates within minutes as opposed to hours or days.   I think this wasn't obvious and is likely a very early thing one should do when installing #! in the US. It makes additional downloads and software much smoother to obtain as well.

Monday, October 24, 2011

Crunchbang Time #!

To set time in Crunchbang Statler:

sudo apt-get update
First update the system.  

sudo install ntpdate
ntpdate is the pkg to sync to time server.
edit: I have had to do this through the pkg manager (i.e. synaptic) this doesn't seem to obtain ntpdate anymore? as of 11/29/2011

sudo dpkg-reconfigure tzdata
This will enable you to set/change your time zone even if you had previously set this to the wrong location.

Linux

so finally, I have entered the world of Linux.  I cruised around the distros for awhile, finding the best one to run on an old Dell laptop, so there is that limitation.  Ultimately, though, the "slimmer" distros run incredibly fast.  It actually makes my everyday computers seem more noticeably slow by comparison.  Top contenders for me were: Ubuntu 11.10 (natty narwhal), Puppy Linux (Lucid Puppy) and Crunchbang 10 (Statler).  I finally settled on Crunchbang, it really is the smoothest, and most asthetic distro and is very fast and trimmed down.  Ubuntu was very easy to transition to, and very useful.  If you can work with Crunchbang, though, I think you will learn more about linux in general and how to navigate / use it better than if you go through only Ubuntu.  But I have to say, Ubuntu smoothed my transition significantly, and I still plan to have that running on one of our computers at home for the rest of the family to use who don't want to try to solve their way through crunchbang (#!)
So, I plan to post some of my issues here as I work through them, mostly as my own repository and reference for myself, but perhaps someone could find it useful.  A lot of this is on the forums, of course, but as they grow it can be hard to find exactly what you are looking for.  And my problems will be absolute, BASE beginner problems so...
Just for info: I ran ubuntu 11.10 from a USB HDD - I found that the best, most stable install was just to install it directly.  I did multiple partitions the first time, etc.. it wasn't as stable.  Just a straight install has been the best.
I then switched the USB HDD to Crunchbang 10.  Same install, just a straight install to the external HDD... most stable and reliable booting.
Puppy I ran from a USB installed using pendrivelinux.  While it was very fast and rapidly configured almost instantly with almost NO input from me (everything "just worked") my only problem was that puppy was not as stable: firefox would crash frequently, streaming media was jumpy.  Otherwise it worked nicely.  Crunchbang, while requiring a little more "set up", has been much more stable, smooth, and constant.  It also introduced me to Conky and openbox which now I find it hard to be without.

Tuesday, May 10, 2011

Water Hammer

Water Hammer occurs when you have a valve along a water pipe that closes rapidly.  This effectively sets up an energy wave that travels backwards from the closed valve along the pipe and causes it to rattle and bang.  You are basically taking a moving fluid and ramming it into a brick wall with no where to dissipate the energy, thus causing water hammer.  This can damage your pipes, other appliances, etc.  The way to fix this is to introduce a sort of "cushion" into the pipes; this has been done with vertical sealed air chambers, but this can slowly fill and require you to drain your pipes completely to re-establish the air cushion.
Our washing machine was creating a tremendous water hammer.  I think it might have something to do with using stainless hoses as opposed to rubber hoses, as they have much less cushion within them to absorb some of the energy shock.  I found these "shock absorbers" in a book and looked for them and found them at Lowe's.

Basically, instead of a simple air cushion, they added a piston ahead of sealed chamber of gas that allows for compression of the gas with the energy wave and then act as a "shock absorber" for the water hammer effect.  As a bonus, they can be installed in any orientation because they are sealed as opposed to requiring a vertical orientation.  What a great product.  So shortly after installing, we ran the washer and: silence. They work like a charm.  In fact, it seems like the whole washer is quieter as I think the sound of the flow across the valves is sort of absorbed by the arrestor as well.  Excellent design!

Thursday, March 24, 2011

Projects

I've decided to start posting running projects that I am working on to this so I can track and review past projects, and maybe even help someone else out if they run into something similar that they need to work on. 
I have managed to obtain a lot of help from various forums and boards, which is incredibly useful.  Unfortunately, after my project, it can be hard to relocate those posts when someone else might have a similar problem.  So, I can point them to this blog instead and hopefully help them that way.  As a bonus, this is searchable too :)
I am behind on a few projects that have a few photos, but I think the first one will be replacing the knock sensor on our Subaru Forester.  It has quite a few miles on it, and from what I've found this isn't too out of the ordinary at this point.  Details to follow in the next post!