Monday, May 31, 2010

Solaris - Useful commands

1. not on system console error messages

vi /etc/default/login
insert # before Console=/dev/console



2. Solaris 10 - enable NFS server

The NFS server service is dependent on a slew of other services. Manually enabling all of these services would be tedious. The svcadm command makes this simple with one command:

svcadm -v enable -r network/nfs/server

The -v option makes the command output verbose details about the services enabled. You can use the -t option (..enable -rt network…) to enable these services temporarily (so that they will not be automatically enabled when the system reboots). By default, enabling a service will enable it permanently (persistent across reboots until it is disabled).

3. Enable Backspace key

If you hit the Backspace key on your keyboard, you will get ^H. To enable Backspace, enter command "stty erase" and hit Backspace key after the word erase and Enter.

No comments: