tag:blogger.com,1999:blog-35431327644402874432023-11-15T22:28:28.867-08:00Doug's BlogDouglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.comBlogger186125tag:blogger.com,1999:blog-3543132764440287443.post-26865768447064910202020-04-19T09:55:00.003-07:002020-04-19T09:55:30.949-07:00Slackware64-current (post 14.2): my compile for kernel 4.19.116Here is a fairly generic modular kernel compiled under Slackware -current (64-bit), gcc 9.3.0. The usual caveats for GPL software apply. Use at your own risk. Note: the latest official kernel in the Slackware64-current changelog is 5.4.33. I've been sticking with 4.19.x because of issues with the i915 module that cropped up on my specific hardware.
<table>
<tr><td>md5:</td><td>b697b84ad3d93f58347657154a6f4482</td><td>kernel-4.19.116-x86_64-dm.txz</td></tr>
<tr><td>sha1sum:</td><td>61b4e263421b3420284743f8af7ea0271ebb7144</td><td>kernel-4.19.116-x86_64-dm.txz</td></tr>
<tr><td>binaries:</td><td><a href="https://drive.google.com/open?id=1kui40dAqcC-cRQG4_B3EDME42vtKLCog">kernel-4.19.116-x86_64-dm.txz</a></td><td>packaged for slackware64-current, post version 14.2</td></tr>
<tr><td>official source:</td><td><a href="https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.116.tar.xz">linux-4.19.116.tar.xz</a></td></tr>
</table>Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com0tag:blogger.com,1999:blog-3543132764440287443.post-70621953920111909552020-03-20T12:30:00.000-07:002020-03-20T12:30:43.138-07:00Slackware64-current (post 14.2): my compile for kernel 4.19.111Here is a fairly generic modular kernel compiled under Slackware -current (64-bit), gcc 9.3.0. The usual caveats for GPL software apply. Use at your own risk. Note: the latest official kernel in the Slackware64-current changelog is 5.4.25. I've been sticking with 4.19.x because of issues with the i915 module that cropped up on my specific hardware.
<table>
<tr><td>md5:</td><td>c80d908077ec535355d4f00cc2c95c10</td><td>kernel-4.19.111-x86_64-dm.tgz</td></tr>
<tr><td>sha1sum:</td><td>34ee6d9858d172a08cfd6df9aa12ab7742aa675a</td><td>kernel-4.19.111-x86_64-dm.tgz</td></tr>
<tr><td>binaries:</td><td><a href="https://drive.google.com/file/d/1m1U937vbhtGgvza84t-uG1XqKCmvLNc4/view?usp=sharing">kernel-4.19.111-x86_64-dm.tgz</a></td><td>packaged for slackware64-current, post version 14.2</td></tr>
<tr><td>official source:</td><td><a href="https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.111.tar.xz">linux-4.19.111.tar.xz</a></td></tr>
</table>Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com0tag:blogger.com,1999:blog-3543132764440287443.post-82316793514675807962019-01-23T10:03:00.001-08:002019-01-23T10:03:57.439-08:00Slackware64-14.2: my compile for kernel 4.4.171Here is a fairly generic modular kernel compiled under Slackware 14.2 (64-bit). The usual caveats for GPL software apply. Use at your own risk. Note: the latest official kernel in the Slackware changelog is 4.4.157.
<table>
<tr><td>md5:</td><td>202b4d92617c9248e5a4dde7c801ca7d</td><td>kernel-4.4.171-x86_64-dm_2019-01-23.173633.txz</td></tr>
<tr><td>sha1sum:</td><td>07b79efa254a568cd95051af85adc43df742dbd8</td><td>kernel-4.4.171-x86_64-dm_2019-01-23.173633.txz</td></tr>
<tr><td>binaries:</td><td><a href="https://drive.google.com/open?id=1AMnXz1gZWznbvaYVFLz4hrRGhDSqbYyN">kernel-4.4.171-x86_64-dm_2019-01-23.173633.txz</a></td><td>packaged for slackware64-14.2</td></tr>
<tr><td>official source:</td><td><a href="https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.171.tar.xz">linux-4.4.171.tar.xz</a></td></tr>
</table>
Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com0tag:blogger.com,1999:blog-3543132764440287443.post-69068464730172667652018-08-24T13:31:00.000-07:002018-08-31T10:16:10.800-07:00Linux Kernel for Slackware64-14.2, version 4.4.151Here is a fairly generic modular kernel compiled under Slackware 14.2 (64-bit). The usual caveats for GPL software apply. Use at your own risk.
<table>
<tr><td>md5:</td><td>97244e475584c85730c73df77742d852</td><td>kernel-4.4.151-x86_64-dm_2018-08-24.140325.txz</td></tr>
<tr><td>sha1sum:</td><td>be24f6253eb7de456c5f18c411d0415ba704fb5c</td><td>kernel-4.4.151-x86_64-dm_2018-08-24.140325.txz</td></tr>
<tr><td>binaries:</td><td><a href="https://drive.google.com/file/d/1vCgTVC5wU5zyryG7P4CdsbS3FupfFg2T/view?usp=sharing">kernel-4.4.151-x86_64-dm_2018-08-24.140325.txz</a></td><td>packaged for slackware64-14.2</td></tr>
<tr><td>official source:</td><td><a href="https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.151.tar.xz">linux-4.4.151.tar.xz</a></td></tr>
</table>
<b>edit:</b>There is a new kernel for Slackware 14.2. See the official changelog for v.4.4.153:
Linux version 4.4.153 (root@hive64.slackware.lan) (gcc version 5.5.0 (GCC) ) #1 SMP Tue Aug 28 16:08:22 CDT 2018
Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com0tag:blogger.com,1999:blog-3543132764440287443.post-76507714470445723622014-08-07T13:57:00.002-07:002014-08-10T12:16:16.589-07:00Some notes about testing network block devices<p>I tested another random thing: network boot options short of iscsi. The first thing I tried was mounting the root filesystem from the startup environment over <a href="http://slackbuilds.org/repository/14.1/network/nbd/?search=nbd">network block device.</a> That was extremely simple and worked fine. There is a likely shutdown glitch, but if the root filesystem is synced the effect should be relatively minor. I am using xfs and it recovers quickly from that kind of incomplete shutdown relatively easily; well, at least it did in my limited tests.
Another interesting idea for testing is to check if it is somehow possible to mount the root filesystem using ssh+nbd. That introduces some extra complications for the root filesystem, but it could definitely be adapted to encrypt traffic for another mount point, such as /home. I guess this may become practical for those who have fiber optic connections. The technique I tried is similar to sshfs, but uses only the the default tools.</p>
<p>Here is a rough idea of how to do this. First, login at the computer hosting the image that is to be mounted somewhere in the filesystem. Start the network block device accessible only locally. Add more local security here, if necessary.</p>
<div style="height:auto;width:auto;border:1px solid #ccc;overflow:auto;">
<code><pre>
ssh -K douglas.mayne@somecomputer
losetup -f somefile.img
nbd-server 127.0.0.1@2000 -C /root/non /dev/loop1
</pre></code>
</div>
<p>Then setup the connection back at the computer that would like to use this network disk:</p>
<div style="height:auto;width:auto;border:1px solid #ccc;overflow:auto;">
<code><pre>
modprobe nbd
ssh -K douglas.mayne@somecomputer -n -L 2500:localhost:2000
nbd-client localhost 2500 /dev/nbd0
mount /dev/nbd0 /home
</pre></code>
</div>
<p>For the encrypted traffic for the root filesystem, I am wondering if a strategy based on pivot_root might work.</p>
<p>On Friday, I tested this a bit more. I missed the obvious solution for encrypting the root filesystem using network block device. The obvious answer is to use device mapper on top of a network block device. I tested this and it works in the standard way.</p>Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com0tag:blogger.com,1999:blog-3543132764440287443.post-36293700160461435972014-08-07T13:52:00.002-07:002014-09-05T11:03:10.799-07:00dm-live issue and fix. Also debugging with kexec<p>I noticed that successful bootup to a root filesystem connected via USB was broken on certain hardware. I initially assumed that the failure might be associated with a kernel bug, or perhaps to do with specific motherboard chipsets, or a flaw in my understanding of udev. I was stumped and invested some time to figure out what was wrong. <a href="http://user.xmission.com/~ddmayne/misc/img.2014-07-31.01.jpg">This screenshot</a> shows a typical bootup failure. Googling the failure shows others are experiencing the same troubles, perhaps for similar reasons. I didn't see any obvious solutions. For the last while I have mostly been working around the problem by using a root filesystem connected directly over SATA.</p>
<p>I stumbled on the solution by chance:</p>
<p>Include the <b>ehci-pci</b> module among those that are loaded at boot. That ensures the best performance for the external drive, be it a flash disc or a magnetic disc.</p>
<p>Because booting to a root filesystem on USB is the heart of a live USB install, it's good to know that it was a case of PEBKAC and not something more endemic.</p>
<p>With that fix out of the way, there are some other changes to my dm-live startup environment including following along with the stable kernel releases in the 3.10.x series. Currently, I am testing with kernel 3.10.51.</p>
<p>By the way, in the debug phase of this problem, I was pointed to kdump. I played around with the <a href="http://slackbuilds.org/repository/14.1/system/kexec-tools/">kexec utility</a> to see some of the basics of kernel debugging and how it is designed to work. I found right away that the basic kernel configuration that I have been using, which is extremely similar to the basic default Slackware kernel, is configured to not generate symbols, enable boot-time reservation of memory using the parameter crashkernel=, or be arbitrarily relocatable. To use kdump there are a few changes, including adding the full compiler symbols the compiled objects. In general, I agree with Slackware's decision not to include the symbols because they increase the size of the resulting compile by a factor of 5 or 6 times. In the end, throughout my attempt to debug the above problem, I wasn't able to generate the right kind of crash, i.e. one that actually writes its crash data. I was pretty sure I was doing it right because kexec -l and kexec -e were working as expected. The panic code when loaded with kexec -p just wasn't tripped for whatever reason. It was too hard of crash, I guess.</p>
Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com0tag:blogger.com,1999:blog-3543132764440287443.post-67945287649791156212014-04-13T10:25:00.002-07:002014-04-13T13:18:33.605-07:00<p>The following table details some of the hardware I have used in the PC era. It begins with the venerable Compaq luggable that launched the "clone" wars. I've seen a lot of hardware along the way. In the early era these brands come to mind: Everex, ALR, Northstar, Gateway 2000. Each row in the table shows what were compelling upgrade points along the path. At each step, the blazingly fast new designs left previous generations in the dust. Somehow, what had been a pleasure to use now seemed to be a chore, or too slow to bootup. What had been fast, was now painfully slow. I hope I can add benchmarks to put a mathematical value on each row. Perhaps, by comparing the next row to the previous, or some other baseline.</p>
<p>The genesis for making this table was XP's expiration. That didn't turn out to be as big of a deal as I thought it would. The heartbeep SSL bug made bigger news. XPs overall worldwide usage is estimated as low as 10% currently. The same estimates peg all Linux at 5%. Of course, I use Slackware Linux as my daily OS. XPs expiration forced many to upgrade to marginally better hardware, at least, for those using the Windows platform. I rolled out just over a dozen machines that use i5 CPUs. They have 16G RAM typically. That is a factor of 8 times more over the standard amount that I had incorporated at the previous level (i.e. at Core 2 E6600)</p>
<p>As I was finishing the rollout of the latest generation of PCs with the evolutionary step in operating systems, I had two main thoughts. First, would this be the last hurrah for desktop PCs? Will everyone demand tablets? Will Android and iOS eclipse the Microsoft juggernaut that lasted for a generation? My guess is that the days of PCs as we have known them are limited. Second, I thought how the Windows interface has gotten progressively worse. These are subjective opinions, I know. But I find that Windows 8 is not an evolutionary step that is better than Windows 7. Likewise, Windows 7's interface was worse than XP. I may be an old fogey, but give me consistency for the best productivity. These upgrades have pulled the rug out from under users for no go reason. Again, just my opinion.</p>
<table border=1>
<tr><td><a href="http://en.wikipedia.org/wiki/Intel_8088">8088</a> clocked @ 4.77 MHz</td><td>typ. less than 640k</td><td>8-bit compromise of 16-bit 8086; 8087 math coprocessor optional. Used in the Compaq "Luggable".</td></tr>
<tr><td><a href="http://en.wikipedia.org/wiki/Intel_80286">80286</a></td><td>typ. 1MB, OS limited use beyond 640k</td><td>IBM "AT." These machines typically had sockets for 1 MB RAM.</td></tr>
<tr><td><a href="http://en.wikipedia.org/wiki/Intel_80386">80386 DX</a> @up to 20 MHz</td><td>1MB designs still prevalent</td><td>included virtual 8086 mode; first to use 32-bit mode; still required a coprocessor for fast math functions; a very important chip. Motherboards could support 1+4MB RAM on proprietary buses. </td></tr>
<tr><td><a href="http://en.wikipedia.org/wiki/Intel_80486">80486 DX</a></td><td>4 to 8 MB RAM<td>upgrade to 80386 included on board math coprocessor. Rolled out in Gateway 2000 desktops.</td></tr>
<tr><td>Pentium</td><td>First machine outfitted with 32 MB RAM</td><td>OS: Windows NT 3.51</td></tr>
<tr><td>dual <a href="http://en.wikipedia.org/wiki/Pentium_pro">Pentium Pro</a> @200 MHz</td><td>32 to 512 MB</td><td>dual CPUs in the "686" era kicked the Pentium's ass. OS: Windows NT 4.0</td></tr>
<tr><td><a href="http://en.wikipedia.org/wiki/Celeron#Mendocino">Celeron</a> w/ 128k L1 cache @800 MHz</td><td>128 - 512 MB</td><td>budget chip in the "686" line disabled support for multi-CPU in hardware. Motherboard chipset support for SDRAM. These boards were plagued by a bad capacitor problem that caused premature failure.</td></tr>
<tr><td><a href="http://en.wikipedia.org/wiki/Celeron#Tualatin-256">Celeron</a> single CPU upgrade, w/ 256k cache @1300 Mhz</td><td>512 - 1.5 GB</td><td>Motherboard offered supported for SDRAM clocks and ecc memory</td></tr>
<tr><td><a href="http://en.wikipedia.org/wiki/Pentium_4">Pentium 4</a></td><td>Ran hot compared to predecessors</td></tr>
<tr><td>dual <a href="http://en.wikipedia.org/wiki/Pentium_III#Tualatin">Pentium III</a> each w/ 512k cache @up to 1400 MHz</td><td>1 - 2 GB</td><td>dual chip configuration was good at keeping the machine responsive to the user. Path to memory was showing its age when compared to P4 designs.</td></tr>
<tr><td><a href="http://en.wikipedia.org/wiki/Pentium_M">Pentium M</a> @up to 1870 MHz</td><td>1 - 2 GB</td><td>First single core chip to do better than P4. Dell D610 used this chip.</td></tr>
<tr><td><a href="http://en.wikipedia.org/wiki/Intel_Core">Core Duo</a></td><td>2 - 4 GB</td><td>Dual core CPU with good mobile potential. Dell D620 used the T2400.</td></tr>
<tr><td><a href="http://en.wikipedia.org/wiki/Intel_Core_2">Core 2</a></td><td>2 - 8 GB</td><td>64-bit CPUs spurred the move to 64-bit OSs. E6600, E6750, etc.</td></tr>
<tr><td>i3</td><td>4 - 8 GB</td><td>22nm architecture saves power on mobile platform. <a href="http://ark.intel.com/products/72057/Intel-Core-i3-3227U-Processor-3M-Cache-1_90-GHz">i3-3227U</a> has 4 cores @1900 MHz</td></tr>
<tr><td>i5</td><td>16 - 32 GB</td><td>i5-3570k, i5-4670k. XP's premature expiration spurred a hardware upgrade to Windows 7, 64 bit at many offices committed to using the Microsoft platform.</td></tr>
</table>
Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com0tag:blogger.com,1999:blog-3543132764440287443.post-5140291651604767342013-10-20T14:23:00.002-07:002013-10-20T14:23:45.796-07:00dm-live boot environment updated for pending Slackware 14.1Slackware 14.1 RC
Kernel: 3.10.17
<pre>
BusyBox v1.20.2 (2013-06-22 00:26:51 CDT) multi-call binary.
Copyright (C) 1998-2011 Erik Andersen, Rob Landley, Denys Vlasenko and others. Licensed under GPLv2.
</pre>
Packages:
<ul>
<li>a/aaa_base-14.1-i486-1.txz</li>
<li>a/aaa_elflibs-14.1-i486-3.txz</li>
<li>a/aaa_terminfo-5.8-i486-1.txz</li>
<li>a/bash-4.2.045-i486-1.txz</li>
<li>a/bzip2-1.0.6-i486-1.txz</li>
<li>a/coreutils-8.21-i486-1.txz</li>
<li>a/cpio-2.11-i486-2.txz</li>
<li>a/cryptsetup-1.4.3-i486-1.txz</li>
<li>a/devs-2.3.1-noarch-25.txz</li>
<li>a/dialog-1.2_20130523-i486-1.txz</li>
<li>a/e2fsprogs-1.42.8-i486-2.txz</li>
<li>a/elvis-2.2_0-i486-2.txz</li>
<li>a/etc-14.1-i486-2.txz</li>
<li>a/findutils-4.4.2-i486-1.txz</li>
<li>a/glibc-solibs-2.17-i486-7.txz</li>
<li>a/grep-2.14-i486-1.txz</li>
<li>a/gzip-1.6-i486-1.txz</li>
<li>a/kernel-firmware-20131008git-noarch-1.txz</li>
<li>a/kmod-15-i486-1.txz</li>
<li>a/lvm2-2.02.100-i486-1.txz</li>
<li>a/mdadm-3.2.6-i486-1.txz</li>
<li>a/mkinitrd-1.4.8-i486-1.txz</li>
<li>a/pkgtools-14.1-noarch-2.tgz</li>
<li>a/procps-3.2.8-i486-4.txz</li>
<li>a/sed-4.2.2-i486-1.txz</li>
<li>a/tar-1.26-i486-1.tgz
<li>a/udev-182-i486-7.txz</li>
<li>a/util-linux-2.21.2-i486-6.txz</li>
<li>a/which-2.20-i486-1.txz</li>
<li>a/xfsprogs-3.1.11-i486-1.txz</li>
<li>a/xz-5.0.5-i486-1.tgz</li>
<li>l/readline-5.2-i486-4.txz</li>
<li>n/gnupg-1.4.15-i486-1.txz</li>
<li>n/libgcrypt-1.5.3-i486-1.txz</li>
<li>n/libgpg-error-1.11-i486-1.txz</li>
</ul>
Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com2tag:blogger.com,1999:blog-3543132764440287443.post-27120021538490343872013-09-20T16:46:00.000-07:002013-09-20T16:50:45.872-07:00dm-live boot environment updated for pending Slackware 14.1Slackware 14.1 beta
Kernel: 3.10.12
<pre>
BusyBox v1.20.2 (2013-06-22 00:26:51 CDT) multi-call binary.
Copyright (C) 1998-2011 Erik Andersen, Rob Landley, Denys Vlasenko and others. Licensed under GPLv2.
</pre>
Packages:
<ul>
<li>a/aaa_base-14.0-i486-5.txz</li>
<li>a/aaa_elflibs-14.1-i486-2.txz</li>
<li>a/aaa_terminfo-5.8-i486-1.txz</li>
<li>a/bash-4.2.045-i486-1.txz</li>
<li>a/bzip2-1.0.6-i486-1.txz</li>
<li>a/coreutils-8.21-i486-1.txz</li>
<li>a/cpio-2.11-i486-2.txz</li>
<li>a/cryptsetup-1.4.3-i486-1.txz</li>
<li>a/devs-2.3.1-noarch-25.txz</li>
<li>a/dialog-1.2_20130523-i486-1.txz</li>
<li>a/e2fsprogs-1.42.8-i486-2.txz</li>
<li>a/elvis-2.2_0-i486-2.txz</li>
<li>a/etc-14.1-i486-1.txz</li>
<li>a/findutils-4.4.2-i486-1.txz</li>
<li>a/glibc-solibs-2.17-i486-7.txz</li>
<li>a/grep-2.14-i486-1.txz</li>
<li>a/gzip-1.6-i486-1.txz</li>
<li>a/kernel-firmware-20130912git-noarch-1.txz</li>
<li>a/kernel-generic-smp-3.10.12_smp-i686-1.txz</li>
<li>a/kernel-modules-smp-3.10.12_smp-i686-1.txz</li>
<li>a/kmod-15-i486-1.txz</li>
<li>a/lvm2-2.02.100-i486-1.txz</li>
<li>a/mdadm-3.2.6-i486-1.txz</li>
<li>a/mkinitrd-1.4.8-i486-1.txz</li>
<li>a/pkgtools-14.0-noarch-2.tgz</li>
<li>a/procps-3.2.8-i486-4.txz</li>
<li>a/sed-4.2.1-i486-1.txz</li>
<li>a/tar-1.26-i486-1.tgz</li>
<li>a/udev-182-i486-6.txz</li>
<li>a/util-linux-2.21.2-i486-6.txz</li>
<li>a/which-2.20-i486-1.txz</li>
<li>a/xfsprogs-3.1.11-i486-1.txz</li>
<li>a/xz-5.0.5-i486-1.tgz</li>
<li>l/readline-5.2-i486-4.txz</li>
<li>n/gnupg-1.4.14-i486-1.txz</li>
<li>n/libgcrypt-1.5.3-i486-1.txz</li>
<li>n/libgpg-error-1.11-i486-1.txz</li>
</ul>
I also tweaked the installed packages to save some space:
<ul>
<li>kernel itself manually removed from this image (boot element specified separately.)</li>
<li>compressed the kernel modules with gzip (and depmod)</li>
<li>compressed the kernel firmware into an txz archive</li>
<li>compressed the /usr/share/locale directories into an txz archive.</li>
</ul>
If the locale or firmware directories are needed during the boot process for whatever reason, they can be expanded from within the working environment.
The basic initrd uses about 134M when expanded with these optimizations. Expanding the locale and kernel firmware requires 189M.
Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com0tag:blogger.com,1999:blog-3543132764440287443.post-64118869613300885652013-09-19T12:41:00.002-07:002013-09-19T12:41:43.545-07:00Install Windows 7 from USB<p>I wanted to bookmark <a href="http://www.intowindows.com/how-to-install-windows-7vista-from-usb-drive-detailed-100-working-guide/">this post</a> that I found online.Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com0tag:blogger.com,1999:blog-3543132764440287443.post-82716059722705263182013-01-11T09:00:00.000-08:002013-01-13T08:03:36.475-08:00Monitor your UPS using a raspberry pi: apcupsd works under Slackware 14.0<p>This is very easily done using tools built by others. Simply compile the program using the standard drill using this <a href="http://slackbuilds.org/repository/14.0/system/apcupsd/">Slackbuild.</a> Install the package and modify the apcupsd config file to match the cable/communication settings to the device. You can also make an entry in /etc/rc.d/rc.local to start the service automatically at boot up, and you're good to go. Well, at least, it worked for me. I hope it works for you!</p>
<p>Here's the output from the command line utility:</p>
<div style="height:auto;width:auto;border:1px solid #ccc;overflow:auto;">
<code><pre>
root@rp-1:~#: apcupsd status
APC : 001,036,0903
DATE : 2013-01-11 09:39:55 -0700
HOSTNAME : rp-1
VERSION : 3.14.10 (13 September 2011) slackware
UPSNAME : rp-1
CABLE : USB Cable
DRIVER : USB UPS Driver
UPSMODE : Stand Alone
STARTTIME: 2013-01-11 09:38:58 -0700
MODEL : Back-UPS XS 1200
STATUS : ONLINE
LINEV : 120.0 Volts
LOADPCT : 12.0 Percent Load Capacity
BCHARGE : 100.0 Percent
TIMELEFT : 99.8 Minutes
MBATTCHG : 5 Percent
MINTIMEL : 3 Minutes
MAXTIME : 0 Seconds
SENSE : Medium
LOTRANS : 097.0 Volts
HITRANS : 139.0 Volts
ALARMDEL : 30 seconds
BATTV : 27.1 Volts
LASTXFER : Automatic or explicit self test
NUMXFERS : 0
TONBATT : 0 seconds
CUMONBATT: 0 seconds
XOFFBATT : N/A
SELFTEST : NO
STATFLAG : 0x07000008 Status Flag
SERIALNO : JB0609014887
BATTDATE : 2006-02-22
NOMINV : 120 Volts
NOMBATTV : 24.0 Volts
NOMPOWER : 780 Watts
FIRMWARE : 8.g1 .D USB FW:g1
END APC : 2013-01-11 09:39:55 -0700
</pre></code>
</div>Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com1tag:blogger.com,1999:blog-3543132764440287443.post-29790119909325849602013-01-08T07:52:00.001-08:002013-08-30T13:29:38.217-07:00A nice Windows hack: Substitute the bash shell to replace CMD<p>Going back to the Windows command line is always a painful experience. The pain is only magnified if you're used to using a unix shell, like bash. Luckily, relief is available via a free download and a Windows registry hack.</p>
<p>First, you'll need a replacement shell. There are a few available. I tested two.</p>
<ul>
<li><a href="http://win-bash.sourceforge.net/">Win-Bash</a> This is a very lightweight tool. It only requires 13M of disk space and there are about 120 files with many standard utilities included. This setup ended up being much more capable than I had originally thought. Even though the bash version offered is several years old, it may be enough to meet your needs. Personally, I opted for a more comprehensive solution, below...</li>
<li><a href="http://www.cygwin.com/">cygwin</a> This is a large set of unix/linux applications that have been ported to the Windows environment. It can be installed piecemeal, and the base environment includes several shell options, including bash. The downside is that the basic install requires about 100M of disk space.</li>
</ul>
<p>To add a final piece to the puzzle, and make executing the shell much more convenient, you'll need to tweak the Windows workstation a little bit. After installing the bash-capable environment of your choice, the next step is to create a batch file and tweak some registry settings. When these fixes are in place, it will enable you to invoke bash using the standard right-click menu context.</p>
<p>Create a startup batch file, my_bash.bat</p>
<code><pre>
@echo off
cd /D "%1"
SHELL=c:\cygwin\bin\bash.exe
PATH=c:\cygwin\bin;%PATH%
bash -i
</pre></code>
<p>Navigate to the proper position into the registry (caution! whenever fiddling with the registry!) using the registry editing tool of your choice:</p>
<div style="height:auto;width:auto;border:1px solid #ccc;overflow:auto;">
<code><pre>
\My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell
</pre></code>
</div>
<p>Add a new key using a descriptive name for the environment you've chosen. I installed both and chose win-bash and cygwin</p>
<p>Note that the value of default REG_SZ key assigns the name that will be shown in the right-click menu.</p>
<p>Next, add one more subkey below that new key:</p>
<div style="height:auto;width:auto;border:1px solid #ccc;overflow:auto;">
<code><pre>
\My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cygwin\Command
</pre></code>
</div>
<p>The default REG_SZ for this subkey is the code that is executed. Link this to the batch file.</p>
<pre><code>
cmd /c c:\cygwin\my_bash.bat "%1"
</pre></code>
<p>Voila! Test it using the Windows explorer shell.</p>
<p> After this environment is installed other bonus factors can start to accumulate, too. You can start writing simple bash scripts to automate common Windows tasks, or not. In any case, the unix scripting language(s) offers much more robust and consistent environment(s) for getting things done. If that were not incentive enough all by itself, here are some other things that I have tested as working, too. You'll need to install more than the base layer of cygwin, though.</p>
<ul>
<li>networking components. I installed ssh with heimdahl kerberos. That enables ssh sessions to be authenticated by active directory, i.e. without entering a passowrd.</li>
<li>gnu compiler tools. Now, you can compile your standard C/C++ code that will execute under Windows without having the Microsoft tools.</li>
<li>X11. Run remote X-applications!</li>
</ul>
<p>As you can see, although I've only scratched the surface here, the Windows environment can be made more comfortable for those used to running Linux! Cygwin is the key.</p>
edited: 2013-08-30, fix registry pathDouglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com1tag:blogger.com,1999:blog-3543132764440287443.post-47220351975304732982012-12-31T07:56:00.003-08:002012-12-31T08:52:13.984-08:00Leafpad is a good default editor for Slackware 14.0, including for raspberry pi<p>The basic graphical text editor, mousepad, has recently been removed from Slackware in favor of gvim. Personally, that is not my favorite editor. I found that mousepad was actually a derivative of leafpad-- so why not use that instead? A slackbuild is available for Slackware 14.0 <a href="http://slackbuilds.org/repository/14.0/office/leafpad/">here.</a> Also, of note, the same slackbuild works without modification to compile the same source for ARM architecture. The resulting package is compiled and installed using the standard drill. For example, after compiling the package directly on the raspberry pi device, install the package:</p>
# installpkg /tmp/leafpad-0.8.18.1-arm-1_SBo.tgz
<p>The package works natively, but the raspberry pi architecture is a bit challenged by running a full blown X. A leaner alternative is to revert to X-applications forwarded over ssh. To do that configure your ssh server to allow X-apps to be forwarded. In the file, /etc/ssh/sshd_config modify one line:</p>
X11Forwarding yes
<p>Then restart the daemon:</p>
<p># /etc/rc.d/rc.sshd restart</p>
<p>You can now login from a remote host, and start leafpad:</p>
<p>$ ssh -Y doug@192.168.1.100</p>
<p>doug@rp-1:~$ leafpad &</p>
<p>This will allow you to edit remote files on the remote computer, the raspberry pi in this instance.</p>
<p>Here is a <a href="http://user.xmission.com/~ddmayne/slackware/ss.2012-12-31.01.png">somewhat fudged screenshot.</a></p>
Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com0tag:blogger.com,1999:blog-3543132764440287443.post-45566423854888874392012-08-16T11:25:00.001-07:002012-08-18T06:45:12.324-07:00dm-live updated to Slackware -current (v14 release pending)Slackware 14's release is almost finished. PV marked the latest set of changes as RC2. I looked at my startup environment to see what changes were necessary to prepare to match the next release. Almost all of the packages were updated and module-init-tools was removed in favor of kmod. The busybox toolset that is used for a lot of commands was upgraded, with a few minor additions (lsof, setserial, udhcpc6). Here is the version info:
<pre>
BusyBox v1.20.1 (2012-07-17 17:49:41 CDT) multi-call binary.
Copyright (C) 1998-2011 Erik Andersen, Rob Landley, Denys Vlasenko
</pre>
Here is my list of packages, omitting the kernel, kernel modules, and kernel firmware:
<ul>
<li>slackware/a/aaa_base-14.0-i486-4.txz</li>
<li>slackware/a/aaa_elflibs-14.0-i486-3.txz</li>
<li>slackware/a/aaa_terminfo-5.8-i486-1.txz</li>
<li>slackware/a/bash-4.2.037-i486-1.txz</li>
<li>slackware/a/bzip2-1.0.6-i486-1.txz</li>
<li>slackware/a/coreutils-8.18-i486-1.txz</li>
<li>slackware/a/cpio-2.11-i486-1.txz</li>
<li>slackware/a/cryptsetup-1.4.3-i486-1.txz</li>
<li>slackware/a/devs-2.3.1-noarch-25.txz</li>
<li>slackware/a/dialog-1.1_20100428-i486-2.txz</li>
<li>slackware/a/e2fsprogs-1.42.4-i486-1.txz</li>
<li>slackware/a/elvis-2.2_0-i486-2.txz</li>
<li>slackware/a/etc-13.013-i486-2.txz</li>
<li>slackware/a/findutils-4.4.2-i486-1.txz</li>
<li>slackware/a/glibc-solibs-2.15-i486-4.txz</li>
<li>slackware/a/grep-2.13-i486-2.txz</li>
<li>slackware/a/gzip-1.5-i486-1.txz</li>
<li>slackware/a/kmod-9-i486-3.txz</li>
<li>slackware/a/lvm2-2.02.96-i486-4.txz</li>
<li>slackware/a/mdadm-3.2.5-i486-1.txz</li>
<li>slackware/a/mkinitrd-1.4.7-i486-4.txz</li>
<li>slackware/a/pkgtools-14.0-noarch-1.tgz</li>
<li>slackware/a/procps-3.2.8-i486-3.txz</li>
<li>slackware/a/sed-4.2.1-i486-1.txz</li>
<li>slackware/a/tar-1.26-i486-1.tgz</li>
<li>slackware/a/udev-182-i486-3.txz</li>
<li>slackware/a/util-linux-2.21.2-i486-5.txz</li>
<li>slackware/a/which-2.20-i486-1.txz</li>
<li>slackware/a/xfsprogs-3.1.8-i486-1.txz</li>
<li>slackware/a/xz-5.0.4-i486-1.tgz</li>
<li>slackware/l/readline-5.2-i486-4.txz</li>
<li>slackware/n/gnupg-1.4.12-i486-1.txz</li>
<li>slackware/n/libgcrypt-1.5.0-i486-1.txz</li>
<li>slackware/n/libgpg-error-1.10-i486-1.txz</li>
</ul>
Only these packages from the startup environment based on version 13.37 were not upgraded:
<ul>
<li>slackware/a/aaa_terminfo-5.8-i486-1.txz</li>
<li>slackware/a/bzip2-1.0.6-i486-1.txz</li>
<li>slackware/a/cpio-2.11-i486-1.txz</li>
<li>slackware/a/devs-2.3.1-noarch-25.txz</li>
<li>slackware/a/dialog-1.1_20100428-i486-2.txz</li>
<li>slackware/a/elvis-2.2_0-i486-2.txz</li>
<li>slackware/a/findutils-4.4.2-i486-1.txz</li>
<li>slackware/a/procps-3.2.8-i486-3.txz</li>
<li>slackware/a/sed-4.2.1-i486-1.txz</li>
<li>slackware/a/tar-1.26-i486-1.tgz</li>
<li>slackware/a/which-2.20-i486-1.txz</li>
<li>slackware/l/readline-5.2-i486-4.txz</li>
</ul>
The 34 listed packages use approximately 89 MB of RAM when expanded. The gzipped kernel modules use 43 MB and the kernel firmware uses 12 MB for a total of approximately 144 MB. For practical purposes, a machine with 256 MB is the least amount that could be used to successfully load the startup environment. A couple of small optimizations could reduce the required space slightly (1. compress /usr/share/locale, remove redundant copy of busybox in mkinitrd - or remove the package).
<p>I have been using this as part of my working day-to-day setup for over a year now. It's a good rescue and all purpose startup environment. That includes booting to an encrypted root filesystem, booting to root filesystem on external USB, or the combination: encrypted root filesystem on external USB device. USB flash memory devices are now hitting the 32 GB level at affordable prices. I've noticed some performance issues on the larger flash disks that are not present on external magnetic USB drives. Another problem have been several glitches introduced with changes to the Linux kernel itself in the past year. The glitches manifest differently on different hardware. I am using kernel version 3.2.26 on an Intel Atom CPU powered netbook, and that combination has had the fewest glitches. I will probably update to PV's 3.2.27 kernel soon and try to use lzma compressed modules to see if any slight gains in free space can be made. That said, the gains are extremely marginal on today's hardware because I don't use computers with less than 256MB anymore. Also, the gains are transient because the environment is discarded when the startup environment gives control to the actual root filesystem.</p>
<p><b>Update: 2012-08-18:</b> PV's kernel for 3.2.27 has a significantly larger firmware footprint than what I had been using. It jumps to 45M from 12M. I did some simple comparisons to look for differences. I found a direct overlap of 8M and the rest different. These are the biggest directories in the firmware packaged by PV:</p>
<pre>
6.5M ./ti-connectivity
4.8M ./bnx2x
2.2M ./libertas
1.6M ./brcm
2.2M ./ueagle-atm
1.5M ./bnx2
</pre>
Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com0tag:blogger.com,1999:blog-3543132764440287443.post-37549857759830682242012-04-28T07:09:00.001-07:002012-04-28T07:57:59.626-07:00Cut Slackware some slack...<p>
This recent Slashdot headline noted there was some recent downtime at Slackware.com, <img src="http://user.xmission.com/~ddmayne/slackware/ss.2012-04-28.01.png">.</img>.
Slackware, like a lot of free software / open source coding projects, relies a lot on unpaid volunteers. What is unique about Slackware is that it is very much the vision of one man, Patrick Volkerding. He coordinates every new release with a small team of developers worldwide, including Robby Workman and Eric Hamleers. Workman, I believe, does a lot of work on the website, Slackbuilds.org, while Hamleers is a long time developer who is the person most responsible for porting the Slackware to 64-bit Intel processors, and now is working on an important port to the ARM architecture. That will be very important going forward as cellular sized devices continue to displace the personal PC as the platform of choice. The Raspberry Pi devices could change the world! Slackware, as the <i>oldest Linux distribution</i> still being actively maintained and used, is going to be a part of that. As far as lags in development, from my own experience, most of the recent snags have been due to component pieces of the gnu/linux platform being deficient, notably pieces of X and the kernel itself. The shift towards different graphical paradigms caused some disruption, too. Look to those issues before blaming Patrick Volkerding.</p>
<p>Oh, one other thing, allow me to point out one fact about Slackware's perceived lack of popularity. Why does it appear to shine less brightly than the newer, and perceived rising stars of the Linux world? Well, for one thing, it does have a learning curve. That means it can be off-putting to some. However, once it is mastered, it provides the basis for a <i>lean, mean, fighting machine!</i> It is deployed <i>in quantity</i> by people in the know. For example, at some of the linux conferences I have attended, a few devout followers from certain industries, governments, etc. where stability is a primary asset have stated it is their primary go-to tool. And for what it's worth, those agencies may not desire to have their deployments counted.</p>Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com0tag:blogger.com,1999:blog-3543132764440287443.post-53522451974091337972012-03-17T10:38:00.001-07:002012-03-17T10:43:02.212-07:00Herbert Vetoes HB363, the Anti-Sex Ed Bill!<p><a href="http://www.sltrib.com/sltrib/news/53736564-78/bill-utah-herbert-education.html.csp">This</a> was a big surprise, given that Gail Ruzika had invested so much lobbying effort to get the bill passed. The Eagle Forum (also known as the <a href="http://en.wikipedia.org/wiki/Nineteen_Eighty-Four#Sexual_repression">anti-sex league</a>) must be crying in their Cheerios this morning.</p>
<p>It was refreshing Herbert stood up for the majority's view, and didn't pander to the ultra-right. Too bad, he didn't show the same courage last year. He should have vetoed the bill designating an <a href="http://ddmayne.blogspot.com/2011/02/arms-race.html">official firearm</a>, the 45 caliber long-slide, last year.</p>Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com0tag:blogger.com,1999:blog-3543132764440287443.post-60624330690321046962012-03-07T11:03:00.003-08:002012-03-07T11:12:55.538-08:00On Point: Interview with special effects artist Douglas Trumball<p><a href="http://onpoint.wbur.org/2012/03/05/future-of-films">Interview</a> with Douglas Trumball, who created special effects for 2001, Silent Running, Close Encounters, The Tree of Life, etc. Download <a href="http://audio.wbur.org/storage/2012/03/onpoint_0305_2.mp3">audio</a>.</p>Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com0tag:blogger.com,1999:blog-3543132764440287443.post-26566792262443424892012-03-07T10:52:00.000-08:002012-03-07T10:59:35.235-08:00NPR: Fukushima Anniversary Discussions<p>Monday's <a href="http://onpoint.wbur.org/2012/03/05/lessons-learned-from-fukushima">On Point</a> was a very interesting discussion. There is a real possibility that Japan will mothball all of its nuclear power because the risk the industry poses to all of Japan had been previously underestimated. Download <a href="http://audio.wbur.org/storage/2012/03/onpoint_0305_1.mp3">audio</a>.</p>
<p>Likewise, last Tuesday's <a href="http://www.npr.org/2012/02/28/147559456/one-year-later-inside-japans-nuclear-meltdown">Fresh Air</a>. Download <a href="http://pd.npr.org/anon.npr-mp3/npr/fa/2012/02/20120228_fa_01.mp3">audio</a>. This is an interview with Dan Edge, the producer of a <a href="http://www.pbs.org/wgbh/pages/frontline/japans-nuclear-meltdown/">Frontline</a> documentary about the disaster.</p>Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com2tag:blogger.com,1999:blog-3543132764440287443.post-77801457233695476712012-02-01T14:36:00.000-08:002012-02-01T14:44:05.308-08:00On Point Discussion: New web privacy policies at Facebook and GoogleToday's <a href="http://onpoint.wbur.org/2012/02/01/googles-new-privacy-policy">On Point</a> discusses how both Facebook and Google are changing their privacy policies. They discuss the pros and cons of these changes and completely new offerings. New to the Google mix is the Android phone penetration, which enables phone providers and Google to gather geographic and on-the-spot information.<br /><br />Download <a href="http://audio.wbur.org/storage/2012/02/onpoint_0201_2.mp3">mp3 audio</a><br /><br />Audio split into 4 parts:<br /><br /><a href="https://s3.amazonaws.com/public_radio/on_point/2012/2012-02-01/t01.ogg">1.</a><br /><a href="https://s3.amazonaws.com/public_radio/on_point/2012/2012-02-01/t02.ogg">2.</a><br /><a href="https://s3.amazonaws.com/public_radio/on_point/2012/2012-02-01/t03.ogg">3.</a><br /><a href="https://s3.amazonaws.com/public_radio/on_point/2012/2012-02-01/t04.ogg">4.</a>Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com0tag:blogger.com,1999:blog-3543132764440287443.post-13283879868815154392012-02-01T14:12:00.000-08:002012-02-01T14:33:34.845-08:00Fresh Air: Baratunde Thurston<a href="http://www.npr.org/2012/02/01/146198412/baratunde-thurston-explains-how-to-be-black">This</a> was an interesting episode of Fresh Air, an interview with <a href="http://en.wikipedia.org/wiki/Baratunde_Thurston">Baratunde Thurston</a>.<br /><br />Download <a href="http://pd.npr.org/anon.npr-mp3/npr/fa/2012/02/20120201_fa_01.mp3">mp3 audio</a><br /><br />Here is the audio split into 4 parts.<br /><br /><a href="https://s3.amazonaws.com/public_radio/fresh_air/2012/2012-02-01/t01.ogg">1.</a><br /><a href="https://s3.amazonaws.com/public_radio/fresh_air/2012/2012-02-01/t02.ogg">2.</a><br /><a href="https://s3.amazonaws.com/public_radio/fresh_air/2012/2012-02-01/t03.ogg">3.</a><br /><a href="https://s3.amazonaws.com/public_radio/fresh_air/2012/2012-02-01/t04.ogg">4.</a>Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com0tag:blogger.com,1999:blog-3543132764440287443.post-40503466564393520232012-01-28T09:04:00.000-08:002014-09-07T05:41:14.534-07:00Strip audio track from a video file using mplayerLet's say there is a large file encoded into mp4 and the audio is what is of most interest. Because I am not very familiar with mplayer/mencoder/sox this was a problem in the <i>sort of hard</i> category. First, I tried using mencoder, but I think some frame synchronization data is included in the stream and causes a metronome-like ticking. I tried using mplayer instead, and finally found the right sequence with some googling and trial and error. I'll save my work here for future reference.<br /><br />Command line sequence to strip audio from an mp4 using an intermediate named fifo buffer<br />$ mkfifo fifo.wav<br />$ mplayer -quiet t.mp4 -ao pcm:fast:file=fifo.wav -vc dummy -vo null -channels 2 &<br />$ cat fifo.wav | sox -t raw -r 44100 -e signed -b 16 -c 2 - -t ogg audio.ogg<br />$ rm fifo.wav<br /><br />For my test file, the resulting ogg file was about 5% as big as the mp4 file that includes the video. YMMV<br /><br />Also, in fooling around with sox, I stumbled upon this misc information. I think this may be equivalent to the "play" command:<br /><br />$ sox audio.ogg -dDouglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com0tag:blogger.com,1999:blog-3543132764440287443.post-72076525157738259692012-01-25T18:45:00.000-08:002012-01-25T18:49:56.184-08:00This American Life: Planet Money Team on Euro CrisisThis <a href="http://www.thisamericanlife.org/radio-archives/episode/455/continental-breakup">episode</a> was mostly about the Greek aspect of the European Debt Crisis. Here is the audio split into 5 parts.<br /><br /><a href="https://s3.amazonaws.com/public_radio/this_american_life/2012-01-21/t01.ogg">1.</a><br /><a href="https://s3.amazonaws.com/public_radio/this_american_life/2012-01-21/t02.ogg">2.</a><br /><a href="https://s3.amazonaws.com/public_radio/this_american_life/2012-01-21/t03.ogg">3.</a><br /><a href="https://s3.amazonaws.com/public_radio/this_american_life/2012-01-21/t04.ogg">4.</a><br /><a href="https://s3.amazonaws.com/public_radio/this_american_life/2012-01-21/t05.ogg">5.</a>Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com0tag:blogger.com,1999:blog-3543132764440287443.post-21644713968542459172012-01-18T11:24:00.000-08:002012-01-18T15:50:03.604-08:00On Point Discussion : SOPA/PIPA<a href="http://onpoint.wbur.org/2012/01/18/sopa">This</a> was a very interesting and timely discussion.<br /><br />Direct to <a href="http://audio.wbur.org/storage/2012/01/onpoint_0118_1.mp3">mp3</a> download.<br /><br />Broken into 4 x 12 minute segments:<br /><br /><a href="https://s3.amazonaws.com/public_radio/on_point/2012/2012-01-18/t01.ogg">1.</a><br /><a href="https://s3.amazonaws.com/public_radio/on_point/2012/2012-01-18/t02.ogg">2.</a><br /><a href="https://s3.amazonaws.com/public_radio/on_point/2012/2012-01-18/t03.ogg">3.</a><br /><a href="https://s3.amazonaws.com/public_radio/on_point/2012/2012-01-18/t04.ogg">4.</a><br /><br />I liked the comment about the buggy-whip manufacturers. They content providers could lock down their content if they wanted to do it. They're asking everyone else to change to accommodate their outdated business model.Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com0tag:blogger.com,1999:blog-3543132764440287443.post-14097584431669731102012-01-18T05:36:00.000-08:002012-01-18T10:20:21.366-08:00Reddit Goes Black to Protest SOPA/PIPAReddit is down to protest SOPA/PIPA. Wikipedia is also down. As an experiment, let's see if I can still write something from memory and without fact checking. ;)<br /><br />Of course, if wikipedia were up and running, I could have simply linked to <a href="http://en.wikipedia.org/wiki/Reddit">their article</a> on the subject. I am sure that their crowd-sourced article is infinitely better than what I've pieced together here. Write your congressman to stop introducing breakage into the internet.<br /><br /><ul><br /><li>Tit: The internet perceives censorship as damage and routes around it.</li><br /><li>Tat: SOPA would break DNS at the TLD level</li><br /></ul><br /><br /><br />In case, you haven't heard about reddit, here is my summary of what it is. Reddit is one of the most popular and innovative sites on the internet. It is ranked within the top 75 websites in the world, as estimated by total traffic; it is ranked within the Alexa top 125. Recently, Reddit released some of their traffic statistics that showed 2 billion page views in one month. That's fine and good, but what is it? It is a website that is designed to provide news aggregation to appropriate sub-communities within their total audience. They have the seemingly simple goal of matching the topic being discussed with an appropriate news consumer. This isn't a new idea- not by any measure. TV news (remember TV news?) was originally categorized into segments for basic news, weather, and sports. Newspapers (remember newsprint?) have always had a lot of sections: local, national, editorial, comics, classifieds, etc. The concept is the same, only Reddit takes this concept to its ultimate limit. There are literally tens of thousands of categories with content provided and driven by a matching community. Most reddit communities, or subreddits, are small. However, the most popular have over 1 million subscribers! Popular subreddits are r/pics, r/funny, r/todayilearned, r/askreddit, r/iama, r/explainitlikeimfive. There are a lot of technical subreddits, too: r/linux, r/buildapc, r/opensource, etc. The content on most of these subreddits is lightly moderated. That means users will mostly decide what will be popular and what is relevant. A story rises and falls based on popularity. Users really vote for good stories, moving them up in the massive stack of past stories. Also, bad stories get voted down, and they sink deeper into the accumulated pile. If a story becomes popular at the subreddit level it can be promoted to the main page and receive wide coverage from the vast overall audience. The method seems to work. Even stories with very obscure content can receive coverage, simply by catching the interest of a critical mass of the community. That is my view from 10,000 feet. I really could've used wikipedia to check my facts!<br /><br />Here is a recent screenshot showing the SaltLakeCity subreddit:<br /><a href="http://www.xmission.com/~ddmayne/misc/ss.2012-01-16.01.png"><img src="http://www.xmission.com/~ddmayne/misc/tn.ss.2012-01-16.01.png">.</a><br /><br />Because Reddit is doing a lot of things right, and providing a lot of innovation it is the heir-apparent to earlier web pioneers that showed the potential and versatility of on demand news sites. Slashdot is the grandfather of all of these sites. Reddit added features and flexibility and it's hard to see it losing out to anyone else. The government is trying to interject itself into this space. Reddit would be affected to the point that they've said they'd close their doors. Amazingly, reddit keeps their website running with only ten or eleven employees. If SOPA/PIPA pass, then bye-bye reddit!<br /><br />Here is a taste of what the law could lead to, no more reddit:<br /><br /><a href="http://www.xmission.com/~ddmayne/misc/ss.2012-01-18.01.png"><img src="http://www.xmission.com/~ddmayne/misc/tn.ss.2012-01-18.01.png">.</a><br /><br />What about reddit has made it popular?<br /><br /><ul><br /><li> Empowers users to build and manage their own content</li><br /><li> Easy and powerful user interface to format text, embed graphics, and link to other sites in a totally immersed web environment</li><br /><li> heir-apparent to earlier news aggregation sites (slashdot, digg)<br /><li> heir-apparent to usenet classification-type system. subreddits match closely with newsgroups in usenet. For example, comp.os.linux.misc matches up with discussions at r/linux and r/opensource.</li><br /><li> Dynamic rendering of the site on a per user basis. Rendering is determined based on several factors including user subscription and group access control lists. I am guessing that these requirements must place significant demand on their Amazon based servers that are used to provide the site to its 1 million plus simultaneous users. As users know, the site sometimes struggles with delivering content 100% of the time.<br /></ul><br /><br />Sites like reddit are at the forefront of innovation. Empowering users means giving people what they want. That can be as simple as providing the news they want. It also can be used in creative ways, ways never imagined by their creators. Social media and technology were at the heart of the Arab Spring uprisings. The people demanded their governments give them what they want, or get out of the way.Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com1tag:blogger.com,1999:blog-3543132764440287443.post-19979692716703131762012-01-16T07:45:00.000-08:002012-02-02T11:49:53.207-08:00Minor Update to My Live USBI have been using a live USB based system, off and on, for the last few months. I am impressed with how well it actually works! There have been a few glitches on my hardware, and have switched to the <i>bleeding edge</i> linux kernel, v3.2.1. I've also upgraded to Firefox 9. It moves a few toolbars around by default, but they can be swapped back to look more like v.3.6.x. The root filesystem is prepopulated with an almost full base install of Slackware 13.37, with a few updates beyond, including the kernel. A few useful packages are also installed including the evince document viewer, and some browser plugins. The space used from the outset is about 3.9G.<br /><br />Here is a screenshot of the live USB running, with the firefox about box appended:<br /><a href="http://www.xmission.com/~ddmayne/misc/ss.2012-01-16.01.png"><img src="http://www.xmission.com/~ddmayne/misc/tn.ss.2012-01-16.01.png">1.</a><br /><br />The system is running in true live mode- all changes to the system are stored in RAM only. A persistent mode is also available. The system's root filesystem is using the same layout as discussed previously on an 8G flash drive.<br /><br />edit: Here are the steps I use to finalize the boot of a pristine Slackware install in live mode.<br /><br /><ul><br /><li>login as root </li><br /><li>run pkgtool, select the slackware scripts to run again. Select the relevant choices.</li><br /><li>add a non-root user using adduser</li><br /><li>add the above non-root user to the sudoers list, using visudo</li><br /><li>setup wifi connection parameters, if applicable, using wicd-curses, or similar</li><br /><li>login as non-root user and begin customizing user environment as desired</li><br /><ul><br /><li>set screensaver; I dislike the default selection, random screensaver</li><br /><li>customize xfce's main toolbar</li><br /><li>start firefox to initialize user directory, .mozilla</li><br /><li>install adobe flash</li><br /><li>install other plugins: greasemonkey, reddit enhancement suite</li><br /></ul><br /></ul><br /><br /><b>Update 2012-02-02:</b> There were a lot of slackware patches in the recent official slackware changelog. Here is a screenshot showing Firefox 10.<br /><br /><a href="http://www.xmission.com/~ddmayne/misc/ss.2012-02-02.01.png">2.</a>Douglas Maynehttp://www.blogger.com/profile/03592928838904761226noreply@blogger.com1