If you have ever wanted to get the command line options that were passed to a running Solaris process, you might have noticed that the output of command line arguments from ps is truncated to 80 characters. Looking into /usr/include/sys/procfs.h will reveal the reason why! This is because of the restriction in struct psinfo. Here [...]
I had a previous post on how to turn on core files for set-UID, set-GID processes under Linux. Recently we ran into the same problem on Solaris. To turn on core files for set-id processes, use coreadm.
$ pfexec coreadm -e global-setid
Please keep in mind that these core files can have information that non-privileged user isn’t [...]
OpenSolaris was lacking virtual console for a while. This support was made available since build snv_124. However, due to various bugs, it is turned off by default. To enable virtual consoles, do the following.
$ pfexec svcadm enable vtdaemon
$ pfexec svcadm enable console-login:vt2
$ pfexec svcadm enable console-login:vt3
$ pfexec svcadm enable console-login:vt4
$ pfexec svcadm enable console-login:vt5
$ pfexec [...]
We were troubleshooting an interesting problem with GCC/gdb that caused gdb to report an argument passed by reference as if it was passed by value. In the process, I was digging up some DWARF information. Ever wondered what exactly gcc is adding to support the debuggers when you use ‘-g’ switch? Michael J. Eager has [...]
Editing big chunks of text in Firefox text area is a pain. I am using “It’s all Text” Firefox add-on to edit text from a text area in external editors like Emacs, Vim, etc. I have configured my add-on to use emacsclient. I use this heavily when I have to edit text in TWiki, Bugzilla, [...]
Update 2009-11-07: This issue is fixed in OpenSolaris build snv_126.
OpenSolaris dev repository update snv_116 introduced an XOrg bug that caused the mouse cursor to jump to the top left corner of the screen very frequently. Apparently, there is some floating point math issue is involved using MMX/SSE2 instructions. I was living with the workaround posted [...]
Recently, I had to install Mercurial on one of our Solaris 10 development machines without root access. The installation procedure was a little bit tricky. So, I thought it would be helpful to share the experience.
First, I downloaded Mercurial source and extracted it. This is a standard procedure for installing any package from source.
$ [...]
With the latest OpenSolaris 2009.06, maximizing windows managed by Metacity (GNOME) will maximize the windows across both screens. This is due to an issue that Metacity was trying to use a wrong Xinerama type. This issue is fixed in the mercurial repository. However, the fix was not on time to make it into the final [...]
One of the handy features in the latest Wordpress is the support to upgrade plugins in one click through the Wordpress administration interface. It needs FTP or FTPS access to the server where you have hosted your Wordpress installation. But turning on FTP for users (non-anonymous) is a bad idea. Using FTP involves transferring user [...]
Since OpenSolaris started using Gnome 2.24, I started getting loud system beeps those were produced on the PC speaker device that by-passes the audio device. Gnome uses kbd to generate this beep. This beep is so loud that it is really annoying. Also it hurts one’s ears when listening to music using a headset. The [...]
Recent Comments