Play RMVB video in Ubuntu 8.04( AMD64)

No Comment // Written on Jun 25, 2008 // Linux

Step 1:
sudo apt-get remove totem-gstreamer

Step 2:
sudo apt-get install totem-xine totem-mozilla totem

Step 3: Install win64Codecs?
w64codecs_20071007-0.3_amd64.deb
http://www.debian-multimedia.org/pool/main/w/w64codecs/

After install win64Codes.The rmvb video will can be play now.

I’ve catch a cold and cough every these days.

No Comment // Written on Jun 17, 2008 // Opinion

Unluckly.I’ve catch a cold for a week.This two days i’ve been wake up by my cough.It doesn’t matter to me ,But i affraid that i will bother my carol’s sleep.So i always want to keep quiet when i want to cough.But it take the more sound of cough.

My Body’s resistibility is bad to bad.I need to take exercise to keep my body health.Fighting!

iPhone 3G activation in store only?

No Comment // Written on Jun 11, 2008 // Opinion

Gizmodo is reporting that the days of activating your iPhone at home via iTunes are over. That’s right, AT&T says you’ll have to activate your iPhone in store either at an AT&T store or an Apple store. The process will take between 10 to 12 minutes per phone. Oh, and you won’t be able to order an iPhone 3G online at launch, so you’ll be at a store anyway.

Installation of Oracle 10g Release 2 on Solaris 10 x86

No Comment // Written on Jun 08, 2008 // Linux, Sql

This paper (HOWTO) describes step-by-step installation of Oracle 10g release 2 (10.2.0.2) database software on Solaris 10 x86.

This paper covers following steps:

Pre-Instalation Tasks

1. Create oracle User Account

Login as root and create te user oracle which belongs to dba group.

su -
# groupadd dba
# useradd -G dba -m -d /export/home/oracle -s /usr/bin/bash oracle

Note: “#” sign means that you need execute this command as root user.
2. Setting System parameters
Edit the /etc/system and add following line:

set noexec_user_stack=1

Note: Since Solaris 10 shared memory settings for Oracle in /etc/system is obsolete.

Execute following commands to configure system settings for Oracle.

# projadd -U oracle -K “project.max-shm-memory=(priv,4g,deny)” user.oracle
# projmod -sK “project.max-sem-nsems=(priv,256,deny)” user.oracle
# projmod -sK “project.max-sem-ids=(priv,100,deny)” user.oracle
# projmod -sK “project.max-shm-ids=(priv,100,deny)” user.oracle

Note: Use “prctl -i project user.oracle” command to check the settings.

3. Enviroment settings
Edit the /export/home/oracle/.bash_profile file and add following lines:

ORACLE_BASE=/opt/oracle
ORACLE_HOME=$ORACLE_BASE/102
ORACLE_SID=ORA10GR2
LD_LIBRARY_PATH=$ORACLE_HOME/lib
PATH=$PATH:/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin:$ORACLE_HOME/bin

export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH

Note: This configuration assumes that user oracle is using Bash as default shell.

Save the .bash_profile and execute following commands for load new enviroment:

cd /export/home/oracle
. .bash_profile

4. Create base directory for Oracle

Login as root and create base directory for Oracle ($ORACLE_BASE).

su -
# cd /opt
# mkdir oracle
# chown oracle:dba oracle

Download & Install

1. Installation of required packages

Some additional packages are required for succesful instalation of Oracle software. To check whether required packages are installed on your operating system use following command:

pkginfo -i SUNWlibms SUNWtoo SUNWi1cs SUNWi15cs SUNWxwfnt SUNWxwplt SUNWmfrun SUNWxwplr SUNWxwdv SUNWgcc SUNWbtool SUNWi1of SUNWhea SUNWlibm SUNWsprot SUNWuiu8

Install the required packages using the pkgadd command:

# pkgadd -d . SUNWlibms SUNWtoo SUNWi1cs SUNWi15cs SUNWxwfnt SUNWxwplt SUNWmfrun SUNWxwplr SUNWxwdv SUNWgcc SUNWbtool \
SUNWi1of SUNWhea SUNWlibm SUNWsprot SUNWuiu8

3. Download the Oracle 10g (10.2.0.2) software from Oracle website.
Extract the files using following command:

unzip 10202_database_solx86.zip

4. Start the Oracle software installation process.

Now the system is prepared for Oracle software installation. To start the installation process execute the following commands:

cd database
./runInstaller

Post-Instalation Tasks

1. Execute scripts (# means “as root”):

# /opt/oracle/oraInventory/orainstRoot.sh
# /opt/oracle/102/root.sh

2. (Optional) You may consider to use rlwrap for comfortable wor with sqlplus. Package for Solaris 10 (x86) release you can download here. Note rlwrap is dependent on readline library which should be installed first. Download readline library package.

su -
# gunzip readline-5.1-solaris-x86.gz
# gunzip rlwrap-solaris-x86.gz
# pkgadd -d readline-5.1-solaris-x86 rlwrap-solaris-x86
# exit
echo “alias sqlplus=’/usr/local/bin/rlwrap sqlplus’” >> /export/home/oracle/.bash_profile
. /export/home/oracle/.bash_profile

Common Installation Errors

Unable to convert from “UTF-8″ to “646″ for NLS!
Solution: Install SUNWuiu8 package.

Checking monitor: must be configured to display at least 256 colors >>> Could not execute auto check for display colors using command /usr/openwin/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<< Some requirement checks failed. You must fulfill these requirements before continuing with the installation,at which time they will be rechecked.
Solution(s):
1. Install SUNWxwplt package
2. Set DISPLAY variable
3. Execute xhost + on target (set in DISPLAY) computer

Exception in thread “main” java.lang.UnsatisfiedLinkError:
… libmawt.so: ld.so.1: java: fatal: libXm.so.4: open failed: No such file or directory

Solution: Install the SUNWmfrun package.

Can’t load ‘/usr/perl5/5.8.4/lib/i86pc-solaris-64int/auto/Sun/Solaris/Project/Project.so’ for module Sun::Solaris::Project: ld.so.1: perl: fatal: libpool.so.1: open failed: No such file or directory at /usr/perl5/5.8.4/lib/i86pc-solaris-64int/DynaLoader.pm line 230. at /usr/sbin/projadd line 19 Compilation failed in require at /usr/sbin/projadd line 19. BEGIN failed–compilation aborted at /usr/sbin/projadd line 19.
Solution: Install the SUNWpool SUNWpoolr packages.

I’ve installed OpenSolaris 2008.05 and got it run successful.

No Comment // Written on Jun 07, 2008 // Linux

With the ubuntu’s can get work with oracle 11g well,I try the Opensolaris now.Install process is like other linux.Very easy.Only problem is when i choose partion,I can not to part my partion by my self.

When i installed it , i get get my network work well,the ethernet’s driver can not be found.My motherboard is Gigabyte M56S-S3,and its chips is NForce 560.The ethernet’s chips is MCP65.By searching in google , i found the driver in this site:http://homepage2.nifty.com/mrym3/taiyodo/eng/

17. nfo driver for NVIDIA nForce chipset built-in ethernet controller

This is an alternative for solaris nge driver.

Tested OS version:

Solaris10 3/05 x86

Tested chips (main board product):

NVIDIA nForce4 Ultra CH8-04 GbE mac (Biostar NF4UL-A9)

NVIDIA nForce2 MCP-T fast ethernet mac (Thank to Tatu)

NVIDIA nForce3 fast ethernet mac (Thank to Kosugi)

NVIDIA MCP61 fast ethernet mac (Thank to James)

Source file with x86/amd64 binaries:

nfo-1.1.2.tar.gz only for nForce, nForce2, nForce3 and nForce4 series chipset

nfo-2.6.0.tar.gz for all generations of nForce chipset series, alpha test version

Just use the nfo-2.6.0.tar.gz . My network getting work now.And I just use the firefox 2.0 write this blog in OpenSolaris.

All of a sudden,the xwindows restart.

No Comment // Written on Jun 05, 2008 // Linux

When I minimize and maximize my firefox for several times.My xwindows restart immediately.This make all of my works lost.
Such a bug make me crazy,So i want to change a browser.
Opera? His font is too ugly.With searching in yahoo, i found flock.After 5 min’s use.I think,it is fit to me.This browser contain digg,facebook,flickr,twitter,youtube,and more things that we offen use.And it has a good skin.At lest I like.

Blogged with the Flock Browser

Tags: , , , ,

The above contend is publish by Flock,and the question is the tags which i type can’t insert to wordpress’s tags column.It’s just a link to a out site.Faint.

The integration of MediaWiki 1.12 into vBulletin 3.71 with vbWikiPro 1.3 RC5

No Comment // Written on Jun 05, 2008 // php

I’m been puzzling over this question for weeks.

The problem is everytime when i logout from vBulletin,and then i click the link which point to the wiki’s pages,It always give the message that like below:

?? Cookies ?????!

  • ????????????
  • ??????

But in factly,I hav’t login.

After a long work this trouble finally solved.

The method is very very briefness,Just open vbWiki_Auth.php and annotate the 390 line .

This line’s contend like this:

$user->logout();

It means when a new user login ,the old user must logout from vBulletin,And the method logout() will take me to the above message.And if annotate this line,it will take no accient to the program,because the user will be write data at now.

So,just annotate this line , and all question will be solved.

Installing Oracle 11g on Ubuntu 8.04 LTS (Hardy Heron)

No Comment // Written on Jun 03, 2008 // Linux, Sql

Step One

Get the Ubuntu Linux 8.04 Hardy Heron (x86, 32-bit) image here, burn it, and install on any box you like. The only remark on the installation is that you should ask the installer to install an OpenSSH server at the end of the installation, since we’ll perform all the steps on this procedure remotely.

I’m not sure about the minimum requirements for the server, as, the last time I checked, running Oracle on Ubuntu is not officially supported by Oracle. In case you’re wondering, however, I’m using an x86 Pentium-like machine with 512M of RAM.

Step Two

Download Oracle 11g for Linux (x86, 32-bit).

It’s a good idea to verify the checksum hashes of the downloaded images before burning them (especially the ISO file to install Ubuntu). You can do that with one or more of md5sum filename, sha1sum filename , or cksum filename on almost any Unix-like box. Here are the pages showing the hashes:

(Wikipedia has pages on both these hash functions: MD5 and cksum.)

Step Three

We’ll need an X server for this howto, so on your desktop computer, allow X connections from your (soon-to-be) database server to your desktop. If you happen to be using Ubuntu on the Desktop as well, go to System -> Administration -> Login Window, select the Security tab and uncheck the box next to “Deny TCP connections to the Xserver”. You will have to restart your Xserver for this change to take effect.

I’m running Ubuntu on the desktop (I call this host “note“), so I have already an X server up and running. You can probably skip this step if you’re running the X server on the same machine you’re installing the database onto. Change 192.168.x.y to the IP address of your soon-to-be Oracle 11g database server:

bott@note:~$ hostname
note
user@note:~$ xhost +192.168.x.y
192.168.x.y being added to access control list
Continue reading →

Installing Apache, MYSQL, PHP, PhpMyAdmin on Ubuntu 8.0.4

No Comment // Written on Jun 02, 2008 // Linux

So I’m now using Ubuntu 8.0.4 Desktop Edition. Right now, it’s pretty tough for me to give a decent review. Ubuntu is great but surely you’ll expect some problems if you’re more of an experienced Windows User.

It’s been barely an hour and it’s all going fine. If you’re a developer and you desperately want to use Ubuntu for development, first thing you have to make sure of is that you’ve got SUDO powers, meaning you are logged in as an administrator. If you want to use the root account, all you have to do is type sudo bash in your terminal and you should be able to change your directory to the file system where /etc, /bin and all system folders reside.

Here’s how to install Apache2 server:

sudo apt-get install apache2

That’s so easy, right? The command  sudo apt-get install  <package> is used to download and install and a given package name in the package database.

Note: If you get an error saying the package name doesn’t exist, all you have to do is run sudo aptitude update

Install PHP5, MYSQL and PHPMyAdmin

sudo apt-get install php5

Note: I don’t see any reason for anyone to develop with PHP4 anymore. Nobody’s working on PHP4 so Ubuntu might have dropped the package.

sudo apt-get install mysql-server
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql
sudo apt-get install phpmyadmin

Sometimes to make life easier, we have to get out of the environment we are familiar with. It is only in this manner that we get to experience to bliss of using a non-Windows platform.

Moving on now, let’s set up LAMP to make it work. If anyone is experiencing some permission problems and cannot edit config files or any file in the file system, type this:

gksudo nautilus /home/youraccountname

So if you’re logged in as james, type gksudo nautilus /home/james

EN,is the steps are too difficult for you ? There is a easy way to do all above thing. Just Go to

System->Administration->Synaptic Package Manage->Edit->Mark Packages by Task.  

Then you can find LAMP Server, check it and apply. It's over!

Next,Edit the Apache config file by browsing to /etc/apache2/apache2.conf. You could also use sudo vi /etc/apache2/apache2.conf. Whichever works well for you, add ServerName localhost at the end of the file.

Restart Apache: sudo /etc/init.d/apache2 restart. If this doesn’t work, restart Ubuntu. Obviously, it will work. Browse to http://localhost and if you see the phrase “It works!”, congratulations!

Enjoy Life Now, AND Save for Later

No Comment // Written on May 30, 2008 // English

Often we’re told that we have to suffer now — give up what we want — in order to succeed later, that in order to save we must sacrifice. Give up instant gratification to get delayed gratification.

But you can do both.

For years, I was confused about this, as I read books and websites that sent me two different messages:

Pleasure later. The first message was that in order to be successful, in order to build wealth, you have to delay gratification. You can’t have instant gratification and be successful.

Pleasure now. The second message was usually from other sources on Happiness, but sometimes from the same source: enjoy life now, while you can, because it’s short and you never know when your last day will come. Live every day like it’s your last. Trouble is, I agree with both messages. And if you read this site often, you’ll see that I send both messages: Live frugally and simply! But also enjoy life!

That’s because I’ve reconciled the two philosophies into one: Live life now and enjoy it to the fullest — without destroying your future. The key to doing that? Find ways to enjoy life completely, utterly, maximally … that don’t cost your future very much.

Here are some tips for actually living that philosophy:

Find free or cheap pleasures. Frugality does not have to be boring or restrictive … if you use your imagination. Be creative and find ways to have fun — loads of it — without spending much money. Have a picnic at the park, go to the beach, do crafts, board games, fly a kite, make art, bake cookies … I could list a hundred things, and you could come up with a few hundred more. Make a list of simple pleasures, and enjoy them to the maximum. This is the key to the whole idea of enjoying life now without spending tomorrow’s dollar. See Savor the Little Things .

Make simplifying fun. I’m a big fan of simplifying my life, from decluttering to creating a simple lifestyle in every way. And to me, this is great fun. I get rid of stuff (and possibly make money selling it) and have a blast doing it. That’s good math.

Rediscover what’s important. Oftentimes we spend tons of money, shopping, going out, watching movies, eating out … without really enjoying life. And when we stop to think about it, we never have time for the things we really want to do. Well, that’s probably because your life is filled with things that aren’t very important to you. Instead, step back and really think about what’s important to you. Then get rid of the other (expensive) stuff, and focus on what’s important. Listen to some stuff on my list: my wife and kids, other friends and family, reading, writing, exercising, volunteering, spending quiet time in contemplation. Guess how many of those things cost a lot of money? Read more here .

Make people a priority. This is related to the above point, but I thought I’d give it a little more emphasis. If you give “stuff” a priority — stuff like gadgets, nice furnishings, nice clothes, shoes, jewelry, etc. — then you will spend a lot of money. But if you make people a priority — the people you love most, you close friends and family — you don’t need to spend a dime to enjoy life. Make some time to visit with friends, or your parents … and have a conversation with them that doesn’t involve eating out or going to the movies. Just sit, have some iced tea or hot cocoa (depending on the weather), and talk. Tell jokes and laugh your heads off. Talk about books you’ve read, movies you’ve watched, new things going on in your life, your hopes and dreams. And make time for your kids or your significant other — really spend time with them, doing things that don’t cost money. (See Spend Time with Family and Loved Ones , 100 Ways to Have Fun With Your Kids and 50 Ways to Be Romantic on the Cheap .)

Find time for yourself. Make time every day, and every week, to spend time alone. It really gives more meaning and enjoyment to your life, rather than rushing through life with no time to think, to breathe. For ideas on how to make this time, see these ways to create time for solitude .

Sometimes, splurge. You shouldn’t restrict yourself from expensive pleasures all the time — it’s not good to develop the feeling of deprivation. To prevent that, once in awhile, buy yourself something … or better yet, give yourself a decadent treat. I love things with dark chocolate or berries. Crepes with ice cream and berries are one of my favorites. Just don’t go overboard … and learn to enjoy the splurge to the fullest. If you truly take the time to enjoy a treat, you don’t need a lot of it.

Track your successes. It doesn’t really matter how you track your success … you can use gold stars for creating a new simplifying or frugalfying habit, or a spreadsheet chart to track your decreasing debt and increasing savings or investments. Tracking is a great way to not only provide motivation, but make the process of changing fun.

Reward yourself. And in order to make it more fun, celebrate every little success! Set rewards for yourself (hopefully not too expensive!) along your path to success — celebrate one day, two days, three days, a week, two weeks, three, a month … you get the idea.

Volunteer. One of the most rewarding things for my family has been when we have managed to volunteer. It’s actually something we only started doing last year, but since then, we’ve done it a bunch of times in a number of different ways. And while it doesn’t cost a dime, it is tremendously satisfying in ways that money could never buy. Read more .

Live in the moment. Learn to think not so much about the past or future, but about what you are going through right now. Be present. It may seem trite, but it’s the key to enjoying life to the fullest — without having to spend money. Think about it — you can spend money on eating out, but if you are not really thinking about what you’re eating, you may not enjoy it much at all. But if you cook a simple but delicious meal, and really taste every bite, it can be tremendously enjoyable without costing a lot. Read more .

Slow down. In the same way, you can’t really enjoy life to the fullest if it’s rushing past you like it’s on fast forward. Ever think about how quickly a week, a month, or a year goes by? Perhaps you’re in the fast lane too much. Try slowing down, and things will be less stressful and more enjoyable. Drive slower , eat slower , live slower .

Learn to find cheap, cool stuff. Call me crazy, but I love shopping at thrift stores. You can find so many cool things there, and it costs so little. Garage sales are the same way. Or check out Freecycle , or read 20 Ways to Find Free or Cheap Books .