RAZR v3c disables ring style selection when closed

December 11th, 2006

Edit January 7: See bottom of post.

Every person I’ve talked to with a RAZR seems to have this problem, and nobody has known how to fix it. You know what I’m talking about! You put the phone on ‘vibrate’ and stick it in your pocket, confident that when that important phone call comes in you’ll know. 3 hours pass by and nothing happens, and you pull the phone out of your pocket only to find out that it’s now on ’silent’ and you have 5 missed calls! WTF!

Well, here’s a really easy and 99% functional solution. It’s so simple it pains me that I never poked into the menus far enough to find it, but alas I was too lazy to figure out the default unlock code. As it turns out, you can lock any individual application to use require an unlock code before use. Enabling this feature for the ‘ringtone selection’ application will make it ask for your passcode every time that stupid side button gets pressed in your pocket. Since the phone is closed… no more accidental switches to silent!

On my phone, the default unlock code was 1234. I’ve also read it can be the last four digits of your phone number or 0000, so try all three. To disable the feature, open the phone. Click the center (”menu”?) button. Select Settings. Select 4. Security. Select ‘Lock Application’. At this point it will ask for your unlock code. Bang stuff in here starting with 1234 until you get in. If you can’t, get your provider to fix it for you. Scroll down the list to ‘Ring Styles’ and use the right arrow to change from ‘Unlocked’ to ‘Locked’. Voila!

Bear in mind you will have to enter your unlock code to change the ring style now, even if the phone is open, so it isn’t really the ideal fix. Resetting the unlock code to 0000 makes this just a bit less painful. You can reset your unlock code using the ‘New Passwords’ selection under 4. Security and selecting ‘Unlock Code’.

For those who care, here’s where I found this info [thread about v3c ringstyle lock](http://www.howardforums.com/showthread.php?t=843301) and
[thread about v3c unlock codes](http://www.wifi-forum.com/wf/showthread.php?p=377669). As a point of reference, I have an [Alltel](http://www.alltel.com) v3c running bone stock, but supposedly most (all?) RAZR variants are susceptible to this trick.

For those who don’t like keying in the unlock code to change ring styles, I’d love to hear of a way to just allow me to remap those outside buttons to something more useful or nothing at all, but haven’t found anything so far. Prove me wrong!

Edit January 2, 2007:
So I found the fly in the ointment. The problem is that the phone pops up the ‘enter unlock code’ screen whenever you bump a button, and along with it turns on the backlight! and never turns it off! Nice work Motorola =/.

WatchGuard Core x750e first impressions

December 8th, 2006

So I finally got my WatchGuard eval unit. 2 months after I would have liked, but c’est la vie, I guess they had some employee turnover over there and my box got lost in the shuffle. Upon opening the box, everything looks very nice, and yes, its all red, and very cute looking. Turning it on, however, the LCD screen just says ‘Booting OS …’ and never makes it farther… Not a great sign.

There is, however a yellow sticker on top that says I have to install Fireware Appliance Software on the device, and that I must hold down the up arrow on the front while turning it on. This I can do. So I do. And the box just says ‘Booting OS …’ and never makes it further. So it’s time to get all sorta of ninja-hacker-style on it’s ass.

I plug in the included serial console cable, install [tutty](http://putty.dwalin.ru/) on my newly vistafied workstation and fiddle around until I determine that the watchguard is using 115200,n,8,1. This is what I see:


Press any key to continue.

So good little monkey that I am, I smash the spacebar a few times, and get this


 +-------------------------------------------------------------------------+
 | Red Hat Linux (2.4.26-wgrd)                                             |
 |                                                                         |
 |                                                                         |
 |                                                                         |
 |                                                                         |
 |                                                                         |
 |                                                                         |
 |                                                                         |
 |                                                                         |
 |                                                                         |
 |                                                                         |
 |                                                                         |
 +-------------------------------------------------------------------------+
      Use the ^ and v keys to select which entry is highlighted.
      Press enter to boot the selected OS, 'e' to edit the
      commands before booting, 'a' to modify the kernel arguments
      before booting, or 'c' for a command-line.

    GRUB  version 0.93  (638K lower / 515072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible

Ok, so they're running a redhat variant. Well, I knew this was a linux based product, and I know redhat, so in general this is good news. 15 seconds later, grub times out and I see this:


  Booting 'Red Hat Linux (2.4.26-wgrd)'

root (hd0,2)
 Filesystem type is ext2fs, partition type 0x83
kernel /boot/bzImage ro root=/dev/hda3 console=ttyS0,115200 ramdisk_size=256000
 ide=nodma

Error 15: File not found

Press any key to continue...

Uh ok. So this isn't such great news. Getting really fancy and setting the boot loader to boot (hd0,0)/bzImage gives me this:

Pretty standard linux boot spam, but it looks like perhaps we've got a bad CF disk, given the seek errors. The real kicker is that punching the serial number from the back of the box into the 'activate online' page of the WatchGuard website is utterly unsuccessful as well.

In its defense, the red box is at least as good looking as I imagined it, and it IS exactly the solid state Linux 1u rackmount with a lot of Ethernet interfaces i've been looking for. Unfortunately, $3000 + service contracts is an awful lot of money for a cute box with software that doesn't work!

Update 2006-12-10

I spent too much of my weekend poking around with this and posting on the [WatchGuard forum](http://forum.watchguard.com), but I'm pretty convinced that this machine is just DOA. I can't get link lights on any of the Ethernet interfaces (sort of a show stopper for a firewall), and in addition the compact flash card doesn't seem to be loaded with the rescue image, let alone a full firewall OS. I was at least able to get onto the livesecurity website, turns out I'd transposed two digits of the serial number while reading it leaning over the firewall, and caught it when I recopied it from the box.

Being able to get on the website means I was able to get the software, and found out that it requires an explorer extension to complete the installer, which means it won't finish installing on xp64 or vista64. None of it seemed to want to run on vista either, but putting it into compatability mode seems to bring it to the same point as xp, meaning it won't finish installing because I can't activate the toolbar in a way it can find it since it installs into 32 bit explorer. The good news is that the important parts of the install do seem to have completed, at least all the files are on the disk. I was able to try to use fbxinstall to reinstall my CF image, but apparently that does'nt work on the e-series boxes, so I don't know if it failed due to bum hardware or not. Maybe its just me, but it seems making your installer dependent on activating a shell extension, for a firewall product of all things, seems like some dumb decision making.

I've opened a support ticket and started some dialog, but I'm not holding a lot of hope that I'll actually get a replacement unit in here in time to have it usable over the holidays. The responses I've gotten to my post on the forums indicate that the general user base of these boxes, 'experts' included, doesn't really have a clue what the underpinnings of the system look like, which is I guess for the most part a good thing. It does, however, tend to reduce the usefulness of their responses to my questions. DOA units also seems to be outside the radar of the average forum denizen, so I'm hoping my box is an isolated case. It does start making HA failover look pretty nice though.

Update 2006-12-11

I got a call from a 'fixer' at WatchGuard who has arranged for me to get a new unit overnighted. He concurs with my assessment that the unit is very much DoA. Kudo's to my sales guy and watchguard for stepping up on this one, I'm awaiting a functional unit with baited breath!

Cisco 7960 buggy SIP firmware rev. 7.5

November 5th, 2006

I’ve been getting intermittent complaints recently that our Cisco 7960 phones are refusing to work and displaying an ‘XML Parse Error’. In inability to transfer calls seems also to be part of the equation. Well, I’ve never had the problem myself and didn’t see anything necessarily wrong with the phones or the setup so I’ve been ignoring it for the most part since power cycling the phone seems to resolve the problem for a while. Recently however we have changed our incoming caller pattern to go through a receptionist in all cases, and she’s been having the problem very consistently. Well, it turns out the problem is a deficiency in Cisco’s SIP implementation. Lots more details are available at , but apparently downgrading to revision 7.4 solves the problem. I have no idea if the bug persists in newer (8.x) versions or not.

Fedora Core 5 ATI driver with theater_out tv support

November 5th, 2006

I have a radeon 9200 video card in my HTPC, since when I bought it all the HTPC enthusiasts over at seemed to think ATI was better for tv output. I also wanted the possibility of using a component adapter cable (which I never bought). For years I’ve been happily using the ATI proprietary FGLRX drivers under linux to drive my Toshiba 27″ TV with an svideo cable. Alas, all good things come to an end. Xorg 7.0 came along with my Fedora Core 5 and MythTV 0.20 upgrade, and with it came FGLRX breakage. Or to be precise, along with it came an FGLRX upgrade.

After entirely too much digging, I discovered that versions of FGLRX greater than 0.20 have broken XV scaling. No, it doesn’t appear to be documented anywhere at ATI, but what happens is the video only uses part of the screen and appears to be clipped out of the top left corner of the frame. I fought with it for an hour or two thinking I was just drawing offscreen or something, but eventually realized it wasn’t happening.

Finally I gave up and just left XV disabled entirely, which seems to be ok for recorded TV, but DVD playback is noticeably choppy. In both cases CPU usage is well over 50% (most of it being eaten by the X server) on my Athlon XP 2500+, which is ludicrous.

In any case, the poor performance drove me to look for other options. The default ati driver included with x.org unfortunately doesn’t include any tv output support, but the gatos driver folks do support it, so I built up a new version of the latest ATI driver with their patch applied and lo and behold it works! Kudo’s to the fedora x.org packagers for splitting out the drivers so nicely. Here’s a patch against the most recent fc5 ati driver specfile.


--- SPECS/xorg-x11-drv-ati.spec 2006-04-25 21:22:36.000000000 -0400
+++ SPECS/xorg-x11-drv-ati-theater_out.spec     2006-11-05 15:56:11.000000000 -0500
@@ -13,7 +13,7 @@
 Summary:   Xorg X11 ati video driver
 Name:      xorg-x11-drv-ati
 Version:   6.5.8.0
-Release:   1
+Release:   1.theater_out
 URL:       http://www.x.org
 License:   MIT/X11
 Group:     User Interface/X Hardware Support
@@ -24,6 +24,8 @@
 Source2:   r128.xinf
 Source3:   radeon.xinf
 Patch0:    xorg-x11-drv-ati-6.5.7.3-radeon-metamodes-SEGV-fix.patch
+#Patch1:          xorg7-6.5.8.0-tv_output.patch.gz
+Patch1:           http://megahurts.dk/rune/stuff/xorg7-6.5.8.0-tv_output.patch.gz

 ExclusiveArch: %{ix86} x86_64 ia64 ppc alpha sparc sparc64

@@ -42,6 +44,7 @@
 %prep
 %setup -q -n %{tarball}-%{version}
 #%patch0 -p2 -b .radeon-metamodes-SEGV-fix
+%patch1 -p1 -b .theater_out

 %build
 %configure --disable-static
@@ -79,12 +82,16 @@
 %{moduledir}/multimedia/theatre200_drv.so
 %{moduledir}/multimedia/theatre_detect_drv.so
 %{moduledir}/multimedia/theatre_drv.so
+%{moduledir}/multimedia/theater_out_drv.so
 #%dir %{_mandir}/man4x
 %{_mandir}/man4/ati.4*
 %{_mandir}/man4/r128.4*
 %{_mandir}/man4/radeon.4*

 %changelog
+* Sat Nov 04 2006 Erik LaBianca  6.5.8.0-1.theater_out
+- Added gatos theater out patch
+
 * Tue Apr 25 2006 Adam Jackson  6.5.8.0-1
 - Updated to stable branch release from upstream.

The relevant sections of the xorg.conf file needed to make this go are here:


Section "Monitor"
        Option "DPMS"
        HorizSync    30.0 - 40.0
        VertRefresh  60
        Identifier   "Monitor0"
EndSection

Section "Device"
        Driver      "ati"
        Option      "IgnoreEDID" "True"
        Option      "TVOutput" "NTSC"
        Option      "MonitorLayout" "AUTO, NONE"
        Identifier  "ATI Graphics Adapter"
        BusID       "PCI:3:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "ATI Graphics Adapter"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes    "800x600"
        EndSubSection
EndSection

This all does indeed work, and reasonably well. My picture isn’t perfectly centered, and the UI screens in Myth have a bit of flicker, but it does work, and is even open source, so I’m pretty happy with the change. I’m not sure of the licensing implications of actually distributing an x.org binary with a gpl patch included, so I’m not posting the RPMS here directly.

IVTV Autoloading on Fedora Core 5

November 5th, 2006

My MythTV system has been in place for several years now, and has seen many versions of Fedora. Ensuring the IVTV modules were loaded correctly after a system restart has always been a bit of a black art, however, and with Fedora Core 5 this seems to be no less of an exception. However, I think I have got it partially figured out, so here it is.

First things first. Modern 2.6 linux kernels apparently fully support hardware autodetection. I understand that to mean you aren’t support to need to manually (or in a script) modprobe ivtv nor should you have to explicitly put any configuration into modprobe.conf. If your IVTV kernel modules are installed correctly, it’s supposed to be automatically detected, and then udev is supposed to create the relevant devices for you. This is working for me, however changing the permissions on video devices in /etc/udev/rules.d/50-udev.rules isn’t working. I tried to use this line to do it, but it appears to be ignored in general.


KERNEL=="video*",               MODE="0666"

The default is 0660 and I get this:


crw------- 1 mythtv root 81, 0 Nov  4 15:16 /dev/video0

My guess is that ivtv doesn’t play nice with udev, or I just don’t know enough about udev to use it effectively. I did find some good udev documentation so perhaps I’ll figure it out eventually.

Regardless, on my frontend system I also need my hauppauge pvr-250 remove receiver to work, and this is where things got sticky. I had some settings in place for Fedora Core 3 from Jarrod’s guide trying to preload lirc-i2c before loading ivtv which were hanging up on startup, so I had commented them out. That was allowing ivtv to load, but my remote didn’t work. A quick hack to those lines fixed the problem, however. It appears as if nowadays ivtv wants to load first, and then have lirc_i2c stuff in on top, so this seems to work well.


cat > /etc/modprobe.d/ivtv.conf <<-EOF
install ivtv /sbin/modprobe --first-time --ignore-install ivtv; \
    { /sbin/modprobe lirc_dev; /sbin/modprobe lirc_i2c; }
EOF

Oracle Unbreakable Linux?

November 3rd, 2006

I’d heard in passing that Larry Ellison announced Oracle was going to start selling Red Hat Linux support, and that Red Hat stock and dropped like 43% in a day because of it, but the gravity of the situation never sank in. Then I checked out their FAQ and things became more clear. In my opinion, Red Hat is really going to have to pony up or risk losing a lot of business. Why? Pricing! Oracle is going to give out free binary downloads (why oh why didn’t Red Hat do that?) and their basic ‘just updates’ service is $99/year for unlimited cpu’s. They’re also discounting their Basic Support to $199 per year for up to 2 cpu’s, which appears to entail 24×7 phone support. I’m not sure exactly what premier support is, and what ‘back ports of fixes to earlier releases’ entails, so I’ll refrain from comment on that but suffice it to say that given Red Hat doesn’t return my calls when I try to purchase their product, let alone actually get support, I’m pretty interested in an alternative.

In any case, $100 bucks a year and the base platform for free is pretty compelling pricing. Giving out the binaries is a huge step. Regardless of how great you think open source is, nobody can use it without binaries. Refusing to give out ‘real’ binaries without a support contract is assinine business in my opinion. How do you expect to get people hooked on your product if they can’t even try it out for free? And we wonder why Ubuntu is taking over the linux hobbyist space?

Does it really have to be so hard?

October 18th, 2006

Fair warning, rant incoming. I’m working on a server development project, which will get deployed to CentOS 3 or possibly 4. Since I don’t currently have a spare machine that’s fast enough and able to blown away, I revived my linux dual boot on my main development workstation (2x opteron 242, tyan thunder k8w). I initially went with Fedora Core 5, since I figured I could easily enough rebuild using mock for centos4 and centos3. Except I’m getting my butt kicked by the ‘udev hangs’ bug. No combination of kernel versions, acpi=off, noapic, udevtimout, selinux=disabled, apm=off or bios changes seems to make the machine boot consistently, let alone assign my ethernet cards consistently.

Since I have work to get done, I went ahead and installed CentOS 4.4, which luckily did install and with the addition of the Nvidia binary drivers is running my dual screens beautifully and stably. Now all I need in order to work happily is music! Unfortunately, most of said music is in mp3 format, and redhat doesn’t supply an mp3 decoding library, due to licensing issues. I understand the nature of the situation and don’t fault redhat for this, but nonetheless its really annoying.

There is no livna repository for rhel/centos, and trying to build the repos for fc3 or fc5 tends to introduce all sorts of dependency problems. And besides, I’m not getting paid to rebuild mp3 players, I have real work to do. I just want to listen to mp3s! Luckily for me theres a guy out there by the name of Dag Wieers who maintains a very nice set of RPMS for fedora AND rhel distributions, and his xmms package compiles cleanly with dependencies I’ve already got, saving me from working in misery for another few days.

However, all of this points to a major problem in the Linux world. As much as we love to hate it, Microsoft absolutely understands binary application compatibility. For a given version of windows, application developers know exactly what library versions are guaranteed to be available, and how to include the rest of their dependencies in a safe way. Standard practice is to include the libraries that are needed inline with the application. Windows provides reasonably standard interfaces allowing the application register itself as a type handler and to add desktop shortcuts, quicklaunch icons or start menu entries. Every windows application developer writes one or perhaps two versions of application foo and makes up a nice little installer, and after a few iterations has an installer that works on windows, period. Sure it makes the average download kinda big, but honestly in the days of free after rebate spindles of CD-ROM’s, broadband for $15/mo, and 250gb hard drives for under $100, who cares? My time is worth a WHOLE lot more than a few extra megs used up on my drive.

Compare that to linux. Say I found out about this great new mp3 player. I go to their website, and see a source tarball. I try to build the source tarball and if I’m lucky the’ll have a competent ./configure script which will find out what dependencies I’m missing and tell me about them. At that point I’m looking at a significant period of time trying to find prebuilt versions of those build dependencies, or rebuilding my entire system from scratch. If I’m lucky, they’ll have an pre-built rpm package. However, 9/10 times that rpm is going to have a whole slew of unmet dependencies and I’ll have to spend several ours ferreting them out and downloading them. If I’m really unlucky, the application will depend on a whole slew of CPAN libraries, some of which will come with my OS, and some of which will require a perl version not included with my distro. I can understand needing to integrate directly with the OS when we’re talking about truly system level stuff, but 99% of the time thats not what I’m talking about. An mp3 player does NOT need to know what kernel version you have, nor does it generally need to know much of anything about your system. It doesn’t need to know what version of python, perl, or php is included with your distribution, nor what extensions those libraries include.

Linux distributions absolutely must get away from the ‘distribution contains every application’ mentality. Right now, if an application doesn’t come integrated with an additional application, or have a version packaged specifically for that distribution, life sucks for the user. Life also sucks for the application developer, who would like to see his software able to be used by everybody, but can’t, because he uses debian and doesn’t know how to package for redhat.

The answer to this, of course, is the Linux Standards Base (LSB). It describes a set of ABI’s that the OS should guarantee, and defines how an application developer can package up the rest of their dependencies so their application can run on any system providing LSB support. Every major linux distro out there supports LSB applications, except I don’t see a single open source application providing LSB binary downloads!

Why? I’m not positive to be honest, but I’m willing to take a guess. It’s too dang hard to build for. I’ve not done a lot of research on it yet, but I just haven’t seen an easy to use buildroot for LSB on redhat. Nor have I seen an easy to follow howto for building LSB applications. In addition, it’s probably just sorta inconvienient for developers, who pick a disitribution they like and just run with it, following the dependencies.

In our zealotry for open source, we continue to paint ourselves into a binary incompatibility corner that is simply unsustainable. The OS (distribution) absolutely needs to be able to evolve, or not evolve, as it needs. Applications need to be able to evolve (or not evolve) independantly. If I want to listen to be able to mp3’s, I should be able to choose from a variety of mp3 players (the code is out there!) and use them easily. That means we need real binary application compatibility, just like consumer OS’s. If I want to run a bleeding edge browser on my otherwise stable machine, thats my prerogative, and it shouldn’t require me to invest a day resolving all the requisite dependencies and building the thing from scratch. Regardless of what Gentoo folk will try to convince you, rebuilding everything from scratch and customized is not a sustainable way to run an operating system. It takes too long, and is too complicated to ever allow mainsteam users to do it, or even people who just have better things to do!

Burning DVD ISO images on Linux

October 13th, 2006

So I had a great idea… Why don’t I buy a DVD burner and then start using DVD’s to install software, make backups, etc, etc. Well… it was a nice idea, but then I had another great idea… Why don’t I run windows XP 64 since I have an AMD Opteron system! Turns out none of the wonderful bundled DVD burning software will even install on XP64, let alone run, so there it sat.

I’d always used the win32 build cdrecord to burn iso images under windows anyway, since the [ISO Recorder Powertoy](http://isorecorder.alexfeinman.com/isorecorder.htm) doesn’t work if windows doesn’t have a driver for your CD burner, and I’d been stuck in that situation a few times. I figured cdrecord would work the same for burning DVD’s. Well, aside from the possible licensing issues, at least with my drive, it doesn’t. For reference, my drive is this:

hdd: _NEC DVD_RW ND-3500AG, ATAPI CD/DVD-ROM drive

I saw a bunch of documents out on the web saying that cdrecord was able to burn DVD’s, just like a cd image using `cdrecord -dao `. I tried that. Several times. Every DVD was a coaster. Last time I had linux installed, I tried it under linux too, but since it was just a passing fancy I didn’t dig into it.

Well yesterday I committed to running linux on my desktop for a while to get a project finished since I don’t have any other linux development suitable machines available currently. I needed a DVD burned, and when I tried to have Dave burn one for me on his windows machine, it didn’t work either! Something was up! I tried it using the `cdrecord`, and made another coaster. But this time I noticed something:

Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : '_NEC    '
Identifikation : 'DVD_RW ND-3500AG'
Revision       : '2.18'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
cdrecord: Found DVD media: using cdr_mdvd.
Using Session At Once (SAO) for DVD mode.
Using Session At Once (SAO) for DVD mode.
Using Session At Once (SAO) for DVD mode.
Using generic SCSI-3/mmc DVD-R(W) driver (mmc_mdvd).
Driver flags   : SWABAUDIO BURNFREE
Supported modes: PACKET SAO
scsi_set_streaming
Speed set to 8467 KB/s
Starting to write CD/DVD at speed   6.0 in dummy SAO mode for single session.

Aha! Theres two types of DVDR media, and I have +R. This is a problem. Well, the cdrecord manpage claims autodetection support for plusr devices and media, but when I tried to force a +R driver…

erik@bambi ~]$ cdrecord  -dao driver=mmc_dvdplus dev=/dev/hdd /tmp/sol-nv-b49-x86-dvd.iso
Illegal driver type 'mmc_dvdplus'.

So therein lies the problem. Well, the good news is that I found the solution. A little bit of googling taught me about a great new program, growisofs (http://fy.chalmers.se/~appro/linux/DVD+RW/). And it’s even included in FC5, in the dvd+rw-tools package! Well, don’t ask me why I didn’t know this before, but growisofs works like a charm.

[erik@bambi ~]$ growisofs --Z /dev/hdd=/tmp/sol-nv-b49-x86-dvd.iso
Executing 'builtin_dd if=/tmp/sol-nv-b49-x86-dvd.iso of=/dev/hdd obs=32k seek=0'

To boot, it even displays progress information AND my disc was readable finally!

Fedora/CentOS with a Microsoft Laser Mouse 6000

October 13th, 2006

So I’m working on some linux software and am running linux on my desktop. One of my major pet peeves every time I go back to a linux desktop is that out of the box my button 4 and 5 don’t work correctly under firefox. Here’s the fix.

Under Fedora Core 5, use this:


cat > /etc/X11/xinit/xinitrc.d/mouse.sh <<-EOF
#!/bin/sh
# /etc/X11/xinit/xinitrc.d/mouse.sh
# Required for the configuration of a 5-button mouse
xmodmap -e "pointer = 1 2 3 8 9 4 5 6 7 10 11"
EOF
chmod a+x /etc/X11/xinit/xinitrc.d/mouse.sh

Under CentOS 4 / RHEL4, use this:


cat > /etc/X11/xinit/xinitrc.d/mouse.sh <<-EOF "
#!/bin/sh
# /etc/X11/xinit/xinitrc.d/mouse.sh
# Required for the configuration of a 5-button mouse
xmodmap -e "pointer = 1 2 3 6 7 4 5 "
EOF
chmod a+x /etc/X11/xinit/xinitrc.d/mouse.sh

And then use the following for the mouse inputdevice:


Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "ExplorerPS/2"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "6 7"
        Option      "Buttons"   "7"
        Option      "Emulate3Buttons" "no"
EndSection


Solaris BrandZ Zones

October 12th, 2006

Sun has really been pushing innovation with Solaris recently, and since it’s now freely available and open sourced, what better time to give it a test drive? With the Solaris Express Nevada 49 release (get it from http://www.opensolaris.org/os/downloads/on/ and click the CD Version or DVD Version links under step 3b) Sun has officially included their BrandZ extension to Solaris containers. BrandZ allows containers to be ‘Branded’, the upshot of it is that you can run an entire system under a lxrun-like technology.

Currently they fully support running CentOS 3 in a zone, which conveniently enough is what all our production services still run on. See http://www.opensolaris.org/os/community/brandz/install/ for the official howto guide. Here’s how to I set up a CentOS 3 development system for testing on my SNV49 machine:


#zonecfg -z centos3-dev-2

centos3-dev-2: No such zone configured
Use 'create' to begin configuring a new zone.

zonecfg:centos3-dev-2> create -t SUNWlx
zonecfg:centos3-dev-2> set zonepath=/tank/centos3-dev-2
zonecfg:centos3-dev-2> add net
zonecfg:centos3-dev-2:net> set address=192.168.2.31/24
zonecfg:centos3-dev-2:net> set physical=e1000g0
zonecfg:centos3-dev-2:net> end
zonecfg:centos3-dev-2> commit
zonecfg:centos3-dev-2> exit



#zoneadm -z centos3-dev-2 install -d /tank/public/centos_fs_image.tar.bz2


cannot create ZFS dataset tank/centos3-dev-2: dataset already exists
Installing zone 'centos3-dev-2' at root directory '/tank/centos3-dev-2'
from archive '/tank/public/centos_fs_image.tar.bz2'

This process may take several minutes.