Viewing progress of dd in linux

To view the progress of dd we can use the pv (pipeviewer) program.
apt-get install pv

I saw a usage example on other sites but they didn’t work from me
dd if=test.img | pv | of=/dev/sdx bs=4M This just returned 0B 0:00:00 [ 0B/s] [<=>

This is what worked for me (note the use of dd again after the pv pipe)
dd if=test.img | pv | dd of=/dev/sdx bs=4M

3921920+0 records inMB/s] [ <=> ] 3921920+0 records out 2008023040 bytes (2.0 GB) copied, 234.248 s, 8.6 MB/s 1.87GB 0:03:54 [8.17MB/s] [ <=> ] 0+16458 records in 0+16458 records out 2008023040 bytes (2.0 GB) copied, 283.842 s, 7.1 MB/s

Continue Reading

Xen HP ML115 G5 1 Dell Poweredge R220 0

So I did a xen install on a dell PE R220 and then tried to do a simple Debian install from a cd. In the first instance it took about 10 minutes for the initial Debian splash screen then when it couldn’t connect to an apt mirror it froze, I tried shutting down the vm via XenCenter and it just got stuck and wouldn’t shutdown properly. I tied an external cd drive and had the same problems. After some cursing I dug out one of my trusty ML115 G5’s that was waiting patiently on a shelf. Installed Xen and Debian via CD with no issues at all!.

Continue Reading

Finding CPU temperature on Raspberry Pi

Here are a few ways to find out your cpu temperature on a pi running raspian.

/opt/vc/bin/vcgencmd measure_temp temp=49.8'C

cat /sys/class/thermal/thermal_zone0/temp 49768

cat /sys/devices/virtual/thermal/thermal_zone0/temp 49768

perl -e 'm/(d+)/; $x=$1; s/d+//; printf ("%.1f", ( $x / 1000))' -p /sys/class/thermal/thermal_zone0/temp 49.8

gawk '{print $1/1000,"degrees C"}' /sys/class/thermal/thermal_zone0/temp 49.768 degrees C

Continue Reading

Cineworld Ipswich Subtitles Fail

On the rare occasion I feel like venturing to the cinema (last film I saw was ‘The Fighter’) generally subtitled showings are at some ridiculous hour of the night. Today I thought I would see what is on, the entire choice was Inside Out Rated U Paper Towns Rated 12A Pixels Rated 12A I looked at other Cineworld venues and although marginally better choice single showings were only available on weekdays during the afternoon. So from what I can work out Cineworld have done some sort of profiling at come to the conclusion that deaf people are either nocturnal and only venture out after 10pm and don’t have jobs and that we are all aged under 12 OR we can only handle children’s films and that we require adult supervision. I’ve looked into this and apparently subtitles at the cinema can be switched on and off just like you would with a DVD so why are we treated as outcasts?

Continue Reading

Hearing Dog Update

Just had some awesome news from the people at Hearing Dogs, they have found a potential match for me and would like me to visit them so we can meet and see how we get on. He’s a 19 month old black Labrador.

Continue Reading

Grive sync API now defunct

I noticed my files were no longer being sync’d using the grive application. Further investigation revealed the following errors. ./grive Reading local directories Synchronizing folders exception: /usr/bin/grive/libgrive/src/protocol/AuthAgent.cc(174): Throw in function long int gr::AuthAgent::CheckHttpResponse(long int, const string&, const gr::http::Header&) Dynamic exception type: boost::exception_detail::clone_impl [gr::expt::BacktraceTag*] = #0 0xfa1d0 :0 gr::Exception::Exception() #1 0xe1004 :0 gr::http::Error::Error() #2 0xe65f8 :0 gr::AuthAgent::CheckHttpResponse(long, std::string const&, gr::http::Header const&) #3 0xe6098 :0 gr::AuthAgent::Get(std::string const&, gr::DataStream*, gr::http::Header const&) #4 0xc7430 :0 gr::v1::Drive::SyncFolders() #5 0xc7920 :0 gr::v1::Drive::DetectChanges() #6 0xa69d0 :0 Main(int, char**) #7 0xa6f5c :0 main #8 0xa6f5c :0 main #9 0xa6f5c :0 main #10 0xa6f5c :0 main #11 0xa6f5c :0 main #12 0xa6f5c :0 main #13 0xa6f5c :0 main #14 0xa6f5c :0 main #15 0xa6f5c :0 main #16 0xa6f5c :0 main #17 0xa6f5c :0 main #18 0xa6f5c :0 main #19 0xa6f5c :0 main #20 0xa6f5c :0 main #21 0xa6f5c :0 main #22 0xa6f5c :0 main #23 0xa6f5c :0 main #24 0xa6f5c :0 main #25 0xa6f5c :0 main #26 0xa6f5c :0 main #27 0xa6f5c :0 main #28 0xa6f5c :0 main #29 0xa6f5c :0 main #30 0xa6f5c :0 main #31 0xa6f5c :0 main #32 0xa6f5c :0 main #33 0xa6f5c :0 main #34 0xa6f5c :0 main #35 0xa6f5c :0 main #36 0xa6f5c :0 main #37 0xa6f5c :0 main #38 0xa6f5c :0 main #39 0xa6f5c :0 main #40 0xa6f5c :0 main #41 0xa6f5c :0 main #42 0xa6f5c :0 main #43 0xa6f5c :0 main #44 0xa6f5c :0 main #45 0xa6f5c :0 main #46 0xa6f5c :0 main #47 0xa6f5c :0 main #48 0xa6f5c :0 main #49 0xa6f5c :0 main #50 0xa6f5c :0 main #51 0xa6f5c :0 main #52 0xa6f5c :0 main #53 0xa6f5c :0 main #54 0xa6f5c :0 main #55 0xa6f5c :0 main #56 0xa6f5c :0 main #57 0xa6f5c :0 main #58 0xa6f5c :0 main #59 0xa6f5c :0 main #60 0xa6f5c :0 main #61 0xa6f5c :0 main #62 0xa6f5c :0 main #63 0xa6f5c :0 main #64 0xa6f5c :0 main #65 0xa6f5c :0 main #66 0xa6f5c :0 main #67 0xa6f5c :0 main #68 0xa6f5c :0 main #69 0xa6f5c :0 main #70 0xa6f5c :0 main #71 0xa6f5c :0 main #72 0xa6f5c :0 main #73 0xa6f5c :0 main #74 0xa6f5c :0 main #75 0xa6f5c :0 main #76 0xa6f5c :0 main #77 0xa6f5c :0 main #78 0xa6f5c :0 main #79 0xa6f5c :0 main #80 0xa6f5c :0 main #81 0xa6f5c :0 main #82 0xa6f5c :0 main #83 0xa6f5c :0 main #84 0xa6f5c :0 main #85 0xa6f5c :0 main #86 0xa6f5c :0 main #87 0xa6f5c :0 main #88 0xa6f5c :0 main #89 0xa6f5c :0 main #90 0xa6f5c :0 main #91 0xa6f5c :0 main #92 0xa6f5c :0 main #93 0xa6f5c :0 main #94 0xa6f5c :0 main #95 0xa6f5c :0 main #96 0xa6f5c :0 main #97 0xa6f5c :0 main [gr::http::HttpResponseTag*] = 400 [gr::http::UrlTag*] = https://docs.google.com/feeds/default/private/full/-/folder?max-results=50&showroot=true [gr::http::HeaderTag*] = Authorization: Bearer ya29.bQHtYTItwcNwXF1U7yRk9s3lcI5cKxE2y-0vRYSsDKUe4tDh62UMWU9i GData-Version: 3.0 Apparently around the 20th April Google stopped serving the ‘Documents List’ API thus grive now fails. I will now look into alternatives ie drive https://github.com/odeke-em/drive , jdrivesync, http://www.howtogeek.com/196635/an-official-google-drive-for-linux-is-here-sort-of-maybe-this-is-all-well-ever-get/ http://www.webupd8.org/2014/09/gdrive-simple-google-drive-cli-client.html and report back.

Continue Reading