|
Grex > Helpers > #138: Grex System Problems - Winter 2004/2005 |  |
|
| Author |
Message |
| 25 new of 870 responses total. |
kentn
|
|
response 253 of 870:
|
Jan 6 13:23 UTC 2005 |
Does /usr/local/bin/lsz work for you instead?
I noticed that there is an sb link in /usr/local/bin/ that points to a
non-existent file in grex-scripts. That might confuse some people.
Would it make sense to link sb to lsb, sz to lsz, etc?
|
twenex
|
|
response 254 of 870:
|
Jan 6 14:35 UTC 2005 |
<twenex muscles in>
Generally speaking, I would advise against linking new versions of programs
(in the sense that vim is a new version of vi, gnu tar a new version of tar)
to the names of the old ones unless the new version provides functionality as
near as dammit identical to the old one when called as such.
(On a related note: a lot of "easy to use" Linux systems alias "cp" to "cp -i",
"rm" to "rm -i", and so on. If this applies to any grexer, I would advise them
to realias them back to their default "values". Not doing so runs the risk of
coming to a system where they are NOT aliased and accidentally deleting
crucial files because you expected the system to ask you if you /really/ wanted
to do that, but it didn't. At first I used to disdain aliases for this reason,
but then I hit upon the following strategy:
Say I type "ls -F" often enough that it becomes a pain to have to type it all
the time, especially since i never use "ls" on its own. So I create an alias
based on ls which gives a clue as to the extra flags, such as "lsf". That's
a simple example, but with longer commands it could be quite useful.
Unless you know your system well, it's a pain to have to find the file where
the distributors have aliased all the commands, and you run the risk of having
to do it again when you upgrade. So just type, for example:
alias ls="/path/to/ls"
in whatever .profile or .login file your shell uses (the csh syntax might
actually be a little different). This forces the shell to look for the command
instead of replacing its behaviour with a new one. If you don't want to do
this for all the systems and/or account you use, then just do it for root on
those systems you have root access to.
|
twenex
|
|
response 255 of 870:
|
Jan 6 14:52 UTC 2005 |
In all instances of ".profile" or ".login file" above, substitute "rc file"
instead.
|
keesan
|
|
response 256 of 870:
|
Jan 6 15:43 UTC 2005 |
I was able to telnet in just now but dialin does not work:telnetd: all
Network ports in use. ...
Followed a few seconds later by NO CARRIER.
Twice.
There is considerable telnet lag. There was no wait when I telnetted.
|
keesan
|
|
response 257 of 870:
|
Jan 6 15:52 UTC 2005 |
Using picospan, there is a few seconds wait for the last few lines of the next
response screen to appear. Vandalism?
|
keesan
|
|
response 258 of 870:
|
Jan 6 15:55 UTC 2005 |
asd, aka 'smart' is using 97% of CPU for the past 550 minutes, running 'john'.
I will email gelinas. Grex is still usable. Is there some way to limit
individual users to 1 or at most 5% of CPU use?
|
keesan
|
|
response 259 of 870:
|
Jan 6 16:06 UTC 2005 |
I have in the past couple of days received three fragments of emails (presumed
spam) consisting of just the beginning of the header such as:
From the-concourse-on-high Thu Jan 6 11:01:04 2005
Received: from [201.17.23.27] (helo=c911171b.rjo.virtua.com.br)
by grex.cyberspace.org with smtp (Exim 4.42)
id 1CmZp2-0003qY-M4; Thu, 06 Jan 2005 10:45:13 -0500
Received: (from pyroxenite@201.17.23.27)
by helmholtz5[1
Is this just sloppy spam-writing or something going wrong in the middle of
the mail receiving process at grex? Or vandalism?
|
petercon
|
|
response 260 of 870:
|
Jan 6 16:07 UTC 2005 |
Some people may have more problems in their scripts now that we've
moved away from a SysV UNIX to a BSD UNIX - the "usr/ucb" directory in
a SunOS sytem is where BSD UNIX commands were put in Suns SysV OS.
Something like the move from Korn shell scripts to bash. Shell scripts
using Sun's SysV commands may not work the same in BSD (or be missing
entirely) so be aware.
Also, there are more differences in the directory structure and the
whole environment and deamon setup that may affect scripts written in a
SysV system. Better test your scripts before trusting them.
In my case (so far) I had to remove all my aliases and removed
the '/usr/ucb' reference in two places in my .profile. I also notice
git is gone and without mc or git Grex is not very easy to use as file
management is a pain without a file manager. I'll keep playing though.
|
tsty
|
|
response 261 of 870:
|
Jan 6 16:57 UTC 2005 |
general question: is there a way to spam-filter for plain-ol-mail?
pine is a pain (imnsho) even with its 'advanced' features (bloat?).
plain-0L-mail is soooooooooooooooooooo easy to use/learn adn it
soes not suck up f feast-full of quota blocks, either.
|
mcnally
|
|
response 262 of 870:
|
Jan 6 17:14 UTC 2005 |
re #261: the tool you want to use is probably procmail. you can
pass mail off to a filter before it is ever delivered into your inbox
and the read the mail that passes the filter with whatever MUA (mail
user agent, aka "mail reader") you want.
Sindi can probably tell you how to set up an elaborate system of
procmail rules to try to screen out spam or you can wait until staff
have time to install a system like SpamAssassin or other anti-spam
package and have procmail use that.
|
petercon
|
|
response 263 of 870:
|
Jan 6 17:20 UTC 2005 |
I don't see color in any command (ls, links, lynx, more(less), w3m,
etc.) anymore. I forced pine to use color. Still using Putty which
means TERM is set to xterm. On the Sun aliasing "ls -color" worked but
not on OpenBSD.
|
twenex
|
|
response 264 of 870:
|
Jan 6 17:38 UTC 2005 |
Set TERM to ansi. You can do this in PuTTY too.
|
keesan
|
|
response 265 of 870:
|
Jan 6 17:43 UTC 2005 |
A friend reports that Pine spellcheck is not working. I tried it and got a
message about something alternate and 255.
Please feel free to copy /a/k/e/keesan/.forward and also
/a/k/e/keesan/.procmailrc but change keesan in the latter file to your own
login and delete all lines starting with # and also change my whitelist (the
remaining parts with $MAIL on the last of three lines) to your whitelist by
putting in the addresses of friends who write you rather than the From:'s that
I have chosen to let through from my friends. And email keesan for help.
The complicated bit about Nigeria is to send Nigeria spams to a nigeria folder
and also to polygon who posts them at his website.
|
davel
|
|
response 266 of 870:
|
Jan 6 17:54 UTC 2005 |
Re 260: I think /usr/ucb is a Sun-ism. It's certainly not SYSV, and the SunOS
we were running before was a BSD, pre-Solaris SunOS.
|
drew
|
|
response 267 of 870:
|
Jan 6 22:01 UTC 2005 |
Re #253:
lsz works. One major issue solved, one (or two) more to go.
|
keesan
|
|
response 268 of 870:
|
Jan 6 23:26 UTC 2005 |
Party (hayz) is now splitting 98% of CPU usage with smart/asd. Could some
staff member kindly delete both accounts?
|
tod
|
|
response 269 of 870:
|
Jan 6 23:31 UTC 2005 |
load averages: 2.70, 2.73, 2.77
18:31:34
138 processes: 3 running, 135 idle
CPU states: 94.2% user, 0.0% nice, 5.6% system, 0.2% interrupt, 0.0% idle
Memory: Real: 71M/210M act/tot Free: 1301M Swap: 0K/3072M used/tot
PID USERNAME PRI NICE SIZE RES STATE WAIT TIME CPU COMMAND
20421 smart 64 0 5668K 5980K run - 953:53 49.37% john
11064 hayz3141 64 0 300K 896K run - 44:26 45.80% party
29978 _mysql 2 0 34M 17M sleep poll 1:29 0.00% mysqld
32358 _syslogd 2 0 164K 488K sleep poll 1:16 0.00% syslogd
3601 named 2 0 2516K 2852K sleep select 1:05 0.00% named
20957 exim 2 0 580K 696K sleep select 0:27 0.00% exim-4.42-2
15359 _pflogd 4 0 512K 328K sleep bpf 0:08 0.00% pflogd
15771 root 2 0 284K 1000K idle select 0:05 0.00% sshd
10834 root 2 0 1092K 1932K sleep select 0:04 0.00% httpd
|
mcnally
|
|
response 270 of 870:
|
Jan 7 00:49 UTC 2005 |
re #268: quoting % CPU usage is not enough to establish that a user
is abusing the system. At the very least we'd need to know the load
average on the system as well. When not very much is going on it's
not unusual for a single process or a few processes to appear to hog
the CPU. It doesn't necessarily mean they're starving other jobs.
|
keesan
|
|
response 271 of 870:
|
Jan 7 03:29 UTC 2005 |
Is it considered good manners to be logged on for 954 (minutes, hours?) using
this much CPU time? Smart appears to have been logged on since very early
Thursday (finger) so I don't really know what the TIME column means.
|
gull
|
|
response 272 of 870:
|
Jan 7 03:32 UTC 2005 |
That's 954 minutes of CPU time. It's the cumulative amount of time
that process has used the CPU, which is not necessarily the same as
the amount of time since it was started. (In fact, unless the process
has continuously used 100% of the CPU, it will always be lower.)
|
keesan
|
|
response 273 of 870:
|
Jan 7 04:38 UTC 2005 |
Is that not a lot of CPU time to be used by one user? Until recently that
process was using about 97% of cpu time. Could you take a look at what is
going on? User smart lists as name 'asd' which is one of many things on my
twit filter so this is likely to be some sort of 'joke'.
|
petercon
|
|
response 274 of 870:
|
Jan 7 15:22 UTC 2005 |
Yes /usr/ucb is a "Sun-ism". That stands for "University of California
at Berkeley", i.e. BSD's original "home". SunOS _is_ SysV, has been
since I started using it in 1988. You'll find SysV commands
in /usr/bin and BSD commands in /usr/ucb. You'l find the SysV
conventional directory setup including /dev/tty??? (which is not in
BSD). Here's a script (everytty - which lists all the ports in use by a
particular user) which I have run on the old Sun box - it's pure SysV
(will even work on Linux which follows SysV conventions). It won't run
under any BSD derivative. It's called by "everytty username".
#!/bin/sh
for a in `find /dev/tty[a-s]? -user $1 -print`
do
a=`basename $a`
echo "
$a:"
ps -xt$a
done
Sun did the /usr/ucb thing to add BSD-isms to its OS and allow users to
choose which "flavor" they wanted to see by changing the order of their
PATH, either putting /usr/bin or /usr/ucb first in their PATH. Hope
that clears things up.
|
twenex
|
|
response 275 of 870:
|
Jan 7 15:27 UTC 2005 |
http://kb.indiana.edu/data/agjq.html?cust=023362.83043.131
SunOS is a Sun Microsystems implementation of the Unix operating system.
Solaris is SunOS packaged with a number of additional tools, and a graphical
user interface (GUI) environment. Since Sun Microsystems did not offer the
Solaris product until SunOS 4, SunOS and Solaris have different version
conventions (e.g., Solaris 1 includes SunOS 4, while Solaris 2 includes SunOS
5). To further confuse the naming scheme, Sun now refers to Solaris by just
its point release (e.g., Solaris 7, 8, or 9 instead of 2.7, 2.8, or 2.9).
When Bill Joy, one of the main programmers of the Berkeley Software
Distribution (BSD), helped found Sun in 1982, he brought with him the elements
for the first release of SunOS. Up through version 4.1.x (Solaris 1.x), SunOS
remained a heavily BSD-influenced Unix implementation. However, in the late
'80s, Sun entered into a partnership with AT&T, which was then developing the
other major Unix flavor, System V. The result was System V release 4 (SVR4),
which incorporated BSD as well as SunOS extensions (e.g., NFS). Subsequently,
with its version 5.x (Solaris 2.x) releases, SunOS shifted from its BSD
origins to SVR4.
|
mfp
|
|
response 276 of 870:
|
Jan 7 15:46 UTC 2005 |
http://www.bsdforjesus.org/
|
rksjr
|
|
response 277 of 870:
|
Jan 7 17:00 UTC 2005 |
Our site:
Linkname: Grex Web Server Statistics
URL: http://www.cyberspace.org/stats/
is currently reporting for time ranges no later than:
October 03-October 09 2004
|