Sunday, September 20, 2009
Nothing New
Wednesday, July 08, 2009
Zoom B2.1u on Linux
Jul 7 16:37:17 localhost kernel: usb 2-2: new full speed USB device using uhci_hcd and address 10
Jul 7 16:37:18 localhost kernel: usb 2-2: configuration #1 chosen from 1 choice
Jul 7 16:37:18 localhost kernel: input: Burr-Brown from TI USB Audio CODEC as /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.3/input/input11
Jul 7 16:37:18 localhost kernel: input,hidraw1: USB HID v1.00 Device [Burr-Brown from TI USB Audio CODEC ] on usb-0000:00:1d.0-2
Jul 7 16:37:18 localhost kernel: usb 2-2: New USB device found, idVendor=08bb, idProduct=2904
Jul 7 16:37:18 localhost kernel: usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jul 7 16:37:18 localhost kernel: usb 2-2: Product: USB Audio CODEC
Jul 7 16:37:18 localhost kernel: usb 2-2: Manufacturer: Burr-Brown from TI
Jul 7 16:37:18 localhost kernel: usbcore: registered new interface driver snd-usb-audio
I was able to record a simple clip using Audacity. To use the B2.1u as an input, go to View > Toolbars > Device Toolbar and set it similar to this:
Here is the sound clip. I used an SX Precision with Olympia flatwounds.Labels: Acer Aspire One, Bass Guitar, Fedora 10, Linux, Olympia, Precision Bass, SX, Zoom B2.1u
Saturday, May 16, 2009
Linux on Dell Netbook
On my personal experience, I have to wipe out WinXP home from Acer Aspire One. The reason is because there are no models available with Linux installed.
Saturday, April 18, 2009
Fedora 10 on Acer Aspire One
And here I am, happily back with Linux on desktop. This netbook is not for heavy processing work. But for web browsing (Firefox), Music (XMMS), casual Word Processing (Abi Word), Video (vlc/mplayer) and IM (Pidgin/Skype), this machine is superb with Linux.
One thing that I'm a bit disappointed is the dual (mirrored/extended) display. There is no out of the box detection of the correct resolution of the second monitor. Well, I didn't try on XP though. If I'm not busy with work and hobbies, I'll probably give it a spin (dual display).
Labels: Acer Aspire One, Fedora 10, Linux, Netbook, XFCE
Wednesday, April 01, 2009
Highest Load Average
top - 08:29:34 up 306 days, 20:08, 1 user, load average: 6366.95, 2216.33, 848.21
Tasks: 3956 total, 13 running, 2161 sleeping, 0 stopped, 1782 zombie
Cpu(s): 10.6% us, 2.3% sy, 0.0% ni, 86.6% id, 0.3% wa, 0.0% hi, 0.1% si
Mem: 8165496k total, 6775984k used, 1389512k free, 7900k buffers
Swap: 2031608k total, 250964k used, 1780644k free, 90364k cached
Labels: Linux, Load Average
Tuesday, October 14, 2008
Scratching An Itch
#!/bin/bash
for blah in `ls *.ext` # list the desired files
do
tar rvf foo.tar $blah ; rm -rf $blah # append and delete the added file on the archive
done
gzip foo.tar # zip the archive
------
I haven't scratched my other itch, that is a Jazz Bass, he he he.
Labels: bash, delete, gzip, Linux, tar
Thursday, January 24, 2008
Nifty NiX
Getting intimate with clean RPMs, that is, creating RPMs out of sources with third party patches. Oh, and that pesky beast called Java! Then again, the peskier, the more I'm challenged :). More RTFM sessions and more coffee to drink. Hoping that by April, I'm already one of those thousands who have successfully delved with distro-making.
------------------------------------------------
And for the performance monitoring of systems, I came across with SystemTap. I'm still getting the hang of it. I'm also dubbing with writing some Nagios plug-ins (not really plug-ins but bash scripts on top of check_generic). People doesn't like me when I'm horny, err, busy :)
-----------------------------------------------
As promised, I found the link to the Zoom B2.1u cheat sheet, the pdf is located here.
Labels: Java, Linux, Nagios, QrooniX Distro, Scripts, SystemTap, Zoom Bass Effects
Monday, January 14, 2008
Java And Other Cup of Updates
dumpe2fs -h `df -h | awk '{print $1}' | sed -n '2p'` | grep Filesystem\ created | sed -n '2q;1p' | awk '{print $3,$4,$5,$6,$7}'
On a separate note, I gave my wife the information about wget. She have a list of files from different http locations and she needed to downloaded them at once. Using '-i' option of wget did the trick:
wget -i list-of-files.txt
-----------------------------------------------
I've been experimenting with my ZOOM B2.1u bass pedal and loving it more. I found some information on easily editing the patches. I have the 'cheat sheet' but forgot to bookmark the site. I'll be posting the site as soon as I googled it again :)
Labels: Java, Linux, Music, Scripts, Zoom Bass Effects
Friday, November 30, 2007
QrooniX Quickies
tar cvzfT archivename.tar.gz file-list.txt
A colleague created a patch/hack in order to have bulk closing function on Eventum. I'll be posting here some screenshots and code snippets regarding the function.
Due to my not so recent re-kindling of music interest, I procured a Zoom B2.1u Bass Effects Pedal. Looks and feels solid. The available patchsets and other functions are abundant. Once I get the hang of it, I'll be posting a more detailed review/information.
Labels: Eventum, Linux, Music, Zoom Bass Effects
Wednesday, September 12, 2007
Another Find: Finding and Deleting Files Based On Date Creation
To find and delete directories:
For files:
find -mtime +n -daystart | xargs rm -rf
To be sure, we can pipe the result to a text file to double-check the files:
Enjoy deleting!
Friday, August 24, 2007
Restricted Bash (rbash) and Hack-ish Jail
ls
less
ping
tail
ps
top
grep
Create a group for the restricted users:
groupadd monitoringteam
Create a common home and bin directory:
mkdir -p /home/monitor/bin
Add a user:
useradd monitor-guy -g monitoringteam -d /home/monitor -s /bin/rbash
Create (or copy from /etc/skel) .bash_profile and .bashrc inside /home/monitor and add the following:
export PATH=~/bin
Go to the bin directory under /home/monitor and create the soft links of the basic commands:
cd /home/monitor/bin
ln -s /bin/command_here commandname_here
Note: some of the commands are at /usr/bin/, just use 'which' to know the paths. You can fine tune this set-up :) As I said, this is hack-ish, quick and grungy.
Labels: Centos, jail, Linux, rbash
Saturday, August 18, 2007
Monit and Tomcat
## Monitor Tomcat's pid
check process tomcat with pidfile /opt/tomcat/logs/tomcat.pid
alert some.alerts@some.domain
mode passive
#
## Monitor Tomcat at port 8080
check host localhost with address 127.0.0.1
start program = "/etc/init.d/tomcat start"
stop program = "/etc/init.d/tomcat stop"
if failed port 8080 protocol http
then restart
alert some.alerts@some.domain
Reset monit services, stop the tomcat services and check the logs.
tail -f /var/log/monit.log
ps -ef | grep tomcat
Hhhmmm... something's weird. Monit didn't restart Tomcat. Check the logs and got these:
info : 'tomcat' start: /etc/init.d/tomcat
error : 'tomcat' failed to start
Googled some. I then put the /etc/init.d/tomcat start/stop on a simple script.
touch start-tomcat.sh
touch stop-tomcat.sh
And changed the /etc/init.d/ lines at monit.conf to:
start program = "/somedir/start-tomcat.sh"
start program = "/somedir/stop-tomcat.sh"
Test the configs and voila! Back to playing some basic bass stuff: 12 bar blues progression.
Friday, August 17, 2007
*Nix Tidbits
No such file or directory:
Failed to enable the ‘httpready’ Accept Filter
To resolve this, issue the following command:
kldload accf_http
----------------------------------------------------------------------------------
So, some some directory was filled with thousands of files. To remove these files, you will issue:
rm -rf *
But if this error occurs:
- /bin/rm: Argument list too long
You may use use find and xarg. To do that, you can issue this command:
find . -type f -name '*string_here*' -print | xargs rm
Others may ask, why not use the -delete option instead of xargs rm? There are a lot of deployments that has an old version of find. :)
Labels: find, FreeBSD, httpd, Linux, rm, xarg
Monday, July 16, 2007
Linux Local Yum Repository
mkdir -pv /var/www/html/centos/5/{base,updates}
Populate the base repository by copying all the rpms from the CDs/DVD.
Check if createrepo is installed:
rpm -qa | grep createrepo
If not, then:
yum -y install createrepo
Then issue the following command to create the headers:
createrepo /var/www/html/centos/5/base
To populate the updates, you may have to choose the nearest mirror to rsync. Issue to following command to sync with your chosen mirror:
rsync -avrt rsync://ftp.iij.ad.jp/centos/packages/centos/5.0/updates/i386 \ --exclude=debug/ /var/www/html/centos/5/updates
Order some pizza and buy a six pack :)
Set the local machines to get their updates from your local repo:
vi /etc/yum.repos.d/CentOS-Base.repo
[base]
name=CentOS-$releasever - Base
baseurl=http://10.2.*.*/centos/$releasever/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#released updates
[update]
name=CentOS-$releasever - Updates
baseurl=http://10.2.*.*/centos/$releasever/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
Labels: Linux, Local Set-up, Yum
Sunday, July 15, 2007
Linux LVM -- Adding New Volume
Create the the necessary partitions. (e.g. /dev/sdb1)
Format the new partition
# mkfs.ext3 /dev/sdb1
Label the new formatted partition
# e2label /dev/sdb1 New_name_here
Initialize the creation of a new volume
# pvcreate /dev/sdb1
Join /dev/sdb1 on a new volume
# vgcreate VolGroup01 /dev/sdb1
# vgchange -ay VolGroup01
# vgdisplay VolGroup01 | grep "Total PE"
Use the output of Total PE (e.g. 8677)
# lvcreate 8677 -n LogVol01 VolGroup01
# mkfs.ext3 /dev/VolGroup01/LogVol00
Change or add an entry in /etc/fstab
# vi /etc/fstab
Add the following:
/dev/VolGroup01/LogVol00 /home/USERS ext3 defaults 1 1
Save and quit :wq
# mount /home/USERS
That's it!
Wednesday, May 30, 2007
Back to ASUS
Labels: A6B00R, Apple iBook, ASUS, Fedora Core 6, Linux






