Archive for October, 2006

Fun With PDFs

Tuesday, October 31st, 2006

Thanks to my trusty Fedora box, I was able to please one of the Big Cheeses here at work. I had a PDF that needed to be converted to a Word document. The first thing I tried to do was open it in Acrobat Pro and run a quick Save As. On a normal PDF this would have been the fastest way to get the job done. Of course this PDF was restricted with password security (Save As failed due to those restrictions). How annoying! I remembered using a command line tool a few months ago to convert a PDF to some other file type and figured I’d give it a shot. I installed the “xpdf-utils” package from Fedora’s core repo and ran the file through pdf2ps (Ubuntu installs the pdf tools by default). I then copied it back to the machine running Acrobat Pro, opened the postscript file and saved it as a Word doc. Task completed and lessons learned. The lessons?? Linux has a tool for that, and just because something is supposed to be secure (like a PDF that isn’t supposed to be changed) doesn’t mean it is.

To satisfy my own curiosity, I took a few minutes to create a PDF that required a password to open. I attempted to run it through the pdf2ps tool and I was unable to convert the file without providing the password. I should note that Acrobat Pro issued a warning when I saved the pdf stating that Adobe products enforce the restrictions set by password security but some third party products might be able to bypass some of the restrictions.

Note: This PDF did belong to the University, since it was ours I don’t feel that it was immoral to circumvent the restrictions.

Ubuntu Edgy Eft, First Impressions

Saturday, October 28th, 2006

Hey hey,

As it turns out, the problems I had installing the latest Ubuntu were caused by my DVD/CD burner. I couldn’t get a “good burn” until I used a different machine with a different burner. Funny enough, I don’t have problems when burning DVDs, it only seems to be an issue when burning CDRs. Once I overcame that particular hurdle I was able to install Edgy an give it a shot.

Moving on, Ubuntu 6.10, the Edgy Eft!

Boot times have REALLY improved. Changing from INIT to Upstart seems to have made a real difference. I’ll be honest, I have no idea what the differences are, I can only tell you that I’ve stripped out all of the services I don’t need on my dapper install and the Edgy boot time (unmodified) smokes Dapper.

They’ve FINALLY come up with a really nice looking boot splash. Nice work! It looks professional and sleek. The Human theme has gone through some changes, its a bit lighter and easier on the eyes. I still had to change it to something blue and more my style. I do like the Human theme, I just always find myself going to something blue or black/gray.

Installing Compiz is a simple process, technically I didn’t install compiz, I installed the Beryl fork using the guide available on the Ubuntu forums. Beryl is far cooler than the stock compiz in Fedora. I’m so new to these enhanced desktop effects that I can’t really go into the details of it. Once I get some experience with them I’ll give my impressions.

Edgy includes the latest and greatest Gnome, Firefox, Gaim, OpenOffice and other apps. If you want the newest, you’ll find it all here. I’m a huge fan of having the latest of everything, of course that can cause some instability. I haven’t been using Edgy long enough to say if there are any problems. If I find any, I’ll post about them here.

If its possible for you, I would suggest installing Edgy fresh. I haven’t attempted a Dapper upgrade, but I have seen a lot of people seeking help regarding issues with INIT/Upstart in the Ubuntu IRC channels. It makes sense to me, Edgy is such a different beast.. Upgrading could be a dangerous undertaking.

All in all, I’m really liking Edgy. IMO, for a new user it’s still above Fedora. I’ll still be using Fedora at work (I’m looking forward to getting in early Monday morning to get it installed) but at home I’m all Ubuntu :)

Next project, getting the laptop up to Edgy and exploring the improved Gnome power management.

Fedora Core 6, First Impressions

Wednesday, October 25th, 2006

Hey hey!

The very first thing I did this morning was to burn the DVD copy of FC6 that I downloaded overnight and install it to a spare partition on my machine here at home. The install doesn’t take very long, I chose to do a default desktop install and let it go…

Visually, Fedora is the best looking distro I’ve used. They’ve updated the graphics and theme (as they do with every release). The logo is just sexy, it’s darker than Core 5 and IMO looks a LOT better. I couldn’t stand the light blue bubbly look of 5. The boot splash, login theme and default desktop all flow and have a common look. I’ll be keeping the desktop background for a while, it has an under water feel to it and I’m digging on it. :)

Boot times are similar to FC5, to me it’s just fast. I’ve heard people call Fedora bloated, I’m just not understanding why. It doesn’t load a lot of services that I don’t need and feels fast to me.

The software selection is minimal in a default install, and I like that. You end up with a Gnome desktop, OpenOffice, Gimp, Gaim, Firefox, Evolution, Rythymbox and a few other apps. All in all, a decent place to start.

Firefox is at version 1.5.0.7 and Gnome is at 2.16. I’m not surprised that FF isn’t up to version 2 yet, FF2 just went gold this week. I’m a little surprised that Gnome isn’t up to 2.18 though. I didn’t follow the development of this release so I’m not sure what the reasoning was. I’ll just take a guess and say that by the time 2.18 was released they had already put too much effort into development to just up and change to the latest version. Gaim and OpenOffice are the latest releases, Gaim is the latest v2 beta and OO.o is v2.04.

*** Edit ***

I was wrong, Gnome 2.16 is the latest stable release. My mistake.

** End Edit ***

Out of the box there are some 10 updates that need to be applied. Pup lets you know and performs the update with about 3 mouse clicks and one password prompt. It’s a nice simple way to keep your machine up to date. Who doesn’t like that??

My first impressions are good. My only complaint about Fedora comes from the fact that I’m a newb and I’ve been using Ubuntu. The package selection isn’t weak, but it doesn’t even compete with Ubuntu’s.

So now I’m off to play, I need to install some of my applications. Add some repos and get to playing. This is actually the first time I’ve had to configure a Fedora release without the assistance of fedorafaq.org. Should be interesting :P

** Edit **

I’ve spent a couple of hours playing with FC6 now. I’ve got AIGLX/Compiz running (oh and doing that was just a few mouse clicks, System > Preferences > Desktop Effects) on my Intel card, using the i810 driver. I’ve got most of the software I like to use (mplayer, amarok etc) running, and running well. The only issue I’ve had is there are times when I open an instance of gnome-terminal, all of my existing terminal windows close (ack, now that is annoying). This only happens when I have the desktop effects enabled. I’ll look into that when I have time.

If you want to check out Linux eye candy and have a helluva good distro running, take some time to install FC6 and give it a shot!

Synergy

Wednesday, October 25th, 2006

At home I have two machines on my desk, my main desktop is running Ubuntu and I have a machine off to the right running XP. I have a craptacular KVM connected to them and when I use it to share the monitor I spend 87% of my computing time staring at and cursing the blur. I end up annoyed and cranky (and in turn, I end up annoying the Mrs.). I decided to drop an old Dell CRT onto my desk and use two monitors, aside from having an ugly old CRT on my desktop this has worked out well.

Instead of using the KVM’s toggle keystroke (scroll lock twice) to switch between machines I figured I should be able to slide my mouse off of one screen and onto the other. There are a few solutions that allow you to do this; while its not perfect, I’ve settled on Synergy.

For Synergy to work you need to install the software on all of the machines that you want to be able to share screens with. One machine will be the Synergy server, the remaining machines will be clients. Basically you have one ring machine to rule them all. The server listens for the clients and once they connect, you can easily change from screen to screen.

Before moving on, let me tell you about the only issue I have with Synergy. The client machine’s monitor won’t sleep and about half of the time the screen blanking won’t kick in. While I could gripe about it, I won’t, the client machine in my setup is the XP box and really only gets used occasionally. It’s easy enough for me to just keep the monitor off most of the time. If thats unacceptable to you then I would wait until the issue is resolved or try x2x or x2vnc (see my notes at the end for a potential solution).

Installation:

Ubuntu: sudo apt-get install synergy
You must have the Universe repo enabled

Fedora: su -c ‘yum install synergy’
You must have the Extras repo enabled

If you’re planning on sharing screens with a Windows or MAC machine you’ll have to download and install the Synergy software on that machine as well.

Configuration:

My configuration is pretty simple, the Linux machine is the Synergy server and the XP machine is the synergy client. My server configuration is below, “ubuntu” is the server host name and “xp” is the client host name. This configuration is stored in ~/.synergy.conf.

section: screens
ubuntu:
xp:
end

section: links
ubuntu:
right = xp
xp:
left = ubuntu
end

The “screens” section defines the names of the screens you’ll be moving between, the docs recommend using the host names of your machines (you should be able to enter the IP addresses of your machines instead of the host name). The “links” section indicates which screen is adjacent in the given direction. If I drag my mouse off screen to the right I’ll be controlling “xp”, back to the left and I’m controlling “ubuntu”. You MUST configure both machines in the links section! If I had only configured the screen “ubuntu” to switch to “xp” I would be able to move my mouse over to “xp” but I wouldn’t be able to move back.

The Windows XP client is set to automatically connect to “ubuntu” when the computer starts. Installing the Synergy software is simple in Windows, just download it from http://synergy2.sourceforge.net/ and install. I chose to have it automatically connect to the server when the machine starts so that it runs as a service and connects whether I’m logged in to Windows or not. These are all options within the program and are pretty self explanatory.

Oh and I forgot to mention, you can copy the paste buffer from machine to machine. That has been VERY handy. I got a link to a Flash 9 video via IM and just copied it from the Ubuntu machine to the XP machine and watched.

As I’ve said, my set up is simple, you can get very complex with this software and there’s a lot of great documentation over on the Synergy site.

Some notes:

Autostarting Synergy on Linux is explained on the Synergy site. Since my home machine automatically logs my account in at startup, I just have a small startup script launch the server (/usr/bin/synergys —config ~/.synergy.conf)

Synergy supports screensaver syncing, so that might be an option for screen blanking. I haven’t tested it as I don’t use a screensaver on my Ubuntu machine.

Synergy can be configured to work through an SSH session. I have no need for that at home. I did attempt it here at work and found the lag to be unacceptable. You may have better luck on your personal network.

You could try similar applications like x2vnc. I had played with this one before and found the lag on the “remote” machine to be frequent and made the software unusable. YMMV.

Fedora 5, Wine & Dreamweaver 8

Sunday, October 22nd, 2006

When I got to work this morning I was captain apathetic. I had no desire to do anything at all computer related. I decided that I needed to jump start my day so I dug up a copy of a how-to that covered running Dreamweaver 8 on Ubuntu that I had read a while back but never attempted. I’m running Fedora 5 on this machine at work and I figured since I keep wine up to date on this machine (version 0.9.21 at the time of this writing) that I could get it done here too. Well, it worked! I made a few changes, they’re noted below.

The how-to is located at http://blog.publicidadpixelada.com/2006/07/30/how-to-dreamweaver-running-on-ubuntu-in-10-easy-steps/.

My changes:

In step 6: I copied the files to “/home/YOURNAME/.wine/drive_c/windows/profile/all users/Application Data/”

In step 9: I tried the “$ recode ucs-2..ascii macromedia.reg”, but it failed (recode: macromedia.reg failed: Untranslatable input in step `ISO-10646-UCS-2..ANSI_X3.4-1968‘). I just ignored it and imported the registry entries without the conversion.

After that, I created a launcher pointing to wine ‘/home/[user name]/.wine/drive_c/Program Files/Dreamweaver 8/Dreamweaver.exe’ and defined my site. I made a quick change to an html file, uploaded it to the webserver and did a little victory dance. This is the first time I’ve run an application in wine that worked as I hoped that it would. I haven’t done anything taxing in the application yet, if I find problems later I’ll post about them.

I think I’m going to try installing Dreamweaver from the install CD next. If that works out for me I’ll post a detailed how-to.

Edgy RC and My Hardware. No Joy.

Friday, October 20th, 2006

Well this has been a tough day. I’m on vacation and decided that it’d be fun to install Edgy to another partition on my machine. The Ubuntu team announced the release candidate yesterday and I REALLY want to see how the changes to startup impact boot times and to play with some AIGLX eye candy.

Sadly I can’t get it to install on my Intel D945GTP mATX board. I found that the installer would hang in different places or report corrupt files during install. I doubt that there are corrupt files, I always test the MD5 sums when I download an ISO (because whenever I skip that step I regret it). After the MD5 passed, I started the system with the CD and ran the CD test from the menu. No problems there either. I figured I’d do some updating, I grabbed the latest BIOS for the board and applied the image, I updated the firmware on the DVD ROM (LiteOn SHW-160P6S). That was a chore as LiteOn hasn’t realized that there are other operating systems besides windows (oh and LiteOn, you should ZIP your files, not RAR them!). So far nothing has worked, I still get random hangs during install with the only visible activity on the system being a rapidly flashing CDROM access light.

I tend to use the alternate installs as I have a single partition I use for booting and don’t install GRUB to the Master Boot Record. I’ve burned that CD twice and have inconsistent problems with both.

I hope this is a problem with the installer and not my hardware.

Oh and be careful when buying the latest and greatest hardware, I’m setting up a machine for a pal of mine, Core 2 Duo on an Intel DG965WH motherboard. On that system I can’t get Ubuntu (I tried both Dapper and Edgy) or Fedora to install. For some reason once the system boots from the CDROM, it can’t locate drivers for the CDROM to continue the install (huh??? I just stare and shake my head). It just asks for a driver floppy. No gots, none of my new machines even have a floppy drive (the same is true for this build)

Boo. This HAS NOT been a fun day. I may try the desktop install later and maybe play with some of the boot parameters on the alternate install. I may try and install Edgy on my notebook later on. I may actually just wait until the final release and HOPE that I can install it. Hope you’re having better luck.

LinuxReality & Other Podcasts

Thursday, October 19th, 2006

When I started this Linux thing, I was coming from a Windows environment, I had no experience with Linux and I was (and I still am) looking for any way to learn a little something about how things work. I honestly forget how I stumbled upon LinuxReality but I’m glad I did. This was the first podcast I’ve ever listened to and it’s GREAT. Chess Griffin hosts the show, he’s well spoken, knowledgeable and makes it extremely easy to get started with desktop Linux. He starts off very basic and builds (so yes, you should start with episode one). If you’re new to the scene, please take some time and check out his contribution. You won’t be sorry. :)

There are a lot of other Linux podcasts out there as well, they range from newb to intermediate and beyond. If you’re interested in checking them out, there’s a good list available at http://www.thelinuxlink.net.

Ninan is Nifty

Monday, October 16th, 2006

I know, the post title is ridiculous. However goofy it sounds, it’s accurate (and just to hammer it home) Ninan IS Nifty.

Ninan is a Java application (Java 1.5 is required) for downloading files from Usenet (commonly referred to as news groups). It runs a small web server on your machine that you can connect to from your local computer or another computer on your network using your web browser (I’ve only tested it with Firefox).

Ninan allows you to feed it NZB files via a convenient upload feature (there are several sites out there offering NZBs for download), or you can add downloads to queue by entering the post ID from a particular NZB provider (see the Ninan site for more details). It does NOT allow you to browse/read postings on Usenet, currently all it does is manage downloads.

What makes it so special is that it has smartpar download, only the first PAR is downloaded which saves bandwidth and at the same time still allows you to verify your files. There’s auto PAR verification and repair, and once a RAR compressed download is verified Ninan will extract the file(s) for you. After all of that, it does cleanup too. Once your download is verified complete, the PAR files are removed. After extracting your download, the left over (and space thieving) RARs are removed. You just can’t beat a program that makes checking downloads and extracting them it’s job instead of yours.

If you already have Java installed, getting Ninan up and running is a breeze. There is a walk-through over on the Ninan Wiki that should have you leeching in but a few minutes. If you need to install Java, check your distro’s forums (Ubuntu tells you how on the Wiki, and you can find Fedora help here).

All of the configuration is done via a control panel you can access once you have Ninan running, it couldn’t be easier to configure and use. :)

More Documentation Goodness

Friday, October 13th, 2006

In my last post I explained that the /usr/share/doc/ directory contains a LOT of information about the packages installed on your system. I noted that some of the documentation will be stored in .gz files and how to view them. It’s easy if you’re browsing with a graphical file manager, but what if you need to view the documents from the command line?

When I originally bumped into this I just assumed that I had to extract the documents with gunzip to read them. As a regular user, you don’t have write access to this location, I needed to sudo gunzip (on Ubuntu) or switch user to root and then gunzip the file (on Fedora). I always extracted to the same directory as the documentation so that I wouldn’t have to do it again next time. Being a newb I just figured, that’s how it’s done in Linux land. NOPE!

Enter zcat and zless, these programs work just like cat and less only they operate on compressed files. If you want to view the file Changelog.gz in the current directory you enter the command zless Changelog.gz. This will display the text file in your terminal window pausing so that you can read the document in pages. You could also enter zcat Changelog.gz, that would display the text file in your terminal window without pausing.

For those of you familiar with grep, you might like to know there’s a zgrep as well.

Handy stuff!

FREE Course: An Introduction to Linux Basics

Wednesday, October 11th, 2006

This morning I read about a free on-line course being offered by LinuxBasics.org. The course starts on October 19, 2006 (next week), and is available to anyone with a thirst for Linux knowledge. The schedule hasn’t been posted yet, so I’m not exactly sure how tough it will be to meet the time requirements of the course. I’m certainly going to give it a shot.

Participants will read sections weekly and complete the exercises following each. There is a mailing list for discussion and help so that you can be sure you totally understand what’s going on. The mailing list is geared towards the newbie so you should feel confident asking any question that you may have.

If you’re interested, check out http://www.linuxbasics.org/course/start and the course material, http://www.linuxbasics.org/course/book/index.