Berkeley CSUA MOTD:Entry 29914
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/07/09 [General] UID:1000 Activity:popular
7/9     

2004/4/10 [Computer/SW/OS/Linux, Computer/SW/Languages/Misc] UID:29914 Activity:nil
4/10    Does anyone know how Redhat turns on IP forwarding? Apparently you can
        set a directive FORWARD_IPV4=yes in /etc/sysconfig/network, but I can't
        seem to find the script (or whatever) that acts on this. I know you can
        'echo 1 > /proc/net/ipv4/ip_forward' to do the same thing, but I'd like
        to find that file in hopes of also finding a list of other similar
        directives. Google also does not seem to be coming up with a definitive
        list of these things. Thanks.
2025/07/09 [General] UID:1000 Activity:popular
7/9     

You may also be interested in these entries...
2009/5/4-6 [Computer/SW/OS/Linux, Computer/SW/OS/FreeBSD] UID:52939 Activity:moderate
5/4     I would appreciate a reliability ranking between:
        1) OpenBSD
        2) OpenSolaris
        3) FreeBSD
        4) Debian-Stable
        5) Suse Linux Enterprise Server
	...
2009/1/15-22 [Computer/SW/OS/Linux] UID:52387 Activity:nil
1/15    What is the Debian/Ubuntu equivalent of Centos/Redhat PXE booting
        and Anaconda?
         \_ If you mean PXE+Anaconda+kickstart, the answer is PXE+FAI
         \_ Check out System Imager. I much prefer it to kickstart because
            you can get an almost exact image in minutes without a lot of
            effort and it is OS agnostic.
	...
2008/11/14-26 [Computer/SW/OS/Linux, Computer/SW/OS/Solaris] UID:51989 Activity:moderate
11/14   lulz why doesn't GOOG buy JAVA i mean SUN i mean whatever the hell they
        are these days.
        \_ Even GOOG isn't THAT stupid
           \_ Sorry, but WHY would Google do something like that? They
              run 99.2% Linux servers on the backend. They don't use
              Solaris for development. I mean, what does Sun have to
	...
2008/7/29-8/5 [Computer/SW/OS/Linux] UID:50715 Activity:nil
7/29    Is there a verbose option for shutdown in RedHat Linux? I'd really
        like to see the messages being generated without have to 'tail
        /var/log/messages' over and over.
        \_ stick this in your .bashrc
           "alias mtail="sudo tail -F --retry /var/log/messages"
           and do it in another window after you type shutdown
	...
2007/12/11-14 [Computer/SW/OS/Linux, Computer/SW/WWW/Server] UID:48785 Activity:nil
12/11   Apache/Linux question: I've got apache 2.0.52 on an idle redhat
        box (2.6.9-55 kernel).  Every so often one to four apache procs
        will run the cpu at 100% for any where from 15 to 90 mins, then
        drop back to normal.  USR and SYS time both increase to levels
        that the production boxes don't reach when serving traffic at
        noon.  I've checked apache and linux kernel versions, several
	...
2007/10/5-9 [Computer/SW/OS/Linux] UID:48245 Activity:nil
10/5    Anyone used Veritas on Redhat?  I've used it on Solaris where it
        worked great but not on Redhat.  How well does it work?  Can it
        dynamically extend a pre-existing volume without unmounting?  Thanks!
	...
2007/9/7-10 [Computer/SW/OS/Linux] UID:47926 Activity:nil
9/6     NSFW: At least she runs Linux!:
        http://i2.tinypic.com/4vit5sj.jpg
        \_ How can you tell that's linux?
           \_ There is a redhat linux box in the bottom corner.
              \_ Oh!  I was only looking at the screen. :-)
                 \_ Doesn't mean it is installed on anything.
	...
2007/7/9-12 [Computer/SW/OS/Solaris, Computer/HW/CPU] UID:47240 Activity:high
7/9     Are 64-bit Linux servers popular compared to 32-bit ones?  My company
        has a server product that supports 32-bit, and we're trying to see if
        it's worth supporting 64-bit as well.  Thanks.
        \_ in my company, everything linux is 64bit except the handful of
           redhat satellite servers, because redhat's sat server product
           doesn't support running on 64bit systems (yet).  DOH!
	...
2006/10/25-27 [Computer/SW/OS/Linux] UID:44959 Activity:kinda low
10/25   Fedora Core 6 is out:
        http://fedoraproject.org/static-tmp/FC6ReleaseSummary.html
        \_ Anyone still use Fedora Core?
           \_ Why wouldn't they?
              \_ Because Ubuntu is a better and more popular distro?
                 \_ In what way is it better than RH/SuSE/Debian?
	...
2006/10/5-7 [Computer/SW/Unix] UID:44692 Activity:nil
10/6    locale question
        is en_US equivalent to POSIX and/or en_US.UTF-8?
        What does Redhat default to?  UTF-8?  en_US?  POSIX? - danh
        \_ no, POSIX is essentially C.  en_US.UTF-8 is, UTF-8.
	...
2012/4/27-6/4 [Computer/SW/Languages/Misc, Computer/SW/Unix] UID:54372 Activity:nil
4/27    I wrote a little shell script to collect iostat data:
        #!/bin/bash
        DATE=`date +%m%d`
        DATADIR=/var/tmp/user
        OUTPUTFILE=$DATADIR/$DATE.out
        while true
	...
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
	...
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/7/30-8/10 [Computer/SW/Languages/Misc] UID:54148 Activity:nil 66%like:54150
7/29    Happy Sysadmin Day
        \_ our "sysadmin" today deleted /home. When we asked her why
           she said she didn't do it. When I checked the sudo logs,
           I found these two commands in order:
               COMMAND=/bin/rm -r /home testuser
               COMMAND=/bin/rm -r /home/testuser
	...
2011/5/19-7/13 [Computer/SW/Languages/Misc] UID:54115 Activity:nil
5/19    If script A runs, and calls script B ..... is it possible for me to exit\
        script A based on results of script B and not continue?
        \_ assume any shell
        \_ Yes.
           \_ without passing the result to some stupid temp file?
              \_ It sounds like you want "scriptb || exit", which will run
	...
2010/4/22-5/10 [Computer/SW/Languages/Misc] UID:53797 Activity:nil
4/22    In Linux is there an easy way to rename the scripts in /etc/rc?.d ?
        For example I want to set all the /etc/rc?.d/S91apache to S100apache
        so that it'll run the ramdisk BEFORE going to apache.
        \_ Sure, just move them.
           \_ I mean is there a script that will rename all of them
              for me? Like: setrc apache2 0 0 1 1 1 1
	...
2009/10/27-11/3 [Computer/SW/Unix] UID:53475 Activity:nil
10/27   http://www.maxgames.com/play/flash-mind-reader.html
        how does this work?
        \_ sh -c 'for ((i=0;i<10;i++)); do for ((j=0;j<10;j++)); do echo "$i$j-(\
$i+$j)" | bc; done ; done' | uniq
        \_ bash -c 'for ((i=0;i<10;i++)); do for ((j=0;j<10;j++)); do echo "$i$j\
-($i+$j)" | bc; done ; done' | uniq
	...
2009/8/19-9/1 [Computer/SW/Unix] UID:53285 Activity:nil
8/18    Hi again, new freebsd guy here again, in bash I was able to go
        LD_LIBRARY_PATH=/opt/foo/lib ./runmyapp
        I managed to do this in tcsh by using setenv in a shell script
        that setenv's the lib path and then executes $1, just wondering
        if there was a way to do it in 1 line from the cmd line as in bash?
        Thanks, btw %2c or %3c worked.  Freebsd, tcsh and vi forever!
	...
2009/5/5-6 [Computer/HW/Laptop] UID:52950 Activity:moderate
5/5     Is there a good (or standard) way to make an offline copy of a w
        ordpress blog (mine, not someone else's)? tia.
        \_ oh man.
           \_ I could cobble something together with curl / wget, but I'd
              rather not if there is a standard way of doing this.  I'm
              pretty new to wordpress / blogging and I just want to keep
	...
2009/2/10-13 [Computer/SW/Security, Computer/SW/Unix] UID:52552 Activity:nil
2/10    I have an sh file that does a mount.. the mount does an
        authentication. I previosly stored the username and password
        from zenity prompts. However, I can't get a return on the password
        field. The following only works on the username:
        mount -t davfs "http://blahblah.com/BLahUser11" /mountdir << EOF
        ${username}
	...
2009/1/14-22 [Computer/SW/Languages/Perl, Computer/SW/Languages/Misc] UID:52378 Activity:nil
1/13    I want to extract a couple integer from an xml file, mainly,
        xml file from http://weather.com so I can put it on my xplanet marker
        file. has anyone done similar things (parse and extract data
        from xml) using shell script instead of python/perl?
        in the world of perl, it make sense to dump things into a hash
        which i can easily extract key/value pair.  can i achieve similar
	...
2008/12/18-2009/1/7 [Computer/SW/Mail] UID:52279 Activity:nil
12/18   Campus USENET service will be terminated on 12/31.
        http://ls.berkeley.edu/mail/micronet/2008/1608.html
        \_ I emailed RobR to tell him. -ausman
        \_ The CSUA is considering asking campus to allow us to run NNTP for
           ucb.class.*, as bSpace sucks major major ass. Thoughts? --t
           \_ That's noble, but maybe the effort would be better spent
	...