Showing posts with label Virtual Box. Show all posts
Showing posts with label Virtual Box. Show all posts

Saturday, August 12, 2017

Voice recognition for your Linux VM

I remember in the good old days of Internet Explorer 6 when Dragon NaturallySpeaking would allow you to do most anything that could be done. Technology then moved forward, other versions of Dragon came in and went, Flash and dancing monkeys became more ubiquitous on webpages. I have not been able to re-experience that level of control since then, but while Dragon is still mighty for web browsing on native systems, it has become quite expensive with the dropping out of the home versions and is not available for Linux at all.

Is it possible to get some of that control back and for your Linux virtual machine guest?

As it turns out, it can be done, albeit in a limited fashion, thanks to the generous time spent by independent developers. For Windows 10 this is what you'll need:

  • Glovepie .23 by Carl Kenner
  • The latest version of Firefox for your VM, though a older one might still work
  • The Mouseless Browsing add-on by Rudolf Noe for Firefox (as far as I know, there is no Chrome equivalent)
  • A good microphone. Shop around for the best one you can afford.
  • A script for Glovepie (I include mine a bit down)
  • Your virtual machine client (I use virtualbox)

With this setup, the Mouseless Browsing add-on gives numbered labels to all clickable items on a webpage rendered by Firefox; with the script Glovepie translates your voice commands, leveraging Windows 10's own voice engine, into keystrokes which the VM passes on to the add-on; this one in turn reacts to the received keystrokes and magic happens. In other words, you browse by speaking the numbered labels and your own custom commands.

There is a bit of a lag when each page is number-populated, though some benefit might be gained on Firefox goes multithreaded on version 54 or so. For my own personal set up, I added the control key as a switch and set the control + Y key combination as the hide numbers switch.

Thursday, April 7, 2016

Crunchbang++ Linux

Not so long ago, Steve Gibson in his Security Now podcast intimated that he was looking for small sized, contained browsing experience. Thanks to his shows, I had already switched to a full-fledged virtual machine and had been happily browsing with no problem at all. However, his requirements for something that would not be too onerous resource wise kept nagging at me. I knew that Linux could do the work within a virtual machine, but the problem was finding the right distro for it. Now, I think I have found it: Crunchbang plus plus and I think I am in love.

Here's how I finally settled on it:

Started, and as many others with Linux Mint. For myself, my biggest constraint was disk space. Although fine, and useful, it took well over 10 GB. Something slimmer, had to be out there.

Swinged far to the other side and got Tiny Core Linux working, but YouTube wouldn't play with the newer flash versions. Also the mouse pointer wasn't as smooth. Similar experience with Puppy Linux which didn't support the Virtual Box additions and had way too many preinstalled programs.

Bodhi Linux, seemed like it, and has a focus on being minimalistic, letting you install your own stuff, but the Enlightenment desktop was too alien for me. And still, I guessed something smaller could exist.

Dabbled with taking snapshots of live CDs of Porteus and Lubuntu and these did work, after a fashion and might serve for specific purposes, but still the sessions wouldn't allow installing additions and rebooting and keeping it chugging from RAM seemed like counter purpose going forward.

Antix was another contender, but even changing the screen resolution from the menus was not straightforward. Also, an inserted DVD would have to be searched for manually.

Trisquel Mini was also one that worked, but for my purposes it's philosophy was more of a hindrance.

Finally Crunchbang plus plus gave me these benefits:

  • Small footprint (2.5 GB with additions and chromium already added)
  • A beauty (glass!)
  • Based on Debian, whose terminal commands I'm more familiar with and is on a stable version
  • Upgradable
  • Alive and well and actively (so it would seem) developed
  • Very few preinstalled software (but with options to add Libreoffice and the like at install time)
  • Stats (Conky) on the desktop
  • Nice terminal
  • Additions work
As I see it, and the only way to make any more gains, and these minor, would be to 1) try the Debian netinstall (on my first attempt the installer crashed; will try again later on) ;or 2) get head on into Arch Linux. I will still check these out, but I think I have already hit bull's-eye.

Should plus plus go under there are at least two other Crunchbang "twins" that might be just as good: the one from BunsenlabsMonara.

Saturday, March 5, 2016

Getting my dad on Linux

source:freestockphotos.bizI'm worried about my dad catching malware on the net. The threats are escalating and he does nothing to protect himself. He's also 78 yo. If something were to happen, it would be up to me to fix whatever came up. I wish to make his surfing experience as painless as possible, have him protected and have me avoid as much as possible any tedious cleanup.

Up till now I've had him surf with Sandboxie and it has worked great: no infections or data loss. However, there have been some compatibility issues, such as Word documents not working at all, and cryptic notification messages from the program appearing here and there. On the whole the experience with it had turned from fine to kludgie. What's more, conceptually, being just one program, Sandboxie is a thinner layer of protection than what can be put together with just a bit more effort and with better end user experience. 

I decided to get him to use Linux within a VM.

This are the benefits I see going for this solution:

  • Linux is by itself is of a different DNA than Windows, so Windows-specific malware will just not execute.

  • Linux, as I see it, is now close to prime-time, meaning that the switch and maintanance is less confusing and awkward than it used to be (and not that long ago).

  • A VM keeps the physical system clean and out of harm's way frequently for free.

  • It also makes it easy to restore a given state quite speedily. So, messing up the guest is no problem.

  • In my experience, there's no discernible loss of performance, if given reasonable resources (RAM and cpu cores)

The only problem, other than getting used to the few extra steps for the user, is getting files out of the system. We'll talk about that later.


Why not entirely Linux?


Mainly because inertia. I already know the limits of how much I can push Windows and how if something wrong happens to it, how to fix it. Not so, with Linux since I'm a newbie myself. I'm sure this will gradually change with experience. The other part is compatibility. Even with Wine and all, I want to be able that one program for him when he  or I need it. With Windows on the physical machine, I know I can count on native compatibility.


Setup:


For the host machine a brand new Dell Inspiron 3647 small desktop ( core i5-4460S, 8 gb 7200 hd) running on Windows 10 (upgraded from 7). As a parallel project, and to get him better loading times, I changed the spinning hard drive for a Samsung 850 evo SSD. I crossed my fingers for the SSD to not fail on us and I was not disappointed. Curiously, loading times for the snapshots were slower when I assigned three cores to the machine rather than two.

Virtual Machine:


Virtualbox. It has the features I need, its free and has a great company behind it, hopefully keeping it up to date for many years to come.

Guest:


Linux Mint 17.2. This is because all that he could  immediately need is already there: flash, office, vlc for media playback, printer support and more. For web browsing I eschew Firefox because I get a clunky feel from it, and because my dad did not like it on a previous run some time ago. Chrome feels slicker, also has pdf reading support, and my dad is already invested in the Google ecosphere, so that went in instead. Bodhi Linux for the guest as a whole felt like a good alternative and I gave it a try to see if I could build a slimmer guest by adding just the software I thought my dad could need and I did. However, I could not wrap my mind around its philosophy, which resulted in a less than optimal experience in my test run. I still think is worth checking it out for the very reason of building from its base up, but didn't pan for me this time. I saw no reason for other distros, because the system already could handle Mint flyingly, and what's the point? For myself I choose Crunchbang.

As additional software Dropbox. Getting the Brother 9970cdw to print from within the VM was straightforward. http://support.brother.com/g/b/downloadlist.aspx?c=us_ot&lang=en&prod=mfc9970cdw_all&os=128

Sharing:


Getting files out of the guest is the weakest part of my solution. There is not the easy drag-and-drop functionality I have got accustomed to from Virtual PC 2007. Sharing folders is possible, but there is no way I'm going to leave a hole open in my defenses.  Unfounded or not, I'm worried that something else will want to invite itself in for the ride. I'll have to look into this matter more closely later.

The best I can come up with for now is check  whatever file my dad wants to keep with Virustotal and then upload it to his Google drive and download it back from to the host. I'm willing to do this the first few times  and then teach him to do it by himself later. Not optimal, but I hoping for the moment that this awkward solution won't be needed enough to be a headache. From the other end, I set up another hidden "person" where there is  a live session of his Google account from which he can upload files, mostly scans for attachments.

But was he willing to learn?


With regards to technology he usually takes the path of least resistance. However, I have something to leverage my project with: his email. Most of his computer use is for email messages and if I can give him a better experience, let me tell you, he's all in for it.


Results so far


I am sad to say that the change was not a swimmingly as I had envisioned… And I'm mostly to blame.

When the computer was all set up, I thought I had the VM ready for a test run, but I had not thoroughly checked this time around all the things he might need. And right away, on the first use, he could not open a PowerPoint presentation. When I tried to fix that, he began to look discouraged at all the typing I was making, at the entering passwords and such. Then, VLC, which has a fine reputation for playing anything, began crashing the virtual machine right away, which was odd: I had tested it without a hitch previously, but now it wouldn't behave. Apparently there is something not quite working in the combination of Windows 10+Virtualbox 5 + Linux Mint 17.2+VLC. Had to change the setup back to totem. Days later, some encrypted presentations failed to open altogether owing that Libreoffice is entirely unable to deal with them, which was totally unanticipated. Up until now, it had dealt with anything that I had thrown it.

The worst part was me not being able to keep cool and patient with my dad. His complaints were: why change? It was easier before. Where is my background?

Windows 10, for its own part, had its own quirks that had to be ironed out. The worst offenders were the color scheme and the lack of an explicit shutdown button.

Took me a few extra days, but eventually the setup began to behave well,and he began using it regularly as he did with his old machine. He doesn't appear to care about the underlying platform as long as it does what he wants it to and Chrome has had a large part in this for its relative ease and familiarity.

Saturday, June 14, 2014

Virtual Box vs Virtual Pc 2007

Due to the well-known end of life for Win XP I decided to switch my virtual machine platform  to Virtual Box from VirtualPC 2007. To anyone else who's looking to do likewise here go the pros and cons I've seen of the newer over the older.

Pros:

  • Easier virtual hardware configuration
  • Multiple cores
  • Video acceleration
  • Snapshots
  • Video capture
  • Client more frequently updated
  • Faster VM loading
  • USB support
  • Still free

Cons:

  • Heavy files
  • Backup a hassle:
    • Resource intensive & slow
    • Guest Windows activation somehow doesn't survive the export/import cycle
  • No file drag and drop between guest and host with Windows as a guest
  • I've not been able to easily set up a shared folder
  • This one is creepy: My Andrea sound pod wakes up and blinks signaling that the microphone is active.  Haven't found the reason.
  • Ugly icon (yuk!)


Virtual Box
Virtual Box Win 7 on Win 7