Who is that masked man?

Probably you have either listened to me or read my thoughts or both for several years now, but it occurred to me today that someone out there might be interested in seeing what actually drives the LincGeek.

I currently live in Pennsylvania, but I was born and raised in Upstate NY, with a brief stint in Washington state. New Yorkers and hillbillies are my people and I understand them. Washington is some of the most beautiful country I ever spent time in and I hope to at least visit out there again someday.

Well, first and foremost, computers and Linux are my personal crack. I started on a life long obsession with computers back in 1983 with my first Vic=20 (Thank you William Shatner). I learned to program in BASIC and from there it was all over until I met Linux in the 90s, then that added into the mix.

I like the fastest computers I can get my hands on. I like Apple computers (more for their quality and aesthetics than OS – they do tend to run Linux very well). I love my Kindle, my Android phone and my Asus TF300T Linux Mint is probably the nicest version of Linux I have ever run and I use that almost exclusively as my desktop OS of choice. I am RedHat certified and use RHEL and CentOS for the vast majority of my enterprise and personal server needs, because, IMHO, it’s better than the rest.

I am a music lover. I dig 50s, 60s, 70s, 80s, Big Band, Jazz, Funk, Disco, Bluegrass and Classical music. I was a hardcore low brass musician and vocalist in my school years, even making it into “Who’s Who In Music” in my senior year in high school, and those are some of my most cherished and fondest memories. Rap is *NOT* music, by the way.

I have been married once, to my college sweetheart, for almost 20 years now and have an adult (she thinks so at least) daughter, currently in college. I am a Conservative Libertarian, politically, and a proud Christian.

Although I am now diabetic and stick mostly to various forms of Chicken and veggies, I LOVE good food. my favorites are good Irish cooking like my Grandma used to make. Corned Beef and Cabbage. And she made a monster macaroni and cheese too. I would literally hurt someone for some of that again. I strongly believe that vegetables are what food eats.

I like my coffee with (nonfat) milk and sweet-n-low. Buy it from Wawa because Starbucks coffee is overpriced and bitter yuppie coffie IMHO. I like an occasional good cigar (Acid Blondie) and enjoy them most when I can smoke them and hang out with my friends. (Edit, I am a confirmed Vaper now – RY4 absolutely ROCKS!)

I am not a drinker. If and when I do imbibe, I do so with Scotch or Whiskey as I believe beer must be what urine tastes like.

As you can probably surmise, I am highly opinionated, and as I have a monster sized guilty conscience and I am not at all politically correct, so if you ask my opinion, you are liable to actually get it.

I still think the occasional fart joke is funny. I hate unproductive meetings and long phone conversations. I try very hard to be honest, forthright, fair and maintain integrity.

I am a pet guy and love small furry mammals of all kinds. I have and have had cats, dogs, rabbits, mice, rats, ferrets and even a smattering of budgies and small lizards.

And now you know all about me!

MagicJack Plus

MagicJack Plus
I was an early adopter of voip, initially using Broadvoice, then later inphonex for service, but lately, their service has been problematic. My wife had noticed that after making or receiving a call, the next call she would not be able to hear or talk to the other end of the line. This often required me to reset and restart the IP phone and connection. After mucking around with all sorts of settings on my IP phone and then trying several soft phones as well, all with the same results, I was in the market for yet another carrier. Enter MagicJack.

MagicJack has been all over the media lately and I have stayed away from it mostly because there was no linux support. Well, recently, they came out with the MagicJack Plus, which they advertise as “Use without a computer”. I decided that was probably the way to go. After all, who can resist a $25 A YEAR phone bill, right? Shoot, even my Inphonex plan cost that much per month. So, I went out and bought a MagicJack Plus at my local RadioShack and also purchased a cheapo phone to use with it as my only phone for years has been a voip phone.

The good:
The phone quality is decent. It is easy to set up and get going. It is way inexpensive. It is very portable.

The bad:
You *DO* need a computer to set it up. I had to use a mac to get it registered (no Linux yet and I refuse to use windows). Once set up initially, no more computer needed. The quality is decent. Transferring your old number costs additional $$. Had to change my home number.

All in all I call it a good purchase. I spent $70 on it and that gets me a free year phone service along with the equipment. I have made and taken several phone calls on it now with successful results. The money I spent on the MJP will pay for itself in 3 months of my previous carriers phone bill and then I am saving $25 a month and getting better service. I have to admit it seems hard to beat at this point!

GeChic On-Lap 13.3″ LCD

GeChic On-Lap 1301 13.3” Portable and USB powered Thin, Light, and Plug & Play LCD Monitor

GeChic On-Lap 1301 13.3” Portable and USB powered Thin, Light, and Plug & Play LCD Monitor


You would think that my lack of posts here lately meant I had simply dropped of the face of the earth, but that isn’t really so. I have just been extremely busy with the day to day problems facing me in RL, including how to squeeze >that< much more work into my overly busy day. This particular recent purchase, the GeChic On-Lap 1301 13.3” Portable and USB powered Thin, Light, and Plug & Play LCD Monitor, has helped me do just that.

One of the things all high-end computer workers need to enable them to multitask better is more screen space. This has been researched and documented in a variety of different places. Well, what are you to do with your mobile workstation? You can buy one of those external USB screens, that’s what. Almost a no-brainer, right? The problem with that for a Linux user is the drivers. Most of these types of screens push video through USB, which means you have to have a working usb to video driver, not to mention video over usb is a little slow. Enter the GeChic!

The GeChic solves these problems by NOT usung usb for video, it actually has both a vga and a dvi input along with being usb powered. That’s right, no extra power cord, just plug in the usb cable and pick your input method and you are rockin’ and rollin’. This means it will work with literally ANY laptop or desktop which supports those types of video output, regardless of operating system or driver issues.

The unit itself is a little pricey at $200, however, it makes up for it’s few downsides by giving me my much needed screen space, in an attractive, easy and mobile form. I did say few downsides, and there are a couple other than the price. The first is the color. It just doesn’t want to color match my laptop’s LCD no matter how I seem to adjust it. The second is that using vga input the picture quality lacks a little. To be fair, dvi input is far superior to vga anyhow, and the vga problems could just as easily stem from my machine than from the monitor and I didn’t spend a whole lot of time messing with the settings on vga before just trying out dvi. Ymmv.

What I do like is that this is an attractive little lcd screen with a nice resolution of 1366×768. You can use it while physically attached to your laptop or it can sit standalone next to it in several positions with its included stand. To connect it to your laptop it has surprisingly strong suction cups that attach it’s swing-base to the top of your laptop and it can simply fold up or swing out for use. This allows you to also do neat things like show a presentation on the back of your laptop while you watch the front, etc..

No matter how you slice it, this little thing is mighty handy to have around and everyone who has seen it in action immediately wants one of their own. Boy, I wonder if I could get a kickback from NewEgg on this? Even at that price, I think we have a winner.

SOPA PROTEST

On January 18th, 2012, the TLLTS website will participate in the SOPA protest as will freelinuxbox.org, lincware,
lincolnblogs, linuxplanet blogs and linuxplanet casts. Normal activity will resume on the 19th.

http://www.nosopa.org/

Mint Fixer

I wrote a little script to help me quickly set up a new Mint 12 install the way I like it and to fix a couple random annoying issues. Enjoy:

Script name is fixmint.sh

#!/bin/bash

clear

# Test for UID=0
if [ “$(echo $UID)” != “0” ]
then
echo “You must be superuser to run this program. Try ‘sudo ./fixmint.sh'”
exit
fi

# Add packages you need
echo “install some good packages to have handy.”
apt-get -y install sshfs smbfs irssi vpnc screen vlc mencoder vim moc openssh-server subversion git twinkle curl php5-cli mutt clusterssh html2text autofs vncviewer &> /dev/null

# Turn off guest login
echo “Turning off guest login.”
grep -q “allow-guest=false” /etc/lightdm/lightdm.conf || echo “allow-guest=false” >> /etc/lightdm/lightdm.conf

# Fix dual monitors
echo “Fixing dual monitor mode so that both monitors reflect changing virtual desktops.”
gconftool-2 –set /desktop/gnome/shell/windows/workspaces_only_on_primary –type bool false

# Fix broken login chime
echo “Fixing broken login chime.”
for user in $(ls /home)
do
mv /home/$user/.config/autostart/libcanberra-login-sound.desktop /home/$user/.config/autostart/libcanberra-login-sound.desktop.orig
echo -e “[Desktop Entry]\nType=Application\nName=GNOME Login Sound\nComment=Plays a sound whenever you log in\nExec=/usr/bin/canberra-gtk-play -f /usr/share/sounds/linuxmint-login.wav\nOnlyShowIn=GNOME;Unity;\nAutostartCondition=GSettings org.gnome.desktop.sound event-sounds\nX-GNOME-Autostart-Phase=Application\nX-GNOME-Provides=login-sound” >> /home/$user/.config/autostart/libcanberra-login-sound.desktop
done

# Set the login page wallpaper
echo “Setting the login background to /usr/share/backgrounds/mint.jpg. Copy any background you wish to be the login wallpaper to that file.”
sed -i -e ‘s/^background.*/background=\/usr\/share\/backgrounds\/mint.jpg/g’ /etc/lightdm/unity-greeter.conf

echo “All done. Enjoy!”

Handbrake on Mint 12 / Ubuntu 11.10

Found out a couple days ago that there is a problem with the PPA for handbrake with MINT 12 and Ubuntu 11.10 (and probably others as well). There is an easy workaround for it though. That is to use the snapshots ppa instead:

apt-add-repository ppa:stebbins/handbrake-snapshots
apt-get update
apt-get install handbrake-gtk handbrake-cli

Transmission on RHEL/CentOS/Scientific Linux 6

I had a friend a few weeks ago who asked me for help getting the Transmission bittorrent client working on CentOS 6. I took these notes then and am sharing them now.

cd /etc/yum.repos.d/
wget http://geekery.altervista.org/geekery-el6.repo
NOTE: RHEL/CentOS 6 x86_64 users have to replace $arch with $basearch in the repo file
yum install transmission transmission-gtk

CentOS 6 Desktop

CentOS 6


I love love RHEL and CentOS on servers but surprisingly, CentOS 6 makes a nice desktop as well! Here are some notes I took getting things going the way I like on my CentOS laptop.

Where I work, if you push your machine name to DHCP, it will register with DNS as well. This is a nice feature if you are in the habbit of ssh-ing to your boxes like I am. In order to accomplish this task, you change a setting in the dhclient.conf file, which for a long time has been found in /etc/dhcp or /etc/dhcp3. Well, things have been moved around a bit and it’s now located in /etc and the filename is dhclient-eth0.conf where eth0 is the interface you are using. My suspicion is that this was done to frustrate the 5 people in the world like myself who actually use this 🙂

I really have no need for SELinux on this machine and therefor turn it off to keep it out of my way. This is easily accomplished by editing the /etc/selinux/config file and setting SELINUX=disabled. (then performing a reboot)

I also have no use for the default firewall ruleset. I normally do a chkconfig iptables off && service iptables stop and just address my firewall concerns later on.

What I *DO* need, often, if not always, are the development tools. Things like compilers and make, etc.. Get them by doing yum -y groupinstall “Development tools”.

Install the EPEL repo:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm
or
rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
depending on your archetecture.

Gotta have clusterssh. If you don’t use it you should!
yum -y install clusterssh

I also must have my chrome web browser:
Install chrome from website https://www.google.com/chrome?&brand=CHMB&utm_campaign=en&utm_source=en-ha-na-us-sk&utm_medium=ha

And Thunderbird too!
install thunderbird from website http://www.mozilla.org/en-US/thunderbird/

Add the RPMForge repository:
rpm –import http://apt.sw.be/RPM-GPG-KEY.dag.txt
rpm -Uvh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
or
rpm -Uvh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
depending on your archectecture.

And, lastly, if you are somewhere where this is legal, you can install all the codecs that make using your computer nice!
yum -y install compat-libstdc++-33 libdvdcss libdvdread libdvdplay libdvdnav lsdvd libquicktime flash-plugin mplayerplug-in mplayer mplayer-gui gstreamer-ffmpeg gstreamer-plugins-bad gstreamer-plugins-ugly
wget www1.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-20061022-1.i386.rpm (or x86_64)
rpm -ivh mplayer-codecs-20061022-1.i386.rpm (or x86_64)
wget www1.mplayerhq.hu/MPlayer/releases/codecs/mplayer-codecs-extra-20061022-1.i386.rpm (or x86_64)
rpm -ivh mplayer-codecs-extra-20061022-1.i386.rpm (or x86_64)

Day to day with Linux Mint 12

Linux Mint


OK, so it’s no secret I am a Mint addict. I just *had* to install Mint 12 as soon as I could, so I grabbed and installed the RC as soon as I could. What I would like to review here are my impressions after using Mint 12 for a while.

First, let me say that I am using the default desktop, so to speak. By that I mean I am using the Gnome 3 desktop that comes along with Mint 12 as the default. It is quite nice. Nicer than my previous encounters with Gnome 3 on Fedora a couple months ago. Mint did some of their smart decision making and included sane things like the shutdown menu and icons on the desktop, etc. These are all extensions to the standard Gnome 3 desktop, but are included by default in Mint 12 to help improve the desktop UI experience and, I gotta say, they hit the nail on the head once again. These improvements definitely make the desktop more pleasant and “normal” to use.

There were a couple things I tweaked for my personal preferences, and good thing too, cause what would I write about if there weren’t?

I removed the bottom taskbar. While this may be there to help folks make the Gnome 3 adjustment, the fact is that these days everything has one of those annoying widescreen displays with limited virtical resolution. Having a second taskbar eat that precious screen realestate up just doesn’t seem like a good idea to me, no matter how knoble the reasoning behind it. Removing this is pretty simple. Hit your windows (meta) key and select the “Advanced Settings” icon, go to “Shell Extensions” and disable the “Menu” extension and the “Bottom Panel” extension. I promise you won’t miss them, especially if you have a widescreen display.

I made xterm my terminal that launched with the ctrl-alt-t command. I am not entirely sure why gnome-terminal seems so prevalent everywhere, but I, personally, find it ugly, bulky and slow. I do a *LOT* of work at the command line and I get easily annoyed when I request a terminal and have to wait for it to pop up. You may not have this problem, but try xterm, you might just like it 🙂 To do this, click your name in the upper right hand corner and select “System Settings”, then “Keyboard”, then “Shortcuts”. Under “Launchers” you will see a “Launch Terminal” setting. Click on the “ctrl-alt-t” text at the right and hit the backspace key. It should now say “Disabled”. Now head to the “Custom Shortcuts” and hit the + to add a new one. Type xterm in both boxes then apply. Click the “Disabled” text and it should say “New Shortcut”. Hit ctrl-alt-t, which should show up where it said “New Shortcut” and from there on in, you should be able to use that key combo to get your xterm open (quickly I might add).

The other thing I really like to have handy quick is my file browser. For Gnome 3 this is nautilus. Using the same process as xterm I added nautilus as a custom shortcut and assigned it to ctrl-alt-f (for files). Obviously, you can use this method to add all manner of goodies as shortcuts.

That brings me to my “issues” with Mint 12. There are so few they are barely worth mentioning, but in the interest of giving a somewhat impartial review, here goes.

Up in the top task bar you will see your network connection icon. If I go there and disable my wired connection, it works as it should, shutting off that connection and marking it so in that menu. The problem is turning it back on. I can click all day and that little “off” indicator never changes back to on. My connection will come back on, but it doesn’t say so there.

Bluetooth. This is not really a Mint issue – I see it everywhere, but I want a way to start my computer with Bluetooth *OFF*. If you have a laptop and don’t use your bluetooth, it eats the battery and it annoys me to have to turn it off after each startup. It would be great if I could somehow default it the other way around and start with it off and turn it on when I want it.

I really love Google Chrome. It’s a fantastic and fast web browser and I have become attached and accustomed to it. Getting it on Mint 12 is slightly problematic though. If you go to google’s website and download the package, you cannot use the gui package management tool to install it. You get permission errors. To install, open up your trusty xterm and run “sudo dpkg -i packagename.deb” on it. Then immediately afterward, “apt-get update && apt-get upgrade” which will install a couple dependencies you need.

Where the heck are the virtual desktops? I am SOOO used to pressing ctrl-alt left/right and getting to a new one I was monstrously frustrated to find they didn’t work the same way any longer. Even more so when I looked at the keyboard shortcuts which *PLAINLY* say they should. Sure, you can get a new desktop by hitting the windows (meta) key and selecting it at the right side, but that is inefficient. After bumbling around for a while I discovered that they are keyboard accessible by hitting ctrl-alt up/down now. Who knew?

Last thing is the screensaver. Now don’t get me wrong, I like the plain black screensaver just fine, I just want it to shut down the backlight too. It simply makes no sense to backlight a black screen. Without attacking this problem programmatically, it seems you must set your backlight to turn off after a period of time under the “Screen” setting and just leave your screen blank until that happens. Programmatically, however, I found a bit of a workaround, although I am still not completely happy with it. I created a script called “lockit” and in that script is this:

#!/bin/sh
sleep 1 ; xset dpms force off ; gnome-screensaver-command -l

Put that somewhere you can run it, go to the keyboard shortcuts again and disable the “System”, “Lock Screen” shortcut. Add a new one to run your lockit program with the ctrl-alt-l keyboard shortcut and violla! When you hit the key combo, after 1 second your screen shuts off and your computer is locked. If you combine this with having your backlight turn off after a half hour or so (just in case you bump your mouse) it seems to work pretty well. What I really wanted to do, however, was run a background program (or daemon) that detected if the screensaver was active and just shut off the backlight, but, alas, there is no reliable way to do so that I have found.

That’s really it, folks, snigglets and all. I still love Mint and v12 is no exception. Great work once again Clem and team and if you all haven’t tried Mint yet, you sure are missing out!

Take a bite out of your email with mutt.

Mutt

Mutt


I really love text based email clients. They do a wonderful job of keeping distractions out of your way and letting you focus on what’s important – the message! I find that by using a text email client, I save myself probably 30 minutes or more each day (yes, I get a LOT of emails).
For years I advocated and used pine and alpine for my email. I really liked it and still do, however, it just doesn’t perform great with IMAP it seems, and especially multiple IMAP accounts, and that is what the email of today is like. I switched to a more efficient thunderbird email client for a long while, but then thunderbird started addding “features” like local indexing and such. Kind of a turn off.
Recently, I thought I would look around again and landed back on mutt. I had avoided mutt for many years because it used to require you run your own smtp server. That has always been pretty impractical for me. Now, however, I found that mutt does support using an external smtp server and handles IMAP email with ease. Well! It was time to give it a try and boy, I am glad I did. It’s fantastic! It’s very lightweight, fast, powerful and has that manly text based interface that makes you feel like a power user and makes you look like a unix genius.
The key to a good mutt setup is in the config file, and therein lies all the power as well. Here is a peek into my ~/.muttrc file to give you an idea on how to get things going:

set spoolfile=imap://youremailhostaddress.com/
set folder=imap://youremailhostaddress.com/
set record=”=Sent”
set postponed=”=Drafts”
set mark_old=no # does not mark your messages as old
set fast_reply=yes
set include=yes
set imap_user = “yourusername”
set imap_pass = “yourpassword”
set signature=”~/.signature”
set smtp_url=smtp://yoursmtpserver
auto_view text/html
set mail_check=30
set timeout=15
set realname=”your realname”
set from=”your from address”
set use_from=yes
set editor=vim #greatest editor around
unset markers # get rid of those pesky plusses
set ssl_starttls = no # dont use these on my internal srvr
set ssl_force_tls = no # same as above

Those are pretty self explanatory and I find that is a minimum config for me to work with. Now you might (if you are smart and use vim) want to enable a spellchecker in vim as well. That just takes these lines in your ~/.vimrc file:

set spell
set spelllang=en_gb

Once that is in there and you make a spelling error on an email it will be highlighted. Just cursor over the word and press z= for a spelling suggestion.

As for a few tips on actually using mutt, here are some that will get you started:
Cursor up/down and press enter or space to read a mail.
Once in the email space to page/scroll down and – to get back up.
Press v to view attachment list and enter on the one you want to open.
Press m to write a new email.
Press c then tab to change folders and press space to open that email folder.
Press s then ? to save an email to a different folder and select the folder with space.
Press d to delete an email, r to reply to the sender, g to reply to all.
Press a to take an address and save it into your address book. This will make an alias of sorts so that when you create a new mail to an alias of “person” it translates to [email protected] automatically.
Press D (yes capital) to search for and delete all mail with a subject that matches your expression.
Press D then ~b and expression to do the same within the message bodies.
Press l then expression to filter/search emails.
Press l then ~b and expression to do the same within the message bodies.
Eventually you will want to sync your email and get rid of all the deleted stuff – press $ and enter to do that.
Probably the most helpful is to remember to press ? to get help! 🙂

I hops that helps getting you all started with using this great client! Enjoy!