Wednesday Apr 07, 2010

JSR 292 SPARC C1 and C2 support

I just pushed the SPARC C1 and C2 patches to support JSR 292 to the MLVM repository.  I've tested both thoroughly with JRuby's tests and benchmarks and both work pretty good.  Although I know of one bug in C1 this can be treated as the final versions and I'll start the first review round soon to get them into JDK 7 builds.

Friday Oct 02, 2009

Compiz and the Meta key in Emacs

When I switched back to OpenSolaris I wanted to use Compiz instead of Metacity to have at least some eye candy.  After switching to Compiz I noticed that the Meta key is not working in Emacs.  Since it worked in the "Normal Visual Effects" mode I was sure it's related to one of the Compiz plugins that was turned on by default in the "Custom" mode.

After some trial and error I found out that the "Group and Tab Windows" in the "Window Management" section is the bugger.  It uses a couple of <Mod4> key bindings and one of them is <Mod4>x.

Disabling that plugin makes M-x work again in Emacs.

Back to OpenSolaris (and DBX)

A few months ago I got a new laptop (unibody MacBook Pro) and I decided to stay with Mac OS X because of two main reasons: Broadcom WiFi and the touchpad.  Everything looked very slick and worked, obviously, out-of-the-box.  A perfect OS for private use.

But developing on that OS is a pain in the...  Apple's GDB drives me nuts!  It was crashing every now and then and was 95% of the time not able to call simple C++ instance methods.  Completely useless!!!

I filed a few bugs in Apple's Radar and tried to get the FSF guys to support Darwin in their GDB.  Some help in both cases, but nothing I could really use.

So, yesterday I decided to bite the bullet, install OpenSolaris again, use NDIS Wrapper for the Broadcom WiFi and to give the xorg-input-synaptics package of SFE a try for the touchpad.  The first one is working flawlessly, but only in 32-bit mode.  That means I can't test 64-bit HotSpot locally.  Well, I can live with that for some time.  I didn't have time to try the second one yet but I hope it works.

Glad to be back.

Friday Jul 03, 2009

Turning off format=flowed in Thunderbird

I just noticed that I'm sending emails with format=flowed in Thunderbird, which is not intentional.  A quick search revealed that both sending and displaying emails in flowed format can be turned off. Just change the following preferences to:

mailnews.display.disable_format_flowed_support = true
mailnews.send_plaintext_flowed = false

Better.

Friday Apr 17, 2009

A lot of changes need a lot of testing

I'm still working on adding an AddressLiteral class on SPARC (6822110) to actually finish the load shortening optimizations (6814842) and to remove useless I2L conversions (5057225).  But 6822110 became really huge and it needs a lot of testing.  I hope I can push it next week.

Sunday Mar 01, 2009

Skype on Solaris

[It almost took me a full day to get it working, so I will write down what I have done to get there.]

Actually I wanted to use Ekiga, but it does not work very well in OpenSolaris and not many "normal" (reads: non-geek) people use such clients.  And I wanted to reach some of my "normal" friends, which almost all are using Windows and most possibly Skype.

Maybe there will be a native OpenSolaris port of Skype someday, but for now we have to go different ways.

You can use the "seamless mode" from VirtualBox to run Skype on Windows.  Feature-wise this is probably the best solution, but you need to install Windows (not an option for me).  And I'm not 100% sure that sound will work in VirtualBox as it always complained about problems opening some PCM devices.

Instead of using Windows  you could use Ubuntu to run Skype and there is the possibility of transferring the install into a BrandZ Linux zone.  And that's what I wanted to do.

First of all I tried the CentOS 3 image from here, but it's too old to run a recent Skype and it is really hard to find older versions on the web (well, I found one but I couldn't get it working).

Then I tried to install Ubuntu 8.04 and CentOS 5 in VirtualBox, but both was so slow that I canceled that and searched for CentOS image tar's instead.  Fortunately I found this site where you can download CentOS 4 and 5 images as tar files.

So I installed CentOS 5 in a zone and that worked perfectly.  But when I wanted to start Skype I got this error.  Seems like it's a known problem and not related to zones.

Then CentOS 4... yeah... GCC C++ ABI problems.  Skype wants 3.4.4, but CentOS only has 3.4.3.

So... what else is left?  Debian.  And I wanted to get it running in a zone...

I downloaded a businesscard install image, because it's the smallest one (32M), and installed the smallest possible system in VirtualBox.  That install was actually very fast.  Then got Skype for Debian, scp'ed it into the VirtualBox, installed all required packages (don't forget xbase-clients for SSH X11 forwarding), tar'ed up the whole root filesystem, scp'ed the image back to the native system and installed it into a zone.  The zone install does not work out-of-the-box, obviously Debian is not RHEL or CentOS, so I hacked it a bit.

Execute the following commands in VirtualBox before you tar up the whole filesystem:

$ mkdir /etc/sysconfig
$ mkdir /etc/rc.d
$ touch /etc/rc.d/rc.sysinit

and the zone install will be successful.

[I have to add here that the Debian zone does not boot properly (try zlogin -C), so it would be better to get it working in CentOS 5, but that doesn't really matter.  Log into the zone with zlogin and start the SSH daemon.]

Then I logged into the zone via SSH (only root works, as can be read here too) and started Skype...

WOOHOO!

It came up and signed in successfully!  Chat worked, calls didn't.

This is because BrandZ only maps OSS and the Skype Debian version uses ALSA. But hey, that last hurdle must be cleared too, right?

So, simply download the static OSS version of Skype and use that one...

Voila!  Skype calls on OpenSolaris!

Easy, wasn't it?

About

Random posts from a HotSpot engineer.

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today