Sunday, October 12, 2014

"VMWare Workstation and Hyper-V are not compatible..."

When running VMWare Workstation, if you've ever gotten the error "VMWare Workstation and Hyper-V are not compatible...", here's what to do. I got this error running VMWare Workstation 10 on Windows 8.1. I'm not sure if it applies to more OS's.

Here's what to do:
1. Open cmd.exe with "Run As Administrator"
2. Type bcdedit /set hypervisorlaunchtype off
3. Restart computer, DONE!!!

Sunday, July 20, 2014

"As a result, this virtual machine may experience very low graphics performance. Follow the instructions provided by your graphics card vendor or Linux distribution in order to update your computer's OpenGL drivers."

Opening VMWare Workstation 10 with Windows 7 in Ubuntu hosts initially says the 3D Acceleration doesn't work because "As a result, this virtual machine may experience very low graphics performance. Follow the instructions provided by your graphics card vendor or Linux distribution in order to update your computer's OpenGL drivers."

Simple fix is to shutdown your VM. Edit your *.vmx file in an editor like Gedit or VI and add the following line: mks.gl.allowBlacklistedDrivers = "TRUE"

Start your VM, and it should work dandily!

Trouble Mounting Windows 8 Partition onto Ubuntu?

Ever got this message when trying to access Windows 8 files on a partition from Ubuntu on a dual-boot?
"error mounting at exited with non-zero exit status Windows is hibernated refused to mount"

Type this using the data in your error message:
sudo mount -t ntfs-3g -o remove_hiberfile /dev/sda2 /media/tron/288680458680158A2

Saturday, June 28, 2014

*FIX* Dual Boot Windows 8.1 with Ubuntu 14.04: Ubuntu Install Doesn't Recognize Windows Partition

I've been using Ubuntu as my primary OS for a while now, and have been using VM's to run Windows when necessary (Games, Other Software, etc). However, I've now run into a bind that requires full 100% capability (video editing). VM's don't allow full hardware usage, and Linux video editors plain suck! I need my Adobe Premiere/After Effects/Photoshop products!

So I found it's more painful get Windows 8.1 starting from a Ubuntu base, so I backed up my files, wiped and reloaded with Windows 8.1. The process to get a Dual Boot goes like this (from the Internets): http://www.everydaylinuxuser.com/2014/05/install-ubuntu-1404-alongside-windows.html

1. Install Windows 8.1
2. Use the Windows Disk Management tool to "Shrink" or split your hard drive into a separate partition for Ubuntu
2. Disable Fast Boot/Secure Boot
3. Enable Legacy Boot
4. Make an Ubuntu 14.04 bootable USB and plug it in
5. Reboot into the Ubuntu Live session
*6. Install Ubuntu onto the free partition

Here lies the problem. Your Ubuntu install doesn't see the Windows partition. Neither does GParted. In fact, it only sees your entire hard drive as free unallocated space, and installing Ubuntu on this part would just overwrite your Windows 8.1.

However, the Ubuntu Disk tool shows two partitions as "/dev/sda2" and "/dev/sda3". So things seem half right.

Lucky for you, my Google digging found this solution:
1. Go to the GPT fdisk (gdisk) download page and install the *.deb file for your Architecture version
2. Open a shell and type "sudo sgdisk --zap /dev/sda". It'll complain about partition problems, but it will still work because it'll fix your partition troubles.
3. Successfully install Ubuntu using the Ubuntu Installer (Should be on your Desktop or left sidebar), and you should now see the option "Install Ubuntu Alongside Windows 8"!

This isn't all though. Don't restart your computer just yet because if you do, you'll restart your computer with excitement and frown when Windows 8 loads up instead of an option to use either installed OS. You must fix the bootloader using these steps in your current Ubuntu Live session:
1. Install "Boot Repair"
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo sh -c "sed -i 's/trusty/saucy/g' /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list"
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair
2. The Boot Repair window should popup. Select "Recommended Repair", and let it go until finish.

3. BINGO! Restart and you should see a menu that gives you about 30 seconds to decide which OS you want to boot into.

Friday, June 20, 2014

ASUS with Single Mic/Headphone Port on Ubuntu 14.14 64-bit?

You plug your Dr. Dre Beats headphones into your brand new generation ASUS laptop with only a single jack for headphones/microphones. Ubuntu doesn't love you. Your internal laptop mic worked fine... that is... until you plugged your headphones in and forced the laptop to automatically make your headphone work. Except it doesn't. How did I fix it? Simple. Downloaded "PulseAudio Volume Control" from the Ubuntu Software Center. Go to "Input Devices" tab and select "Internal Microphone (unavailable)". Your mic should work (proven by the sound bar jumping up and down when you tap your headphone mic.

Wednesday, June 4, 2014

iMessage Problem: Switching from iPhone to Android

So you got made fun of for being an Apple fanboy and made the leap of faith to Android eh?  No doubt the first thing you noticed was other iPhone users not responding to your texts.  Oh wait, you then realized they were sending you iMessages that were going into a Black Hole! 

Then you tried to use the Internet's advice by calling Apple, but since you didn't have Apple Care, they tried to charge you $19.99 for the one phone call!  Then you continued reading about all the ignorant people telling you to turn off iMessage on your iPhone that you already sold/gave away/threw away.  What now?  The SIMPLEST solution!!!  Let the bullet points begin:
  • Log into https://supportprofile.apple.com/
  • Click "Edit Products" under "My Products" 
 
  • Click the "X" button next to your target ex-device(s)
  • Click "Unregister"
  • VOILA!

Military CAC Reader with Ubuntu 14.04

Step 1:  Follow all these directions http://ricardofeliciano.me/how-to-setup-dod-cac-support-in-ubuntu-13-04/

DONE!!!

Basically this:
  • sudo apt-get install coolkey pcscd
  • Firefox->Edit->Preferences->Advanced->Certifications(or Security)->Security Devices->Load->Browse->/usr/lib/pkcs11/libcoolkeypk11.so
  • Restart Browser
  • CAC Works!!! 

Monday, June 2, 2014

VMWare Workstation 10 on Ubuntu 14.04 64bit - "Before you can run VMWare, several modules must be compiled..."

  1. Got new Asus laptop, CHECK!
  2. Removed Windows 8.1 because it's buggy and keeps rebooting infinitely when you click Shutdown, CHECK!
  3. Installed Ubuntu 14.04 64-bit, CHECK!
  4. Installed VMWare Workstation 10, CHECK!
  5. VMWare Workstation 10 works the first time you run it. NEVER!!!
I got excited because everything was finally up and running.  I even changed my background to a TRON theme, YES!  However, as expected, I double-clicked the VMWare Workstation 10 button and got the dreaded error "Before you can run VMWare, several modules must be compiled and loaded into the running kernel."



The "Install" button looks so enticing so I clicked it excitedly.  Then got this error "Unable to start services.  See log file /tmp/vmware-root/vmware-modconfig-16922.log for details":



And thus, this loops forever.  Good thing the Internetz gave me a solution!  Based on DanDar3's solution for VMWare Player (which is exactly the same solution!) http://dandar3.blogspot.com/2014/01/vmware-player-601-on-ubuntu-1404-alpha.html.  Perform the following commands to be Root and create a patch file:

sudo -E -s
cd /usr/lib/vmware/modules/source/ 
gedit filter.c.diff
 
Paste the following into the "filter.c.diff" file (including the <'s or >'s):


205a206
> #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
206a208,210
> #else
> VNetFilterHookFn(const struct nf_hook_ops *ops,        // IN:
> #endif
255c259,263
<    transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
---
>    #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
>       transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
>    #else
>       transmit = (ops->hooknum == VMW_NF_INET_POST_ROUTING);
>    #endif

Resume following these commands to patch the VMWare system files:
cp vmnet.tar vmnet.tar.original
tar xvf vmnet.tar vmnet-only/filter.c
patch vmnet-only/filter.c < filter.c.diff
tar -uvf vmnet.tar vmnet-only/filter.c
rm -rf vmnet-only/

Relaunch VMWare Workstation 10, it will actually allow you to fully update the Kernel this time, and VOILA!!!  The most beautiful popup you've ever seen in your life!!!



- MysteriousCable