SSH Secure Shell 3.2.9 (Build 283)
Copyright (c) 2000-2003 SSH Communications Security Corp - http://www.ssh.com/
This copy of SSH Secure Shell is a non-commercial version.
This version does not include PKI and PKCS #11 functionality.
Last login: Sat Mar 19 13:51:14 2011 from 192.168.1.1
[root@landscaper ~]# groupadd -g 700 oinstall
[root@landscaper ~]# groupadd -g 701 dba
[root@landscaper ~]# groupadd -g 702 oper
[root@landscaper ~]# useradd -g oinstall -G dba,oper oracle
[root@landscaper ~]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@landscaper ~]# cd /
[root@landscaper /]# ll
total 104688
drwxr-xr-x 2 root root 4096 Mar 19 11:41 bin
drwxr-xr-x 3 root root 4096 Mar 19 11:40 boot
drwxr-xr-x 8 root root 5440 Mar 19 13:12 dev
drwxr-xr-x 101 root root 12288 Mar 20 15:15 etc
drwxr-xr-x 4 root root 4096 Mar 20 15:15 home
drwxr-xr-x 2 root root 4096 Aug 13 2004 initrd
drwxr-xr-x 11 root root 4096 Mar 19 11:45 lib
drwx------ 2 root root 16384 Mar 19 19:11 lost+found
drwxr-xr-x 4 root root 4096 Mar 19 13:01 media
drwxr-xr-x 2 root root 4096 Dec 8 2004 misc
drwxr-xr-x 2 root root 4096 Aug 13 2004 mnt
drwxr-xr-x 2 root root 4096 Aug 13 2004 opt
dr-xr-xr-x 114 root root 0 Mar 19 21:00 proc
drwxr-x--- 14 root root 4096 Mar 20 15:12 root
drwxr-xr-x 2 root root 12288 Mar 19 12:55 sbin
drwxr-xr-x 2 root root 4096 Mar 19 11:11 selinux
drwxr-xr-x 2 root root 4096 Aug 13 2004 srv
drwxr-xr-x 9 root root 0 Mar 19 21:00 sys
drwxr-xr-x 3 root root 4096 Mar 19 11:50 tftpboot
drwxrwxrwt 17 root root 4096 Mar 20 15:13 tmp
drwxr-xr-x 3 root root 4096 Mar 19 19:11 u01
drwxr-xr-x 14 root root 4096 Mar 19 11:15 usr
drwxr-xr-x 25 root root 4096 Mar 19 11:50 var
-r--r--r-- 1 root root 106900818 Mar 19 12:47 VMwareTools-8.4.5-324285.tar.gz
drwxrwxrwx 7 root root 4096 Nov 12 02:26 vmware-tools-distrib
[root@landscaper /]# chown -R oracle:oinstall /u01
[root@landscaper /]# su - oracle
[oracle@landscaper ~]$ cd /u01
[oracle@landscaper u01]$ mkdir -p app/oracle
[oracle@landscaper u01]$ cd app/oracle/
[oracle@landscaper oracle]$ pwd
/u01/app/oracle
[oracle@landscaper oracle]$ cd
[oracle@landscaper ~]$ su - root
Password:
[root@landscaper ~]# vi /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
"/etc/sysctl.conf" 31L, 888C written
[root@landscaper ~]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
[root@landscaper ~]# vi /etc/security/limits.conf
# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#<domain> <type> <item> <value>
#
#Where:
#<domain> can be:
# - an user name
# - a group name, with @group syntax
# - the wildcard *, for default entry
# - the wildcard %, can be also used with %group syntax,
# for maxlogin limit
#
#<type> can have the two values:
# - "soft" for enforcing the soft limits
# - "hard" for enforcing hard limits
#
#<item> can be one of the following:
# - core - limits the core file size (KB)
# - data - max data size (KB)
# - fsize - maximum filesize (KB)
# - memlock - max locked-in-memory address space (KB)
# - nofile - max number of open files
# - rss - max resident set size (KB)
# - stack - max stack size (KB)
# - cpu - max CPU time (MIN)
# - nproc - max number of processes
# - as - address space limit
# - maxlogins - max number of logins for this user
# - priority - the priority to run user process with
# - locks - max number of file locks the user can hold
#
#<domain> <type> <item> <value>
#
#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
"/etc/security/limits.conf" 49L, 1685C written
[root@landscaper ~]# vi /etc/pam.d/login
#%PAM-1.0
auth required pam_securetty.so
auth required pam_stack.so service=system-auth
auth required pam_nologin.so
account required pam_stack.so service=system-auth
password required pam_stack.so service=system-auth
# pam_selinux.so close should be the first session rule
session required pam_selinux.so close
session required pam_stack.so service=system-auth
session optional pam_console.so
# pam_selinux.so open should be the last session rule
session required pam_selinux.so multiple open
session required /lib/security/pam_limits.so
session required pam_limits.so
~
~
~
~
~
~
~
"/etc/pam.d/login" 15L, 620C written
[root@landscaper ~]# vi /etc/profile
# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
pathmunge () {
}
# Path manipulation
if [ `id -u` = 0 ]; then
fi
pathmunge /usr/X11R6/bin after
# No core files by default
ulimit -S -c 0 > /dev/null 2>&1
USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
fi
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
for i in /etc/profile.dusr/X11R6/bin* ) then
else
endif
limit coredumpsize unlimited
setenv HOSTNAME `/bin/hostname`
set history=1000
if ( ! -f $HOME/.inputrc ) then
endif
if ( $USER == "oracle" ) then
endif
"/etc/csh.login" 29L, 640C written
[root@landscaper ~]# su -
[root@landscaper ~]# su - oracle
[oracle@landscaper ~]$ vi .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
export ORACLE_SID=shiyue
export ORACLE_BASE=/U01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2/db_1
export PATH=$ORACLE_HOME/bin:$PATH
~
~
~
~
~
".bash_profile" 17L, 336C written
[oracle@landscaper ~]$ . .bash_profile
[oracle@landscaper ~]$ env |grep ORACLE
ORACLE_SID=shiyue
ORACLE_BASE=/U01/app/oracle
ORACLE_HOME=/U01/app/oracle/product/10.2/db_1
[oracle@landscaper ~]$ vi .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
export ORACLE_SID=shiyue
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2/db_1
export PATH=$ORACLE_HOME/bin:$PATH
~
~
~
~
~
".bash_profile" 17L, 336C written
[oracle@landscaper ~]$ . .bash_profile
[oracle@landscaper ~]$ env |grep ORACLE
ORACLE_SID=shiyue
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/10.2/db_1
[oracle@landscaper ~]$ su - root
Password:
[root@landscaper ~]# mount /dev/cdrom/mnt
mount: can't find /dev/cdrom/mnt in /etc/fstab or /etc/mtab
[root@landscaper ~]# vi .vnc/xstartup
#!/bin/sh
# Uncomment the following two lines for normal desktop:
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
".vnc/xstartup" 12L, 332C written
[root@landscaper ~]# vncserver -kill :1
Killing Xvnc process ID 24760
[root@landscaper ~]# vncserver
New 'landscaper.oracle.com:1 (root)' desktop is landscaper.oracle.com:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/landscaper.oracle.com:1.log
[root@landscaper ~]#
以下部分通过VNC链接
mount /dev/cdrom /mnt
cd /mnt
ll
/mnt/runInstaller