2010
02.08
fix-for-cisco-befsr41-router-firmware-upgrade-fail

Ok. So I recently screwed up my BEFSR41 router. I downloaded the most recent firmware and used my Firefox browser to try to do the upgrade and you guessed it, it didn’t work. After waiting around for several minutes I ended up with a router with a flashing power light which never quit flashing and I could no longer bring my router up thru my browser. Uh oh, what do I do now?

I tried to log on to my router with tfpt, which is a standard program that’s on most Linux distros. I kept trying over and over but I couldn’t get in because the router wanted a password and tfpt does not deliver passwords! So, I disconnected my router and hooked up to the internet directly thru my cable modem and searched around some for a solution. After much reading of pages I finally came to the page that gave me the solution to my dilemma. The page is http://redsand.net/ and the owner of the website has created a utility which was the solution to the Cisco(Linksys) tftp login problem.It is a tftp client which allows you to enter a password so you can get in to your router. This little utility saved me. There is a link on the page to Linksys-tftp Client 1.2.1 which you can download and compile and then get your router back in business. Thanks, Redsand Networks!

I don’t know why I had to do this. Cisco should know that the tftp client on Linux will not let you enter a password. Are you reading this, Cisco? Please fix this so thousands of users don’t get stumped about what to do when their firmware upgrade fails.

Hmmm. Further study of this issue shows me that simply getting rid of the router password before you start to do the firmware upgrade should make things go easier. I wish I would have known this before I started. Live and learn, I guess. I haven’t tried this yet, however. The router is working now so I’m going to leave it alone.

Terry Coats

2010
01.31
listening-to-nirvana-radio-music-for-meditation-and-relaxation

http://91.121.72.50:9106

I find this kind of music does relax me. Rock and rap and hiphop grate on my nerves
in my old age. Better to relax and meditate and slow down. Listen to what your mind
tells you. You can hear it if you turn other stuff off. That still, small voice inside us that’s
a piece of the Creator, put there so we can have a direct line to the Boss. No one needs
to be our go-between when it comes to conferring with and listening to that Infinite Mind.
Other people can just steer you wrong. Go to the Source. Don’t let someone else do your
thinking for you. Some people may be able to point you in the right direction but you must
do your own looking and finding.

I’ve tried to do some story writing tonight but am blank so far. No hurry. I guess it’s not
necessary to write one every day but maybe tomorrow never comes. My cousin Pam was
writing her own obituary in the form of a life story but she passed on before she got it completed.
I would like to leave something about myself behind or it would be as if I never lived. My
stories will live on somewhere in an internet archive so maybe I’ll leave something behind
that’s more than zero.

Want to leave your name in a chip on a Mars mission? Your name will be on Mars forever.
Go here while there’s still room for more names:
http://marsparticipate.jpl.nasa.gov/msl/participate/sendyourname/
Beings in the far-off future who come across the vehicle sitting on the Mars surface will be
able to read your name and mine. I think that’s cool. Kind of like saying “I was here!”

Terry Coats

2010
01.11
nice-and-warm-here

To all my fellow United States citizens East of the Rockies who are
shivering to death, I would just like you to know that here in Oregon where
I live as I write this on Jan 11, 2010, the temperature is 66 degrees F and
the sun is shining thru a partly cloudy sky. Y’all live in the wrong place. It’s
warmer here right now than it is in Florida. The grass is green and there’s
some places where I know I can go down the street where flowers are still
blooming. Eat your hearts out. Don’t give up, though, warmth will return
to your areas someday. If you can just survive the single digit temperatures.
I know, as I used to live in Missouri. It was -3 F there a couple days ago.
Brrrrr! I don’t miss it.

teryc

2010
01.08
enjoying-my-korg-m50

I picked up my new Korg keyboard at the music store on Tuesday the 5th
so I am now enjoying making music for myself. It is sweet. It makes a
zillion different sounds and combinations, drum tracks, etc., so it’ll keep
the boredom away for some time to come. Plus I get to brush up on my
keyboard skills, which are not good. Maybe I’ll really learn to play this time.

teryc

2010
01.08
new-year-im-late

Well, here it is several days into the new year and I haven’t been able to come up
with any cute sayings or any great philosophical thoughts so I guess I’ll just say may
we all live for another year. Life can be short, even for you young people, so enjoy
every day while you have it because tomorrow you may be in the afterlife wondering
what happened.

picture of anubis

teryc

2009
12.29
bought-it-the-korg-m50-that-is

I went shopping Sunday at a local music store looking for the keyboard I wanted.
They didn’t have one in stock but I went ahead and ordered one, along with some
accessories. The keyboard’s enroute to the music store right now by UPS. I’ll be
entertaining myself pretty soon. I’m excited. A new toy!
Here’s what I’m getting:
http://www.guitarcenter.com/Korg-M50-88-Key-Keyboard-Workstation-105137087-i1424628.gc

teryc :P

2009
12.26
thinking-about-getting-a-korg-m50-keyboard

I’ve been on the internet lately looking at keyboards. The musical kind,
that is. Years ago I used to play guitar and was good enough to play in a
band but over the years the work I have done in factories has given me
carpal tunnel syndrome and I can no longer grip the neck on a guitar to
make chords. I miss being able to make some music, though, and just about
the only thing left I can do is play a keyboard. I’m not very good at it, though.
I can just play chords. At the moment I have no musical instruments and
I’m beginning to feel the need to make music again.

So, I thought getting a keyboard would be a good Christmas present
for myself. Since I have no family I have to buy my own presents if I want
any, ha. That’s ok though, because I can spend more money just on myself
rather than spreading it thin gifting lots of people.

I’ve been looking at the Korg M50. It seems to be within my price
range and is a real instrument rather than a toy. I want something to last
me the rest of my life also so I’m ready to spend the bucks for it. But not
go overboard. I’m not going to be playing in a band, just entertaining myself
so I don’t need or want the most expensive instrument. I don’t really
know much about electronic keyboards but they seem to sound pretty
good in the demo videos. Good enough for a sit-at-home has-been musician,
anyway. So, I may have a new toy to play with pretty soon. Don’t know
when I’ll go shopping for it. Maybe as soon as tomorrow if I can get up
in time. I have a bad habit of sleeping late.

teryc

2009
12.18
how-to-have-confidence-with-linux

For several years I had problems running Linux systems. Problems with my level of
confidence, that is. If something went wrong during an install, I would panic at what to do next because I would simply not know what to do next. I would usually end up reinstalling an entire distribution to try to get things right again. In this article I’m going to give some basic tips on what you need to learn in order not to panic if something goes wrong.

My first tip is to tell you that you must learn the command line, or at least learn enough
about how to use it to begin the rescue of whatever has gone wrong. I know a lot of people
don’t want to learn the command line but there are times when it will save your bacon when
you know what commands to execute to get out of a jam.

You know how to get a command line, don’t you? If you boot up and get a black screen,
try the key combination ctrl-alt-F1. F1 through F6 on most distributions will give you a
console screen to work with if X doesn’t start up.

I used to mess around a lot with trying to tweak my /etc/X11/xorg.conf file, trying to
tweak my graphics card to see if I could get more performance out of it, but usually not
really knowing if what I was doing was going to work right or not. More often than not
when rebooting after a tweak of this file I would get a black screen or something obviously
not working right. How to make it right? Well, the first thing that should be done before
even starting to edit your xorg.conf file is to make a copy of it. cp it to xorg.conf.sav or
whatever you want to call it so you will have a saved copy of a known, working configuration
file. If your tweak fails, and it will eventually if you try this, you will have a good copy of
the original to copy back into place to get X working again. I got bit by this many times
before I finally learned to have a good backup copy of the original. This is also a good
practice when editing any system file. Always make a copy of the good, working file
because Murphy’s Law is always in effect.

My next tip is to tell you that you should learn how to use a command line editor.
If you are editing a system file and reboot and find X is not working and you have only
a command line to work with and you forgot to make a good copy of the file before you
started, what now? You will have to edit the file you screwed up in order to get things
working right again. Edit it with what? X is not working. You don’t have your favorite
gedit or other graphical editor to use. What now? This is where you must have knowledge
of a command line editor. I use vim here but there are others. Pick an editor and learn
how to use it. Practice with it until you have at least a basic knowledge of how to use
it to edit a file. Don’t wait until it’s too late.

Ok, so you’ve partitioned your harddisk and installed a new Linux distribution on a
partition to try it out and compare it to the one you use most of the time. Only thing is,
when you reboot after installing you find that the new distribution has taken over the
grub bootloader and your favorite system is not even on the menu. Oops! What to do
now? I’m going to walk you thru it.

I’m going to be talking about grub, the Grand Unified Bootloader, because that is
what I use here and know, and specifically grub legacy. There is a grub2 now so if your
system uses it you will have to refer to its documentation but the tips I give here will
still probably be useful.

When grub boots up it gets its information from a file in /boot/grub called “menu.lst”.
Only thing is, every distribution will have its own menu.lst and sometimes when you
install a new distribution to try out it will install its own bootloader and use its own menu.lst,
making your other distributions disappear from the boot menu. Some distributions look
for and try to include other existing distributions on your harddisk but they don’t always
get it right so you have to be ready to make things right yourself.

There are three ways to go about setting things right again. One way is to edit the menu.lst
of the new distribution you have just installed and put in the file the info to let it find the
other distributions on bootup. Another way is to run grub’s setup but tell it to use the
menu.lst of your favorite distribution instead of the new one you have just installed. The third
method is to copy over the menu.lst from your favorite distribution into the /boot/grub folder
of the distribution you just installed. No matter which method you use you will have to edit menu.lst.
Let’s use the first method I mentioned. Let’s also assume you are booted up into the new
distribution you have just installed and that you are logged in as root user. You will have to be
root to edit menu.lst and to mount partitions.

You will have to know the partition where your favorite distribution is located in order to
get to its /boot/grub/menu.lst. On my system my favorite distro, Ubuntu, and the one I use
all the time, is located on /dev/sda1. I will use that as an example. To get at its menu.lst,
I would, typing into a terminal program as root user, issue the commands “mkdir /mnt/sda1″
and “mount /dev/sda1 /mnt/sda1″. The favorite distro would now be mounted at /mnt/sda1
and can be navigated like any other folder. If you are logged in as root user you could open
up gedit or whatever graphical editor you have and open /mnt/sda1/boot/grub/menu.lst.
Then open up a new tab in the editor and open the file /boot/grub/menu.lst. What you are
going to do is copy and paste the menu items from the first menu.lst into the second menu.lst.
Every menu item begins with a line that says “title” and includes all lines until the next “title”,
or the end of file. My first menu item, for example, is:

title Ubuntu 9.10, kernel 2.6.31-17-generic
uuid 10303124-0581-496b-8e94-815a2cb0b1d0
kernel /boot/vmlinuz-2.6.31-17-generic root=UUID=10303124-0581-496b-8e94-815a2cb0b1d0 ro quiet splash vga=0×324
initrd /boot/initrd.img-2.6.31-17-generic

and this is what I would copy over to the second menu.lst.
You also have to tell grub where this distro is located on the disk.
Since I already know this is located at /dev/sda1 I would add the
line “root (hd0,0)” to the menu item like so:

title Ubuntu 9.10, kernel 2.6.31-17-generic
root (hd0,0)
uuid 10303124-0581-496b-8e94-815a2cb0b1d0
kernel /boot/vmlinuz-2.6.31-17-generic root=UUID=10303124-0581-496b-8e94-815a2cb0b1d0 ro quiet splash vga=0×324
initrd /boot/initrd.img-2.6.31-17-generic

In grubspeak (hd0,0)=/dev/sda1, (hd0,1)=/dev/sda2, (hd1,0)=/dev/sdb1, etc.
Usually, anyway. With today’s removable USB drives these disk designations
can change but the main harddisk in the computer is usually always hd0 and
the first partition on it is 0 or sda1.
As far as I know. Somebody feel free to correct me if I am wrong.

Where you copy these menu items to in the second menu.lst makes a difference.
They will show up in the boot menu in the order you have them in the file so you
can arrange these menu items to where you like them but the system which will
be booted by default on bootup if you take no action is determined by the line
“default 0″ which will be located near the top of the file. Menu numbering starts
at zero so for instance if you wanted the first menu item to be the default boot
your line would be:

default 0

and if you wanted the second menu item to boot as default you would use:

default 1

and so on.

After you have copied over all the menu items you want from the first
menu.lst, save the second menu.lst and then you should be ready on next
reboot with a boot menu with everything you want. I know it’s hard to keep
all these hd0’s and sda1’s straight in your head but with some practice you
will finally get it figured out and be able muck about with your OS with confidence.
I hope all that made sense. If not, feel free to ask questions.

teryc

2009
12.05

fatcow error log

fatcow-error-log

I’ve had a few hits on my blog lately from people searching for
“fatcow error log” so in order for them not to go away empty-handed
I’m going to tell you where the error log is.

Go to the fatcow.com homepage. Click on the Control Panel link
at the top right of the page to log in. After you’ve logged in, scroll
down the page until you see “Scripting and Add-ons”. Underneath that,
click on the “CGI and Scripted Language Support” link. After you do
that you should have another page of links. One of them is “Check Error Logs”.
Click on the link and you should have a view of the error log, or
nothing if you have had no errors. You may have to click the
“refresh your error log” link. And there you go. :-)

If you connect to your account with an ftp program, you will also find
the cgi error log in your “stats” folder.

teryc

2009
12.05
using-grep-to-filter-ip-logs

I like to view my server log for my website three or
four times a day just to see what’s going on. Only thing
is, at the moment, I visit my website more than any other
visitors so my own ip address in the log overwhelms the
others in there, making it hard to see who is visiting.
Besides myself, of course. I thought a while about how
to strip the log of my own ip address so it would just leave
the others to view. I investigated the “sed” command as
I thought it might be useful but after some more thought
and investigation I realized the “grep” command would suit
my needs.

I discovered that grep has a negative filter for stripping
out lines from a file. I didn’t know this until I read the
manual. I guess that’s why they always say RTFM. Anyway,
here is an example what I came up with:

  1. I download my website log from my webpage provider.
    It’s in a gz form.
  2. Open up your favorite terminal program and change directory
    to where the file has been downloaded and “gunzip access_log_20091204.gz”
    or whatever the log file is named.
  3. The former gz log should now be in standard text form
    with the “gz” suffix removed. Now do a:
    “grep -v xx.xx.xxx.xxx access_log_20091204 > stripped_20091204.log”
    Replace the x’s with your own ip address.
  4. Read the resulting “stripped_20091204.log” with your favorite
    text editor. Your own ip address visitations will be out of the way.

The output of the grep command, represented in the above example
by “stripped_20091204.log”, can be any name you want it to be. Also my
example of “access_log_20091204″ is just that, an example, and your
filename will be different.

The -v option of the grep command tells grep to select non-matching
lines, in effect stripping out lines with your ip address in them.

After some more thinking and Google search on this subject, I came up
with an almost one-liner. Assuming you’ve already downloaded your ip log
file and it is called, for example, “access_log_20091207.gz” and you have
gedit on your system and know your own ip address, you could try this
one-liner:

“zgrep -v xx.xxx.xxx.xx access_log_20091207.gz > log | gedit log”

Replace the x’s with your own ip address. zgrep gunzips and greps
at the same time, saving a step.

teryc

  • a picture of the Rogue Valley Oregon
  • Recent Posts

  • Recent Comments

  • Archives

  • Email

    Email
  • Admin only