Changing Default Boot OS in Ubuntu 11.04

I am writing this post cause after upgrading the Ubuntu kernel I have to change OS boot order agin. I don’t want to do this again and again after every kernel update.
Workaround is change the boot order in /etc/grub.d/ folder. Run following command in ubuntu,

mv /etc/grub.d/30_os-prober /etc/grub.d/06_os-prober

Then update grub,

update-grub

Again this will not work if you are having more than one other OS. In such scenario you need to edit /etc/default/grub and change the GRUB_DEFAULT value so that it matches the OS you want.

Install Kernel 2.6.39 RC4 on Ubuntu 11.04

Recently I need to upgrade Ubuntu kernel version. I tried to do same with kernel-ppa. But it was not working. So I need to install it manually.

I am using 32bit machine and my current kernel version is :

uname -r
2.6.38-8-generic

To update the version to 2.6.39 RC4 download the kernel first:

mkdir /tmp/kernel
cd /tmp/kernel
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.39-rc4-natty/linux-image-2.6.39-020639rc4-generic_2.6.39-020639rc4.201104191410_i386.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.39-rc4-natty/linux-headers-2.6.39-020639rc4_2.6.39-020639rc4.201104191410_all.deb

Now we need to install kernel-image as well as kernel-headers

cd /tmp/kernel
sudo dpkg -i *

Now we need to reboot our machine to update the version:

sudo init 6

While rebooting choose kernel 2.6.39-020639rc4. Once the reboot confirm the kernel version by running

uname -r
2.6.39-020639rc4-generic

For 64bit machine you can download file from below links:
linux-image-2.6.39-rc4-amd64.deb
linux-headers-2.6.39-rc4-all.deb

Remote Desktop Sharing Ubuntu

This is the quick how to on installing VNC on Ubuntu for Remote Desktop sharing,

To, install VNC on Ubuntu, run

sudo apt-get install x11vnc vnc-java

Now, we need to set up a password for clients, to do so run,

x11vnc -storepasswd

Now to start VNC in background run,

nohup x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800 &

That’s it. Now you can access your UBUNTU machine from anywhere. Remember if you are behind firewall then you need to open 5800 and 5900 port.

PHP 5.3 on CentOS

Recently I need to install PHP 5.3 on CentOS. You can install PHP 5.3 by compiling source code, but for me yum is better. To install PHP 5.3 from yum you need to add Remi’s repository.

On CentOS 6, run

wget http://download.fedora.redhat.com/pub/epel/beta/6/i386/epel-release-6-5.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

On CentOS 5.X, run

wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

By default Remi’s repository is not enable. Open /etc/yum.repos.d/remi.repo and change enable=0 to enable=1

Then install PHP 5.3 by running,

yum install php php-*

Restart HTTP server to get changes reflected.

service httpd restart

Installing Oracle Application Server on CentOS

Today for some testing I have to install Oracle Application Server on centos. Following steps will guide you regarding installing Oracle Application server on CentOS.
Please go to the Note section to know the problems I faced at the time of installation.
Click on the screenshots for better resolution.

1. First add user from which you are going to start installation.

useradd oracle
groupadd oracle

2. Installing dependencies

yum install -y gcc xorg-x11-deprecated-libs

3. Create a folder for Oracle Application server installation and assign permission to it.

mkdir /app
chown oracle:oracle /app

4. Download the installer from http://edelivery.oracle.com to /tmp/install location and Unzip the installer

cd /tmp/install
cat soa_linux_x86_101310_disk1.cpio | cpio -idmv

5. Now run the installer

./runInstaller -ignoreSysPrereqs

6. Specify the Installation Directory as /app/oracle/product/10.1.3.1/OracleAS_1 and choose Advanced Install option

7. It will give you Advanced Installation Warning, click Yes to go ahead.

8. On Specify Inventory directory and credentials in inventory directory enter /home/oracle/oraInventory. In operating system group select oracle and click on next.

9. Now run /home/oracle/oraInventory/orainstRoot.sh as a root user in another terminal and then click on continue button.

10. In Next you will get the progress bar:

11. In installation type select J2EE Server and Web Server.

12. In prerequisite checks it will show you warning, avoid that and click on Next.

13. In Specify Port configuration select automatic and click on next.

14. In Administration Settings, provide AS Instance Name, AS Administrative Password. You required this password to access Oracle Application Server admin console.
Also check Configure this as an Administration OC4j instance.

15. We are doing basic setup so in cluster topology screen don’t choose anything.

16. In summary page cross verify the details and then click on Install button.

17. Now you will see Installation Progress screen.

18. Now you will again need to run /app/oracle/product/10.1.3.1/OracleAS_1/root.sh script as a root user. After running the script click on ok

19. Now you will get End of installation screen there you will see Oracle Application server admin console url. In my case it is
http://centos.home.network:7777/

20. To access Oracle Application server admin console enter http://ip:7777/em in your browser. You need to put password specified in step 14

21. If everything goes well you will get following screen.

Note:
At the time of installation I have faced following problems:

java.lang.UnsatisfiedLinkError: /tmp/OraInstall2011-06-29_11-04-15PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or direct

For above error I have to install xorg-x11-deprecated-libs

error in invoking target ‘ntcontab.o’ of makefile OracleAS_1/network/lib/ins_net_client.mk

For above error I have to install gcc

/Apache/Apache/bin/httpd: error while loading shared libraries: libdb.so.2: cannot open shared object file: No such file or directory
The above error came while starting http server from opmn.

To solve this run,

ln -s /usr/lib/libgdbm.so.2.0.0 /usr/lib/libdb.so.2
Page 10 of 36« First...«8910111213»2030...Last »
rss twitter facbook

Categories

Archives