Nov 20

Something I’ve been missing since my migration to Linux is the ability to print whatever I want to a PDF. I find it insanely useful when I want a copy of purchase receipts or just about anything else that I should have a record of. I usually don’t print anything to paper, simply because I’ll just lose it or recycle it and then regret it 6 months later when I need a copy. Enter cups-pdf, a super easy way of outputting “stuff” to PDF.

Installing on Ubuntu 6.10:

sudo apt-get install cups-pdf

Create the printer:

  1. From the Gnome System menu, navigate to System > Administration > Printing.
  2. Double click on New Printer
  3. PDF Printer should already be selected under Use a detected printer, click Forward
  4. Select Generic from the Manufacturer drop down menu
  5. Select Postscript Printer in the Model section, click Forward
  6. Name your printer (I chose PDF-Printer) and click Apply

All set, you can now opt to print web pages, or whatever else to your Cups/PDF-Printer. Ubuntu saves the PDFs to your ~/PDF/ directory (if you want to change the default location, use the last paragraph on this post as a guide).

Installing on Fedora Core 6:

Fedora keeps this package in the extras repo, you can install it using the command below.

su -c ‘yum install cups-pdf’

A few seconds later I had a new printer named Cups-PDF, that when selected would print whatever I wanted to a PDF on my desktop. I personally don’t want all of my PDFs saved to the desktop so I created a PDF folder in my home dir and made a change to the config file:

As root, edit /etc/cups/cups-pdf.conf, locate the line that reads Out ${HOME}/Desktop and change it to Out ${HOME}/PDF. I didn’t need to restart the CUPS service to apply the change, it just worked. :)

written by M@ \\ tags: , , , , ,

Nov 17

I was able to leave work early today, I LOVE when that happens.. I took care of some personal responsibilities and came home to beer and some time with my desktop. I haven’t had a lot of time to really play since I installed Edgy.

Beryl:

I gotta say, the Beryl project is extremely cool. I had a great time picking out a skydome wallpaper and just tweaking out the desktop effects. I had to kill off the trailfocus plugin in beryl, I was getting annoyed with the fading out of apps. Other than that, I couldn’t be happier with the software. It’s just amazing. I have a nice fresh looking desktop with fun effects that just may help convince a few others to give Linux a shot (you KNOW anyone coming into this abode will be visiting my machine). Yeah, yeah, eye candy isn’t the reason to switch operating systems. That doesn’t mean that it won’t have an impact on some of those who are more reluctant to make the change. Who knows?

On the topic of Beryl, it seems that the folks over at Fedora are creating packages for it. That’s excellent news! I’ve noticed that Beryl core and Beryl devel have made it into the repos. I’m hoping that they’re planning to create packages for the plugins and extra toys as well.

*Note: if you followed the instructions for installing Beryl 0.1.1 in this post, and you update to the latest version in the Fedora repos, you WILL break Beryl. The good news is that it’s easy to fix. The RPMs referenced in the post have been updated to v 0.1.2. You can just download and install all of the packages except for core and devel (the post explains how if you don’t know what I’m talking about). After that, Beryl will be back, and up-to-date. Be sure to play with the “burn” animation. It looks NICE, but IMO it gets too annoying to use regularly. I wouldn’t mind seeing a “smoke” animation. Something that turns into wisps of smoke when you close an app could be pretty sexy :)

VMware:

I took some time today to set up some test VMware appliances for LinuxWorldNet. I’ll be using these “machines” to explore software and record my steps so I can post some how-to’s here. I’ve mostly completed the Fedora install, I’ll be working on Edgy shortly and I’ve created a Debian stable server for testing.

Upcoming Things:

I’ll be using the Debian VM to test out some FTP servers for Linux. I currently use Gene6 for Windows and would like to make the move to one of my Linux machines. I have no idea how well this will work out, I’ll post about my ups and downs here. Its going to be tough for any FTP server to beat G6, that’s just an amazing app. As I get into it, I’ll tell you what my requirements are and we’ll see how far I can get :)

I also plan on covering the configuration of OpenSSH server for both Fedora and Ubuntu. I’ll explain how to set them up in the most paranoid way I know how. I’m hoping that any newbies stumbling upon this blog will be able to open his/her SSH server to the evils of the Internet and still feel confident that they will be as safe as can possibly be.

That’s pretty much it for now. The only other thing I’d like to put out there is this; I’d like to hear from anyone that checks this blog out and has a few minutes to fire off a comment or email (matt at linuxworldnet dot com). Let me know what you think or if there’s a topic you’d like covered (I’ll do what I can, I’m still new to this Linux thing myself).

I need to get back to my beer and play, laydah!

written by M@ \\ tags: , , , , , , ,

Nov 15

This week the Fedora folks released A LOT of updates for Core 6. Among them was an updated kernel and thankfully, it addressed one of the problems I blogged about in this post.

I can now mount CIFS shares to a genuine mount point and access them via the GUI or the command line. This REALLY makes my day. Its now possible to transfer files to my home machine, update them and send em’ back. Hallelujah!

The annoying SATA startup probe hasn’t been resolved. I suppose I’ll suffer with this a while longer. I should probably take some initiative and register a bug report.

In other news, I finally know how to view the changelogs on a Fedora box. I should have read a little more on the rpm command, I might have known about it sooner…

Entering rpm -q kernel-2.6.18-1.2849.fc6 –changelog |less displayed the changelog for the current kernel. Seems the CIFS fix was implemented on November 9th.

written by M@ \\ tags: , ,

Nov 13

I’ve been working on backing up my home directory automatically, generally when I automate a process I like to get an email notification of completion and perhaps a log file as proof. Ubuntu doesn’t seem to have a command line mailer installed by default and many of the apps in the repos have heavy dependencies (such as exim or postfix). I don’t plan on running a mail server, and these programs add a level of complexity that just isn’t necessary (not to mention I’m just not ready to mess with them). I found a small script that does exactly what I need, sendEmail. It’s only dependency is perl and that should already be installed on your system.

sendEmail -f [from address] -t [to address] [another to address] -u ['subject'] -m ['body'] -a [attachment] -s [your SMTP server]

As the example above shows, you simply call the script, specify your from address, specify the to address (one or many), define a subject and body (if you are including spaces in the subject or body wrap them in quotes), attach a file if you like, and then give it the address of your SMTP server (which was provided to you by your ISP). It’s just that simple and it just works.

I couldn’t locate sendEmail in the Fedora repos (Ubuntu has it in the Universe repo) but it’s VERY easy to install yourself. Download the official release from http://caspian.dotconf.net/menu/Software/SendEmail/ to your home directory, then enter the commands below.

Note: At the time of this writing the current version is 1.54 and the downloaded filename is sendEmail-v1.54.tar.gz. The filename may change later so you’ll have to adjust the commands below accordingly. You will need the root password to install this script to the locations below.

Open a terminal window and go to your home folder (or the location of the downloaded file)

su -c ‘tar -xzvf sendEmail-v1.54.tar.gz -C /usr/lib/’
su -c ‘ln -s /usr/lib/sendEmail-v1.54/sendEmail /usr/bin/’

The first command will extract the files to /usr/lib/sendEmail-v1.54/. The second command just creates a symbolic link in /usr/bin/ that will allow you to call sendEmail from the command line. For those interested, su -c switches user to root, executes the command following the -c and then returns you to your normal user level. I tend to use this method so I don’t forget to log out of the root account and accidentally break something.

written by M@ \\ tags: , , , ,

Nov 09

I’m having two problems with my FC6 install at work (I’m running a Dell OptiPlex GX270, ya know, a basic office machine). One of the issues is more of an annoyance, the other limits my capabilities and I’m bothered that it’s still a problem on this machine.

The lesser of the issues causes slow boot times. While the kernel is loading and before the GUI boot screen, Linux is probing my SATA ports and not finding any drives. That makes sense since there aren’t any SATA drives in this box. I found 2 posts about this issue on Red Hat’s bugzilla, ID 212581 & ID 212737, I see no confirmation of the problem, so who knows when there will be a fix. Its not really a show stopper as the scan times out, gives up, and eventually boots normally.

This issue is the bugger! CIFS mounts with roughly 100 or more files cannot be read. If you’re unfamiliar with CIFS, its the filesystem type used when mounting Samba/Windows shares. As I’m using this machine at work, this one makes me growl. I have up to 15 shares I need to mount from time to time in order to get my work done. Most of them have well over 100 files just in the root of the share. When attempting to navigate offending mounts with Nautilus, I receive an error that reads “The folder contents could not be displayed“. The error I receive when trying to list the contents of the folder via the command line reads “ls: reading directory .: Invalid argument”. This is a real problem for me as I’m responsible for a lot of documentation, I sort them by directory, I have thousands of folders/files (I’m anal about it and document everything) and I can’t access them through file system mounts.

There is a workaround, I can mount using Gnome VFS (Places > Connect to Server), and I can browse using Nautilus (smb://server/share). This isn’t ideal, I would prefer to have a genuine mount. Not all programs are Gnome VFS aware and I don’t see a way to direct Gnome to mount to an actual file system location. That means that if I create a file with an app that can’t utilize Gnome VFS, I need to save the file to my home dir and then copy it off to the VFS mount. If you know of a way to force VFS mounts use a genuine mount point, PLEASE let me know.

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=212123 says that this problem has been fixed in CVS and an update will be released shortly. That was posted on October 28th and I still haven’t seen an update addressing the issue.

When Looking at this from a Linux newbie point of view (and I do know that Fedora isn’t a newbie focused distro) this is a real problem. There is no fix for the CIFS problem, well, not unless you want to compile your own kernel from CVS (and that’s nothing more than a drug store chain to many people new to Linux) and the potential fix listed for the SATA problem (mentioned in bug 212581) isn’t something a newb would/should be comfortable doing. If I was just giving Linux a shot and started out with Fedora I might be tempted to just say that Linux is broken and go back to Windows.

written by M@ \\ tags: , , , , , ,

Nov 01

Over the last few days I’ve been exploring the wonders of Beryl. You can read a bit about it on your own over at http://beryl-project.org. If you don’t feel like reading up on it, I can break it down like this; Beryl (which is a fork of Compiz) adds eye-candy and productivity features to your desktop. I’ve found a few handy features that will allow me to work faster and you just can’t beat all of the fancy-schmancy toys.

Sooo, I went to work early this morning (all excited) to install the latest Fedora on my machine. I did the base install for a workstation, installed the apps I use the most and then turned on the nifty desktop effects. It was far less impressive than it was last week (see FC6 First Impressions). After using Beryl on my Ubuntu machine, Compiz is just kinda lame. You get a subset of what is available in Beryl and Fedora didn’t include any way to manage Compiz themes (at least none that I could find).

Is that such a big deal? To me it is.

The Beryl settings manager allows you to tweak features to what feels like an infinite level. You can change default settings (which is good, the wavy menu thing was buggin’ me), disable the effects that annoy or make your system feel slow, and experiment with what makes your desktop experience better. Since I’m running it on an older/less powerful machine here at work I’m tweaking the settings so that things don’t feel so laggy.

Beryl’s Emerald theme manager has (as installed on Fedora) 39 themes available. More than enough to pick your favorite colors to get started with.

Compiz had neither of those nifty config apps and I couldn’t find a suitable substitute in Fedora’s repos. Time to install Beryl.

You’ll have to do a little manual labor to install Beryl on Fedora, the Fedora forum has this post that will make it easy to install. If you’re using FC6, you can skip way down to ” HOWTO : FEDORA CORE 6 – BERYL”, download each RPM to a directory, open a terminal session, change to the directory you downloaded the RPMs to, switch to the root account (su) and enter “rpm -ivh *”. Once all of the packages are installed you can follow the instructions for starting Beryl on the same forum post. Poof! You’re done!

Ahhhh, now the gotcha. Since you’re not installing from your standard package manager, you won’t find Puplet or Yum telling you that there are updated packages when new versions of Beryl are released. I’m hoping the author of the post will keep the RPMs updated but you can’t count on that. If it comes down to it, you could compile new releases yourself. If you’re anything like me, that thought could make you a little nervous (esp if you’ve failed to compile things on Fedora as many times as I have). I personally believe that the benefits outweigh the risk. I find Beryl to be a bit more stable than Fedora’s Compiz (which surprised me). Using Compiz I found my Gnome terminals crashing frequently and that hasn’t happened yet with Beryl.

Going back to my tweaking now.. I’ve found that disabling Trail Focus and shortening the animation durations have really improved the feel of things on this GX270 :)

written by M@ \\ tags: , , , , , , ,

Oct 31

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.

written by M@ \\ tags: , ,

Oct 25

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!

written by M@ \\ tags: , , , , , ,

Oct 22

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.

written by M@ \\ tags: , , ,

Oct 07

In my last post I covered reading man pages via the console. Depending on your distro, you may find that man pages are available via your desktop’s GUI help center.

Ubuntu does this very well, while Fedora had some wonkiness.

Ubuntu/Gnome users can select System > Help > System Documentation. The Help Topics page contains a few categories dedicated to Ubuntu specific documentation, scrolling down will show Other Document Categories. Here you will want to click the Command Line Help link. You will be shown two more categories; GNU Info Pages and Manual Pages. Info pages tend to be more in depth where man pages give you the basics and then leave you to experiment. Once you select one of these categories, you’ll find yet another collection of categories, you can select one of them or simply enter the command you’re interested in learning about into the search field. Entering shutdown will give you the man page for the shutdown command.

Note: When I first entered the help center and attempted to search for some common commands, the results didn’t include any man pages. Once I browsed through some of the available man pages, the search results began including manuals. YMMV.

Fedora works much the same way, within Gnome you select System > Help. You’ll have fewer categories, but the command line help is there. I’ve found that browsing the command line help works perfectly, however I usually prefer to just search for what I want. Here is where Fedora has some issues. Entering shutdown into the search field results in the help center displaying a link to the man page, clicking on that link gives nothing more than an error about an invalid uniform resource identifier. My Google-fu might be lacking today, I just can’t locate any fixes for it.

If you’d rather not read your man pages via the terminal, this is the graphical way to get it done.

written by M@ \\ tags: , , , , , ,