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

to

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.