Toolserver:Using Solaris

This page explains the differences between Solaris (as used on ), and the existing login server  that runs Linux. It is intended for people converting from Linux, but even if you're an experienced Solaris user, this page documents several Toolserver-specific things.

GNU userland
The Solaris userland (/usr/bin) is quite different to GNU/Linux. To make things easier, we provide the GNU userland as well, and the default $PATH puts the GNU utilities first. This means that most commands (such as 'ls') are the GNU versions, and identical to the Linux versions.

Sometimes, you might want to use the Solaris utilities instead; either because you prefer them, or you need Solaris-specific functionality that the GNU utilities don't provide. There are two ways to do this. If you want to use the Solaris userland permanently, just set $PATH in your shell rc file:

$ PATH=/usr/bin:$PATH

Alternatively, you can just specify the full path, e.g.

$ /usr/bin/id -p

The GNU userland includes "coreutils", "diffutils" and "findutils", as well as,   and. If you think any other utilities should be provided, file a request in JIRA.

cron
Solaris cron is different to the Vixie cron that Linux uses. It does not support "/" syntax or. Instead of /, you can write out the times explicitly, e.g.  for minutes becomes. For an  replacement, see job scheduling#Submitting long-running jobs.

According to this documentation, Solaris cron doesn't support  and requires defining   in order to use "~" in path names. A  file in your root directory and the use of   should mitigate these issues.

/bin/sh
Solaris  is not GNU Bash. If your script needs Bash, use  (this also works on Linux). If you need a strictly POSIX-compliant shell, use

Third-party software
Additional Toolserver-specific software is installed in. Usually you won't need to worry about this as it's included in the default $PATH, but if you need to know the location of a particular piece of software, see Solaris software.

Perl modules
If you have any locally installed Perl modules that use XS, they will have to be reinstalled on willow as the compiled code is architecture dependent.

Miscellaneous differences

 * man : instead of, use.
 * xterm-color: Don't use it, it doesn't work.
 * #! : on Solaris,  only accepts one argument.  this means that   will work, but   will not.
 * whereis : use

Enable delete key
.profile: "\e[3~": delete-char

Also useful: Ctrl+shift keys for word shifting: "\e[5C": forward-word "\e[5D": backward-word

Toolserver:Category:Documentation