灌溉梦想,记录脚步

linux下的无盘工作站配置(centos)

   需求:需要多个系统同运行同样的服务,如j2ee模块、memcached等,这些服务不与硬盘相关,只运行在内存中,并且多个系统同时运行,为了规避单点故障以及实现高效。
 
   下面步骤是centos5.4系统的无盘服务端配置步骤,客户端只要选择从网络启动,即可在无干预情况下启动系统。
 
   一,新建主要目录
  

mkdir -p /diskless/x86_64/centos5.4/root
mkdir /diskless/x86_64/centos5.4/snapshot

   二,拷贝预置模板到/diskless/x86_64/centos5.4/root目录

rsync -auv -e ssh --delete --exclude='/proc/*' --exclude='/sys/*' --exclude='/tmp/*'--exclude='/var/log/*' root@10.0.70.72:/ /diskless/x86_64/centos5.4/root/

  继续阅读 »

Ubuntu amd64 下安装 QQ for Linux

从http://im.qq.com/qq/linux/下载 QQ for Linux deb 安装包:

linuxqq_v1.0.2-beta1_i386.deb

获取32位支持

sudo apt-get install ia32-libs*

安装

sudo dpkg -i –force-all linuxqq_v1.0.2-beta1_i386.deb

Oracle 11g Software Installation on Linux—CentOS-5

  Introduction
  This paper takes a look at installing oracle 11g (11.1) on Linux (CentOS-5).You can read about CentOS at www.centos.org and be assured of its’ Enterprise-class quality. This paper will use oracle’s Quick Installation Guide for Linux x86 as its’ guide—noting where additional information may be obtained but getting oracle installed on Linux as fast as possible. We at thecheapdba.com have years of experience installing oracle—starting back with oracle 7. We will point out best practices so that you end up with a reliable database that provides exceptional performance. We will occasionally re-visit, edit, and post additions to this paper as we find further configuration best practices.
  This paper will not cover the installation of CentOS-5 as that can be acquired through the CentOS website and additional Linux guides. We will however point out those alterations to the Linux environment that pertains to getting oracle installed.
  Our goal is to provide you with the steps to properly install the oracle 11g software without having to read oracle’s installation guide from front to back cover. We will provide you the commands to execute (just cut-n-paste) and the desired outcome of those commands. If you get something other than what is expected it would be time for you to re-visit earlier steps in this process. So hold on, here we go.
  It is assumed that the installer of oracle software has access and is running on an X Window System workstation. Please consult X Server documentation if you need help. We at thecheapdba.com typically will use cygwin ( www.cygwin.com ) for all interfacing with our Linux distribution. It has an X Window System that works quite well—and as we always like is free.
   继续阅读 »

ubuntu 9.10 安装ibus

首先清理所有scim相关包和安装中文字体:

sudo aptitude purge ~nscim
sudo aptitude install language-support-fonts-zh

然后检查源的配置:

sudo gedit /etc/apt/sources.list

检查一下有没有这行:

deb http://archive.ubuntu.com.cn/ubuntu-cn/ intrepid main restricted universe multiverse

如果没有就添加进去,然后保存退出。并更新软件源列表[sudo aptitude update]

继续阅读 »

ORA-27101 Shared memory realm does not exist 之解決

在试图登录pl/sql时,输入用户名(system/pwd)后,Oracle报告下列错误:
ERROR:
orA-27101 Shared memory realm does not exist
orA-01034 orACLE not available

或者在em登录的时候报告下列错误:
错误: NMO 未 setuid-root (只适用于 Unix)

查阅了相关
orA-27101 Shared memory realm does not exist
orA-01034 orACLE not available
的说明,解释为ORACLE_HOME或者ORACLE_SID设置不正确。
但检查bash_profile以后没有发现错误;
錯誤點,沒有開啟oracle服務;
解決辦法,直接開啟oracle相關數據庫的服務;
或按照下面的步驟操作:
继续阅读 »

vnc安装oracle 11g报错

[oracle@test database]$ ./runInstaller
正在启动 oracle Universal Installer…
检查临时空间: 必须大于 120 MB。 实际为 117329 MB 通过
检查交换空间: 必须大于 150 MB。 实际为 1983 MB 通过
检查监视器: 监视器配置至少必须显示 256 种颜色
>>> 无法使用命令 /usr/bin/xdpyinfo 自动检查显示器颜色。请检查是否设置了 DISPLAY 变量。 未通过 <<<< 未通过某些要求检查。必须先满足这些要求, 然后才能继续安装,那时将重新检查这些要求。 是否继续? (y/n) [n] y 原因: 当时是通过vnc登录的root,然后通过root切换到oracle用户的,注销通过oracle登录就可以!

Xlib: connection to “:0.0” refused by server的解决方法

Xlib: connection to ":0.0" refused by server的解决方法
在我的linux下安装的Oracle,我用平常用的账户登录系统后,再su oracle切换到oracle账户。

运行很多X程序都提示Xlib: connection to ":0.0" refused by server。

解决办法:

用平时用的账户登录,然后在终端输入以下命令,就可以搞定了!

xhost local:oracle non-network local connections being added to access control list

再试试su oracle

进去后随便运行个X程序,比如:nautilus