Saturday, February 21, 2015

osx 10.6 full screen on virtual box

/Extra/com.apple.Boot.plist

Kernel Flags
"Graphics Mode"="1680x1050x32"

Saturday, April 19, 2014

Recursively md5 checksum a folder

find * -iname '*' -exec md5sum '{}' \; > ~/output.txt

Change to md5 for osx

Wednesday, April 16, 2014

PS2 Guitar hero world tour drums on linux

The drums are treated like a joystick and buttons are translated to keyboard strokes.

This works on Debian squeeze
Install joy2key
Install hydrogen (program to convert keystrokes to drums)

make .joy2key in your home folder


START hydrogen
-thresh 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
-X
-buttons q w d c s x a z

Plugin USB receiver. Press LED until it blinks
Press PS key on drums (install batteries). It should select one of four controller settings, 1 LED on drums is lit solid.

Start hydrogen

joy2key -dev /dev/input/js0 -config hydrogen

Select hydrogen window to direct keyboard events from drums

Use correct joystick setting (js0 here)

Linux 2.6.32-5-amd64
joy2key Version: 1.6.3
Hydrogen Drum Machine 0.9.4
(All default installs)

Also worked with a slight change on Debian 8 Jessie (2016/11)

.joy2keyrc instead of .joy2key (per initial error message)

Linux cdreams04b 3.16.0-4-amd64
joy2key Version: 1.6.3
Hydrogen Drum Machine 0.9.6.1
(All default installs)

Wednesday, April 9, 2014

7Z to split, merge files

7Zip fun

copy dont compress, make 10k files
7z a a.7z ./out.a -mx=0 -v10k

make the full file, input first in series
7z x a.7z.001

Sunday, March 16, 2014

Android 4.x pictures snafus

One way on a Mac:
enable MTP on phone
Use android file transfer

On linux:
enable MTP on phone
install mtp-tools
mtpfs to mount to a folder


May need USB debugging enabled


Monday, December 2, 2013

sort output from find

find . -type f -name "*.ext" | sort

Tuesday, August 27, 2013

Arch linux and Windows 7 Dual boot on an encrypted drive

Neat shrink option. Easily reduce size of Windows partition.

I wanted to use windows bootloader to load grub. Made a fat32 partition to store this. Made one other. Not sure if I can keep adding.

Arch linux seems fast. A little slow to install but after that, impressive speed.

Boot from USB. Partition and parts of disk are available. Encrypted partition is not. Hence cant directly copy to ntfs.

Direct install of grub to any of the partitions did not work. Impossible unreadable.

Arch booted, but same error as before. /disk didn't show up. Neither did tty.

https://bbs.archlinux.org/viewtopic.php?id=77815
Also userguide says do not use unetbootin. ok. https://wiki.archlinux.org/index.php/USB_Installation_Media#Using_UNetbootin

copy copy boot for EFI . booted. but similar error.

Looking by default for ARCH_201308. change grub line to actual label. Maybe this long a label cant work in fat32 ? Use actual label. works. Argh. Arch has well written docs. I skipped the label write .....

dhcpcd

modprobe efivars before chroot. grubinstall worked to main partition.

dd from here to separate boot partition.

oh boy. no boot. Removing newer partitions did not help.

http://support.microsoft.com/kb/2004518
Use a windows 7 rescue cd and the bitlocker recovery key to get back to nominal. Auto repair after key worked. Could not use regular password/pin here.

Just changing the partitions without touching W7 , still needs key. suspend, resume of bitlocker.

Simple in w7 shows extended. Extended in linux shows primary in w7.

Shrink once more, UEFI partition, 0xEF, FAT32, mount to /boot/efi, install grub there EFI.. Boots ok.

So disable bitlocker , do bios, hardware, other stuff, enable bitlocker. Still had to enter keys, suspend resume.

Also problem with a rolling system like Arch. stale incomplete installs are problematic, if you are looking for older packages/signatures. Multiple downloads rather than just from one cd.

Yet another kink: nvidia optimus. Can't run just the nvidia driver. But a mixed mode. Intel for graphics. Use bumblebee optirun for nvidia.
Improvement for NVS 5200M over Intel HD 4000 in i7-3540M ~ 2x with glxspheres