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.

Monday, November 23, 2009

GStreamer Codecs on Moblin v2.1

Works perfect! The only thing I did different is I used whatever was the newest version of the package I was downloading (i.e. gst-plugins-good-0.10.17 vs 16). Otherwise works very well. The only thing that doesn't seem to work is the preview images when browsing through files with the File Browser app.



English translation:

1) Install dependencies:
sudo yum install bison flex gcc make diffutils glib2-devel pango-devel cairo-devel liboil-devel alsa-lib-devel libtheora-devel libvorbis-devel libogg-devel

2) Download gstreamer sources:
Go to http://gstreamer.freedesktop.org/src and download the following packages:

· Gstreamer-0.10.25.tar.gz
· Gst-plugins-base-0.10.25.tar.gz
· Gst-plugins-good-0.10.16.tar.gz
· Gst-plugins-bad-0.10.16.tar.gz
· Gst-plugins-ugly-0.10.16.tar.gz
· Gst-ffmpeg-0.10.9.tar.gz

***In order to streamline this process I ran the following command:
wget http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-0.10.25.tar.gz http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-0.10.25.tar.gz http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-0.10.17.tar.gz http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-0.10.17.tar.gz http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-0.10.13.tar.gz http://gstreamer.freedesktop.org/src/gst-ffmpeg/gst-ffmpeg-0.10.9.tar.gz

Once downloaded, extract all files. We will be 6 folders, each with the source code of each package.

3) Enter the folder first package (gstreamer) and execute:
. / configure - prefix = / usr
** here I also ran make clean first
make
sudo make install

4) Repeat these three steps in the base folder, good, bad, ugly and ffmpeg.

5) That's it. For some reason it did not work until I rebooted, but now plays videos and mp3 perfectly.