Berkeley CSUA MOTD:Entry 19041
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/04 [General] UID:1000 Activity:popular
4/4     

2000/8/19-21 [Computer/SW/OS/Linux, Computer/SW/Unix] UID:19041 Activity:moderate
8/18    I want to build a CPU load monitor a la the BeBox. Basically its
        a string of leds that light up depending on the current load. Any
        ideas where I should start looking for information on building this
        thing?
        \_ What platform?  If Unix, there are already tons of similar
           utilities -- search freshmeat for "load monitor", select
           the one you like most or change the source if you want
           your own eye candy.
           \_ i'm looking for something that controls actual leds
              via a serial port or something.
              via a serial port or something. Its for my Linux machine.
              \_ http://metalab.unc.edu/pub/Linux/system/status/led-stat.txt
                 and other files in the same directory
                 \_ thanks, this was exactly what I wanted.
2025/04/04 [General] UID:1000 Activity:popular
4/4     

You may also be interested in these entries...
2013/2/19-3/26 [Computer/SW/OS/OsX] UID:54611 Activity:nil
2/19    I program a lot by sshing to a Linux cluster.  So I'm used to using
        Xemacs to code.  This works fine from a Linux or Windows workstation,
        but sometimes I have to use a Mac.  On Mac, the meta is usually
        bound to option, but that often doesn't work over ssh for some reason.
        This makes using emacs a real pain.  Any suggestions on how to fix it?
        (Other than "use vi")
	...
2012/8/28-11/7 [Computer/HW/Memory] UID:54466 Activity:nil
8/26    Amazon medium instances (3.75GB RAM): 0.160/hour = $1382/year
        Generic standard Linux VPS (4GB RAM): $480/year
        Amazon costs more (but does offer superior scaling options).
        \_ Amazon is $670 if you buy a year's usage up front (heavy util).
           Why is heavy util less expensive than light util?
	...
2012/1/4-2/6 [Computer/HW/Drives] UID:54281 Activity:nil
1/4     I want to test how my servers behave during a disk failure and
        a RAID reconstruction so I want to simulate a hardware failure.
        How can I do this in Linux without having to physically pull
        a drive? These disks are behind a RAID card and run Linux. -ausman
        \_ According to the Linux RAID wiki, you might be able to use mdadm
           to do this with something like the following:
	...
2010/7/21-8/9 [Computer/SW/OS/FreeBSD] UID:53890 Activity:nil
7/21    Can I just use ifconfig to expand my netmask on a FreeBSD box?
        Are there any gotchas here? Linux forces me to restart my network
        to expand my netmask.
        \_ yes... and no, you don't have to restart your network on linux either
           \_ Rebooting is the Ubootntoo way!
              \_ Oooboot'n'tootin!
	...
2010/7/22-8/9 [Computer/SW/OS/FreeBSD, Computer/HW/Drives] UID:53893 Activity:nil
7/22    Playing with dd if=/dev/random of=/dev/<disk> on linux and bsd:
        2 questions, on linux when <disk>==hda it always gives me this off
        by one report i.e. Records out == records in-1 and says there is an
        error. Has anyone else seen this?  Second, when trying to repeat this
        on bsd, <disk>==rwd0 now, to my surprise, using the install disk and
        selecting (S)hell, when I try to dd a 40 gig disk it says "409 records
	...
2010/5/26-6/30 [Computer/SW/Unix/WindowManager, Computer/SW/OS/OsX] UID:53844 Activity:nil
5/26    anyone use lxde?  supposedly it is less stupid than xfce and
        less bloated than gnome.  thoughts?
        \_ lol, does anyone still use desktop linux?  Get with the times
           buy a mac.  Now.  DO IT.  Go NOW.
           \_ but we prefer herring to Kool-Aid
              \_ "you have to yell, he's hard of herring"
	...
2010/5/6-26 [Computer/SW/OS/Windows] UID:53818 Activity:low
5/5     Does anyone know how to do custom install of Ubuntu 10.04? I can't
        even boot it up to give me the menu to custom install and it
        keeps installing a bunch of crap I don't need. It's getting
        just as slow and bloated as Winblows install. Dear lord,
        I miss the old Ubuntu.
5/5=1.0 Numerology FTW.    5+5=10
	...
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
	...
Cache (1761 bytes)
metalab.unc.edu/pub/Linux/system/status/led-stat.txt -> www.ibiblio.org/pub/Linux/system/status/led-stat.txt
I responded explaining how I used the parallel port to control a sort-of "performance meter". Here's the story: Last year, at school (WPI), Silicon Graphics brought this huge 18-wheel truck that is basically a demonstrationmobile. I'm relatively young (17 at the time), and I'd never seen a computer this big before: It looked like an oversized refrigerator, with cooling ducts running in and out of it! On the front of this beast, was a little LCD backlit readout about the size of my HP-48G's display. It was labeled "CPU Activity", and had a little bar chart showing how hard each processor was working. I thought it would be cool to have one of these mounted on my Linux box :) I finally got a computer of my own this past November, and finally got to run Linux on my own, instead of administering it for a number of people on my floor. I had a Shack attack, and went to Radio Shack, and picked up the following items: a breadboard, a 10-bar LED, breadboard wires, and a package of assorted resistors. Side note: While at the Shack with a few of my suitemates, we were way in back in the component section (the only good part of the store any more), and were approached by a lady who thought we were employees there :). Please contact him for more info, or if you want to use it in a progrm of your own. What I ended up doing was reading the output of 'ps aux', and summing up the %CPU column. I then converted that into a number representing how many LEDs should light, and blast it at the printer port. NOTE: I wrote and built this thing in a bout 90 minutes, so it's quick and dirty, and not at all as elegant as I hoped it to be. This program is covered under the GNU copyleft agreement. If you improve upon this, post it here, so everyone else can see!