as of:
root@ubuntu16:~# cat setup11g-for-ub-16.04.sh #!/bin/sh ##ubunt-16.04 ##Linux ubuntu16 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux ##GNU C Library (Ubuntu GLIBC 2.23-0ubuntu11) stable release version 2.23, by Roland McGrath et al. ##libstdc++6:amd64 5.4.0-6ubuntu1~16.04.11 amd64 GNU Standard C++ Library v3 ##apt-cache policy gcc £º gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) ###################################### cat <<eof>>/etc/profile export DISPLAY=192.168.157.1:0 alias cls=clear alias ll=‘ls -l --color‘ alias Grep=grep eof ###################################### #apt-get update #apt-get -y install wget man curl ftp telnet net-tools strace psmisc tree #apt-get -y install rlwrap apt-get -y install gcc make libc6-dev #apt-get -y install xbase-clients apt-get -y install x11-utils xauth ###################################### # for-install-oracle11g # must downgrade libaio1 to 0.3.10x #apt-get -y install libaio-dev dpkg -l |grep libaio1 |grep ‘0.3.10‘ if [ $? -ne 0 ] then apt-get -y purge libaio1 wget -c https://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/liba/libaio/libaio1_0.3.109-4_amd64.deb wget -c https://mirrors.tuna.tsinghua.edu.cn/ubuntu/pool/main/liba/libaio/libaio-dev_0.3.109-4_amd64.deb apt-get -y install ./libaio1_0.3.109-4_amd64.deb apt-get -y install ./libaio-dev_0.3.109-4_amd64.deb fi ###################################### mv /usr/bin/gcc /usr/bin/gcc.old cat <<eof>>/usr/bin/gcc #!/bin/sh /usr/bin/gcc-5 -Wl,--no-as-needed \$* eof chmod 755 /usr/bin/gcc ###################################### ln -sf /bin/bash /bin/sh ln -s /usr/bin/awk /bin/ ln -s /usr/lib/x86_64-linux-gnu /usr/lib64 # for-install-oracle11g ln -s /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib64/ ###################################### groupadd oinstall useradd -g oinstall -m -s /bin/bash oracle mkdir /u01 chown oracle:oinstall /u01