Google
 
Web QrooniX

Sunday, September 20, 2009

Nothing New

No new post here in QrooniX. I'll get an M4/M16 variant AEG next month. Or an AK variant. My AUG is still collecting dust. I haven't played airsoft in a long time! I've been busy with practice driving and darts. And Linux? Nothing fancy, I'm still using it on my netbook.

Labels: , ,


Wednesday, July 08, 2009

Zoom B2.1u on Linux

Zoom B2.1u works on Linux (Fedora)! No need to install drivers as the unit was detected automatically. Upon connecting the USB interface to my machine (Acer Aspire One), my B2.1u was detected:

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: , , , , , , ,


Saturday, May 16, 2009

Linux on Dell Netbook

Dell netbooks will be available in both Linux and Windows. In my opinion it is good for Linux and Microsoft as well. For Linux, more exposure and better experience than the crippled Linpus on Acer Aspire One and jurassic Xandros on eeePC. The good news too, is that there are no hardware differences on both Linux and Windows offering.

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.

Labels: ,


Saturday, April 18, 2009

Fedora 10 on Acer Aspire One

Fiddling around with this netbook (we got the one with XP home version), I tried to use the XFCE Fedora 10 live CD. I was a bit surprised that all of the hardware were detected out of the box (WiFi, sound, correct screen, webcam and a lot more). I then decided to keep/install it on the hard drive.

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: , , , ,


Wednesday, April 01, 2009

Highest Load Average

That I have seen/experienced so far:

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: ,


Tuesday, October 14, 2008

Scratching An Itch

Is there an option in 'tar' to add a file on an archive and delete it upon adding? Well, there is -r (append) but it can't add files to a gzipped file. Well, I came up with a small hack:

#!/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: , , , ,


Thursday, January 24, 2008

Nifty NiX

I was asked if I can create a DVD/CD installer optimized for a targeted application [some LAMP and Java stuff (yes Java!)]. Being the impulsive, yes I can nut case, I readily accepted the challenge. I only realized (after creating RPMs and applying patches) that I am basically spinning my own Linux Distro! I'm aware of Fedora re-spins and other packaging what-nots, but it is only now that I'm actually getting my hands dirty.

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: , , , , , ,


Monday, January 14, 2008

Java And Other Cup of Updates

I was able to resolve the issues regarding getting some information about JVM. I had to set the $JAVA_HOME first, then execute the the simple query. Why am I getting these information? I'm doing a simple installation auditing and dumping it to a text file that can be parsed by PHP. Part of this is also getting the server's date of installation. Utilized the simple line below to get the '/' date of creation:

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: , , , ,


Friday, November 30, 2007

QrooniX Quickies

I have a set of files (500+) to put on archive. The files from different directories were generated by script from a bug tracker. The pathnames we saved into a text file. To archive those files, I used the following command:

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.

Zoom B2.1u Bass Effects Pedal

Labels: , , ,


Wednesday, September 12, 2007

Another Find: Finding and Deleting Files Based On Date Creation

To find and delete directories:

find -type d -mtime +n -daystart | xargs rm -rf

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:

find -mtime +n -daystart > find-result.txt

Enjoy deleting!

Labels: ,


Friday, August 24, 2007

Restricted Bash (rbash) and Hack-ish Jail

Why hack-ish? Well, I didn't use the formal chroot and other jail technologies to restrict some users. The premise is that certain users will use very basic set of commands:

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: , , ,


Saturday, August 18, 2007

Monit and Tomcat

Tomcat is acting up. We need to see if it died gracefully or hanged. Using monit we can monitor tomcat's pid. But what if it is hanging in there? So, using some monit option, we could check the tomcat's http response at port 8080.

## 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.

Labels: , ,


Friday, August 17, 2007

*Nix Tidbits

Got this error/warning while restarting Apache on FreeBSD:

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: , , , , ,


Monday, July 16, 2007

Linux Local Yum Repository

Create the directories to be used:

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: , ,


Sunday, July 15, 2007

Linux LVM -- Adding New Volume

# fdisk /dev/sdb

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!

Labels: ,


Wednesday, May 30, 2007

Back to ASUS

After using my wife's Apple iBook for 2 weeks, I'm now back to using my ASUS A6B00R (Fedora Core 6). I will have to upgrade OS X to 10.4 before I can install some *nix apps. In my line of work, I need monitoring tools like Wireshark and EtherApe. But I love GarageBand, thinking of installing OSX on this ASUS notebook (hint: Project OSX86).

Labels: , , , ,


This page is powered by Blogger. Isn't yours?