solaris

How to know each solaris zone is occupying how much disk space?

IF i do a df command. I can only see in the solaris server how much diskspace is being used up. But i want to know how much diskspace a particular solaris zone is occupying ...

How to compile RDiscount on Solaris?

Hi, I have a few Solaris 10 boxes and I'd like to have RDiscount running there. (They are Joyent accelerators, which have a somewhat customized, BSD-ish, userland, in case it matters.) I'm aware of Maruku, rpeg-markdown and other ruby alternatives to BlueCloth, but initially I'd like to go with RDiscount. Here's what I get when trying...

Solaris pstack output: what does "SYS#0" mean?

I encountered "SYS#0" at the top of a stack and cannot find any documentation as to what that means. Compiler: g++ OS: Solaris 9 Arch: SPARC Memory Manager libhoard_32.so from Hoard 3.5.1 We used "gcore" to generate a core file. Looking at the output of running the "pstack" command against the core file, the only thread that was doin...

How can I boot OpenSolaris x86 into single-user mode?

Modern OpenSolaris is configured to disallow root logins during normal boots. It is only possible in single-user mode. However, many instructions online simply say to add "-s" to the end of the default grub boot arguments, which leaves a graphical boot progress display in an endless loop and never enters the single-user mode console. ...

Solaris linker equivalent to the GNU LD --export-dynamic flag

Like the question says: We are building on Linux using the GNU linker, and on Solaris using the solaris ld. GNU ld supports the --export-dynamic flag, which: When creating a dynamically linked executable, add all symbols to the dynamic symbol table. The dynamic symbol table is the set of symbols which are visible from dynam...

How can a shell script know that it runs in a Solaris zone?

A shell script installs and configures some services and applications in a Solaris instance. One of these services is NTP - but NTP cannot run in a non-global zone (well it can, but xntpd fails when it tries to adjust the clock; instead the zone inherits the time from the global zone). How can a shell script tell that it is indeed runn...

Where to set LD_LIBRARY_PATH on solaris?

What is the best place to set up application specific LD _LIBRARY _PATH variable on solaris? How does LD_LIBRARY_PATH variable work? We currently set it up in .kshrc, but different applications need different versions of messaging framework, but these applications run under the same use and hence they would need different LD_LIB...

How can you configure Solaris 9 to automatically start Synergy or an X-dependent application at startup?

How does one configure a Solaris 9 machine to automatically start Synergy(synergy2.sourceforge.net) or any other X-dependent application at startup? ...

Solaris 9 projects (resource management)

I'm trying to get projects working in solaris 9 (SPARC), so I can limit some users memory usage. From what I've read, and from what I recall in solaris 10, I should be able to just Create a group (prodsupt), and make this the users default group Create a project called "group.prodsupt" limit the resource in the group. I've done this...

Solaris GDB: Howto pause execution?

Hello I am using GDB to debug a closed source program on Solaris 10 x86. I attach gdb to the program and continue execution, however when I want to pause execution later to examine some memory I cant. When I press CTRL-C it only prints ^C instead of pausing the program and dropping me to a (gdb) prompt. bash-3.00# gdb --pid=1521 GNU g...

Force base_profile to run

When I login to a sun box: SunOS domain.com 5.8 Generic_117350-57 sun4u sparc SUNW,Sun-Fire-V240 I start in the sh shell: SHELL=/bin/sh I type bash to start a bash shell, then have to type . .bash_profile to load my profile. Is there a way it can be set to automatically load the profile? ...

Best way for Java to write/read file on a separate machine?

We have a Java application server running on Sun Solaris. We now need to be able to write files and read files to/from a separate machine, which is running WindowsXP. These 2 machines are administered by 2 separate groups within the same firewall. If it is easier, we could use Java to write the file to Solaris and then use some 3rd pa...

ssh with compat nis on solaris 10

Hello, i have a working solaris 10 server with ssh and NIS using the following configuration: # /etc/nsswitch.conf passwd: files nis group: files nis and # /etc/ssh/sshd_config Protocol 2 Port 22 ListenAddress :: AllowTcpForwarding no GatewayPorts no X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost yes PrintMo...

copy the symbolic link in Solaris

I am trying to copy a link on Solaris OS but find that it does not simply copy the link instead copies the whole contents of the directory/file the link is poinitng to? Which is not in other OSes like AIX,HP-UX,Linux. Is this a normal behaviour of Solaris OS? ...

How to determine the IP address of a Solaris system

What command do I want to issue when I want to know the IP address of the Solaris machine I'm logged onto? Thanks in advance for any suggestions. --James ...

Access SQL Server from Solaris

I found out about the freeTDS which can be used here, but there are doubts about its stability in the production environment. Is there any other way to interactive with MSSQL Server from Solaris besides using ODBC driver? ...

Mismatch between constructor definition and declaration

I had the following C++ code, where the argument to my constructor in the declaration had different constness than the definition of the constructor. //testClass.hpp class testClass { public: testClass(const int *x); }; //testClass.cpp testClass::testClass(const int * const x) {} I was able to compile this with no warnings usi...

How do I move/copy a symlink to a different folder as a symlink under Solaris?

It is an odd behaviour seen only on Solaris that when I try to copy a symbolic link with the "cp -R -P" command to some other folder with a different name, it copies the entire directory/file it's pointing to. For example: link -> dir cp -R -P link folder/new_link ...

Very slow open() (six seconds plus) on full UFS just starting to undergo a mass delete?

We have a UFS partition on solaris. The volume becomes full. We're still trying to write to it - and naturally open() returns -1 immediately. When a cronjob fires up which does a mass delete, it looks like open() doesn't return in a timely manner - it's taking at least six seconds, because that's how long before the watchdog kills the...

Which one of the major operating systems is best suited for a quick boot and startup of a Java application?

I created a Java application which is the only application active on a workstation. (Similar to a kiosk system) The problem is that the application has to be up and running as fast as possible after starting the computer. I'm wondering which one of the major operating systems can be configured to provide the shortest startup time? I'm...