Phil's Misc. Solaris/Unix/Linux Page
Hey all, this is where I will put random stuff I have no better place to put. A lot of this stuff will be stuff I wanted to write down somewhere for my own reference and didn't know where.
LSOF (Any)
Where to download it: ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/
The syntax for checking ports (that I NEVER remember): lsof -i tcp:53 -i udp:53
HOW TO DETERMINE RUN LEVEL (Any)
Depending on system one of the following should work:
HOW TO DETERMINE WHAT PACKAGE A FILE IS FROM (Solaris)
pkgchk -l -p /full/patch/to/file
JOVE (Any)
Jove is a lightweight emacs-like editor that only takes about as many resources as vi.
Download: ftp://ftp.cs.toronto.edu/pub/moraes/jove/jove-4.16.tar.gz
HOW TO GET XTERMS AND DTTERMS TO READ YOUR ENVIRONMENT (Solaris)
For DTTerms, edit /usr/dt/app-defaults/C/Dtterm
and add:
*loginShell: true
For XTerms, edit /usr/openwin/lib/app-defaults/XTerm
and add:
XTerm*loginShell: true
Of if you do not have root, you can add both lines to your ~/.Xdefaults
file.
HOW TO GET DTTERMS TO HAVE A BLACK BACKGROUND (Solaris)
For DTTerms, edit /usr/dt/app-defaults/C/Dtterm
and add:
Dtterm*term.background: black
If you do not have root, you can add that line to your ~/.Xdefaults
file.
HOW TO LOOKUP A HOSTNAME THE WAY THE SYSTEM WOULD DO IT (Any)
As you probable know, nslookup will go straight to your dns servers and bypass /etc/hosts. If you want to lookup a hostname exactly the way your system would do it, here's how:
getent hosts MACHINENAME
HOW TO GET SQL*PLUS TO BACKSPACE PROPERLY (Any)
I know this isn't exactly a Solaris trick, but I want to preserve it and don't have any place for it, so this seems like a decent place for it. Type this before you run sql*plus:
stty erase "^?"
HOW TO CONTINUE A SOLARIS INSTALLATION ON THE SECOND DISC (Solaris)
If you are installing a very limited Solaris system with no X and no Java, or particularly if you're doing a net install, you'll noticed picking up from the second CD after a reboot isn't as easy as you'd think. However, insert the second CD and type:
/cdrom/cdrom0/installer
While I don't have time to test it, I've been told that accepts a -nodisplay
option as well.
This page is © Phil Dibowitz 2001 - 2004