Posts Tagged ‘Ubuntu’

Firefox Epiphany

Sunday, December 7th, 2008

OK, I’m about sick to death of Firefox. I mean it’s driving me to shrieking rage several times a day.

About every thirty minutes or so, it decides that it needs to do something so important, it should use up 100% of my available CPU cycles, taking my computer away from me for about 50 seconds.

Once or twice a day, it never gives it back, and I have to kill the Firefox process. I then have to start Firefox in safe-mode, let it run for a minute or so, then restart FF normally.

Yes, goddamnit, I have spent hours tracking down fixes for this CPU spike, and have tried over a dozen different ones. I’m sick of fooling with it. “Goddamnit”, because every once in a while I mention this on Slashdot or other popular forum, and I always get some FF partisan telling me what a lazy noob I am for not going to the FF site or forums and looking at the available fixes. (And once, someone told me I’m the only person having this problem, there must be something wrong with me.) So, yes, I have, actually, tried to look this up and fix it and I’m just sick of it.

So today I started trying new browsers.

First up, Chrome. No good, because there’s not a Linux version. Piss on you, Google.

Second up, Safari: Apple or Windows only. No, I don’t want to screw around with Wine. Piss on you, Apple.

Third up, Epiphany. I actually get to install this one.

The Good:

  • Fast.
  • Clean.

The Bad:

  • No bookmark sidebar: showstopper.
  • No search bar: showstopper.
  • Fails to properly import my Firefox bookmarks: showstopper.
  • Fails to find the RSS/Atom feeds on half a dozen websites: showstopper.

The Ugly:

  • This is not a damn Eastwood movie. Five minutes finds four killers. Why the hell should I bother looking for and writing about stuff that simply makes me roll my eyes?
  • Oh, OK, then, one Ugly: can’t add a tab by right-clicking in the Tab bar. Yes, I added the “New Tab” icon to the Toolbar. That’s why this is an ugly, not a showstopping Bad.

So, Epiphany is a no-go. Partisans? Piss off with your diddly fixes and workarounds. When I first loaded FF, everything I wanted was right there, out in the open. Let me know when you’re serious about making Epiphany a serious tool.

Next up, Opera.

Ubuntu 8.10: Success!

Saturday, November 8th, 2008

I just finished upgrading my Ubuntu Linux installation to 8.10, Intrepid Ibex.

The biggest difficulty is that many temporary files are put in the /var and /boot folders. Normally, this is not a problem, but when I set up the system, I gave them dedicated partitions. I sized them according to the advice I found on the web, and in fact oversized them.

Not by enough, apparently. I gave /var a gigabyte, and /boot 100 megs, and they both came up short, by more than half.

I couldn’t easily resize them, because they’re always mounted.

Finally, I booted from the live CD of Ubuntu 7.10 in Hudson and Hudson’s Ubuntu Unleashed, which doesn’t require those folders to mount.

I moved /var (and /tmp) to a 500 GB SATA I’ve installed but not set up yet. This was an interesting exercise, involving hand-editing the /etc/fstab file.

The /boot partition was a bit trickier; I’d hope to use the space recovered when I deleted the old /var and /tmp folders, but unfortunately, they were in an extended partition, and boot is in the primary; apparently, the extended partition cannot be resized. I ended up stealing a couple hundred megs from the vastly oversized /swap partition.

For the most part, the upgrade went smoothly after that. There was one glitch with only the root account being able to log on to the desktop; somehow the permissions on the /etc folder were screwed up.

All done now, though, and I believe 8.10 is noticably snappier than 8.04. Biggest difference I’ve noticed is in the file browser, particularly in folders with heavy graphics content.

Aside from the problems I caused with an overly-spiffy disk layout, the upgrade was essentially painless.

Linux: Hard Drives

Sunday, July 20th, 2008

Shamus over at Twenty Sided recently had a drive go bad. I commented on my recent hard drive adventures:

Corrupt hard drives aren’t the worst that can happen. I recently lost my entire home computer to thieves. No work related stuff–but I lost my anime torrents, and I can’t find working seeds for some of them. (Some have since gone into R1 release, which means I can at least rent them, or even get them through Crunchyroll and pay for them for reduced guilt (Thanks, SDB!). Then there’s 4chan–you know, pictures of origami, cooking, weapons–four or five years worth, all gone.


Yeah, XCOPY is OK — but the best tool from MS is ROBOCOPY, one of the Resource Kit utilities. The current version even maintains all the permissions and security stuff (which used to be handled by yet another RK utility, SCOPY). RC has all sorts of options for retrying copies of intermittently bad files (such as, for instance, files being copied over a flaky network connection). In fact, the last time I fooled with it, you had to be careful to set retries to 2 or 3, instead of the default 1000. With the VERBOSE option, it creates a textfile log of each file and directory it attempts to copy, and what the outcome was.


Hard drives are so cheap now there is absolutely no excuse for not mirroring your drive. I just picked up a 750 GB Seagate Barracuda for $100, and a 500 GB for $80. (I should have gotten two 700s, but these were both one-day-only one-per-customer sales at Fry’s, and being an idiot, I didn’t think to just go to an ATM, take out $100, and go back. Sheesh.) The 500 is my new data drive (with a 170 GB bootable drive), and the 700 became my external backup drive after mounting it in a Firewire capable enclosure ($30, plus a $20 FW card). (And although USB is nominally faster than FW, apparently the FW protocol is more efficient.)

I just recently converted to Linux, so I’m still figuring out the best way to do drive mirroring. Of course, I really should be doing father-grandfather backups, so I need two external drives….but the fact is, I’ve only got about 200 GB of data, so I can partition the 700, and copy into alternate partitions. Close enough, and better than trying to choose only the stuff that will fit on a 70 GB tape, which was what I had before.

Beside, in another couple of years, 100 GB SD flash cards will cost $20, so I’ll be able to keep three-generation backups, and take quarterly permanent archives.

(Then there’s micro-SD flash, which puts 2 GB on a chip the size of a fingernail. Sweet Electra, where could you not hide one of these things? Data smuggling just became undetectable.)


There’s a simple registry hack that forces Windows to use a drive or partition other than C:\ for the Documents and Settings directory. It’s best done when setting up a new machine, but there’s a Profile utility that can move an existing profile on C: over to D:. That’s been useful more than once, because my experience is that C: fails more often than D:. Let me know if you want it, and I’ll dig out the procedure.

I just bought a wonderful little tool called a DriveWire. This is a USB dongle that plugs into any IDE or SATA drive. I love it, because it allows me to test all the suspect drives I have lying around without having to repeatedly turn my computer on and off, and without worrying about a bad drive blowing out my on-board IDE controller.


Finally, I also just discovered some utilities that monitor the so-called SMART tests built into almost all modern drives. SMART allows the drive to test itself, to report all kinds of internal conditions such as cumulative error counts and even temperature, and to log the last five errors it encountered. It looks to be a fabulous tool for predicting imminent drive failure, and I don’t understand why it’s not in wider use. I’m still trying to figure out if the Linux-compatible SMART utilities can work over USB connections, but I’m for damn sure going to start using it on my internal drives.

[Slightly edited for my purposes here.]

Linux Ubuntu: Web Cam, Logitech QuickCam for Notebooks Deluxe (Refurbished)

Saturday, July 19th, 2008

I was in Fry’s yesterday and on impulse, for $20, bought a plain brown cardboard box from Logitech labeled “QUICKCAM FOR NB DELUXE REFURB”.  “NB” stands for “NoteBook”.

Naturally, the enclosed CD does not include a Linux driver.

However, Logitech’s QuickCam Team has a very nice website with many resources, including Linux links.

I’ve done a certain amount of fumbling around, prior to starting this post, so I’m including some stuff in the order I wish I’d found it, rather than in order.

Hidden behind the spoiler tag is, essentially, a step by step whine log of my attempt to manually install the open source GSPCA driver.

Show ▼

You know what, guys? Piss off. Just Piss Off. Back to Google.

OK, I find a link to the EasyCam project, “A tool for installing webcam drivers”. OK, that doesn’t look too bad; there’s one odd step, “Adding Repositories”, but at least these folks give short, coherent instructions on how to do that.

I go through the hoops.

Easycam is in French.

Fortunately, it’s a very simple program. It correctly identifies my camera. I do a quick check to translate “Lancer” (”To throw, launch.” OK, then.) and, Voila! Except the progress bar doesn’t run, but eventually, a partial bar appears with the words “Drivers installe!” which I take to be a good sign. I click the “Forward” button, and am presented with:

I take a deep breath…

And click the Apply button.

There is no “Outils” menu on my desktop, but I do have Accessories…no…Graphics…Ah! “Cheese”, as in, I presume, “Say Cheese!” I click, and the application starts. It is worrisomely blank for too long, but eventually I get:

(I tried to take a screenshot, but the screenshot utility cannot grab the live video image. This is a frame-grab of the SATA cable the camera happened to be pointing at.)

Woo Hoo! I haz webcam!

Now if only I had something usefull and entertaining to show you….

My thanks to the folks who put EasyCam together. It really was easy, for a Linux install, and it works.

[Much later...]

OK, I am unable to get VLC to record any video. It displays cam video well enough, but will not stream to file.

Cheese records the video, but doesn’t grab the audio stream.

Again, if I were running Windows, this would be trivial.

Linux Diary 003: First Post From Linux! Yaay!

Tuesday, April 29th, 2008

I’m logged in to ricketyclick via Firefox running under Linux-Ubuntu. I stopped for dinner before posting, but basically, once I figured out what I was doing, it was less than half an hour from booting up the installation CD to rebooting into the root desktop. Absolutely clean, no problems with hardware.

Comes up loaded with Firefox, Evolution Mail, Open Office (Word processor, Presentation, Spreadsheet), the Gimp, and a bunch of tools, games, and utilities.

The Windows XP disk I use runs for about an hour. Office is another hour.

I was easily able to install Flash in Firefox for the root account so I could watch Youtube, but I haven’t figured out the trick for doing it under my personal account. I may need to give myself root powers for long enough to do that.

I ran through setup a few times to play with the file system options.

I have an NTFS data drive from when this machine ran XP. Linux recognizes it, but the word is the Linux NTFS driver is not stable for writing, so my plan is to copy it to the dev/sda/home, reformat the drive as EXT3, then copy everything back.

When I was in the partition manager, I failed to recognize this drive, and marked the partition for deletion. Fortunately, I caught the mistake before committing the change.

That out of the way, I then tried to set up the linux partitions in SDA (Linux equivalent of C:). In order, I set up /boot, swap, /tmp, and the root directory, /, all as “primary” partitions, a total of about 4 gigs. The balance of the drive then showed as “unavailable”. My intent had been to make the /home partition a logical partition in /. That turns out not to be the way.

Second try: /boot, swap, and / as primary, then /tmp and /home as logical. That worked, but I haven’t figured out how the partitions actually lay out on the drive, and there’s some other details I need to learn about, but the thing basically works.

Be advised that once you go past the partitioner, you shouldn’t click the “back” button to revisit it, or all  your unsaved changes will be lost, and you’ll have to set the whole thing up again. (The changes aren’t applies until Linux actually begins to install.

All that aside: as a Newbie user setting up your desktop machine, don’t worry about the filesystem. All you really need is a swap area, and the root / directory (not to be confused with /root, which is the home directory of the root administrator account). Everything but swap can be EXT3, which is very mature, reasonably robust, and reasonably fast. I wish the partition manager gave a bit of guidance for the newbie, but it is simply not all that daunting once you find the right reference.

I still need to install a printer, download pictures from my camera, and see about playing video files in various formats.

In essence, though, for ordinary desktop users, Linux is not remotely forbidding. It really does just work.

Unless you have Windows specific apps or hardware you are wedded to, it’s time to free yourself.

Linux has arrived.

Linux Diary 002: Books and Filesystems

Tuesday, April 29th, 2008

As predicted, I did indeed take my Ubuntu book (Ubuntu 7.10 Unleashed)to bed with me, and forgot it when I left this afternoon, but I don’t care–it was almost useless for helping me plan how to set up and organize my system.

After yesterday’s debacle trying to figure out how to set up the file system, I spent some time researching file systems on line, and checked out the books available at Fry’s–not a great selection, and not current, but at least I knew what to check for this time.

Check the index for “file systems” “EXT3″ “ReiserFS” “XFS” “/TMP”. Any book without references to these items is simply not worth the trouble.

Of the books available at Fry’s, only one was useful: Stanfield and Smith’s Linux System Administration, 2nd Ed. This is fairly heavy going, being command-line oriented, and I wouldn’t recommend it for my Mom–but for anyone remotely computer savvy, it’s excellent. A little out of date, perhaps, but the basics haven’t changed.

===

File systems:

After a lot of back-and-forth, I am indeed settling on EXT3, simply because it’s the current standard. The future of Reiser is in doubt, and the standard tools do not work with it. XFS is perhaps another good option, particularly for the /home directory, because it supports the advanced permissions system known as Access Control Lists.

Microsoft’s NTFS is apparently fairly well regarded as a file system, but only under Windows. The Linux drivers aren’t considered robust–because NTFS is an unpublished, proprietary specification, and the Linux drives were reverse-engineered.

My revised disk layout plan:

Description Name Size File System Comment
boot directory boot 100 MB ext3 Should be within first 1024 cylinders for backwards compatibility
swap space swap 2GB(1.5 RAM size) linux-swap First cylinders are fastest;Max size 2GB
temporary system files /tmp 1 GB ext3 First cylinders are fastest
root directory / 20 GB ext3 System and program files go here.
home directory /home remaining free space ext3 or xfs User data

I’ve seen suggestions for more detailed arrangements, but this seems to be a common compromise between the simplest swap+root arrangement and a more complex scheme with basic performance tweaks.

Slightly modified from mhelios’ partition scheme for Fedora.
Here’s Red Hat’s recommendations.

OK, enough quibbling. Back to actually setting the damn thing up.