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.

Getting Creative with Application Icons on Moblin

After installing Skype and discovering the world of .desktop files located in /usr/share/applications/ I decided that I wanted a cooler icon for Google Chrome (chromium) than the standard "Web Browser" icon that Moblin assigned Chrome after it installed through the "Moblin Application Installer." BTW - if you know how I can contribute to the addition of Skype to the Moblin Application Installer please let me know, I would love to help.

Basically all I did was grab a .png of the Google Chromium logo and make four files out of it - the same file but in four different sizes: 16x16, 32x32, 64x64 and 48x48. The first three I placed in their respective folders inside the /usr/share/icons/hicolor/ folder. Then I placed the 48x48 in the /usr/share/icons/ folder.

Once those are in place edit the chromium-browser.desktop file just as you did the skype.desktop file in my prior post. For example mine looks like this:

[Desktop Entry]
Version=1.0
Name=Google Chrome
Comment=Browse the World Wide Web
GenericName=Web Browser
Exec=chromium-browser --enable-plugins --enable-extensions --enable-user-scripts --enable-printing
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=chrome
Categories=Network;
MimeType=text/html;
StartupWMClass=Chromium
StartupNotify=true

X-Desktop-File-Install-Version=0.15

That main thing you're look for is that it says Icon=chrome. This is because all of the files that I placed in the hicolor and icons folders are named "chrome.png" so the desktop file will look for them in those folders (automatically) and will find them named "chrome" and use them. According to the Moblin dev site you do not need to include the ".png" -- so I did not.

Finally - reboot. Now, doesn't that look sweet?

How-To Install Skype on Moblin v2.1

Here are the instructions on how to install skype on Moblin. These are actually for Fedora 10 but they work perfectly for Moblin.


step 1: create a file in /etc/yum.repos.d/ by the name skype.repo with the following contents

[skype]
name=Skype Repository
baseurl=http://download.skype.com/linux/repos/fedora/updates/i586/
gpgkey=http://www.skype.com/products/skype/linux/rpm-public-key.asc
enabled=1
gpgcheck=0

step 2: open a terminal and issue the following command as root user

$ yum install skype

After you do that you probably want Skype to show up in under your Applications. In order to do that navigate to /usr/share/applications/ and edit the skype.desktop file.
cd /usr/share/applications/
sudo vi skype.desktop

Then make the document look just like this:

[Desktop Entry]
Version=1.0
Name=Skype
Comment=Internet Chat
GenericName=Skype
Exec=skype
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=skype.png
Categories=Network

Then hit "alt + :" to get out of the editing mode. Finally hit ":wq!" to save and quit vi. You may have to reboot at this point, but when you do Skype should show under applications in the internet section.

Friday, November 20, 2009

Snow Leopard on Hp Mini 110-1020nr

I was able to successfully install SL on my Hp Mini tonight. It runs great. Trackpad works well. Only one huemungonormous problem - no WiFi OR Ethernet...

Great little netbook, amazing OS and no connection to the internet. I googled it for well over an hour and it seems everyone's solution has been to just swap the wireless chipset in the 110 models for that of the 1000 models - but hey I just spent money on this netbook, not to mention the extended life battery - I don't want to replace the wireless chipset just yet. Does anyone know of a work-around? Maybe ndiswrapper for Mac or something?? ((Really drawing at strings here))

Moblin 2.1 WiFi Hp Mini 110-1020nr

Well I just bought my first netbook last night and I am proud to say the OS that shipped with it never had a chance to boot on it. I initially tried to load the Hp MIE Linux but to no avail. I'm not sure what the problem is -- it would hang somewhere around 25% through the boot sequence.

Anyways, I moved on pretty quickly to Moblin (v2.1). Everything works perfectly with the exception of the WiFi. Fortunately for me, there is another fellow who developed a work-around for his Dell Mini 9 that uses the same chipset as my new netbook.

His method can be seen here:

http://slaine.org/_slaine/Dell_Mini_9.html

Thanks Glen!

UPDATED 23 NOV 09:

In case slaine decides to take down his post for whatever reason here is a copy of the instructions of his site -- again this is all his work, I'm just re-posting for ease-of-access:

  1. 1)Activate the moblin toolbar and select the applications icon

  2. 2)Choose the Accessories section and select Terminal

  3. 3)Install the various tools you’ll need

sudo yum install rpmdevtools

  1. 4)Install the compilers and other tools,

sudo yum groupinstall “Development Tools”

  1. 5)Install the kernel-netbook-devel package.

sudo yum install kernel-netbook-devel

  1. 6)Now we’re ready to build and install the new broadcom drivers

wget http://slaine.org/files/moblinv2/wl-kmod-5.10.91.9.3-1.moblin.src.rpm

(This build will download the broadcom driver archive directly from their site)

rpmbuild --rebuild --target=i586 wl-kmod-5.10.91.9.3-1.moblin.src.rpm

  1. 7)Install the resulting rpm,

sudo rpm -ivh ~/rpmbuild/RPMS/i586/wl-kmod-5.10.91.9.3-1.moblin.i586.rpm

Tuesday, August 26, 2008

My ping is slow

Today my speedtest ping was 121ms. :(

Oh crap, now 126ms. :( :(

Monday, April 7, 2008

Let's re-visit rysnc, shall we?

I covered the "rsync" script in an earlier post (located here). But recently my wife and I have evolved into a Mac family and I once again searched for a good syncing utility. Much to my great relief, Mac OS X, a Unix based system INCLUDES the amazing rsync utility. The command is the exact same and it works beautifully. M$ Briefcase take this:

rsync -avuz /Your/Inferior/Win/OS/ /Oober/Awesome/Times/Infinity/

Where, of course, "/Oober/Awesome/Times/Infinity/" then receives any new files from the local directory "/Your/Inferior/Win/OS/" without erasing any extra files not in the "from" directory.

Once again the traits of a superior operating system.

Saturday, January 26, 2008

Getting sound to work on Toshiba w/ Linux Mint

To setup the sound correctly on your Toshiba running some sort of ubuntu follow the steps on the following link.

From website:

https://help.ubuntu.com/community/HdaIntelSoundHowto

More specifically make sure your module parameters at correct. On my computer "options" was only "option" and "model" was only "mode" which cause the module not to load correctly.

Manually Specify Module Parameters

First you must find which model of sound card you use, so run this command:

cat /proc/asound/card0/codec#* | grep Codec

It will return model of your sound card(s), for example: "Codec: Realtek ALC260", so your sound card is ALC260.

You should open a file in ALSA documentation. This file is here (replace KERNEL_VERSION with your kernel's version!):

/usr/src/KERNEL_VERSION/Documentation/sound/alsa/ALSA-Configuration.txt

If you didn't have this file, for version 2.6.22, you can check out this link or you can find ALSA-Configuration.txt in the subdirectory /alsa-kernel/Documentation/ of the alsa-driver-1.x.x directory you created.

Search for your model, and take a look at its types, for example I found the following lines for ALC260:

hp              HP machines
hp-3013 HP machines (3013-variant)
fujitsu Fujitsu S7020
acer Acer TravelMate
basic fixed pin assignment (old default model)
auto auto-config reading BIOS (default)

Read all of them and try to find the one which is more similar to your sound card, for example if you have a laptop, you can choose "acer".

Open /etc/modprobe.d/alsa-base with the following command:

sudo nano /etc/modprobe.d/alsa-base

Then paste the following line at the end of the file (change MODEL with the type of sound card's model, in our example it should be "acer" (without quotation marks)):

options snd-hda-intel model=MODEL

Reboot

Wednesday, January 23, 2008

Webcam on Linux Mint (Ubuntu) Quick and Easy

With thanks to binselam of Ubuntu Forums, I was able to get my webcam working in no time flat. Below is his post originally located on Ubuntu Forums.


November 20th, 2006
binselam
5 Cups of Ubuntu
Join Date: Nov 2006
Beans: 15
Thanks: 0
Thanked 0 Times in 0 Posts

[How to] Logitech Quickcam IM/Connect webcam on Kubuntu 6.10 (Edgy Eft)
I have been trying to install Logitech Quickcam IM/Connect webcam on Kubuntu 6.10 (Edgy Eft). So, I have searched the ubuntuforms and how-to's. Although, what I have found in both sites was very helpful, but it was not specific to my webcam and step by step approach. I wanted to contribute to community by posting this.

I followed the ubuntu-community`s Spca5xx documentations and Yoriko post with little modifications.

It worked for me. I hope this helps you.



STEP 1: First, I have used lsusb to find out:
1) Vendor Id and Product ID
2) to see do I have usb support, and check the driver files for device support. The supportted device list is available at the Michael Xhaard's homepage ("http://mxhaard.free.fr/ ").

This list shows the lsusb result.
Bus 001 Device 005: ID 046d:08d9 Logitech, Inc.
Bus 001 Device 003: ID 045e:0039 Microsoft Corp. IntelliMouse Optical


STEP 2: Download latest Spca5xx source code to your home directory from Michael Xhaard's homepage. At the time of writing this installation guide, the latest source code version was spca5xx-20060501.
NOTE: There might be a newer version of the driver by the time you install. Please check the web page :" http://mxhaard.free.fr/ ".
Latest driver is:gspcav1-20070508.tar.gz (swejuggalo indicated that works fine on Ubuntu 7.04). Make sure you substitue correct driver name in the following steps, if you use a different driver.
(You can see the instructions for the new driver in following post: http://ubuntuforums.org/showthread.p...09418#poststop).

cd ~
wget http://mxhaard.free.fr/spca50x/Downl...01.orig.tar.gz


STEP 3: Become root. To do that, you need to open a terminal window and enter following command(Please enter user password when it is prompted. In each terminal window, you just need to enter sudo
command and password once (for the first time).

sudo -s
Password:########

Note: Prompt should change to: root@yourmachine:


STEP 4: Download the necessary packages. The following packages are needed from the Ubuntu repositories for compiling.
1. linux-headers-`uname -r`
2. linux-restricted-modules-`uname -r`
3. build-essential

uname -r
Identifies the version of running kernel. Exp: 2.6.17-10-generic

apt-get install linux-headers-`uname -r` linux-restricted-modules-`uname -r` build-essential


STEP 5: Compile the spca5xx source code. The linux stuff (drivers/programs) is installed under /usr/src. The downloaded driver files need to be placed to proper directory under linux. So, please type following commands to change directory, move downloaded source files, unpack the source files and change into directory. (NOTE: This step assumes you downloaded the driver file to your home directory.)

cd /usr/src
mv ~/spca5xx-220060501.orig.tar.gz .
tar xfvz spca5xx-20060501.orig.tar.gz
cd spca5xx- 20060501


STEP 6: Set the environment variable CC for spac5xx Makefile. In my case, Ubuntu Edgy Eft uses gcc 4.1 as kernel compiler. (NOTE: your system might use gcc-4.0. if you use version gcc4.0, you need to modify the command as "export CC=gcc-4.0" So, please make sure of your compiler version.)

export CC=gcc-4.1


STEP 7: Set a link back to source code(headers).

ln -s /usr/src/linux-headers-`uname -r` /lib/modules/`uname -r`/build

STEP 8: Now, we need to compile spca5xx source code, remove the old driver(from memory and hard drive), install the new driver and load the new driver. Please enter the following commands in the order given.

make
modprobe -r spca5xx
rm -rf /lib/modules/`uname -r`/kernel/drivers/usb/media/spca5xx*
make install
modprobe spca5xx

If everything went accordingly, there should be no error messages. When you type dmesg, you should get something like shown above.

[17191980.272000] usbcore: deregistering driver spca5xx
[17191980.276000] drivers/media/video/spca5xx/spca5xx-main.c: driver spca5xx deregistered
[17192035.756000] Linux video capture interface: v1.00
[17192035.768000] /usr/src/spca5xx-20060501/drivers/usb/spca5xx.c: USB SPCA5XX camera found. Logitech QC IM/Connect
[17192035.768000] /usr/src/spca5xx-20060501/drivers/usb/spca5xx.c: [spca5xx_probe:5480] Camera type JPEG
[17192036.860000] /usr/src/spca5xx-20060501/drivers/usb/zc3xx.h: [zc3xx_config:558] Find Sensor HV7131R(c)
[17192036.872000] /usr/src/spca5xx-20060501/drivers/usb/spca5xx.c: [spca5xx_getcapability:1765] maxw 640 maxh 480 minw 176 minh 144
[17192036.872000] usbcore: registered new driver spca5xx
[17192036.872000] /usr/src/spca5xx-20060501/drivers/usb/spca5xx.c: spca5xx driver 00.60.00 registered
root@eagel:/usr/src/spca5xx-20060501#


GOOD LUCK!
_____________

Friday, January 18, 2008

OpenSUSE and Compiz Fusion, woah.

First off, since I'm using an intel chipset, I am using AIGLX instead of XGL.

This is the OpenSUSE how-to on AIGLX.

More specifically, you will need to disable XGL (but enable 3D in YaST->Hardware->Monitor) and add two entries to your xorg.conf file.

Again, I have an intel chipset so I had to use the following addition to my xorg.conf file from compizfusion's troubleshooting wiki page otherwise my windows would freeze/not render:

Windows Don't Update

When using the intel or ati driver with AIGLX, you may notice that all your windows seem to be frozen even as you interact with them. Nothing in any window updates until you rotate the cube or otherwise switch viewports.

Adding the following line to the Device section of your /etc/X11/xorg.conf file should fix the problem:

Option "XAANoOffscreenPixmaps" "true"

Finally, go to OpenSUSE's Compiz Fuzion how to page and completed the following steps:

1. Test if composite is enabled: running grep Composite /var/log/Xorg.0.log as root should show Extension "Composite" is enabled

2. Clicked the "One Click-Install button" for KDE.

3. Clicked the link right under the those buttons for the main install - labled: If you would like to setup autostart of compiz install Compiz Manager: Click here to install compiz-manager

And then I had a fully functioning 3D desktop.

Friday, January 4, 2008

rsync - Once again why Linux is better.

Linux has this little easy command called rsync. Basically what it did for me today was went through all the music on my computer, compared it with the saved music on my external hard drive, and then copied anything over to the external that wasn't already there.

See, I use my laptop to listen to music and when I get a new cd I put it on my laptop. But then I need to make sure my external is keeping a good/up-to-date backup of all my music in case something happens to my laptop.

Thanks to linuxquestions.com I found a quick and easy way to do that with rsync.

The command I used was:

rsync -avuz /home/awesome/Music/ /media/My\ Book/My\ Music/
(laptop music dir) (ext. music dir)


rsync is the command.
"a" option archives the files to the new directory
"v" verbose?
"u" update - this causes it to skip files that are newer on the destination - that way you don't copy old info over new info (in my case this is a "just in case")
"z" compresses files during data transfer - to speed transfer


Wow, that's excellent.

Linux Mint Review


Linux Mint - "From Freedom Came Elegance" - A Review

First off the very concept of Linux Mint I believe is ideal. If Linux is ever to become mainstream and pose a real threat to the monopoly of M$ and @pple then it needs to get on board with the Linux Mint creators. By far this is the easiest distro I have ever used - installed in less than 20 minutes and every - EVERY - piece of hardware on my computer works with no configuration right off the bat. First off here is what equipment/release I am using:

Gateway MX3560
Processor - Intel® Centrino™ Mobile Technology with Intel® Pentium® M Processor 7357 - (2MB L2 Cache | 1.70GHz | 400MHz FSB)
Chipset - Intel® 855GM
Memory - 1.5GB DDR SODIMM (PC2700)
Video - Intel® Extreme 2 Graphics
32MB Shared Video Memory
Audio - AC '97 2.1 Compliant Audio Built-in Stereo Speakers
Hard Drive - 160 GB Hard Drive

Linux Mint 4.0 Daryna - KDE Community Edition BETA 011

Installation:

Like I mentioned above installation took less than 20 minutes. It was very simple, truly just a few clicks and we were rolling. If I could make a constructive criticism of it I would recommend a more intuitive partitioning tool. I, and I believe many other Linux users - for the sake of safety/security - partition my hard drive for a separate / partition and /home partitions. The partitioning tool currently in it took me a bit of fiddling to get it to do exactly what I wanted.

Post-Installation - Immediate:

One of the first things I noticed as I booted into this new distro is that Compiz comes pre-installed with Emerald. Unfortunately for all of the wonderful things that KDE is capable I have trouble getting the standard window decorations to satisfy me asthetically. So in my previous distro I went to utilize Compiz/Emerald and was never able to get it to work correctly partly due to the lacking video card of my old system. So it was a welcome change to see the new look and how easy it was to change it around.

Secondly I noticed that my wireless was already picking up signals from surrounding networks. No ndiswrapper or windows drivers or hassling with setup for hours (and having it still not display correctly) - it just worked. I haven't had a chance to test the wireless extensively - ie discovering new networks or switching between networks - but from the little bit of browsing through my kde network manager I have done it seemed to work very well.

Third, codecs. Linux Mint comes with everything you need right off the install in order to play almost any type of music or video file you may have. This includes CDs and DVDs. Even ripping DVDs was simple with KDB already setup. The only problem I had here was ripping mp3s. I tried using the two encoders it gave in the drop down menu - mp3 and mp3 lame - and neither worked. Which is fine, I don't mind using OGG, but it is hard to share then because 100% of my friends and family use either wind0ws or M@c 0S X.

Post-Installation - A Few Weeks Later:

Everything seems to be working fine. I did turn of extra background terminal screens to boost performance, but other than that have made little to no changes. The only problem I had/have was with the auto-mounting of external drives to include my CD/DVD-ROM drive. If I boot with something in the CD/DVD drive or an external drive connected via usb then it will not show as mounted when I login to KDE. Sometime if I have add an additional drive, for example another thumb drive, then the auto-mount utility will not only mount the new drive but will also bring up the drive that was connected at boot and had not yet shown as mounted. It is a small grievance but passing on the knowledge of the problem may lead to it's eventual solution.

My second problem is a problem I believe between the configuration of Linux Mints interworkings interfacing with KDE Network Manager. When switching between ethernet connections Linux Mint has an awesome little configuration GUI that is simple and easy to use. However after introducing a manual configurtation KDE's network manager than goes hands off and will show "Manual Configuration and No Active Connetcion" only (whereas before it showed eth1 and connection details). Then when you switch back say from a set IP scheme to DHCP KDE's network manager doesn't get the change and stays showing "Manual Configuration". I've found what I have to do to remedy the situation - I manually edit the /etc/network/interfaces file to look as it did before Linux Mints configuration utility edited it. When it's just KDE Network Manager using a DHCP server the file only reads:
auto eth0
However when Linux Mint's configuration utility gets in there it adds an extra line (this is just for Auto DHCP mind you):
intf eht0 auto dhco
Apparently it is that line that Linux Mint adds that KDE network manager doesn't understand.

Despite the few problems I've had, I still think this is one of the easiest and most complete distros I have ran. I can do everything I need to do, easily, and it looks nice too.

Thursday, November 15, 2007

Kopete Does Everything, Even Google Talk

Here are instructions on how to add you Gmail google talk account into Kopete. Yes it's awesome.

Kopete: Access Google Talk

Thanks to Tech-Recipes for this awesome little HowTo.


Powered by ScribeFire.

Friday, October 19, 2007

My Firefox Add-ons

Here they are:

Adblock Plus
Download Statusbar
DownloadThemAll!
Errorzilla
Foxmarks Bookmark Synchronizer
NoScript
Restart Firefox (Essential when trying new themes) QuickRestart (Even better - has a alt key hotkey)
RSS Ticker
Tab Effect (I don't use this one regularly, but it is a cool touch [fake Xgl])
ScribeFire (Blog editor inside Firefox)

Most Recently Updated (Thank You Honeys)

Gmail Notifier

Enjoy!