Saturday, July 17, 2010

Boot Snow Leopard in 64 bit

To try to boot x86_64 kernel on Macintosh, edit this file:
/Library/Preferences/SystemConfiguration/com.apple.Boot.plist
find there:
Kernel Flags

and change it to
Kernel Flags
arch=x86_64

Tuesday, May 11, 2010

Backup Your MBR or Else!

From http://www.cyberciti.biz/tips/linux-how-to-backup-hard-disk-partition-table-mbr.html :

"Backup MBR with dd command

dd the old good command which now backup partition tables even writes CDs ;). Backing up partition is nothing but actually backing up MBR (master boot record). The command is as follows for backing up MBR stored on /dev/sdX or /dev/hdX :
# dd if=/dev/sdX of=/tmp/sda-mbr.bin bs=512 count=1

Replace X with actual device name such as /dev/sda.

Now to restore partition table to disk, all you need to do is use dd command:
# dd if= sda-mbr.bin of=/dev/sdX bs=1 count=64 skip=446 seek=446"

Sunday, May 9, 2010

Great tips for Jolicloud

http://getsatisfaction.com/jolicloud/topics/how_can_i_get_jolicloud_to_stop_automatically_maximizing_things

Quote:

"Alt-F2, type gconf-editor, then navigate to apps/maximus.

You can check the "no_maximize" and none of the apps will get maximized by maximus.

Alternatively, you can add the class name of the application you don't want maximized to the exclude_class (double click it, a list box should appear, then simply add it and confirm).

Usually, you can guess the class name from the application name. If it does not work, getting the real class name is a bit technical. Specifically there is a bug in VLC, which does not set the WM_CLASS property at all. This bug is already identified so hopefully it will be corrected in a future release. In the mean time, you can't configure maximus to exclude it from the applications it maximize, sorry.

For most other apps, here is the procedure:

First you need to put the terminal in the exclude list (simply add "gnome-terminal" to the list), then you need to start the program you want to exclude, open up a terminal (Accessories/Terminal), which will now not be maximized and let you see part of the underlying application window. Then type "xprop | grep WM_CLASS", your cursor will change to a crosshair. Click on the part of the application window and you will see a line similar to:
WM_CLASS(STRING) = "an application class"
This is the class name you can put into the gconf-editor apps/maximus/exclude_class list so that your app does not get maximized."

Saturday, May 8, 2010

Auto-Hide Gnome Menu Bar

Type into terminal:

gconf-editor

to open the gconf-editor.
Then navigate to '/apps/panel/toplevels/top_panel_screen0' and change 'auto_hide_size' to 0.
I also set show/hide times to a smaller interval.