September 4, 2010

Using AirTunes-AirMac Express from Ubuntu Linux

Filed under: Ubuntu — mariojump @ 9:22 pm

Install pulseaudio-module-raop
$ sudo apt-get install pulseaudio-module-raop

Install paprefs
$ sudo apt-get install paprefs

$ paprefs
In “Network Access Tab”, check both:
Make discoverable PulseAudio network sound devices available locally
Make discoverable Apple AirTunes sound devices available locally

System’s sound setting allows you to choose AirTunes sound device as output.

July 31, 2010

cron-like job setting on Windows XP with schtasks command

Filed under: Sample code,Windows — mariojump @ 4:57 am
Tags: ,

Task Scheduler GUI on Windows XP does not appear to allow us to set a job every 5 minutes.

Instead, schtasks command allows cron-like setting.

To set a job (a batch file) to run every 5 minutes, here’s a sample command.

C:\>schtasks /Create /SC MINUTE /MO 5 /TN yourjob_every5min.bat /TR C:\yourfolder\yourbatchfile.bat

July 3, 2010

Grub Error 18 – Debian Linux 5.05 (Lenny)

Filed under: Debian — mariojump @ 10:04 pm
Tags: , ,

When I installed Debian 5.05 (Lenny) onto a machine with an old motherboard, ASUS CUSL2-C (2000 or 2001 model), I got the following Grub error.

Grub Stage 1.5

Grub Loading, Please Wait
Error 18

My initial configuration was to use an entire HDD (one partition for the mountpoint / and another for swap).

According to the web page below, I made a separate /boot partition with 200MB, from the root (/) partition, placing the /boot at the first partition (/dev/hda1) of the HDD.

Then, base system installation was completed with GUI installation and Debian was successfully booted.

Motherboard: ASUS CUSL2-C (BIOS 1009, which is the latest release)
HDD: Hitachi HTS541616J9AT00 (160GB)

Incidentally, with this motherboard with Matrox G400 Video card, X window was not configured properly, and I am still researching.

June 4, 2010

Hadoop Installation Note (Standalone)

Filed under: Java,Linux,step-by-step — mariojump @ 10:30 pm
Tags: ,

This is a note when I installed Hadoop on a single machine (standalone).

I followed Hadoop Quick Start available at:

Check Java version — Java 1.6.x is required, and Sun version is preferred. See:

Download hadoop-0.20.2.tar.gz from:

$ tar xvzf hadoop-0.20.2.tar.gz

Skip rsync and ssh installation, as they are already available on the machine.

// Check the command usage:
$ cd hadoop-0.20.2
$ bin/hadoop
Usage: hadoop [–config confdir] COMMAND
where COMMAND is one of:
namenode -format format the DFS filesystem
secondarynamenode run the DFS secondary namenode
namenode run the DFS namenode
datanode run a DFS datanode
dfsadmin run a DFS admin client
mradmin run a Map-Reduce admin client
fsck run a DFS filesystem checking utility
fs run a generic filesystem user client
balancer run a cluster balancing utility
jobtracker run the MapReduce job Tracker node
pipes run a Pipes job
tasktracker run a MapReduce task Tracker node
job manipulate MapReduce jobs
queue get information regarding JobQueues
version print the version
jar run a jar file
distcp copy file or directories recursively
archive -archiveName NAME * create a hadoop archive
daemonlog get/set the log level for each daemon
CLASSNAME run the class named CLASSNAME
Most commands print help when invoked w/o parameters.

$ mkdir input
$ cp conf/*.xml input
$ bin/hadoop jar hadoop-*-examples.jar grep input output ‘dfs[a-z.]+’
Error: JAVA_HOME is not set.

$ /usr/java/latest/bin/java -version
java version “1.6.0_16”

$ export JAVA_HOME=/usr/java/latest
[added this line in the .bashrc]

Try again:
$ bin/hadoop jar hadoop-*-examples.jar grep input output ‘dfs[a-z.]+’

No error message is shown this time.
$ cat output/*
1 dfsadmin

May 13, 2010

GCJ (GNU Compiler for Java) Installation and Usage How-To

Filed under: Java,Ubuntu — mariojump @ 1:30 pm

GCJ (GNU Compiler for Java) can be installed on Ubuntu Linux with the following command.

$ sudo apt-get install gcj

This worked on Ubuntu 9.10 and 10.04.

To use it, (assuming you have a package and classes as specified,)

$ gcj -o yourcommandname –main=packagename.MainClassName packagename/ packagename/

April 23, 2010

x3270 on CentOS 5.4

Filed under: CentOS — mariojump @ 2:03 pm
Tags: ,

x3270 can be installed on CentOS 5.4 with the following commands.

# yum update
# yum install x3270 x3270-text x3270-x11

April 8, 2010

Ubuntu Linux Diskless Boot with DRBL (Diskless Remote Boot in Linux)

Filed under: Linux,Ubuntu — mariojump @ 1:55 pm
Tags: , , , ,

DRBL Package makes it much easier to implement Linux diskless client environment than setting up TFTP, DHCP, NFS, NAT-router, netboot-enabled kernels, and so on individually.

For complete steps, refer to .

Here’s the step-by-step record of mine.
I used Xubuntu 9.10 as a host, however, other Ubuntu 9.10 (Karmic) should be very similar, unless identical.

DRBL is also available for other distributions such as Fedora, Debian, etc.
If you need to use proxy, set $http_proxy and $ftp_proxy.

$ export http_proxy=
$ export ftp_proxy=

$ sudo apt-get remove network-manager
$ sudo cp /etc/network/interfaces /etc/network/interfaces.backup

$ sudo vi /etc/network/interfaces

$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
auto eth1
iface eth1 inet static

$ wget -q -O- | sudo apt-key add –

$ sudo vi /etc/apt/sources.list
## add following lines
deb karmic main restricted universe multiverse # (Or any Ubuntu mirror site near you)
deb drbl stable
## end

$ sudo apt-get update
$ apt-get install drbl

$ sudo /opt/drbl/sbin/drblsrv -i
## Selecting the default values worked.

$ sudo /opt/drbl/sbin/drblpush -i
## Selecting default values worked.
## When the server gets updated packages, the step above needs to be done again, according to the instruction.

Now, the server is ready for PXE-booting the clients.

April 3, 2010

Canon LBP3000 Printer on Ubuntu Linux 9.10 (Karmic Koala) and 10.04 (Lucid Lynx)

Filed under: Ubuntu — mariojump @ 10:18 pm
Tags: , , ,

This is my record when I installed Canon LaserShot LBP3000 Printer Driver on Ubuntu Linux 9.10 (Karmic Koala) 32bit.

[May 4, 2010] The following steps worked fine with Ubuntu 10.04 Lucid Lynx.

Download CAPT Printer Driver for Linux Version 2.00 from Canon.

Just follow the steps written in the installation manual by Canon.
I encountered one minor error. See below.

$ sudo apt-get update
$ sudo apt-get install cupsys

$ sudo dpkg -i cndrvcups-common_2.00-2_i386.deb
$ sudo dpkg -i cndrvcups-capt_2.00-2_i386.deb

$ sudo /etc/init.d/cupsys restart
sudo: /etc/init.d/cupsys: command not found

I got an error at the step above. So, executed the following line.

$ sudo /etc/init.d/cups restart
* Restarting Common Unix Printing System: cupsd [ OK ]

$ sudo /usr/sbin/lpadmin -p LBP3000 -m CNCUPSLBP3000CAPTJ.ppd -v ccp://localhost:59687 -E

Register LBP3000 in the ccpd configuration file.

$ sudo /usr/sbin/ccpdadmin -p LBP3000 -o /dev/usblp0
CUPS_ConfigPath = /etc/cups/
LOG Path = None
UI Port = 59787

Entry Num : Spooler : Backend : FIFO path : Device Path : Status
[0] : LBP3000 : ccp : //localhost:59687 : /dev/usblp0 : New!!

$ sudo /etc/init.d/ccpd start
Starting /usr/sbin/ccpd: .

Register ccpd as service.

$ sudo service ccpd restart
Shutting down /usr/sbin/ccpd: .
Starting /usr/sbin/ccpd: .

That’s all. Sharing the printer with Samba is fairly straightforward.
It’s as simple as:
1. Enable Samba Sharing. (If you enable one Samba Shared Folder with GUI, it will install Samba if you haven’t.)
2. Share the Printer on Samba – In the printer configuration menu, right click the printer and enable sharing.

March 7, 2010

Ubuntu XDMCP Access with Xephyr

Filed under: Linux,Ubuntu — mariojump @ 1:45 am

Ubuntu Linux can be remotely accessed via XDMCP as follows.

I used:
XDMCP Server: Ubuntu Linux 9.10 Netbook Remix
XDMCP Client: Ubuntu Linux 9.10 64bit
however, I believe this configuration can be used for other Ubuntu families, too.

Edit /etc/gdm/custom.conf, and set [xdmcp] section as follows.

$ cat /etc/gdm/custom.conf

Restart gdm.
$ /etc/init.d/gdm restart
(If you are using local GNOME, it will restart your current GNOME Desktop, too.)

With the info at:

$ sudo apt-get install xserver-xephyr
$ Xephyr -ac -screen 1280×768 -br -reset -terminate 2> /dev/null :2 &
$ echo $DISPLAY
— This is to restore the $DISPLAY later.

Set the $DISPLAY value to.
$ export DISPLAY=:2.0
This :2.0 needs to match with the Xephyr command line argument above.

$ ssh -XfC -c blowfish username@hostname_or_IPaddress gnome-session
will start the GNOME session in the Xephyr window.

Restore the $DISPLAY variable.
$ export DISPLAY=:0.0

February 17, 2010

Deleting $INPLACE.~TR and $WINDOWS.~Q Folders

Filed under: Windows — mariojump @ 3:00 pm

There were two odd folders on Windows 7.

I learned that these folders can be deleted following the instructions below, and deleted them myself.
No trouble at all.

« Previous PageNext Page »

Create a free website or blog at