Welcome

This site is providing technical information based on LAMP stack. My primary focus is on web systems and services, such as LAMP stack, Amazon Web Services(EC2, S3 and SQS) and software tools. I invite you to stop by the blog, where you can read and comment on programming, scientific posts or the information.

146 - Graphical Desk Top Preference

You can set up the default graphical interface between KDE & GNOME.

Edit the following file and change it.

  • /etc/sysconfig/desktop

For KDE

DESKTOP="KDE"
DISPLAYMANAGER="KDM"

---------------------------------------------------------------------

For GNOME

DESKTOP="GNOME"
DISPLAYMANAGER="GDM"

145 - Schema for EBS Apps objects

Here we are going to create a schema similar to the APPS schema but has only read-only prviliges.

1. Create the user for the required schema.

SQL> connect system/manager

SQL> create user <your_user> identified by <your_user_password> default tablespace
<tablespace_to_assign_to_user> temporary tablespace temp;

2. Grant connect and resource privileges to your user.

144 - tee command

Accept output from another command and send it both to standard output and to files (like a T or fork in the road).

Ex.

# top -b -d 1 -n 7 | tee top_resilt.txt

# ls *.txt | wc -l | tee count-02.txt count-01.txt

# ls -l | tee savefile.txt

Options :

-a, --append
     Append to files; do not overwrite.

143 - Useful command for CPU & Memory

USER : account name
PID : process number
VSZ : vertial memory space that a process is using (k bytes)
%MEM : content of phisical memory
%CPU : occupancy of processor
COMMAND : command of process

ps  ax -o user,pid,vsz,pmem,pcpu -o args

 

142 - CPUs for Oracle Database

11g database will try to use CPU_COUNT parameters for the number of CPUs are used in Oracle Database.

141- How to set up VNC

Virtual Network Computing (VNC) is a graphical desktop sharing system that uses the RFB protocol to remotely control another computer.
It transmits the keyboard and mouse events from one computer to another, relaying the graphical screen updates back in the other direction,
over a network.

1. Edit /etc/sysconfig/vncservers as root

   Uncomment the line:
   VNCSERVERS="1:put_the_user_you_will_log_in_as_here"

2. chkconfig vncserver on

140 - Tomcat Installation on RedHat OS

1. Installation

# yum install tomcat5 tomcat5-webapps tomcat5-admin-webapps

* tomcat5 root directory :  /usr/share/tomcat5

All directory should be symbolic links

139 - How to install Java and configure it

1. Java Installation

You can download it from Oracle Sun Developer Network.

# cp jdk-6u20-linux-i586.bin /usr
# chmod +x jdk-6u20-linux-i586.bin
# ./jdk-6u20-linux-i586.bin

・・・
Enter Yes.
・・・

* After executed the bin file, jdk1.6.0_20 is created in /usr

138 - nohup command

Most of the time you login into remote server via ssh. If you start a shell script or command and you exit (abort remote connection), 
the process will get killed. Sometime job or command takes a long time. you are not sure when the job will finish. if you logout the system,
nohup is better to leave job running after exit.

nohup command-name &

Examples:

Syndicate content