Kubuntu 8.10

November 1st, 2008

Just upgraded to Kubuntu 8.10.  KDE 4 is very different from KDE 3.5.  So, I’ve been getting used to it and the “plasma”.  Two things that must be installed is powerdevil (for power management) and quicklauncher.

For powerdevil (http://www.kde-apps.org/content/show.php/PowerDevil?content=85078): sudo apt-get install powerdevil

Reboot so the service is started, and you can modify your settings in System Settings > Advanced > Power Management

For quicklauncher, you need to compile it yourself (which needs kdebase-workspace-dev).  You can get the source from http://www.kde-look.org/content/show.php/QuickLauncher+Applet?content=78061.

KDE Keyboard doesn’t work

October 28th, 2008

Basically one day, my keyboard stopped working.  I could use the mouse, but the keyboard doesn’t work.  Even if I put a USB keyboard on it.  So… after some debugging… I found this:

- Keyboard works while booting up
- Works during login
- When KDE starts, the keyboard disappears (I did this by pushing the caps lock key to see the light come on)
- Even the virtual keyboard didn’t work
- Somehow I managed to log into console (non-X) and the keyboard worked.  Checked dmesg and /var/log/Xorg.0.log, but everything looked good.

So… I searched online, and found this post: http://ubuntuforums.org/showthread.php?t=458036

Basically… yes, that was my problem.  I turned on accessibility “slow keys”.  From what I remember, it was before class, and I was playing a flash game.  Holding down a key, the popup came up and asked something about accessibility.  I just randomly clicked something and that is when it started to get “weird”.

After turning off “slow keys”, everything is good…

Ubuntu Blackberry tether

October 25th, 2008

I used the following resources.

http://wiki.colar.net/tethering_with_blackberry_pearl_on_linux

http://ubuntuforums.org/showthread.php?t=617811

Some issues I had…

When trying to compile opensync, there was no opensync/opensync-xml.h.  I found this and it fixed my issue.  http://blackberryforums.pinstack.com/f158/tethered_modem_support_in_linux-40533/

Basically, I created a file  /usr/include/opensync-1.0/opensync/opensync-xml.h, and put copied and pasted this

==================

#ifndef HAVE_OPENSYNC_XML_H
#define HAVE_OPENSYNC_XML_H

#include <libxml/xmlmemory.h>
#include <libxml/parser.h>
#include <libxml/xpath.h>

#include <opensync/opensync.h>
#include <string.h>
#include <stdio.h>

#ifdef __cplusplus
extern "C"
{
#endif

typedef enum osxmlEncoding {
OSXML_8BIT = 0,
OSXML_QUOTED_PRINTABLE = 1,
OSXML_BASE64 = 2
} osxmlEncoding;

typedef enum osxmlCharset {
OSXML_ASCII = 0,
OSXML_UTF8 = 1
} osxmlCharset;

typedef struct OSyncXMLEncoding OSyncXMLEncoding;
struct OSyncXMLEncoding {
osxmlEncoding encoding;
osxmlCharset charset;
};

typedef struct OSyncXMLScore {
int value;
const char *path;
} OSyncXMLScore;

xmlNode *osxml_node_add_root(xmlDoc *doc, const char *name);
xmlNode *osxml_node_get_root(xmlDoc *doc, const char *name, OSyncError **error);
xmlNode *osxml_get_node(xmlNode *parent, const char *name);

xmlNode *osxml_node_add(xmlNode *parent, const char *name, const char *data);
//void osxml_format_dump(OSyncXML *xml, char **data, int *size);
xmlNode *osxml_format_parse(const char *input, int size, const char *rootname, OSyncError **error);
char *osxml_find_node(xmlNode *parent, const char *name);
void osxml_node_add_property(xmlNode *parent, const char *name, const char *data);
char *osxml_find_property(xmlNode *parent, const char *name);
osync_bool osxml_has_property(xmlNode *parent, const char *name);
osync_bool osxml_has_property_full(xmlNode *parent, const char *name, const char *data);

void osxml_node_mark_unknown(xmlNode *parent);
void osxml_node_remove_unknown_mark(xmlNode *node);
void osxml_map_unknown_param(xmlNode *node, const char *paramname, const char *newname);

void osxml_node_set(xmlNode *node, const char *name, const char *data, OSyncXMLEncoding encoding);
xmlXPathObject *osxml_get_nodeset(xmlDoc *doc, const char *expression);
xmlXPathObject *osxml_get_unknown_nodes(xmlDoc *doc);
OSyncConvCmpResult osxml_compare(xmlDoc *leftinpdoc, xmlDoc *rightinpdoc, OSyncXMLScore *scores, int default_score, int treshold);
xmlChar *osxml_write_to_string(xmlDoc *doc);
osync_bool osxml_copy(const char *input, int inpsize, char **output, int *outpsize);

osync_bool osxml_marshall(const char *input, int inpsize, char **output, int *outpsize, OSyncError **error);
osync_bool osxml_demarshall(const char *input, int inpsize, char **output, int *outpsize, OSyncError **error);

#ifdef __cplusplus
}
#endif

#endif

==================

Install Mac OSX Leopard on Dell M1330

September 26th, 2008

Dell M1330

  • CPU: Intel Core2Duo T9300
  • RAM: 4 GB @ 667 MHz
  • Video: Intel GMA X3100 @ 1280×800
  • Audio: Intel HDA (Sigmatel STAC9228) aka Azalia
  • Bluetooth
  • Webcam
  • Wifi: Intel Wifi 4965AGN (not working)
  • LAN: Broadcom 5906 (not working)

Requirements

Install

  • Boot Leo4Allv3-10.5.2 with option ‘-v platform=X86PC’
    • Might need to reboot a couple of times before it works
    • Push ‘F8′ to get into the boot options
    • Wait 10-20 mins
  • Must make a partition before installing
    • Go to Utilities > Disk Utility
      • Select partition and click on Erase (next to ‘First Aid’)
        • I selected an empty 20 GB partition
      • Name the parition to anything you want
      • Click on ‘Erase’ to erase and create the partition
      • Exit out of Disk Utility
  • Good idea to view installer log to see what’s going on
    • Go to Window > Installer Log
    • Click on ‘Show Error Only’ and go to ‘Show All Logs’
  • Click on ‘Continue’ on the Welcome screen
  • Click on the parition you made earlier and click ‘Continue’
  • Click on ‘Customize’
    • Select what you think you need, but here is my selections
      • Kernel-9.2.0
      • Third party drivers
        • Chipsets Drivers
          • Intel-ICHx
        • Audio Drivers
          • AzaliaAudio
        • Good Applications
      • SMBIOS
        • SMBIOS-667
      • PowerManagement-Laptops
      • AboutThisMac
    • Click ‘Done’ when finished
  • Click on ‘Install’ and watch ‘Installer Log’ go.
    • I usually skip the DVD verify because I did it once and I know the DVD is good.
    • You should do this atleast once.
  • Should take about 20-30 mins.
  • Push ‘Restart’ to reboot.

Start OSX first time

  • Let it boot up by itself
  • Go through the registration
    • You don’t have to enter ‘Apple ID’ information. Just click ‘Continue’.
  • Finally… up at the destop
  • I don’t want to send the registration, so I delete it
    • Drag ‘Send Registration’ to the trashcan.

Upgrade to 10.5.3

  • Must set ‘Hot Corner’ to ‘Sleep Display’
    • Go to Apple menu (the Apple icon on the top left corner)
    • Select ‘System Preferences’
    • Go to ‘Desktop & Screen Saver’
    • Select ‘Screen Saver’
    • Click ‘Hot Corners…’
    • Assign a ‘Sleep Display’ to a corner
  • Read Kalyway combo update 10.5.3 instructions
  • Install 1_Kalyway_UpdCombo10.5.3.pkg
    • Don’t reboot!!
  • Install 2_kalyway_10.5.3_kernel.pkg
    • Install vanilla kernel
      • I read somewhere if you use the modbin_kernel_9.3, it could cause problems. And since we’re going to use update to 10.5.4, it’ll just install the 9.4.0 kernel anyways.
  • Restart from the 1_Kalyway_UpdCombo10.5.3.pkg screen.
  • Let it boot up with boot option ‘update -f -v’
    • This will reboot by itself… let it
  • Boot up normally
  • If you see the blue screen then it goes blank, move the mouse to the corner you setup to ‘Sleep Display’, then move the mouse out of it.
    • Because it installed the Intel X3100 drivers, you will need to do this everytime you boot up. But atleast you will have have 1280×800 resolution.

Upgrade to 10.5.4

  • Install Apple update 10.5.4
  • Restart when finished.

Upgrade to 10.5.5

  • No! I’ve done this many times, and it doesn’t work with ComboUpdate or just Update from the Apple download. It will freeze and hang the installer. You have to hold the power button for a couple seconds to shut it down.
  • You can update to 10.5.5, you just need to run a command in terminal while updating.  Follow this step: http://ihackintosh.blogspot.com/2008/09/how-to-update-105x-to-1055-for-osx86.html

Dell Laptop Post Installer

  • Run the ‘Dell Laptop Post Installer’ application
  • Select what you want, but this is what I selected
    • Power Management
      • SpeedStep Enabler
      • Battery Meter
      • Lid Sleep

Sound still doesn’t work… sometimes

Update: I don’t have this setup anymore.  I use VMWare to install a retail version of OSX.  This is the best solution for me and I recommend this to anybody.

Sunsets…

September 15th, 2008

I like driving when the sun is setting.  It’s nice when you have the blue-yellow-orange sky and the street lights light up.  It’s very nice.

Blinking…

September 14th, 2008

I’ve noticed something…  People blink more when they are talking.  When they’re listening, they’re not blinking as much.  I wonder why that is?

GVIM startup settings

August 24th, 2008

When I use GVIM to edit files, I like to have console font and have automatic syntax highlighting.  So, here is my ~/.vimrc

<File ~/.vimrc>
set gfn=Console
syntax on
</File>

M1330 gets too hot

August 23rd, 2008

I’ve searched and since I’m using the 64-bit version of linux, it doesn’t have the i8k module yet.  So, I searched some more, and found that I need to install dellfand to have the fans work.

Oh… and I found a KDE applet that will show me the speed of the CPUs.  Its called Kima (Kicker monitoring applet).  Very useful to verify what speed the CPUs are on.

CPU dynamic scaling doesn’t work… FIXED

August 19th, 2008

So, after I installed cpufreq, I somehow installed cpufreqd.  This caused my cpu to always be max no matter what cpu policy I select.  After trying everything and endless searching on google, I was getting nowhere and about to give up.  But I remember seeing this one post about setting the min and max of cpufreq.  I tried to set the min, and it worked.  Did some more digging around, and I finally can get cpu scaling.  Then I thought it was just a misconfiguration, and now I fixed it.  I rebooted the computer to make sure the settings stayed.

Fingers crossed, and nope, back to the same thing.  So, trying to figure out what was going on, I remembered I installed cpufreq and not cpufreqd on my other laptop.  So I removed cpufreqd, rebooted and everything is back to normal.

Now that I think of it, it must be because cpufreqd takes priority, so even though I set the policy in KPowerManager, cpufreqd checks its rules and says, nope, I’m this policy.

I guess I’m more of a control freak, so I want to control my CPUs and not having a daemon do it for me.

Dell M1330

August 19th, 2008

Finally got my new laptop.  A Dell M1330.

Removed Windows.

Had to boot into a live CD to remove hidden partition which is for MediaDirect.  The button which looks a “Home” button next to the power button.  Zero-ed out the whole drive…

$ dd if=/dev/zero of=/dev/sda bs=1024& pid=$!

To check status use:

$ sudo kill -USR1 $pid

After a few hours, we’re ready to install.

I like KDE, so I’m using Kubuntu.

After installing, and first boot into Kubuntu, I want to mount the iso image so I always have the discs. First install smbfs.

$ sudo apt-get install smbfs

Append fstab to mount network drive

//ip/sharename /path/to/mount smbfs username=xxx,password=xxx,rw,user,noauto,exec 0 0

Create the mount paths and change the ownership to myself so I don’t have to always do sudo.

sudo chown xxx.xxx /path/to/mount

Mount the path and transfer iso images.

Edit fstab to always mount iso images

/path/to/filename.iso /path/to/mount iso9660 ro,loop,auto,user 0 0

Add the mounted isos to apt source.  Edit /etc/apt/sources.list and add

deb file:///path/to/mount/ hardy main restricted

Only one user, so auto login

Go to “System Settings”, then “Advanced”, then “Login Manager”.  Click “Administrator Mode” and enter password.  Go to “Convenience” and check “Enable Auto-Login”.

This is specfic to M1330.  We must blacklist the driver video, this fixes with brightness being issued more than once when pushed.  Edit /etc/modprobe.d/blacklist

Change the video drivers to use “intel”.  It’s currently as “vesa”, but I want “intel”.  We don’t need to install 915resolution.  But when changing the drivers, we must select the specific monitor and say it is widescreen.

Go to “System Settings”, then “Monitor and Display”.  Click on “Administrator Mode” and type password.  Click on “Hardware” and push “Configure” for “Graphic card: VESA”.  Choose “intel” from the “driver” section.  Then click on “Configure” for “Monitor”.  Select “LCD panel 1280×800″ from “Generic” and make sure the “Image Format” is widescreen.

I like the console font for Konsole.  So lets install the console bitmap font.

$ sudo dpkg-reconfigure fontconfig-config
$ fc-cache -f -v ~/.fonts

After all this… reboot the laptop to take changes.

 I like gkrellm, so install it.

$ sudo apt-get install gkrellm

A new way of setting up the fan

http://ubuntuforums.org/showpost.php?p=4069092&postcount=6

 For some reason, the sound didn’t work… or it was muted.  So, go into right click on KMix, and select “Select Master Channel”, then select “PCM”.

http://ubuntuforums.org/showpost.php?p=5407780&postcount=8