Monthly Archives: October 2007

POW: Yum installation by groups

The second in the Program of the Week (POW) is here.

Yum, the Yellowdog Updater Modifer, has a very interesting feature. One which you might find useful if you want to install an entire set of packages for say a new “Windows File Server”.

Yum provides this feature right out of the box these days, and its quite a nice feature. SUSE 10.1 has rug which is a very similar feature, called bundles. I would guess that Ubuntu either already has this feature, or will in the near future.

So how does installation by groups work? Pretty simple really, first we must learn a few new options in yum:

First is “grouplist”. Grouplist will tell you which groups of packages you have installed and which ones haven’t been installed.

$ yum grouplist
Setting up Group Process

Installed Groups:
  Office/Productivity
  Engineering and Scientific
  .. snip ..

Available Groups:
  .. snip ..

  Windows File Server
  .. snip ..

  Development Tools
Done

In my case, you can see that I’ve not yet installed “Windows File Server”. Interestingly enough, I’m not sure what’s in that group of packages, so its time to check:

$ yum groupinfo "Windows File Server"
Setting up Group Process
Group: Windows File Server
 Description: This package group allows you to share files
 between Linux and MS Windows(tm) systems.

 Mandatory Packages:
   samba
   samba-client
 Default Packages:
   system-config-samba

Wow, quite a few packages, there’s also some good information here. We now know that there are 10 optional packages and 1 conditional package that can be installed. To get the details on any of these packages, yum can tell us:

$ yum info samba
  .. snip ..

Available Packages
Name   : samba
Arch   : i386
Version: 3.0.26a
Release: 0.fc7
Size   : 3.1 M
Repo   : updates
Summary: The Samba Suite of programs
Description:Samba is the suite of programs by which a lot of
PC-related machines share files, printers, and other
information (such as lists of available files and printers).
The Windows NT, OS/2, and Linux operating systems support
this natively, and add-on packages can enable the same thing
for DOS, Windows, VMS, UNIX of all kinds, MVS,
and more..

Yum informs us that the “samba” package is useful for setting up file sharing between Windows and Linux. Other packages from the list above will also be installed so we’ll get to play with some of those as well. If desired, ‘yum info’ can be run for each of the packages found in the grouplist. However, for us, lets move on and install the group of packages:

$ su -# yum groupinstall "Windows File Server"
.. snip ..

============================================================
Package               Arch    Version        Repo      Size
============================================================
Installing:
system-config-samba   noarch  1.2.52-1.fc7   updates  287 k
Installing for dependencies:
samba                 i386    3.0.26a-0.fc7  updates  3.1 M
Transaction Summary
============================================================
Install      2 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 3.4 M
Is this ok [y/N]:

At this point, we need to choose whether we’re going to install the 2 packages that will enable samba for us. Hitting enter will answer no, so we need to type a ‘y’ and hit enter. The packages are then downloaded, and installed:

Is this ok [y/N]: y
Downloading Packages:
(1/2): system-config-samb 100% |=============| 287 kB  00:00
(2/2): samba-3.0.26a-0.fc 100% |=============| 3.1 MB  00:02
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: samba                 ################## [1/2]
Installing: system-config-samba   ################## [2/2]
Installed: system-config-samba.noarch 0:1.2.52-1.fc7
Dependency Installed: samba.i386 0:3.0.26a-0.fc7
Complete!

As you can see, its pretty nice to be able to install a group of packages together, letting yum do the work to figure out the details. In another article in the near future, I’ll cover how we create these relationships and build a back end yum server from the ground up.

Cheers,

Herlo

GNOME Question: How does one load https links into the preferred browser?

You’ve done it, you’ve gone to your email and clicked a link. The link will happily load into your preferred browser, in my case, Firefox. If you are using gnome-terminal, its a ctrl+click on the link and it works great. I use irssi with gnome-terminal and when someone pastes a link, I ctrl+click and up comes the website in my Firefox. GNOME even will switch me to my own workspace, which is pretty nice!

Except when the link starts with https!

Why is this!

I’ve hunted high and low, searched google for terms like “GNOME click https” with no luck. Frustration has really set in for me, because its not something that majorly affects me but its just enough of a bother. I’ve waited to see if someone else got frustrated enough and wanted to fix this problem as well. So far, no dice.

So, I’m looking for answers to this eternal question. When I click (or ctrl+click) an https link in any application, why doesn’t it automatically load into my browser? Is there a solution to this? Please comment, they are much appreciated.

UPDATE: It seems that from the suggestions I was given, things are working much better now.  Originally, I had the custom option chosen in my preferred applications, and that was pointing to Firefox.  At a whim, I changed it to actually be Firefox, and all is well.

Thanks to everyone who commented on this.

Cheers,

Herlo

*nix distribution poll, which is the best distro codename?

The fact that Ubunut, SUSE, OS X, OpenBSD and of course Fedora are coming out about one month from each other. I thought it would be useful to have a poll about which is the better name of the latest releases. Please feel free to add your vote.

{democracy:1}

Cheers,

Herlo

Boston Red Sox (and me) at the World Series

Okay, okay, I didn’t get in, but it was sure fun to take a train trip down to the World Series to see the vibe. I’ve never been quite so close to a World Series game. The closest thing for me was when I got to go to watch the Utah Jazz get beaten by the Bulls in 1997 and 1998 in Salt Lake City. The World Series is much better to me since I’m a huge baseball fan.

For your entertainment, I took some interesting, pics:

img_0767.jpg img_0765.jpg img_07621.jpg img_0764.jpg

I also took some pretty pictures of fall in New England. Not being from here, its amazing how beautiful the leaves can be.

img_07741.jpg img_0772.jpg img_0771.jpg img_0769.jpg img_0770.jpg

Cheers,

Herlo

POW: bash-completion – Bash Auto Completion in Fedora using yum (and more)

In an attempt to consistently blog, I am starting a new series here on fedora-tutorials.com. Program of the Week (POW). Hopefully, this will excite and inform all of us about the cool programs available in Fedora. So see you next Wednesday for another program.

Over the past year or so, I’ve been on the hunt for several things that I find in other Linux distros that I cannot find in Fedora. Its not very common, but on occasion I do run into something that’s not there on Fedora. One of them was the ability to automagically complete many of the command lines for many things.

One of them, and probably one of the biggest, was the fact that yum did not have tab completion for available packages. Today is my lucky day! While chatting and helping my students with their labs today, one of them mentioned to me that he could tab complete a particular command on his box. I of course inquired, because it interested me, as to the package name. It turns out my bash tab completion dreams were just about to come true! He told me about this amazing package that would let me use tab completions for things like the service command, man and of course, yum.

I was blown away! So immediately after this discussion, I started searching for this elusive package I’ve never heard of before. Sure enough, as he informed me, bash-completion does exist and does some amazing things. After hunting around a little on google, here’s some of the stuff I found. I’ll also include the links at the bottom of this post.

as root try this: (note [Tab] means you should hit the tab key)

# service ht[Tab]

What you’ll notice is that one of three things happen. If you’ve got the bash-completion package installed already because you’re ahead of the game, it should auto-complete for you. Without bash-completion, this doesn’t happen, but its also possible that since bash already has some completion in place, it might auto complete a directory for you, but that’s definitely not what you want.

If you’ve not already installed bash-completion, I’d suggest you do it now. On Fedora 7, run the following command:

# yum install -y bash-completion
..snip..
Installed: bash-completion.noarch 0:20060301-3.fc7
Complete!

Now that bash-completion is installed, we need to invoke the tools. Normally, this is not needed, and a reboot/re-login will take care of this as well, but since I wanted to use this right away, I did the following as an unprivileged user:

$ source /etc/bash_completion

This doesn’t seem to do much, but its actually quite powerful. The source (or .) will load the environment variables from the /etc/bash_completion script into my current environment. Luckily for us, when we now log into root, /etc/bashrc will accomplish this for us without any intervention. To test that it worked, try running the following command as the same unprivileged user:

$ unalias[Tab]
.=     ll=     ls=     vi=     which=

Note that when I pressed twice, a list of the currently available aliases appeared. Nice ey? Let’s complete this:

$ unalias w[Tab]

Now produces:

$ unalias which

And completes the string as expected. Now we’re getting somewhere! But why did I really want to explain this?

Oh yeah! yum

With bash-completion, yum can now provide us with a list of available packages, similar to the auto completion capability in apt-get or aptitude from Ubuntu or Debian. Say for instance you want to see all of the packages available for install that match what you’re looking for, but don’t want to run yum list or yum search because, in truth, it just takes to long! Now you have an alternative:

# yum -y install bal[Tab]

Produces:

ballbuster.i386  ballz.i386       balsa.i386

Adding another ‘lb’ to the end of that string (and then the tab key of course) should help us to complete to the package we’d like to install.

# yum -y install  ballb[Tab]

Then completes to:

# yum -y install  ballbuster.i386

Hitting enter then installs the ballbuster package, and its quite a fun game!

.. snip ..
Installed: ballbuster.i386 0:1.0-1.fc6
Dependency Installed: ClanLib.i386 0:0.8.0-4.fc7
Complete!

Of course, there are hundreds of others tab completions available (and there’s a good way to list many of them too, even if its a bit cryptic). Try these on for size:

Are you a developer?

$ svn c[Tab]
cat checkout  ci     cleanup   co     commit    copy    cp
$ make [Tab]
all clean dist-clean

What about a systems administrator?

# modprobe -r b[Tab]
battery    bay        blkcipher  bluetooth  bridge     button
$ man cron[Tab]
cron     crond    crontab
$ ssh herlo[Tab]
herlo-f7   herlo-lap  herlo.org
$ grep --[Tab][Tab]
 --after-context=  --directories=   --invert-match   --only-matching
 --basic-regexp    --exclude=       --label=         --perl-regexp
.. snip ..

To help you wade further through, try out the following two commands:

  • complete -p
  • declare -f

Be aware that these are advanced components and can really be confusing if you’re not a developer and just want to use the features. The complete command seems to provides some tools to do additional auto-completion. I also think that its nice to be able to extend this functionality to other applications as well.

As promised, here’s a few links to help your completion introduction. Note: Some of these links provide more than just the simple tab completion:

Fedora 8 to be named “werewolf”

I don’t know about you, but I believe that this name is the best ever! Its well timed too, seeing as a late October release was planned.

I suppose Moonshine was good for Fedora 7, and Ubuntu does its naming convention with the latest being Gusty Gibbon. I have to say though that for sure Werewolf for fedora 8 takes the cake!

I love the name, great choice! I look forward to the November 10 Multi-Distro Release Party. We can celebrate fedora 8 along with all the other distributions being released this month. Isn’t it exciting!

Cheers,

Herlo

Update: Nicu Buculei drew this amazing werewolf which I thought was just awesome!

Firefox – My Addons/Extensions

Thanks to the great “Extension List Dumper” extension, I’m happy to share with all of you my favorite extensions and a short little bit about each of them.

Adblock Filterset.G Updater 0.3.1.2/Adblock Plus 0.7.5.3

This is a great extension for blocking ads. Using the Filterset.G component provides me with automatic updates which tell Adblock Plus which pictures are ads and which are valid content. I quite enjoy this one and don’t get the flashing ads nor do I get the buzzing bees anymore :)

Download Statusbar 0.9.5.1

synic saw this tonight and asked me what it was. I run Download Statusbar in “Mini Mode” and never use the standard download dialog provided from Firefox. If you prefer to show all of your downloads near the status bar at the bottom, the Download Statusbar is for you.

FireGPG 0.4.3

FireGPG provides me with a quick and easy way to use my gpg keys. I can sign, verify, encode and decode messages in my gmail by clicking the extra options this extension gives me. I’m sure it works in Yahoo! Mail and others as well. I regularly get mail that is signed with someone’s gpg key, this is very nice for that reason.

Foxmarks Bookmark Synchronizer 1.0.1

Foxmarks is in my opinion the best bookmark synchronization tool. Google has one, other people have one, but Foxmarks gives me something that those others just can’t. I get the ability to manage all of my bookmarks from the safety and security of the extension itself. Setting up the account, updating and synchronizing can all be done from within my Firefox browser. I don’t have to go to a web page and agree to terms, it just works.

Morning Coffee 1.26

I use this feature off and on though I really like its concept. When you add this extension, you get a little coffee mug up near your search box. Every day when you open your firefox, it will automagically load your chosen sites into the browser for you. Customizations can be made for each day, weekends and the whole week IIRC. Its a great little extension.

StumbleUpon 3.11

If you’ve never used StumbleUpon, you’re missing out. This extension provides you with hours of entertainment. Think of it as social networking on crack! You’ll be so addicted to “stumbling”, that by the time you get tired of it, you realize its morning. I absolutely love the StumbleUpon extension.

TinyUrl Creator 1.0.4

If you’ve never been to tinyurl.com, check it out, but this little plugin will help you make long web links into short, manageable ones you can give to your friends. Never again will you have to copy and paste http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=111843562736606607846.000001132f1a80671132d&z=13&om=1 but rather http://tinyurl.com/3bx3yv. Now isn’t that so much better?

I’ve recently discovered a couple more that I find interesting. I’ll report back to you all when I’ve tested them out, but here’s a quick list for your enjoyment:

ScribeFire – Blog from Firefox

Firefox Showcase – Hit F12 to show a quick preview of all of your tabs. Reload and browse here too if you like.

What are your favorite extensions. What ones did I miss? I’d love to hear from you about some that will make my Firefox even better!

Cheers,

Herlo

Why is blootbot (ibot/infobot/jbot) a girl?

Some of you may have seen my mailing list posts to SLLUG, PLUG and Ubuntu Utah. If so, you are welcome to participate here and flame me for asking this question as you may have already answered it there.

BUT

I’m curious as to the history, a farce or truth as to why blootbot is considered a female in Utah? Is there some long truthful story that can be told, or is it that someone just decided? Is it like naming a boat? a hurricane? Call it a fascination, a fanaticism, crazy or whatever, I just want to know the history.

In a recent interview with TimRiker, the maintainer of blootbot, I asked him some tough, hard questions:

16:37 <@herlo> TimRiker: so do you know the history of why ibot/infobot/jbot is a girl?  I'd like to learn it...
16:46 < TimRiker> herlo: infobot is not a girl. well, not all the time.
16:46 < goozbach> don't let Charity hear that
16:46  * maquis sends an email to charity....
16:46 < TimRiker> is Charity a girl all the time? :)
16:46 < TimRiker> ~gender
16:46 < infobot> I'm hermaphroditic
16:46 < TimRiker> ~gender
16:46 < infobot> I'm hermaphroditic
16:46 < TimRiker> ~gender
16:46 < infobot> I'm female
16:46 < TimRiker> ~gender
16:46 < infobot> I'm pregnant
16:46 < TimRiker> ~gender
16:46 < infobot> I'm pregnant
16:46 < TimRiker> ~gender
16:46 < infobot> I'm gay
16:47 < TimRiker> etc.
16:47 < TimRiker> depends on her mood.

I’d like to hear your opinions, or share your fantastic story of how she became the woman she is today. We love our bot, we do, tell the infobot story…

Cheers,

Herlo

Sexy Sexy Penguins needs an image

Yes, that’s right folks. I’m looking for a new image to adorn the top of my blog. I’ve got this pretty new theme (not shown on my site yet) but it needs a fresh new coat of penguin love.

So I thought I’d share with the community and see if anyone could come up with a new image for my blog. The general idea is it has to go with my blog title “Sexy Sexy Penguins”. I’m imagining a few “very attractive” penguins or something related in that way. To help generate some interest in helping me with my sexy penguins search, I might offer a bit of a reward, say $50 to the winner.

To help you in your search, I’m planning on using this theme. There could be slight adjustments, but the image should be in several desirable formats, including banner, screensaver, and a any others that might seem useful. The main reason I am doing this is to motivate myself into blogging more, both for your benefit, but also for mine.

Fedora-Tutorials needs a face lift, help the Sexy Sexy Penguin(s) come to life! Thank you all for enjoying my posts, I plan on providing much more in the near future.

Cheers,

Herlo

Strike that, I got kicked!

from Google! At their Mountain View campus.

This week Aaron Toponce and I are in Mountain View. We decided it’d be fun to go visit Google. We snapped a few pictures, and spent about 10 minutes on their campus when all of the sudden….

Three big security guards started running at us and yelling for us to leave! We ran from them, and although they were big, they were fast too. So we ran harder! They still couldn’t catch two nerds (one who never runs – that’d be me!) no matter how hard they tried.

Okay, so none of the above paragraph is true. Except that there were a couple of guards, and they did ask us to leave. But they were really nice about it, and the guard that escorted us out informed us that we couldn’t take pictures. But we snapped a few before they’d told us, so here they are:

Google Plex img_0754.jpg img_0755.jpg img_0756.jpg

Afterward, Aaron and I just laughed and laughed about “getting kicked off Google’s campus”. Its a pretty funny thing. We sure enjoyed our tour of Google though. They have a very nice campus with some cool views. Google is quite amazing and it sure appears that they take care of those bright engineers.

The security guard said that if we came back with a friend or contact, we could roam free. We still can’t take pictures, but hey, it sure sounds fun. I think I’ll try to find a friend now that works at Google, just so I can get the personal tour.

Cheers,

Herlo