Hero Inc.

where heroes are an everyday occurrence

Archive for the ‘Linux’ Category

May-9-2010

Ubuntu Setup Script

With the recent release of Ubuntu 10.04 LTS (Lucid Lynx), I found the need to help my transition to the new version of Linux that I currently use at home (desktop and netbook). I have become quite comfortable at making certain transitional changes upon upgrading, but why do I need to spend the time to fix a manual step that I can automate?

The script was initially created to make two changes:

  1. The location bar in the file explorer is defaulted to graphic based, instead of my personal comfort of text based
  2. Ubuntu 10.04′s movement of the minimize, maximize, and close buttons to the left of the window as opposed to the right

The script, found here (right click, save as), simply runs two simple commands within a terminal. However, why type these commands (each on a single line) in when you can just run the script? Like I said, I’m lazy.

Command 1: Move Window Buttons To Right

gconftool-2 --set "/apps/metacity/general/button_layout" --type string
  "menu:minimize,maximize,close"
Command 2: Change Window Location Bar To Text, Not Images

gconftool-2 --set "/apps/nautilus/preferences/always_use_location_entry"
  --type bool "True"

Hopefully I will update the script later to include a few of the following features:

  • Import a synaptic package list of applications and install them
  • Modify the splash screen background image
  • Copy a backed up Home folder
  • Create separate script to be run before moving to the latest version of Ubuntu to backup the installed applications, bookmarks, and home folders

If anyone wants to help out or have suggestions, let me know.

I’ll try to give a full review of Ubuntu once I spend more time with the OS, but as of right now, its AMAZING. Purple suits me much more than the old brown did.

Posted under Linux | Tagged as , ,
Jan-31-2010

Podcasting The Commute

Now that I have settled into my new city and been placed on a new project at work, it is time to deal with the commute.  Please understand that this commute is by no means terrible even if it is about an hour and forty minutes each way (morning and afternoon).  The trip is a straight shot based on the MUNI (if it is running correctly that day) and BART.  I am able to have a internet connection for about 90-95% of the trip so if I need to do work I have that option.  Some may say the BART is terrible, but I am provided an easy laugh twice a day as I read the “Committed to Excellence” Oakland Raiders sign that rests on the stadium.

However, there are those days where I don’t need to do any work and I can just sit back and enjoy the ride.  Now my sister will tell me that I should pick up a book to read.  Well I have picked up a book, which is just a book I started while at the beach this summer but never finished.  It’s just that I can’t force myself to read along this trip because I’m very picky about my reading spots.  That and I’m of the generation who doesn’t know what reading is.  We won’t laugh about that in the future, but we can laugh now.

Anyway, I decided to get back into listening to podcasts on my Creative Zen Vision W, or the Betamax player as it is known on my project team.  I have been away from podcasting in general for several years so I wasn’t sure what was still out there or what new good ones were available.  Here’s a quick list of the ones I have found that I have enjoyed so far.

Podcast Name Description
DiggNation DiggNation is pretty much where my world of podcasting started out. DiggNation, hosted by Kevin Rose and Alex Albrecht, discusses the week’s top stories from the social news site, Digg.com. I truly enjoy the way the two hosts play off of each other and the topics can range from tech, news, sports, etc. It is usually a random assortment of “news” selected by those that post to Digg. I have listened to this podcast since it was first started as just audio. Now with video, so much more is added to the experience.
NPR 7AM News I’m not a huge fan of the news, mainly because it is usually so depressing and only certain stories are stressed in the political realm. NPR’s 7AM news report provides me a fast and effective update for the day’s news stories. The report is offered in the audio clarity that only NPR can offer and usually is not much longer than 5 minutes in length. Perfect for a quick update.
PTI Pardon The Interruption has become my true DVR pleasure. Michael Wilbon and Tony Kornheiser are always entertaining and provide a quick shot of all the latest sports news. I love watching this show daily but I ran into an issue recently where I didn’t have time to watch the show each day. Thanks to the podcast, I don’t miss a beat. The audio only version of the show is not as good as the real thing but it is as close as you are going to get if you just don’t have the time to sit in front of a TV to enjoy. This one is not a push (Wilbon’s trademark).
If DiggNation was my first podcast, then This Week In Tech is my tied first. A weekly discussion of the week’s tech stories is hosted by Leo Laporte. This is truely a geek’s show but I still find my chance ot laugh and enjoy another dose of tech talk.
This Week In Google Provided by the same group that produces This Week In Tech and Security Now, TWIG (as it is known) follows the top stories related to Google or cloud computing. I’ve only had a chance to enjoy a single episode, but I did find it interesting enough to give it another shot. I’m just wondering if too much Leo Laporte in one week is good for me.
Security Now! Not long after I was listening to TWIT and DiggNation while in college, Security Now! began. I gave it a listen a few times in order to find out more within the security industry (might need this for work), but I just haven’t been able to consistently enjoy it. That basically means I’ll drop it soon, but for those that are concerned with their computer security, then give the show a chance. The show does find itself able to explain even the high level security issues so that normal users can understand them and how they could be affected.
AppJudgement DiggNation was the first of many shows to come for the Revision3 online network. For those familiar with the days of TechTV, you’ll notice many old faces. AppJudgement provides a simple review of applications or “apps” for smartphones. These reviews are for both iPhone and Android phones. Since I’m close to purchasing a smartphone (NOT AN IPHONE), I thought it’d be a great idea to begin finding some apps that I’d find useful. The show runs between 5-10 minutes so it is easy to get in, learn, and get out.
The Totally Rad Show With my enjoyment of Alex Albrecht from DiggNation (that’s too many plugs for that show), I thought I would try his second Revision3 show, The Totally Rad Show. TRS discusses movies, video games, and comic books. I tried a single episode and enjoyed it but not sure if I will continue thanks to a few of the other shows below.
CO-OP Need a review of current and future video games? Well, CO-OP is a well produced show that does just that. My introduction to the show was an older episode that discussed Uncharted 2 and Super Mario Bros. Wii since I had just played both of them recently. My time to spend playing games is not what it used to be but I might follow this show every now and then if I’m looking to find a new game to try.
InstMsgs InstMsgs had the most interesting concept in that they dramatize all things web. From instant messages to craigslist ads, they do it all. I first heard of this show from the first podcast listed above (I can’t name it again or I might have to start paying fees) and thought “Why not?” Well I jumped on for episode 8(Mad Men?) and that’s about as far as I’m going to get. The show was good and interesting but I don’t know if it is enough for me to keep going with it. Those who find lolcats funny might want to try episode 10.
iFanboy A podcast about comics? I’m so there! The discussion is sporadic in the episode (I’m only one in as of posting), but that’s the only way to describe comic book stories. Finding new comics, diving deeper into stories, or providing interviews, this is a great stop to keep up or find out more about the world of comics.
The Linux Outlaws Since moving to Linux, I wanted a chance to learn more on a more consistent basis. When I found Linux Outlaws, I thought that a podcast could be the perfect place if it was done correctly. Well I’m only one show in (Simple Doesn’t Equal Shit) and I have a few thoughts. First, I will not continue with this one if the running time is around 2 hours for each show. I need shows that are an hour or under to truly enjoy a show during the commute. Two hours is just way too much for me. Second, the content is there in this one. They discuss different flavors/distros, new application updates, and news within the Linux world. As long as the time is shortened for future episodes, I’ll continue listening along.

Anyone have any others I should try? I am interested in checking out others that are not only tech based but I do like what I like.

Posted under Games, Heroes, Internet, Linux, Movies, Sports | Tagged as , ,
Aug-2-2009

A Minty Fresh Jackalope

It seems like many moons ago I was writing about my latest foray into the world of Linux thanks to my new netbook toy.  Before that I attempted to chronicle my journey into learning about the free OS.  I guess then that it is time for an update on my progress.

After enjoying Mandriva for well over a year, I decided it was time for a change.  Still fighting off that which is popular, I chose to go with Linux Mint.  Built on top of Ubuntu but with a flare for elegance, it seemed like a great choice.  It’s been about a month since the move to Mint and I’d say my reaction has been mixed thus far.

Linux Mint does offer certain areas of improvement over Mandriva, mainly the user base for help.  I can use either the Ubuntu crowd or Mint specific users.  I’ve also noticed better performance in my VirtualBox from when it was run on Mandriva.  However, I’ve also run into the normal “this didn’t work out of the box” items that plague many new installations, such as issues with the video driver that prevent me from utilizing the accelerated graphics card functions.  I certainly don’t need the cool visual affects, but they were always nice to have within Mandriva.  I’m certain I can get them working if I take the time to update with the correct driver, but so far I haven’t really taken the time.  It also seems that I’m learning to like Gnome or not even notice a true difference with KDE. Gasp!  Don’t tell the geeks or I’ll be thrown out, if I haven’t been already.

I’ve also noticed an annoying item related to my use of Pidgin.  It seems that when my computer is left alone for a period of time, Pidgin always seems to hog my resources when I try to use it again.  I’ve googled it but didn’t find many results.  I even tried to post to a forum, but you know you have to reply to those.  Oops.

With the OS change, requires a few application changes.  Not many mind you.  The biggest and most important change for me is the media manager application.  Previously with Mandriva I was using Amarok.  Amarok is still to this day the best music software I have used but I’m not liking the new path it is heading with the major changes made for version 2.  It was my all inclusive software (music, tagging, media transfer to Creative Zen).  Linux Mint came with RhythmBox oob, but it fell short.  I then tried Songbird (still not understanding the need to combine the media manager with a browser).  So No luck there either.  Now it seems I’m using a mixture of Banshee and Listen.  These are great for listening to my tunes but not so much for transferring files to my Creative Zen.  I’ve tried using Gnomad 2 for transferring files, but my artwork is lost and that’s a kill switch for me.

Now that’s the desktop.  On to the netbook.

Since my netbook post, I’ve been using eebuntu netbook remix, which was based on Ubuntu 8.10.  It was slick and really tried to utiize the smaller netbook screen and give you ease of navigation.  I loved it and thought I’d keep it forever, but updates put an end to that.  When I tried to upgrade to the 9.04, I saw an exterme performance drop in the graphical department.  At this point, I realized that I was not really using the netbook remix as it was intended and decided to change by installing Ubuntu 9.04 without the netbook remix addon.

Well, I must say that I’m impressed.  Everything I need has worked OOB with Ubuntu (wifi works, yay).  I’ve spent the past day or two customizing it to my somewhat liking.  As you can see, I still need to remove the wonderful gnome footprint start button icon.  Maybe I can get Will to make me a simple Black Adam lightining icon in reference to my netbook’s name (blackatom).

With the Hydoxygen iconse, a customized Dust theme, and the AWN dock bar (I found this one to be less process intensive than the Gnome-Do Docky theme), I think I’m ready to go enjoy my netbook again. I might even come to like Ubuntu enough to put in on my desktop.  Apple lovers, please don’t begin to tell me my desktop is very similar to Apple’s setup.  Similarities just mean that something is working for a larger population.

I also tried a live boot of Moblin, which was impressive but confusing.  Here’s hoping they can continue to improve it.

Posted under Linux
Mar-29-2009

My Netbook

There’s a new member of my computer family. The new bundle of joy arrived on Wednesday afternoon and has amazed all of those that have seen it in person.  That’s right peeps.  I’m the proud owner of a netbook.

netbook

My original intent was not to get a netbook, but to possibly purchase a new mp3 player.  However, most of the ones I found were not better than my current Creative Zen Vision W.  I wanted my new player to be able to play music and videos as well as provide the basic ability to surf the web.  After looking at my options, it seemed that a netbook could produce the same results.  Therefore, I purchased the ASUS Eee PC. For those unable to click the previous link, here are the basic stats on it.

  • 40GB Solid State Drive (No moving parts and less weight)
  • 1.6 GHz Intel Atom N270 Processor
  • 2 GB RAM (I upgraded during the purchase and installed myself)
  • 6 Cell Battery (long life)
  • Linux (Xandros or Debian variant)

Now before we go any farther, this technological wonder needs a name.  For those that are truly unfortunate to know me, understand that I name my pieces of tech based on, what else, but super heroes (Inventory =>  Old Desktop: Lantern1, Old Laptop: Gray Ghost, New Desktop: Black Panther/Lantern, Media Hard Drive: Cerebro).  The netbook’s name is so perfect that I love to share it.  Based on the color and processor mentioned above, I dub thee Black Atom. It is a combination name based on both Black Adam and The Atom. Bring on the geek jokes.

For those living in fear of Linux because you heard it is “difficult,” then this netbook is perfect for you.  Out of the box and fully charged, Black Atom runs like a charm.  It comes with all of the necessary software already installed and configured for your daily use, such as a browser (Firefox), Office Suite (StarOffice), Music Player (Amarok), Instant Messenger (Pidgin and Skype with web cam ability), Photo Organizer (Picasa) and Video Player (Kaffeine).  The interface is trimmed to not pose as a full desktop.  Some people may hate that, but I think for those non-techies it is perfect for what a netbook is used to do and it gives those techies the perfect ability to make the needed changes through back channels.

ASUS Netbook Interface

Now on to tweaking Black Atom to my liking (opening the Linux up more for my use, adding my music, installing extra software, etc.). I will leave you with a quick video I made of the machine starting up (notice the speed that comes with a solid state drive) and walking through the interface.

For future reference, here are a few great links that are helping me make Black Atom into the machine I want it to be.

Posted under Internet, Linux, Other
Mar-23-2009

Linux Pot Luck v2.0

I’m still doing the Linux thing at home and will be doing it in a mobile way soon (more to come later), but I figured I’d park my latest information concerning Linux for those interested as well as my own personal journal of my linux journey (A Penguin And Me Lives!). At least this way if I screw it all up in the future, I’ll remember what to go back and do.

  • Databases – Due to work at my job and other online related work, I’ve come to join the simplest most powerful tool I know, the database. In my eyes a database should be created for anything and everything. It can be as disposable as a piece of paper but as powerful as the information contained within it. It holds my music habits as well as posts for this site. At work if I get frustrated by the more powerful Excel commands, I’ll offer to throw everything into a quick database to run queries against. I’m lazy and don’t feel like giving more of my mind to Microsoft at the moment.

    Overall, I’ve found that the best GUI tool available, for me at least, is DBVisualizer. It works on Windows for those interested and is free. Yay, free. Most repositories should have it available for quick install. I did encounter an issue when trying to start the program initially after the install. It would fail every time. Thanks to the internet, yet again, I found that I needed to modify the “my.cnf” file and comment out the “skip-networking” line. With that simple change, I was up and running with ease.

  • Application List – From the beginning of my work installing Linux at home, I’ve kept a application list document that helps me keep track of what I use daily and what I need to install to keep everything running smoothly. This application list is not distro specific.

    I’ll continue to update it as I go for those, other than me, who are interested.

  • Amarok Scripts – In a previous post, I mentioned writing a simple script to turn Amarok into my own personal alarm clock. Maybe I should have saved time and performed more research because someone built it before me and a billion times better. I feel so small now. WeekAlarm has a better interface than my script (mine had none) and the configuration parameters make it much easier to setup and control.

    I even found a good Amarok script that works with my IM client, Pidgin (see below).

  • Pidgin Plugins – There are many different IM clients available (Google Talk, Skype, MSN, Yahoo, etc.) and I’m certain many people have accounts on all of them. Having 4 applications open that perform the same task is just annoying in my eyes. That’s why I use Pidgin. Not only does it work across multiple clients, but it is extensible in the same way that FireFox and Amarok are, via scripts or plugins. As mentioned above, I have a Pidgin plugin, called MusicTracker, that will update my IM status with whatever is currently playing from Amarok. Since music is huge to me, this is kind of nice and easy for me to share. However, the best plugin for Pidgin is one that comes by default. This plugin, Text Replacement, is my biggest tool in my ultimate goal of scripting my life away. Out of the box, it helps with the general everyday corrections that one commonly needs while sending messages online. By adding on top of that, you can basically turn four letter word into a complete sentence that you type 20 times a day. As an example, I use Pidgin at work and have the following text replacement scenarios setup (Text:What To Replace Text With).

    ATL:Atlanta, SFO:San Francisco, LAX:Los Angeles, FWD:Forward, FWDD:Forwarded, PLS:Please,HA3:Ha ha ha.

    I usually add a few more each day because I can’t stand typing all of these out every time. It may be my OCD taking over but I’d say it helps to speed up my typing.

Oh yeah, for those also interested, Waldo has been found.

Posted under Linux
Oct-26-2008

Scripting My Life

One of the great abilities of being a computer dork with limited programming training is the knowledge that one can make his/her life even better if he/she can script away the repetitive tasks of the day. In a previous post, I talked about the iMacro plugin for FireFox. Well, I’ve taken my life a step further by trying to create a few homemade scripts via BASH.

Before people start to respond, yes I know I am a dork. I realize that working on building scripts like these on a Saturday is not someone else’s idea of fun, but I enjoyed it and that’s all that matters.

  • Open Terminal Here As Root – This script was sparked due to my dislike for having to navigate to specific folders via the command line.  Most linux/computer users will say I’m lazy and I’d have to agree with them.  I have a similar function on my work Windows environment thanks to the Microsoft Power Toys and I’ve always found it to be quite helpful and much faster for certain tasks.  I was planning to build this script for Linux (hoping it wouldn’t be too difficult to create), but someone had already beaten me to it and posted it on kde-look.org.  After downloading the file, I placed it in my home/$user/.kde/share/apps/konqueror/servicemenus in order for me to run the script through my system explorer (Konqueror).
  • Get Team Trivia Answer – As many of you may know, I quite frequently go to trivia with friends.  In Atlanta, there are many Team Trivia locations.  At these locations one question’s answer is always printed in advance on the team website.  Many times we forget to look at the answer.  This script uses several basic utilities to check the site, see if today has an answer, and if does, then the answer should be emailed to me.  For not knowing much about bash scripting, this one took me longer than I wanted it to take.  Part of the issue was this was the first script I wrote and I had to setup sendmail on my system to work with Gmail.  As I write this, the script has just run and according to my email, today’s trivia Answer is McJob.
  • Amarok Alarm Clock – Often times I enjoy waking up to Amarok playing music.  However, I often have forgotten to reset the volume level so that my music isn’t turned up to 11 and I have to jump out of bed due to the noise.  I’d rather wake up gradually.  The Amarok Alarm Clock script starts amarok and then gradually increases the volume until it is at 100%.  I even haded an extra check to turn off amarok after 15 minutes at full power.  My roommate has often times complained that I forget to turn off amarok when I leave for the weekend or I am away for week due to work.  This was very simple and easy to build thanks to Amarok’s wonderful API.
  • URPMI Unlock – URPMI is the command-line package management tool used by the Mandriva Linux distribution. There have been a few times when I try to update/download new packages for my system that I receive an error stating that urpmi is currently locked.  This script, which I did not build and found on a forum, will unlock urpmi.  It’s as simple as that.

To automate these scripts to run each day, I use kAlarm which I mentioned in a previous post.  The same funcationality could be performed as a cron job, but like I said above, I’m lazy.

Posted under Linux
Sep-29-2008

Linux Pot Luck v1.0

It’s been quite a while since I have posted anything concerning my computer and with the new purchase I made a few weeks ago, maybe I should share a pot luck of computer related news.

  • After two years of threatening, I finally broke down and purchased a new computer. I was mainly looking for something that was better than my old Dell, which by this point is about 6 years old. The new machine, dubbed Black Panther, is running Mandriva Spring 2008 and is turning out much better than I had hoped it would.
  • The new computer was minus a few extra PCI slots so I had to purchase a new wireless device. I went with the Linksys Compact Wireless – G USB Adapter. I had read on a forum before purchasing that it worked well with Linux distrobutions. The forum was right and the Compact G worked out of the box with Mandriva.
  • With the new install, I was missing many commercial and non-commercial components that I would need to return my new machine to the way I had my old Linux desktop setup. One of the key items was the libdvdcss library which allows me to burn the DVDs I have purchased in order to watch my movies on the road. Of course, with libdvdcss, I would need transcode so that K3B could correctly rip and encode the files. I think I might be getting better at this search online for linux answers thing.
  • Compiz Fusion running on a faster system is simply a must. It provides the great visuals that all of those Mac fanboys rave about. I personally love the cube and ring effects. The beauty of it all is that it is FREE!!!!
  • Once my system was up and running I wanted to setup Amarok with MySQL instead of SQLite since I had heard of the amazing speed one would gain with the change. However, when I tried to install MySQL via the RPM in Mandriva I encountered a problem every time. It seemed my root MySQL account was already given a default password and I didn’t know it. I tried numerous installs but received the same issue. After a few searches, I came to discover that the MySQL RPM for release candidate 2008.1 release candidate 1 contained an issue if the computer was labeled “localhost”. I read up on the bug and followed the wonderful instructions of one Oden Eriksson and my problem was solved rather quickly. First stop MySQL and Amarok, next stop MythTV.
  • I found a great website when I was searching for how to record my desktop. The website has many web videos that show you how to do different things. I was even fortunate to see one about asterisk which I was looking to work with at work in a few days.

I think I got a little link happy in this post but I did warn from the start that it was going to be a pot luck of sorts.

Posted under Linux
Aug-10-2008

kAlarm

kAlarm to me is the app I was searching for months to find when I was using Windows. I always wanted an “alarm clock” application that could launch my windows media player. However, when I did search, I only found applications that didn’t truly work or required money I was not willing to spend. kAlarm does everything I want and maybe some more that I don’t even know about.

kAlarm can be found as part of the kdepim package, which will provide your KDE environment with many other mini applications design around personal information management (PIM). Since I use Thunderbird, most of the other PIM applications are not for me, but kAlarm is it hook, line and sinker. kAlarm is super easy to setup and repeat just like a normal alarm. It can be set to launch a note, script, file, command, or even email. I did write a simple Amarok script to launch my favorite “alarm clock” playlist, but now I just have it run the amarok command to begin playing. Either way works the same. I’ll probably try to write a new Amarok script to increase the volume as it plays over a period of time. This way I can keep the music soft when I fall asleep and increase the volume as the alarm clock goes off.

I did accidentally remove this application for a week or more and waking up in the morning was just not the same and not as easy to do.

Posted under Linux
Jul-24-2008

Tux and I Part Ways

Today I bid farewell to A Penguin and Me. I’m not departing Linux from my home PC. I’m just parting ways with my separate website. I was finding that I was having less time to post specifically about Linux on A Penguin and Me. My original intent was to have others post along side of me, but alas, that did not happen either. Therefore, with my friend’s (Will) passing advice, I decided to hang up A Penguin and Me.

I still plan to post about my adventures with Linux, but all of the posts will appear on this website and not A Penguin and Me. All traffic directed to that site will be forwarded to the Linux category page of Hero Inc. I’ve already moved over all posts from APAM. It was fun while it lasted. Mainly fun because I really liked that WordPress theme.

A Penguin and Me Logo

Posted under Internet, Linux
Jul-6-2008

BasKet Case

Struggling to keep track of little projects? Need a handy way to keep to-do lists? Enjoy keeping information handy as you search online? Well, all of these questions may not need to be answered yes for you to enjoy BasKet Note Pads.

According to the BasKet site, BasKet helps you:

  • Easily take all sort of notes
  • Collect research results and share them
  • Centralize your project data and reuse it
  • Quickly organize your thoughts in idea boxes
  • Keep track of your information in a smart way
  • Make intelligent To Do lists
  • And a lot more…

BasKet is a program that many Windows users will find similar to Microsoft’s OneNote. I had not used OneNote prior to my BasKet experience, which is probably a plus. I didn’t think I would find this application helpful at first, but I’ve soon found it to be great for keeping me focused on different things I have in front of me. I often set myself up for multiple mini projects that I easily lose track of my progress. I create To-Do lists on the fly, track the progress (or lack there of) of my sites and what updates are next, save research for upcoming purchases (computers, tickets, comic books, etc.). It’s pretty lightweight and easily runs in the background so you can bring it up at any point to add new information in some form.

After trying BasKet, I downloaded OneNote for my work computer. I found OneNote, like most Microsoft products, to not be able to handle on the fly, quick creations as well as BasKet did. A product like BasKet or OneNote should be fast, convenient and better than keeping a pad of paper and pencil helpful to record information. BasKet, to me, accomplishes just that. Now if I could have a mobile version that would sync to the desktop version, I’d be set for life with this product.

When you first start with BasKet, I highly recommend the Tour section of their site. The handy download offered there will quickly start you on your path to “getting things done” the BasKet way.

Posted under Linux