Categories
Tech Tips

How to fix network print queue installation error 0x0000007e on Windows

Printer-Error

Problem:

The print queue of a HP printer on a Windows 2003 Server (clustered) already has its 32-bit driver installed.

For my new 64-bit Windows 7 client to use the print queue, I installed the 64-bit printer driver on the server.

However, when I connect to the print queue on the 64-bit Windows 7 client, at the end of the installation, it will fail with error:

Windows cannot connect to the printer
Operation failed with error 0x0000007e

Solution:

Delete the “CopyFiles” key from HKLM\Cluster\Resources\<LongString>\Parameters\Printers\<QueueName>

Non-clustered server may have the key at HKLM\SYSTEM\CurrentControlSet\Control\Print\Printers\<QueueName>. Just do a search in regedit using your QueueName to find the right location.

Remember to backup the key before changing the registry.

Categories
Tech Tips

How to extend Windows 7 VM disk size on VirtualBox v4.2.16

Problem:

The 30GB C: drive was running out of free space on my Windows 7 VM guest on VirtualBox v4.2.16.

Solution:

1. Shutdown VM.

2. Extend it to 45GB:

[text]$ cd /home/user/.VirtualBox/HardDisks
$ VBoxManage modifyhd windows7.vdi –resize 46080
0%…10%…20%…30%…40%…50%…60%…70%…80%…90%…100%[/text]

3. Extend partition size in Windows 7

a. Start the VM

b. Run diskmgmt.msc > right-click C: > Extend Volume...

Categories
Tech Tips

How to fix copy-paste clipboard issue on Windows 7 Synergy client

Love the cross-platform and open source Synergy keyboard and mouse sharing application. With the newly added built-in encryption, it’s even more secure now.

The only problem I had was the copy-paste clipboard issue. When I hit CTRL-C to copy any text from a Windows 7 Synergy cilent (v1.4.12) running in service mode, it doesn’t get sync’d to my Arch Linux Synergy server (v1.4.12-1) and so I can’t paste it on the server machine. However, it does get copied into Windows 7’s own clipboard.

Workaround: Disable the “Elevate” option on Windows 7 Synergy cilent’s GUI. Some of you will need that elevate setting but copy-paste is more important to me. I already have another keyboard plugged in to the client that I can use for UAC prompts and elevated programs, so disabling “Elevate” is fine for me though cumbersome.

elevate

Updated on 20130806 to add screenshot.

Categories
Tech Tips

How to create MBR for booting into Windows

I had a dual-booting laptop with Linux Mint and Windows XP on it. After deleting the Linux Mint partitions, it failed to boot into XP because grub can no longer find the MBR. This was the error message:

error: no such partition
grub rescue>

Solution:

Boot into SystemRescueCD and run this command to create a new MBR:

lilo -M /dev/sda mbr

Note: My XP resides in /dev/sda.

Categories
Tech Tips

How to reduce size of VirtualBox VDI file

Scenario:

VirtualBox version = 4.0.12
Guest OS = Win 7
Host OS = Linux Mint 9 Isadora (based on Ubuntu)

Perform these tasks on all the Win 7 local hard-disks:

  1. chkdsk /F
  2. defrag /X
  3. sdelete -z

Shutdown the Win 7 VM, then run this command on Mint:

$ VBoxManage modifyhd win7.vdi --compact

That freed up 5GB of space for me, a 20% reduction.

Categories
Tech Tips

How to install GPMC on Windows Server 2008 R2

Command-line method:
  1. Open cmd.exe as Administrator
  2. Run this command: ServerManagerCmd.exe -install gpmc
GUI method:
  1. Open: Start > Administrative Tools > Server Manager
  2. Select ‘Features’ on the left panel
  3. Menu: Action > Add Features
  4. Check the ‘Group Policy Management’ feature
  5. Follow through the wizard to complete installation
Categories
Tech Tips

AutoHotkey alternatives for Linux

For those of you looking for AutoHotkey alternatives for Linux, check these out:
  • compiz – OpenGL window and compositing manager
  • autokey – desktop automation utility
  • wmctrl – control an EWMH/NetWM compatible X Window Manager
  • setxkbmap – set the keyboard using the X Keyboard Extension
  • xmodmap – utility for modifying keymaps and pointer button mappings in X
  • xdotool – simulate X11 keyboard/mouse input
  • xvkbd – software virtual keyboard for X11
  • xbindkeys – a grabbing keys program for X
  • xte – Generates fake input using the XTest extension
  • xmacro – Record/play keystrokes and mouse movements in X displays

What tools do you use? Share your tips…