|
Solaris FAQ Topics
Q35. How can I view or change OBP variables from Solaris?
Q36. What are some often-used Solaris commands?
Q37. I have attached speakers (or headphones), how about
a basic audio sanity check?
Q38. How can I change the host name and/or the IP address?
Q39. How can I use the second Ethernet port on my computer?
Solaris Questions and Answers (for Appendix information
see link at bottom of page)
Q35. How can I view or change OBP
variables from Solaris?
A35. Use the eeprom command. You must be logged in
as root to use this command. For instance, suppose you wanted
to view values of input-device and output-device:
# eeprom | fgrep put-device
output-device=screen
input-device=keyboard
#
Then you could change output-device if you needed to:
#eeprom output-device=ttya
#
Q36. What are some often-used Solaris
commands?
A36. Aside from very basic commands like ls, cd, pwd,
cat, cp, mv, etc., here is a list of some typical Solaris
commands useful during set up of a Themis computer system.
There are also collections available on the Internet and in
countless books, such as "A Practical Guide to Solaris"
by Mark G. Sobell.
psrinfo -v Shows 2 or 3 lines of processor information text
dmesg Recent system diagnostic & hardware identification
messages
sysdef Lots of system definition/configuration information
hostid Displays numeric host identification number
hostname Displays host name
uname -i Displays platform name (type)
ifconfig -a Displays IP and Ethernet address info
xman & Launch graphical man pages (need graphics display
to do this)
stty erase ^H Sets proper function of Backspace key (^H is
entered as CTRL-H keystroke)
stty rows 25 Set number of lines for your terminal, you may
need a value other than 25
(note: the correct value for rows is very important if you
plan to use vi)
env Shows current environment variables and their settings
TERM=vt100 Sets TERM symbol to VT-100, a common terminal
export TERM Exports TERM symbol to environment (e.g. - try
running env before and after
both TERM=vt100 and export TERM)
isainfo -vk Identifies what kernel is running (beginning with
Solaris 7 it is possible to
run a 32-bit kernel or a 64-bit kernel)
csh Runs the C shell. The following commands are useful (automatic
if put in .cshrc):
set history = 50
alias ls 'ls -CF'
set filec
setenv TERM vt100
stty erase ^H
The alias command causes a trailing '/' character when directories
are listed, and a trailing '@' character for links. The set
filec commands allows name auto-completion with the ESCAPE
key (try "cd /pla" and press ESCAPE, it should auto-complete
to "cd /platform"). The stty command sets proper
backspace function (usually) for dumb terminals such as HyperTerminal.
The ^H is a backspace control character, not caret-H. To enter
a control character in vi simply precede it with ctrl-v. In
other words, in vi the line would be entered "stty erase
{ctrl-v}{backspace}", where {ctrl-v} is CTRL-V and {backspace}
is a backspace keystroke.
cat /etc/release Identify exactly what Solaris release you
are running (e.g. - Solaris 7 11/99).
dmesg|grep SunOS Identify exactly what version of SunOS you
are running.
catman -w Create database of words from the man pages (run
command from root account).
man -k word Keyword search of database created with catman
command, this example searches for "word".
useradd -m -d /export/home/nancy nancy
passwd nancy Create a new user account called "nancy",
add a password for her (this command & previous)
Q37. I have attached speakers (or
headphones), how about a basic audio sanity check?
A37. cd /usr/demo/SOUND/sounds {for Solaris 7 and earlier}
cd /usr/dt/appconfig/sounds/C {for Solaris 8, 9}
audioplay -v 75 -p line ring.au {"-p line" may not
be necessary}
You should hear a telephone ringing sound effect. If you are
using Solaris 10 or later, the ring.au file could be in a
different directory.
Q38. How can I change the host name
and/or the IP address?
A38. Locate and edit as appropriate:
/etc/hosts
/etc/nodename
/etc/hostname.*
/etc/ethers
/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts
Some of the files listed may not be present on your machine;
this is not a problem. Reboot following file updates.
Q39. How can I use the second Ethernet
port on my computer?
A39. There are several different ways to configure
multiple Ethernet ports. Here is one of the simplest:
1. Go to the /etc directory and locate the primary Ethernet
hostname file, typically hostname.hme0, hostname.eri0, or
hostname.bge0. Copy the file for the next Ethernet port, for
example:
cp hostname.eri0 hostname.eri1
2. Edit the new file (hostname.eri1 in this case) and change
the hostname so that it is different than the original. The
change can be minor, just a character or two, or major such
as a completely different name.
3. Edit the hosts file and add a new line with a new IP address,
and use the new hostname you created in step 2.
4. Reboot. (You can manually plumb the new interface without
rebooting, but if you reboot then it will be automatic.)
To download Themis
Board and System FAQ Questions, Answers and Appendix A-B information,
please click here.
back to top
|