Out Here In The Field : Journeys


World of Goo Pick Your Price campaign
October 22, 2009, 11:39 am
Filed under: *Nix, Ubuntu, Windows, gaming, life on the wired | Tags: , , , ,

Commemorating one year of World of Goo, 2D Boy, the developer of the DRM free game is holding a “pick your price” promo for the said game.  Instead of paying the usual USD20, you get to choose how much money you’re going to spend for a copy of The World of Goo. Go here to get to the promo page.



ORA-27054 on RHEL
September 13, 2009, 12:17 am
Filed under: *Nix, E51, IRL, Red Hat, life on the wired, oracle | Tags: , , , , , ,

I previously encountered this issue on my 10.2 RAC nodes running on top of HP-UX. I faced it the 2nd time when performing postclone operation on a Oracle EBS 12.0.0.5 on AIX. This time, the error popped up when I’m trying to perform postclone for Oracle EBS HCM module  on a RHEL  4U6 x86-64. A reference in using nfs for Oracle can be found here. My NFS partition is mounted using :

mount 172.16.2.82:/hcmdev /u01 -o rw,bg,intr,hard,
timeo=600,wsize=32768,rsize=32768,nfsver=3,tcp

I don’t have to put “noac” on the option since the RHEL node is not an RAC cluster



Jaunty Jackapole and Toshiba Satellite M300-E413

I upgraded my Intrepid install a couple of months ago to Jaunty, but I haven’t got the chance to blog about it. In fact it’s been a while since I posted anything on my blog. The update is fairly straight forward, and as expected, broke several functions in my lappie, namely graphic acceleration and bluetooth. For fglrx, I suggest you to stick to the ubuntu sanctioned package, available from their repos, since the newest package from ATI broke several things in my box, such as Xinerama :( You can refer to my intrepid post on how to install it from Ubuntu repos

For bluetooth, you still need to install omnibook-source package. The steps to get it to work is almost the same as on my intrepid howto, with a couple of changes here and there. Get everything you need to build a module by opening console and type:


surfer@M5MobileMark-II:~$sudo apt-get install module-assistant build-essential

After that, double click on the omnibook-source file to install the package. Follow the instruction. Next is to build the module:


surfer@M5MobileMark-II:~$sudo m-a a-i omnibook-source

To activate the bluetooth adapter immediately, type:

surfer@M5MobileMark-II:~$sudo modprobe omnibook ectype=14 userset=0 lcd=0 display=0 blank=0 battery=0 ac=0 bluetooth=1

The next thing to do is to get the bluetooth adapter to start on boot. Add the module to the /etc/modules. Open the file by console

surfer@M5MobileMark-II:~$sudo nano /etc/modules

Add a new line, and put omnibook then save. My /etc/modules looks like this:


 fuse
 lp
 sbp2
 omnibook

Next, create script that will be executed on boot:

surfer@M5MobileMark-II:~$sudo nano /etc/modprobe.d/omnibook

….and add the following line to the file

options omnibook ectype=14 userset=0 lcd=0 display=0 blank=0 battery=0 ac=0 bluetooth=1

Save, and reboot. The bluetooth adapter should work after reboot.

To get bluetooth to work after a hibernate, do the following steps :

surfer@M5MobileMark-II:~$ cd /usr/lib/pm-utils/sleep.d/
surfer@M5MobileMark-II:~$ sudo nano 89bluetooth

Put these lines on the file:

#!/bin/bash
rmmod -f omnibook
modprobe omnibook ectype=14 userset=0 lcd=0 display=0 blank=0 battery=0 ac=0 bluetooth=1

Save. Set the file to be executables by :

surfer@M5MobileMark-II:~$ sudo chmod 755 89bluetooth

After that, bluetooth adapter should be able to start after resume



12:34:56-7/8/9
August 7, 2009, 12:50 pm
Filed under: *Nix, Ubuntu, time out
12:34:56-7/8/9

12:34:56-7/8/9



sqlplus with crontab
August 6, 2009, 6:02 pm
Filed under: *Nix, IRL | Tags: , , , ,

Ever want to run oracle’s sqlplus with crontab? Most of the time, the script won’t be executed, even though you’re already using the right user account. This is because crontab does not source the user’s environment variable when executing the command, and this cause some specific ORACLE variables not having the correct vaules, and in turn caused sqlplus to be unable to find some files required to run.

To solve this, you need to source the environment variables on your script. This is how the crontab script looks like :

$ more gstat.sh
. /home/oracle/.profile
/scripts/gstatsql.sh

and gstatsql.sh contains the sqlplus command that I want to run, while the gstat.sh is the one called by crontab. This is how my crontab looks like :

30     19      *       *       *       /scripts/gstat.sh

With this, crontab will source the environment variables for the user oracle, and sqlplus will be able to run correctly.



Lucky 7 anyone?
January 16, 2009, 9:54 pm
Filed under: *Nix, Microsoft, Ubuntu, Windows | Tags: , ,

So after letting it sit for a whole week on my hdd, I finally had the time to boot up the Windows 7 Beta dvd images on my VMWare server installation.

blue pill? or red pill?

blue pill? or red pill?

the install went very smooth. Soon I was greeted with a login screen eerily similar to Vista. But the label on the bottom ensure me that I did in fact have installed Windows 7, Ultimate Version. Thank God for that

the Ultimate Windows 7, Ultimate Edition

the Ultimate Windows 7, Ultimate Edition

The look and feel, again is eerily similar to Vista, save for the odd looking blocky taskbar. Also I’ve noticed that they changed the way the log off/shutdown/hibernate thingy works. instead of defaulting on an icon that dubiously represent hibernate, it is now set to default on shutdown, represented by a button that clearly states “shutdown”. Good for them!

Windows Vista SP2... I mean 7!

Windows Vista SP2... I mean 7!

The default install leave about 900MBish out of 8GB virtual drive that I have prepared. That’s of OS alone. Compare that to my 5GB Intrepid install that includes an office suit, 3 kind of browsers, google earth, a database server, http server, vmware, and so on and so forth…



Intrepid Ibex on Toshiba Satellite M300-E413
December 28, 2008, 1:02 pm
Filed under: *Nix, Ubuntu | Tags: , , , , ,

So, as I mentioned earlier on this post, I’m in the market for a new notebook. Particularly, I’m in the market for a notebook equipped with a  discrete graphic chip, either from Nvidia or ATI. After a lot of reading, I decided to get a BenQ S42, equipped with GF 9600 series (I can’t remember which one)

So, Just when I’m about to stroll to the BenQ store, I passed a Toshiba booth, and curiousity led me to enter the store. One and half an hour later, I walked out of the shop with a Satellite M300 in hand. The power or marketing :D

Anyway, the M300 comes with lesser specced graphic chip (ATI HD3470), but comes with eSATA port.The rest of spec is nearly the same.

As soon as I arrived home, the first thing that I do is to load the Intrepid Ibex cd, repartition the 200GB HDD to make way for my Ubuntu install. The installation process is smooth as usual. After reboot there are several peripherals that was not automatically detected, which are the dialup modem and bluetooth adapter. I can live without the modem, but the bluetooth is a must! Also compiz is not currently activated.

Installing Satellite M300-E413 bluetooth adapter

After rummaging for a while, I found out that I have to install omnibook-source to get the M300 bluetooth work. You can get the pacakage here. Make sure that the bluetooth is powered on by flicking the switch in front. Before installing  and building the module, get everything you need to build a module by opening console and type:


surfer@M5MobileMark-II:~$sudo apt-get install module-assistant build-essential

After that, double click on the omnibook-source file to install the package. Follow the instruction. Next is to build the module:


surfer@M5MobileMark-II:~$sudo m-a a-i omnibook-source

To activate the bluetooth adapter immediately, type:


surfer@M5MobileMark-II:~$sudo modprobe omnibook ectype=14

The next thing to do is to get the bluetooth adapter to start on boot. Add the module to the /etc/modules. Open the file by console


surfer@M5MobileMark-II:~$sudo nano /etc/modules

Add a new line, and put omnibook then save. My /etc/modules looks like this:


fuse
lp
sbp2
omnibook

Next, create script that will be executed on boot:

surfer@M5MobileMark-II:~$sudo nano /etc/modprobe.d/omnibook

….and add the following line to the file

options omnibook ectype=14

Save, and reboot. The bluetooth adapter should work after reboot.

One thing that I notice, the bluetooth adapter always failed to survive a system hibernate and resume. You would have to manually unload and reload the omnibook module. To do this manually, create a script just like this:

surfer@M5MobileMark-II:~$ cd /usr/lib/pm-utils/sleep.d/
surfer@M5MobileMark-II:~$ sudo nano 89bluetooth

Put these lines on the file:

#!/bin/bash
rmmod -f omnibook
modprobe omnibook ectype=14

Save. Set the file to be executables by :

surfer@M5MobileMark-II:~$ sudo chmod 755 89bluetooth

Hopefully, the bluetooth adapter should be able to start after resume

Compiz Fusion

To get desktop effect by compiz, the installed graphic chip driver must support acceleration. This usually means proprietary binary driver from the graphic chip vendor instead the FOSS radeon/radeonhd. There are several tutorial on how to do this floating on the internet. You can get Envy NG to fetch and install the latest binary driver available for you. I choose the Ubuntu way. First open up the Synaptic Package Manager by going to System > Administration > Synaptic Package Manager. Go to Settings > Repositories. On the Ubuntu Software Tab, put the checkmark on all of the available box, press close. Next reload synaptic by pressing the reload button. After synaptic is updated, close it. Go to System > Administration > Hardware Drivers. The ATI HD3479 driver should be listed there. Click on the “ATI/AMD propiertary FGLRX graphics driver”, then press the “Activate” button.

Activated AMD/ATI fglrx driver

Activated AMD/ATI fglrx driver

After the process is done, go to System > Preferences > Appearance. on the Visual Effects tab choose either Normal or Extra. If everything is ok, Compiz should be active immediately. To get the most of Compiz Fusion get the Emerald Theme Manager, Fusion Icon, and the compizconfig-settings-manager. Emerald let you change the windows decorator. Look for themes for emerald here. The Fusion Icon allows you to switch between compiz and metacity without having to resort to opening a console. Lastly, the Compiz Config Manager allow to enable or disable and tweak plethora of Compiz function and setting. To get them, open a console and type:


surfer@M5MobileMark-II:~$apt-get install compizconfig-settings-manager emerald fusion-icon

To make sure that the Fusion Icon is loaded every time we login,  go to Setting > Preferences > Session. Add a new session, put “fusion icon” as the name and fill the command with “fusion-icon -n”

Compiz Fusion is done, and now I can enjoy the desktop effect :D



ORA-27054 : Failed to create dump of Oracle database over NFS
December 17, 2008, 5:21 am
Filed under: *Nix, HP-UX

My previous post was regarding how to setup NFS server on HP-UX. It is used as target to dump database from an Oracle 10g.

The first thing that I have to do is, of course to make sure that the NFS share is automatically mounted on startup by adding a line on my /etc/fstab. The client  is on HP-UX 11.23 also

# vi /etc/fstab

This is the line that I add to the end of /etc/fstab file:

hqcmsdb2:/backup/dump /backup/dump nfs proto=tcp,rw,intr,bg,rsize=32768,wsize=32768 0 2

Please note that the lines above is intended to be written on a single line. The NFS share is mounted on /backup/dump. I was also able to write to the folder using oracle user account. Mount the share…

# mount /backup/dump

… and start the dump process. But the process logged an error, saying this:

“ORA-27054: NFS file system where the file is created or resides is not mounted with correct options

A short trip to google land told me that Oracle 10GR2 checks for certain parameter to be present on an NFS share before it start the dump process. Namely forcedirectio, vers=3, and hard. After trying several suggestion, this is my current entry on /etc/fstab

hqcmsdb2:/backup/dump /backup/dump nfs proto=tcp,forcedirectio,vers=3,rw,hard,intr,bg,rsize=32768,wsize=32768 0 2

After remounting the /backup/dump folder, I was able dump the database normally like it should be.

Please note that this is done on HP-UX system. Please consult the manual for fstab of your *Nix flavor for the similar parameters




Get synched with Dropbox
December 15, 2008, 12:03 am
Filed under: *Nix, Ubuntu, life on the wired | Tags: , ,

I use to carry a thumbdrive containing files that I regularly use. These includes small application such as HijackThis!, notes, sample scripts and configuration files, and may other things.The thing is, I’m a very forgetful person. I often misplace the thumbdrive, or left it home and what not.

So I started to keep an online repository of things that I might require time to time on my office server that is accessible from internet, although I stopped doing this when I got my current job.

So back to carrying thumbdrive. Until I found Dropbox.

Dropbox is a free service that you can use to do a folder synchronization between 2 or more computers, be it a Windows, (certain flavour of) Linux, or OS X. When I put a file on my laptop’s Dropbox folder, it gets synchronized to Dropbox server. When my office desktop is turned on, the Dropbox client will immediately check on updates, and synchronized the changes right away. Not only that, Dropbox keeps revision history of changes, and is able to revert from changes. Oh, and you can use it to share photos and stuff.

Did I mention that Dropbox support Linux too?

On linux, Dropbox integrates with Nautilus, so I can’t really say about KDE users.

To start using Dropbox, the first thing that you need to do is to download the Dropbox client app. Dropbox currently support some version of Ubuntu, FC9. It also gave you the option to install from source if binary installer for your version of Linux is not available. To install the clients app, double click the .deb file, or you can do it the oldschool way, by firing up your console, and type:

surfer@M5Mobile:~$sudo dpkg --install nautilus-dropbox_0.5.0-1_i386_ubuntu_7.10.deb

The next thing that you have to do is to kill all of nautilus instance that is currently running, or if you’re running Compiz, log out and log back in instead. To kill all of the Nautilus instance,

surfer@M5Mobile:~$killall nautilus

Dropbox client will immediately start downloading files that it needs to get going.

Meanwhile, create a folder that you’re going to sync to Dropbox. After a while, it’ll start a wizard for to collect your Dropbox account setting.

Obviously, if you don’t have a Dropbox account, click on “I’m new to Dropbox”, and press forward to enter your registration info.  It will then create an account for you. View or skip the tour. On the next screen, click on “I want to choose where to put my Dropbox”, then click on the “Finish and go to my Dropbox” button.

Pick the folder that you create earlier. Dropbox will create several new folders on your Dropbox. The tick mark on each folders means that your local folder is in sync with your online folder.

Photos is used to store images that you want to share, while Public for files that you want to share. To share, right click on a file, and on Dropbox submenu, click on “Copy public link”. Paste the link to IM windows, e-mail clients, or whatever means you use to send the link. Files that you drop on these folders will be automatically uploaded/updated to your 2GB online storage.

Well.. that’s it.



Activating NFS server on HP-UX 11.xx
December 11, 2008, 5:29 am
Filed under: *Nix, HP-UX | Tags: ,

This is done on HP-UX v 11.23.

  1. Make NFS Server to autostart
    • Open /etc/rc.config.d/nfsconf

      # vi /etc/rc.config.d/nfsconf

    • Change NFS_SERVER paramater from “0″ to “1″, then save.

      NFS_CLIENT=1
      NFS_SERVER=1
      NUM_NFSD=16
      NUM_NFSIOD=16
      PCNFS_SERVER=0

  2. Share some directories
    • Open /etc/exports

      # vi /etc/exports

    • add directories that you want to share to the file, for example:

      /var/opt/ignite/clients -anon=2
      /var/opt/ignite/recovery/archives/hqcmsdb1 -anon=2,access=hqcmsdb1
      /backup/dump -access=hqcmsdb1

      the parameter “-anon=2” means all anonymous access will be given default uid “2” while the parameter “-acess=hqcmsdb1” means only that server is allowed to mount the share. No parameters means the directories shared with read write access for everyone. For more infos and examples, type “man 4 exports” on the console

    • Update the share

      # /usr/sbin/exportfs -a

    • Make sure the right folder are shared

      # /usr/sbin/exportfs
      /var/opt/ignite/clients -anon=2
      /var/opt/ignite/recovery/archives/hqcmsdb1 -anon=2,access=hqcmsdb1
      /backup/dump -access=hqcmsdb1

  3. Start NFS Server
    • Check whether NFS is already started or not

      # ps -ef | grep nfsd
      root 2309 2308 0 20:22:54 ? 0:00 /usr/sbin/nfsd 16
      root 2333 2312 0 20:22:54 ? 0:00 /usr/sbin/nfsd 16
      root 2332 2312 0 20:22:54 ? 0:00 /usr/sbin/nfsd 16
      root 2307 1 0 20:22:54 ? 0:00 /usr/sbin/nfsd 16
      root 2334 2312 0 20:22:54 ? 0:00 /usr/sbin/nfsd 16
      root 2308 1 0 20:22:54 ? 0:00 /usr/sbin/nfsd 16
      root 2310 2309 0 20:22:54 ? 0:00 /usr/sbin/nfsd 16
      root 2312 2308 0 20:22:54 ? 0:00 /usr/sbin/nfsd 16
      root 2313 2308 0 20:22:54 ? 0:00 /usr/sbin/nfsd 16
      root 2316 2308 0 20:22:54 ? 0:00 /usr/sbin/nfsd 16
      root 2315 2313 0 20:22:54 ? 0:00 /usr/sbin/nfsd 16
      root 2314 2308 0 20:22:54 ? 0:00 /usr/sbin/nfsd 16
      root 2317 2308 0 20:22:54 ? 0:00 /usr/sbin/nfsd 16
      root 2318 2309 0 20:22:54 ? 0:00 /usr/sbin/nfsd 16

      If the output is similar to the above example, then the nfsd is already started, if not..

    • start the nfsd daemon

      # /sbin/init.d/nfs.server start

  4. Test whether the shared directories can be mounted from the target server
    • Mount the shared directory manually

      # mount -F nfs hqcmsdb2:/backup/dump /backup/dump

    • Check whether the directory is mounted correctly

      # mount
      / on /dev/vg00/lvol3 ioerror=nodisable,log,dev=40000003 on Sun Dec 7 18:03:17 2008
      /stand on /dev/vg00/lvol1 ioerror=mwdisable,log,nodatainlog,tranflush,dev=40000001 on Sun Dec 7 18:03:18 2008
      /var on /dev/vg00/lvol8 ioerror=mwdisable,delaylog,nodatainlog,dev=40000008 on Sun Dec 7 18:03:31 2008
      /var/opt/ignite/recovery/archives on /dev/vg00/lvol10 ioerror=mwdisable,largefiles,delaylog,nodatainlog,dev=4000000a on Sun Dec 7 18:03:31 2008
      /usr on /dev/vg00/lvol7 ioerror=mwdisable,delaylog,nodatainlog,dev=40000007 on Sun Dec 7 18:03:31 2008
      /u01 on /dev/vg00/lvol9 ioerror=mwdisable,delaylog,nodatainlog,dev=40000009 on Sun Dec 7 18:03:31 2008
      /backup/dump on hqcmsdb2:/backup/dump rsize=32768,wsize=32768,NFSv3,dev=7 on Wed Dec 10 20:37:33 2008

Aand.. I think we’re done