Berkeley CSUA MOTD:Entry 34686
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/25 [General] UID:1000 Activity:popular
5/25    

2004/11/4-6 [Computer/SW/Unix] UID:34686 Activity:nil
11/4    Did any of the timeout/idling setting changed in Soda?  My Tera
        Term+SSH is automatically loggin me out after ~1 hour.  I tried
        setting "set autologout=120" (I'm using tcsh), but that does not
        seem to help.  Any idea?
        \_ Going through a firewall of any kind?  ISP maybe timing out
           idle sessions or something?  I have this happening, and it's our
           firewalls.  Try port forwarding X and running an xclock over the
           ssh session for a while to see if it's from inactivity.  -John
           \_ Forgot to say, no, I don't think it's the firewall.  A co-
              worker is using the exact same setup (TTSSH) going to his
              own server and he does not observe this behavior.
              \_ OK so try the xclock, maybe something else is timing it
                 out.  There is also something called 'spinnner' which you
                 can run to see if it's this.
                 http://www.laffeycomputer.com/spinner.html  -John
                 \_ Thanks.  Trying 'spinner' right now.
                    \_ Heh heh heh.  Spinner.
ERROR, url_link recursive (eces.Colorado.EDU/secure/mindterm2) 2025/05/25 [General] UID:1000 Activity:popular
5/25    

You may also be interested in these entries...
2012/8/29-11/7 [Computer/SW/Security] UID:54467 Activity:nil
8/29    There was once a CSUA web page which runs an SSH client for logging
        on to soda.  Does that page still exist?  Can someone remind me of the
        URL please?  Thx.
        \_ what do you mean? instruction on how to ssh into soda?
           \_ No I think he means the ssh applet, which, iirc, was an applet
              that implemented an ssh v1 client.  I think this page went away
	...
2012/9/20-11/7 [Computer/SW/Unix, Finance/Investment] UID:54482 Activity:nil
9/20    How do I change my shell? chsh says "Cannot change ID to root."
        \_ /usr/bin/chsh does not have the SUID permission set. Without
           being set, it does not successfully change a user's shell.
           Typical newbie sys admin (on soda)
           \_ Actually, it does: -rwsr-xr-x 1 root root 37552 Feb 15  2011 /usr/bin/chsh
	...
2012/3/29-6/4 [Computer/HW/Memory, Computer/HW/CPU, Computer/HW/Drives] UID:54351 Activity:nil
3/29    A friend wants a PC (no mac). She doesn't want Dell. Is there a
        good place that can custom build for you (SSD, large RAM, cheap video
        card--no game)?
        \_ As a side note: back in my Cal days more than two decades ago when
           having a 387SX made me the only person with floating-point hardware,
           most machines were custom built.
	...
2012/5/8-6/4 [Computer/SW/Unix] UID:54383 Activity:nil
5/8     Hello everyone!  This is Josh Hawn, CSUA Tech VP for Spring 2012.
        About 2 weeks ago, someone brought to my attention that our script
        to periodically merge /etc/motd.public into /etc/motd wasn't
        running.  When I looked into it, the cron daemon was running, but
        there hadn't been any root activity in the log since April 7th.  I
        looked into it for a while, but got lost in other things I was
	...
2012/1/27-3/26 [Computer/SW/Unix] UID:54299 Activity:nil
1/27    Interesting list of useful unix tools. Shout out to
        cowsay even!
        http://www.stumbleupon.com/su/3428AB/kkovacs.eu/cool-but-obscure-unix-tools
        \_ This is nice.  Thanks.
	...
2012/2/9-3/26 [Computer/SW/Security, Computer/SW/Unix] UID:54305 Activity:nil
2/9     Reminder: support for mail services has been deprecated for *several
        years*. Mail forwarding, specifically .forward mail forwarding, is
        officially supported and was never deprecated.
        \_ There is no .forward under ~root.  How do we mail root and how do
           we get responses?
           \_ root@csua.berkeley.edu is and always has been an alias.
	...
2011/9/14-12/28 [Computer/SW/Unix] UID:54172 Activity:nil
9/12    We've restored CSUA NFS to something vaguely resembling normal
        functionality -- plus, with some luck, we should now have something
        vaguely resembling normal uptime, too!  Ping root@csua.org if you
        notice any problems.  --jordan
--------------------------------------------------------------------------------
        \_  Oh, and http://irc.CSUA.Berkeley.EDU is online again.
	...
2011/10/26-12/6 [Computer/SW/Unix] UID:54202 Activity:nil
10/24  What's an easy way to see if say column 3 of a file matches a list of
       expressions in a file? Basically I want to combine "grep -f <file>"
       to store the patterns and awk's $3 ~ /(AAA|BBB|CCC)/ ... I realize
       I can do this with "egrep -f " and use regexp instead of strings, but
       was wondering if there was some magic way to do this.
       \_ UNIX has no magic. Make a shell script to produce the ask or egrep
	...
2011/6/5-8/27 [Computer/HW/Memory] UID:54127 Activity:nil
6/5     In an effort to stabilize our services, we'll be rebuilding parts of
        the CSUA infrastructure over the course of this summer.  To give us
        some wiggle room, I've temporarily decreased soda's allocated RAM from
        8GB to 2GB.  If you need to run something that requires large amounts
        of memory, please send mail to root@csua.org and we'll try to
        accommodate your request.  --jordan
	...
Cache (7270 bytes)
www.laffeycomputer.com/spinner.html
spinner - from Laffey Computer Imaging Price: $0 (GPL License) Current Version: 124 Date Modified: Feb. To make this effect it cycles through punctuation marks like this " - \ | / - \ | / ... By default the character is drawn in inverse video (or your terminal's equivalent). In spinner mode Spinner supports any terminal capable of handling V T100 style escape codes. In null mode there is no visible output, and Spinner will not interfere with your terminal or scrollback. If you find the little spi nner in the top left corner to be distracting use null mode. Spinner is useful for keeping telnet and ssh links from dropping due to inactivity. Many firewalls, and some ISPs drop connections when they ar e perceived as idle. By having spinner running the server is constantly sending a tiny amount of data over the link, preserving the connection . As of version 12 Spinner can also be activated with the -n switch so that, instead of displaying a spinner, it simply sends out a periodic null character to the terminal. This achieves the same anti-idle benefi t without disturbing your screen. But it lacks the coolness factor of a little spinner in the corner of the terminal... Thus (for search engines) Spinner is an anti-idle, timeout preventing, b ackground daemon process for unix variants including linux. Spinner is known to compile and work properly under NetBSD 15 and 16, Mac OS X 1 02, linux 22 and 24 Spinner also has a (mainly fun) mode I like to call "Ghost in the Machin e" mode. In this mode you can use spinner to write the spinner characte r to ANY tty, not just your own. pid) -F Do *not* create a pid file -I Do *not* use inverse video for spinner -l <path> Set log file path (for debugging). If you run Spinner on your client the data is not sent over the wire. So you must run Spinner on the remote machine to keep the data coming to your terminal over the wire. If you do not have root access on the remote machine you can still use Spinner. Whe n you start spinner it will launch into the background as not to interfere much with your foreground jobs. " character in front so you will need to use ls -a to see it in a listing. pid Note that those are backticks (top left key below ESC, same key with ). Of course you can also just find Spinner in your process list and kill it manually that way. It will be overwritten every time you launch a copy of Spinner. So if you have multiple spinners running you will have to kill them manually. Sometimes, if you start Spinner writing to another tty when that tty is not active to begin with Spinner will not quit. As of version 12 you may opt to use the -n switch to cause spinner to send only null characters, instead of the spinning cursor. If you dr ag out a selection the highlighted text may become unhighlighted as sooner as Spinner draws to the terminal. Typically the contents of the paste buffer still remain, however. So even though you lose the highlighting you can still paste the text that you selected in the usual fashion. Again, as of version 12 you may opt to use the -n switch to cause Spinner to only send null characters to the screen (which do not show up). Note that if you use spinner on a dumb terminal, or any other terminal that does not support the escape codes you will see a lot garbage characters. If you find this check annoying, or think it should go away let me know. Note that if you use the -n switch Spinner will not check the terminal type at all, as it is not attempting to move the cursor, change inverse modes, etc. Otherwise Spinner will end up in one of screen's virtual terminals, which means that it may not be on the real terminal all the time. This could lead to an idle timeout, which is exactly what Spinner was coded to prevent. You may also be able to determine your parent tty (the original tty from which you invoked screen), and have Spinner write to that tty using the -t switch. However, if you switch to microsecond mode for the delay (-u) and use lower delays it is possible that your terminal will become somewhat garbled. You will notice that parts of the screen that shouldn't be are displayed in inverse text, or text is in the wrong place, etc. Setting a higher delay will normally make this issue non-existent. If you encounter this issue, please send me an email with your system info. Since when using the -n switch Spinner does not send printable characters you will not experience this problem at all. If you use an extremely low delay on a slow link, or use a slow-drawing terminal, be prepared for Spinner to slow your terminal down. Only one write statement and one check to be sure the tty is active per iteration. Since Spinner is meant as an anti-idle tool you will most likely keep the delay high (but less than 30 sec or so depending upon what it is that is timing out your connection to begin with). Yo u can use the -p or -P switches to modify this behavior. This will send a vt100 reset code at quit, which usually helps, but will clear your terminal screen. If you encounter this issue, please send me an email with your system info. If your terminal gets stuck in an inconsistent (read "whacked") state you can try to fix it by running Spinner with the -R switch. With this switch ALL Spinner will do is send a vt100 reset code to the tty (then quit). Using the -n switch will avoid these problem altogether by sending only null characters to the terminal. Mainly for debugging, it can, however, help you troubleshoot switch settings. Note that once Spinner has forked to the background it no longer has a controlling terminal and cannot output error messages. In or to see verbose output (or errors) after the fork you must use the -l switch and specify a filename to write to. This file will ONLY contain the output from Spinner AFTER the fork. Most likely you will never need this, but it is available if you do. Note that it t is perfectly normal to see a no such file or directory error in this log when logging out of linux. Linux cretaes and deletes files in /dev/pts/ with every change of TTY. To use this mode determine the PATH to the tty you want Spinner to write. Usually the "tty" command will display your own terminal. This should give you the basic path/filename structure (usually "/dev/ttypXX" where "XX" is a number). Then do a "who" command to see which particular tty you want to write to. This will show you a list of logged in users and their ttys. Next run spinner with the -t switch and specify the path to the desired tty. Note that you must have permission to write to the desired tty. Ttys are setup to be owned by the user logged into them, and usually setup with a group of "tty". To write to someone else's tty you either need to be root, or root needs to setup Spinner as setgid (not setuid) "tty". There are security concerns with any setuid or setgid program. Though little could go wrong, small seemingly meaningless things can lead to real big security holes. Spinner is NOT installed setgid (or setuid) by using the "make install" command. v11 * Made Spinner pretty much Un*x/linux only, since it writes to ttys * Added a slew of command line switches and options. Beta Testers * Jonathan Dickmann * Michael Hostbaek * Patrick Norman * Evlampy Oduvanchikoff * Ed Okerson Thank You!