Adams Bros Blog

21Jul/112

Ubuntu Sluggish or Slow

Author: Trenton

I was recently having a problem where my new computer was becoming extremely sluggish while running Ubuntu Linux 11.04.  The keyboard input was very delayed and slow.  The graphics were terribly slow.  Just about everything in the system became very slow.  I've heard reports from similar problems, of complete lockups.  It seemed to be linked to when the screensaver was activated, or power management was activated.  But, after having disabled both, and continuing to have problems, I realized that wasn't it.  Keep reading for the solution to my problem; I hope it helps you too.

Filed under: Linux, ubuntu Continue reading
16Jul/110

Slow SSH Login

Author: Trenton

I had slow login problems with my SSH server for many months, and never bothered to try and fix it. Finally I got sick of it, and enabled verbose mode. I noticed it was doing public key authentication, GSSAPI authentication, and then password. The authentication would fail on public key, then the GSSAPI authentication would sit there for a long time, before moving on to password authentication.

Add the following to your /etc/ssh/sshd_config

GSSAPIAuthentication no
GSSAPICleanupCredentials no
Filed under: Linux No Comments
9Jul/110

Asus Transformer Android 3.1 Contacts Force Close

Author: Trenton

I just bought an ASUS Transformer TF101.  I set everything up, and suddenly found that my contacts manager application from Google was crashing with a "Force Close" button.  I was very upset about that, so I tried to rectify it.  I was getting the following error...

  • The process android.process.acore has stopped unexpectedly. Please try again.
Filed under: Linux Continue reading
10Nov/100

tcpdfilter – tcpdump filter

Author: Trenton

To anyone looking for this page. I noticed that some people had searched for my tcpdfilter program as recent as 2007. I had assumed that fresh meat would keep it around forever, so I just left it there, and forgot about it. Seeing it is now gone, I got to thinking, and it's possible there's people out there that might have really old systems that they still need to support, via network debugging of some sort. If you have a more recent system, tcpdump will output hex and ascii, if that's all you need. Or, if you need packet decoding capability then ethereal or wireshark may be better choices for you. Still kicking myself for not making a GUI packet decoder like ethereal. ethereal came out relatively shortly after I wrote tcpdfilter. :P

So, if you are still looking for it, let me know, and I can scrounge up the source for you. I do have it on my system.

Filed under: Linux No Comments
14Aug/102

Ubuntu won’t boot raided root

Author: Trenton

Well, I've had a lot of trouble switching my system from LVM, to RAID1+LVM on ubuntu 10.04.  I got another drive for my system, created a mirror with one drive (temporarily of course) asked lvm to move my entire system over to that physical device, added the previous drive to the raid array, and rebooted (oops).  I am listing a few things that are important to know when you're both new to Ubuntu, and doing raid post installation of Ubuntu.

Filed under: Linux, ubuntu Continue reading
13Jun/100

Removing spaces from filenames

Author: Trenton

If you use bash under unix, Linux, or Mac OS X, and you're continually forgetting how to convert filenames with spaces to filenames without spaces, then look no further.

Filed under: Bash, Linux Continue reading
11Jan/100

Safe Shrinking of ext3 LVM volumes

Author: Trenton

When shrinking your LVM volumes, it is important to do it safely.  I will show you how I like to do that here.

Filed under: LVM, Linux Continue reading
20Dec/091

Intel WIFI 5300 AGN Unknown error 132

Author: Trenton

See comments for latest updates

Recently I started having problems with my Intel Corporation PRO/Wireless 5300 AGN card.  It simply quit working after I did a kernel upgrade.  It was giving errors like "Unknown error 132", and "deauthenticated (Reason: 9)".  The hardware switch did not seem to affect it, and the errors were the same whether I had the switch on, or off; so I'm assuming it had to do with the hardware not being initialized properly when the module loaded.

Filed under: Linux Continue reading
5Dec/090

Gentoo Portage Python Update issues

Author: Trenton

I have been having some gentoo portage problems due to my system being out of sync. When I finally updated a month or two later, it simply wasn't working. I was getting an error like the following...

Performing Global Updates: /usr/portage/profiles/updates/3Q-2009
(Could take a couple of minutes if you have a lot of binary packages.)
 .='update pass'  *='binary update'  #='/var/db update'  @='/var/db move'
 s='/var/db SLOT move'  %='binary move'  S='binary SLOT move'
 p='update /etc/portage/package.*'
......................................................                    

Performing Global Updates: /usr/portage/profiles/updates/4Q-2009
(Could take a couple of minutes if you have a lot of binary packages.)
 .='update pass'  *='binary update'  #='/var/db update'  @='/var/db move'
 s='/var/db SLOT move'  %='binary move'  S='binary SLOT move'
 p='update /etc/portage/package.*'
..................
Traceback (most recent call last):
 File "/usr/bin/emerge", line 40, in <module>
 retval = emerge_main()
 File "/usr/lib64/portage/pym/_emerge/main.py", line 1328, in emerge_main
 return action_sync(settings, trees, mtimedb, myopts, myaction)
 File "/usr/lib64/portage/pym/_emerge/actions.py", line 2173, in action_sync
 if portage._global_updates(trees, mtimedb["updates"]):
 File "/usr/lib64/portage/pym/portage/__init__.py", line 8572, in _global_updates
 moves = bindb.move_ent(update_cmd)
 File "/usr/lib64/portage/pym/portage/dbapi/bintree.py", line 273, in move_ent
 mytbz2.recompose_mem(portage.xpak.xpak_mem(mydata))
 File "/usr/lib64/portage/pym/portage/xpak.py", line 106, in xpak_mem
 indexglob=indexglob+encodeint(len(x))+x+encodeint(datapos)+encodeint(mydatasize)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 49: ordinal not in range(128)
Filed under: Linux Continue reading
23Aug/091

HDA Intel Alsa volume low

Author: Trenton

I've been having a problem where the volume level of my Dell Studio 17 notebook is just not loud enough when I'm running Linux.  I went to windows, to see if the problem was the same there, and I found that the volume in Windows Vista was way higher.  So, I booted back into Linux, and started googling.

I quickly found a few places that talked about setting the model to 3stack, and various other options.  But, none of that worked for me.  So, I decided to search for the problem on my own.  I ended up checking out the alsamixer again, from the command line.  Last time I checked, I saw that the "Speaker" volume was set to about two thirds, but I had thought that was referring to the volume of the PC Speaker, as on many sound cards, it is actually an option.  As it is, that is actually the volume of the external speaker.  Once you pump that puppy up to 100% the volume level is good.  From there, you can simply adjust the master or PCM volumes as you choose.

Filed under: Linux 1 Comment