Moving again
Textual Linux is moving to a new location.
This site will be kept as a source of information, as I will also try to copy the old posts to the new site, but for new updates, please go to http://textlinux.slackadelic.com
dadexter's life and command line discoveries.
Textual Linux is moving to a new location.
One of the big features from Amarok I was missing while being a CLI/ratpoison-only user was the ability to generate a random playlist and have it copied to my mp3 player. I knew there was a way to have that done from a playlist file saved from mp3blaster, the music player I use.
#!/bin/bash
# this script needs bash, random, and the basic cp stuff
# creates a random playlist from a mp3blaster playlist file
IFS=$'\n'
RANDOM=`which random`
PLAYLIST=$1
NUMSONGS=$2
TARGET=/mnt/usbdrive
for file in `cat ${PLAYLIST} | tail -n +2 | ${RANDOM} 10 | head -n ${NUMSONGS}`; do
cp -v ${file} ${TARGET}/`basename ${file}`
done
Tonight I discovered a nifty tool for those of us who want lots of information about the hardware in their computer: lshw
Hardware Lister (lshw) - B.02.08.01
usage: ./src/lshw [-format] [-options ...]
./src/lshw -version
-version print program version (B.02.08.01)
format can be
-html output hardware tree as HTML
-xml output hardware tree as XML
-short output hardware paths
-businfo output bus information
options can be
-class CLASS only show a certain class of hardware
-C CLASS same as '-class CLASS'
-disable TEST disable a test (like pci, isapnp, cpuid, etc. )
-enable TEST enable a test (like pci, isapnp, cpuid, etc. )
*-network:1
description: Wireless interface
product: RT2500 802.11g Cardbus/mini-PCI
vendor: RaLink
physical id: 9
bus info: pci@01:09.0
logical name: ra0
version: 01
serial: 00:14:bf:77:6a:a1
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=rt2500 ip=192.168.0.102 latency=32 multi
resources: iomemory:ec004000-ec005fff irq:17
From the Slackware changelog:
Ok... I have decided to split my blog, and add a new one to the pot:
Kanola v0.1 is just around the corner. All I need now is a codename for the 1st release.