associate ssh key with git remote host

I often run into to issues where I like to use different ssh keys for different sites, servers, and other things.  It is a good practice not to use the same key for everything just in case you need to change it, or other various reasons.  If you are like me and don’t want to manually enter the path to theses keys each time you can associate them with a url.  So if you were connecting via ssh, or over git with ssh it works perfectly.

So first generate a key.  In this example we will create one for Bit Bucket.

ssh-keygen -f ~/.ssh/bitbucket

Now inside the ~/.ssh folder edit the config file and add the text below.

IdentityFile ~/.ssh/bitbucket
IdentitiesOnly yes

At this point when you push to bitbucket it will use this key.. For example if you added the remote repo as origin

git push origin master

It should prompt you for your ssh unlock pass phrase.

KDE audio higher than 100%

I don’t know about anyone else, but the default sound limitations are a tad too conservative for my laptop.  The sound is so faint at times I can hardly hear it on my Razer Blade 2015.  So if you want to boost the sound you can enable it past 100%, but be warned you also run the risk of harming your speakers if you aren’t careful.

So if you wish to proceed simply install Kmix if you are using Kubuntu and then enable “Overdrive”, you can do that by clicking on the system tray icon for sound, which you might have two now since Kmix isn’t normally installed any more and then clicking on the config button in the bottom right hand corner.  Then click on the General icon in the window that pops open.  You should then see a checkbox that is the “Enable Overdrive”

After this point you have to restart kmix/pulseaudio.  You can easily do that by simply restarting, or if you know how just restart it manually.

sudo apt install kmix

If you need more pictures – click here


UPDATE : A patch is on the way for the new sound widget so this won’t be required.  For more information visit – click here

Cool Tesla video for China

This video is really cool.  The best quote is “if everyone drove an ev the sky would be blue again.”

While this may not be entirely true because other pollution sources exist it very well may be true.  I guess we all have to get EVs to find out.  I for one would love it if children weren’t born with lung cancer, asthma, or other illness related to chemicals in the air and soil.

mount a gnome disks image of a full disk

I often to backups before big changes to my system, or just hacks that I am not sure if it will blow up my system.

Sometimes I run Unity from time to time and I am not sure if other back systems run in a similar fashion, but I assume they do.  The program I used for this particular back up was Gnome Disks.  Since I am normally a KDE user I had to figure out how to mount the img file without being in a GTK environment.

Fourtantely it is fairly easy to do.  Just three commands.

This mounts the image.

sudo losetup -f -P DiskImage.img


This displays the devices partition layout and assignments.

lsblk -f


This mounts the partition table.  Make sure you change /dev/loop0p7 to your device.

sudo mount /dev/loop0p7 /mnt/

mount an annoying ntfs windows disk

A lot of the time in Windows 10 you have to deal with an issue where it doesn’t completely close the drive so that it can “fash-boot” and unlucky for us Linux developers actually respect this setting without clobbering it.  Because in all actuality it might be an important thing to pay attention to.  For example if you suspended the drive making alterations may effect your next wake up event.  So if you need to access the drive and you don’t want to jump into Windows and disable that feature all together so you can access the data from Linux you can use 1 simple command and mount the drive in read-only mode.

udisksctl mount –block-device /dev/sda1 –options ro

If you don’t know the part that is /dev/sda1 would be your drive.  You can figure out which drive is which by using :

sudo fdisk -l

Any way hope this helps people.

unknown option: mode-mouse with konsole, tmux

I got an error in my tmux session that was effecting my work flow in vim as well as just general konsole sessions while search apt, or whatever.  I thought I would share the solution in case some one ran into the problem.

Basically they made a trivial change, probably a micro level change that really bothered a programmer and their pet project.  Totally understandable, but it is just too bad I didn’t hear about it and it is hard to track these things down.  I suppose I will make more of an effort to check up on these things when upgrading to the next LTS.  Right now I went from Kubuntu 14.04 to Kubuntu 16.04.

Any way lets get to it.  Simply change :

set -g mode-mouse on


set -g mouse on

Now you will have the ability to scroll with the trackpad, or mouse if on a desktop.  This should only effect users coming from a version less then 2.1, since that is when the change took effect.

Atom Metrics enabled by default

I made a post awhile back talking about different editors and IDEs and I talked about the merits of each.  Probably pretty spasticly and semi-randomly, but that is just how I roll.  Off the cuff.  I don’t have a lot of time as most people with work and social life, but I wanted to bring something to everyone’s awareness.

Apparently the GitHub editor has done something I think is definitely not in the spirit of true open source at least laid out by our predecessors.  Ever since I can remember Firefox and other open projects notify you that they are collecting data on you if you would like them to.  They tell you it will help them and they have a pop-up toolbar at the bottom.  It will notify users of this practice and allows them to easily decide what they would like to share.   Atom on the other hand has it enabled by default and the only notification is text you can barely read on a static welcome page.  Now I normally check things like this out, but it never occurs to me a software developed claiming to be open would do this.  Even Netbeans asks permission.  All this new software coming out has no respect for privacy.  Haven’t they learned anything from projects that have come before it?

I love the Atom project, but this warrants a fork if it is not fixed.  This is not acceptable from any piece of software.  You need to inform users with a pop-up notification at the very least and ask if it is ok to enable something like this and let the user decide if they want to participate.

If using your software is stipulated on the fact that we also need to be your BETA testers people usually respond better when this is something they do willingly.

Here is a link to the current GitHub discussion about it –

Please voice your opinion so this is changed.

Ubuntu (Linux) and Wine

A common saying around the Linux community is that it is less likely you will get a virus.  Some people even claim you can’t get any, but I think most Linux users know viruses/malware/nasty stuff do exist for Linux and we need to be security minded just like any other computer user regardless of software running on the machine.  One major problem I think some times people forget about is this awesome yet dangerous program called Wine.  It is a combatability layer that doesn’t have any sandboxing at all.  If it works on Windows you just opened yourself up to a much wider variety of issues.  The vast majority of desktop users are OSX and Windows users so this can keep us little Linux guys some what safe just because it serves little purpose to target us.  As Linux matures on the desktop and gains more adoption I think we need to start taking a look at what this attack vector could mean and how we could help users by limiting exposure.

Here is an interesting Ubuntu forum post I found while researching I thought everyone reading might get a kick out of it and prove some what educational.  It is a little old, but still fun.  Have a read –


If you have any ideas how people should protect themselves while still using Wine please comment below, or send me an email.

Netbeans is a great IDE

For some reason over the years people have moved more and more to editors like Sublime Text, Atom, and even PHP Storm.  One thing I think is strange is we already have great IDEs specifically made for programming and yet people want to use other editors.  No doubt about it Sublime Text is light and fast, but on my system I have no issues starting up Netbeans and using it all day.  It rarely crashes and has far less external dependencies that can be quite cumbersome to deal with at times.  First off I am one of those ethical people that tend to lean on the open source side.  I don’t mind using closed software at times, but I definitely have different drives that run my closed software and another drive that runs my open stuff.  I usually use my open drive 99% of the time and then occasional use Windows when needed.  So with this in mind I don’t really like to use Sublime Text for that reason.  I didn’t rule it out as a possibility though.  I wanted to use it so I went to the forum and asked the community/developers if a external security audit had been done and asked about their collection and privacy options.  One thing that I find closed source software tends to do is collect data on the user and offer the option to turn these functionality off, but not advertise the feature.  Here is a link to my question – 

Unfortunately they didn’t say anything I wanted to hear so I ruled it out as an option.  The next thing I tried was the Atom editor.  It is open source and created by the people that made Git Hub at least partially along with Chromium/Electron.  It was pretty fast for being written in HTML/JS partially and has a lot of options for packages.  One thing I ran into when using it was I constantly ran into issues with these packages.  More often then not one would always stop me in my tracks while working.  I would wake up in the morning start Atom up and bam an update would download.  This was fine I always want the latest fixes and features, but this always causes problems with my packages.   I either need to disable the package and fine something else that is similar and set that up.  I would then go back and forth between disabling one and enabling another all while making sure configurations still worked.  Eventually I just got tired of it.  I posted a few times telling them some features just need to be included into the editor.  They claim it is just an editor so that eliminates the requirement for them to maintain additional features, but lets be honest.  It is a editor meant for programmers.   So here is the crux of the issue. 

PHP Storm on the other hand is reportedly great, but has a lot of quirks I find strange when comparing them to real IDEs.  First why would anyone use PHPStorm over Netbeans which has had the same features as PHP Storm for at least 5 years before it was even developed.  It makes me wonder are developers so accustom to fast past movement they become silly hipsters that are always looking for the next trend rather then just using what works.  This can really be bad for new developers and always makes strange camps that get very religious about things.  PHP Storm is a good option, but again not open and no security audit.

All these editors that market themselves as light and speedy don’t really help programmers in several ways.

  1. When you can’t trust it.  Either closed source, or no actual external security audit.
  2. Off loads required features to third parties and scripters.
  3. Breaks their own packages with updates.
  4. Many packages that have little performance tuning when paired with other features.
  5. Very little interoperability between packages.
  6. Time wasted trying to maintain packages people maintain that are free as in beer so you have no assurance it will be maintained in the long run.

Just to bring this up in closing here.  PHP Storm also has a older brother that is open and more mature.  We could even throw Eclipse into the mix all of which are written for the most part in Java so it isn’t like you have speed improvements by using something else.  I would love to have some better options if they exist, but in my experience Netbeans just does all the things I want and does them simply.  It is integrated and is open.  They support my development on the mainline so I know the features are top priority and they aren’t going to change.  I can rely on the very simply functionality I require as a web and desktop developer and it is open and free enough mature and slow moving add-ons can be added without much fuss.

Just to leave a little wiggle room here I would say some instances may exist where you need to be super close to the edge and need some fast prototyping editor, but for steady stable development it is to much a hassle and a worry for me.

I personally think Atom is a great editor and could be something to use in the future, but it is going to need at least another year before it is reliable enough for me to use it on a daily basis.  For now I will have to stick to Netbeans.  I know how people feel about Oracle, but so far MySQL Workbench has been improving over the years and so has Netbeans.  Anyway just felt like writing.  Hope some one finds this useful.