2012-03-16 00:42:00 iteye_2394 阅读数 91
linux下
为了方便可以在.bashrc中加入
alias vim='gvim --remote-tab-silent'
alias gvim='gvim --remote-tab-silent'

windows 下要分2步:
1) 双击时打开标签页
修改注册表:/HKEY_CLASSES_ROOT/Applications/gvim.exe/shell/edit/command的值
C:\Program Files\Vim\vim70\gvim.exe -p --remote-tab-silent "%1"
2)鼠标右键时打开标签页
打开注册表,添加以下项:
[HKEY_CLASSES_ROOT\*\]下添加Shell项      

[HKEY_CLASSES_ROOT\*\Shell] 下添加Edit with &Vim项
[HKEY_CLASSES_ROOT\*\Shell\Edit with &Vim] 添加command项

[HKEY_CLASSES_ROOT\*\Shell\Edit with &Vim\command]修改默认值为"D:\Program Files\Vim\vim73\gvim.exe" -p --remote-tab-silent "%1"

退出注册表,右键显示Edit with Vim


在新标签中打开第二个文件的方法
2013-02-19 18:18:26 iteye_6379 阅读数 15

VirtualBox中CentOS-6.3-x86_64-minimal静默Silent安装oracle11g2

原文地址 http://sy1214.iteye.com/blog/1808028

一、安装环境

虚拟机VirtualBox,内存分配了2G,空间分配了20G

系统CentOS-6.3-x86_64-minimal

Oracle版本linux.x64_11gR2_database

 

关于VirtualBox的网络配置这里提前说一下,比较好的方式是hostonly+nat的方式。

局域网访问通过hostonly方式,上互联网通过nat方式

具体设置就是在创建一个虚拟硬盘后,选择设置-->网络-->网卡1连接方式选择hostonly-->网卡2启用网络连接,选择NAT。

 

具体oracle的要求详见官方http://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm

 

二、安装后网络配置

编辑文件# vi /etc/sysconfig/network-scripts/ifcfg-eth0,这个是hostonly网络的配置

修改

BOOTPROTO="static"

NM_CONTROLLED="yes"

ONBOOT="yes"

并添加

IPADDR="192.168.56.101"

NETMASK="255.255.255.0"

 

编辑文件# vi /etc/sysconfig/network-scripts/ifcfg-eth1,这个是NAT网络的配置

修改

ONBOOT="yes"

 

启动或重启网络

CentOS-minimal安装后默认没有启动网络服务。需要手工启动。

 # service network restart

重启服务没有问题后,可以ping www.baidu.com进行测试看看是否能够访问外网,ping通则没问题了

 

在/etc/hosts文件中增加局域网IP地址和主机名映射(对于单网卡用户直接添加到回环IP下):

 # hostname //获得主机名

 oracleserver

 # vi /etc/hosts

 127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.56.101  oracleserver

 

关于防火墙的问题,默认安装完了是开启防火墙的,会屏蔽掉1521端口,影响其他机器访问本机oracle实例。三种简单办法

1.临时开启或关闭防火墙,重启后失效

 # service iptables stop

 # service iptables star

2.永久开启或关闭防火墙

 # chkconfig iptables on

 # chkconfig iptables off

3.推荐,打开1521 端口用于oracle

# iptables -I INPUT -p tcp --dport 1521 -j ACCEPT

# iptables -I INPUT -p tcp --dport 1521 -j ACCEPT

# iptables -A INPUT -p tcp --dport 1521 -j ACCEPT

# iptables -A INPUT -p tcp --dport 1521 -j ACCEPT

# service iptables save //永久保存

 

三、安装Oracle的依赖包

这个时候虚拟机就可以放到一边去了,打开SSH工具,看习惯了,putty等等都行,我个人习惯用SecureCRT。

 连接到刚才创建的虚拟机192.168.56.101上

 

检查依赖

# rpm -q binutils  compat-libstdc++-33 compat-libstdc++-33.i686  elfutils-libelf elfutils-libelf-devel expat gcc gcc-c++ glibc glibc.i686 glibc-common glibc-devel glibc-headers libaio libaio.i686 libaio-devel libaio-devel.i686 libgcc libgcc.i686 libstdc++ libstdc++.i686 libstdc++-devel make numactl pdksh sysstat unixODBC unixODBC.i686 unixODBC-devel | grep 'not installed'

 

安装或更新依赖,也可以只安装缺少的

# yum install binutils  compat-libstdc++-33 compat-libstdc++-33.i686  elfutils-libelf elfutils-libelf-devel expat gcc gcc-c++ glibc glibc.i686 glibc-common glibc-devel glibc-headers libaio libaio.i686 libaio-devel libaio-devel.i686 libgcc libgcc.i686 libstdc++ libstdc++.i686 libstdc++-devel make numactl pdksh sysstat unixODBC unixODBC.i686 unixODBC-devel

 

默认的源中不包含pdksh包,可在附件中下载

 

安装pdksh

# rpm -ivh pdksh-5.2.14-37.el5.x86_64.rpm

再检查一下依赖,是不是否安装正确了。

 

安装unzip,后面解压oracle文件的时候用到

 # yum install unzip

 

我这里用的是SecureCRT,可以使用rz命令进行上传文件,安装lrzsz支持

 # yum install lrzsz

 

四、准备安装用户及用户组,按官方的创建

 # groupadd oinstall

 # groupadd dba

 # useradd -g oinstall -G dba oracle

 # passwd oracle //设置oracle密码

 

五、修改内核参数配置文件

 # vi /etc/sysctl.conf 在文件最后增加下面的内容(快捷键是Shift+G到文件最后,按o在当前行下面添加内容)

fs.aio-max-nr = 1048576

fs.file-max = 6815744

kernel.shmall = 2097152

kernel.shmmax = 536870912

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

net.ipv4.ip_local_port_range = 9000 65500

net.core.rmem_default = 262144

net.core.rmem_max = 4194304

net.core.wmem_default = 262144

net.core.wmem_max = 1048576

保存文件。

 # sysctl -p//让参数生效

 # sysctl -a//检查参数正确

 

六、修改用户资源限制权限(原文Check Resource Limits for the Oracle Software Installation Users)

Linux对于每个用户,系统限制其最大进程数,堆栈等。为提高性能,可以根据设备资源情况进行设置。按照官方配置:

 # vi /etc/security/limits.conf

最后面添加

oracle              soft    nproc   2047

oracle              hard    nproc   16384

oracle              soft    nofile  1024

oracle              hard    nofile  65536

oracle              soft    stack   10240

 

七、创建需要的文件夹,也按官方的创建就好,这个目录基本上算是统一标准了

 # mkdir -p /u01/app/

 # chown -R oracle:oinstall /u01/app/

 # chmod -R 775 /u01/app/

 

 八、修改环境变量

 # su - oralce

 $ cd /home/oracle/

 $ vi .bash_profile

在最下面添加

export ORACLE_HOSTNAME=sycentosmini

export ORACLE_BASE=/u01/app/oracle//跟后面设置的保持一致

export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1//跟后面设置的保持一致

export ORACLE_SID=orcl

export PATH=.:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$ORACLE_HOME/jdk/bin:$PATH

export LC_ALL="en_US"

export LANG="en_US"

export NLS_LANG="AMERICAN_AMERICA.ZHS16GBK"

export NLS_DATE_FORMAT="YYYY-MM-DD HH24:MI:SS"

 

九、登录oracle用户,上传安装文件并解压

 # su - oralce

 $ cd /u01/app

 上传linux.x64_11gR2_database_1of2.zip和linux.x64_11gR2_database_2of2.zip文件到/u01/app目录下

 解压文件

 $ unzip linux.x64_11gR2_database_1of2.zip

 $ unzip linux.x64_11gR2_database_2of2.zip

 

十、拷贝并编辑静默安装文件

 $ cp /u01/app/database/response/*.* /u01/app/

 $ vi db_install.rsp

修改下面的配置参数

oracle.install.option=INSTALL_DB_SWONLY//只安装oracle软件,不安装实例

ORACLE_HOSTNAME=oracleserver//honstname命令获得的主机名

UNIX_GROUP_NAME=oinstall

INVENTORY_LOCATION=/u01/app/oracle/oraInventory

SELECTED_LANGUAGES=en,zh_CN//安装时的语言,其实en就够了,看中文反而麻烦

ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1

ORACLE_BASE=/u01/app/oracle

oracle.install.db.InstallEdition=EE

oracle.install.db.isCustomInstall=false

oracle.install.db.DBA_GROUP=dba

oracle.install.db.OPER_GROUP=oinstall

DECLINE_SECURITY_UPDATES=true //一定设置为true,网上都这么说,我也没试,就设置成true吧

 

十一、开始安装数据库软件

 $ cd /u01/app/database

 $ ./runInstaller -silent -force -responseFile /u01/app/db_install.rsp

 // -silent静默安装 -force文件夹不存在强制创建 -responseFile静默安装响应文件

另开一个窗口,查看安装日志

 # tail -f /u01/app/oracle/oraInventory/logs/installActions*.log

安装比较慢,耐心等待下

安装完成,这次出来的是中文,提示如下:

 

要执行配置脚本, 请执行以下操作:

         1. 打开一个终端窗口

         2. 以 "root" 身份登录

         3. 运行脚本

         4. 返回此窗口并按 "Enter" 键继续

 

按回车继续。

在另外一个窗口使用root用户执行

# /u01/app/oracle/oraInventory/orainstRoot.sh

# /u01/app/oracle/product/11.2.0/dbhome_1/root.sh

 

Oracle软件安装完成。

 

十二、安装监听

使用响应文件netca.rsp配置监听,一般不用修改netca.rsp,直接使用此文件生成默认监听

 $ cd /u01/app/database/

 $ /u01/app/oracle/product/11.2.0/dbhome_1/bin/netca  /silent  /responsefile /u01/app/netca.rsp

 

十三、创建数据库和实例

 $ cd /u01/app/database/

 $ vi dbca.rsp

 修改下面的参数

GDBNAME = "orcl.oracleserver"//数据库名字,多个的话可以都改了

SID = "orcl"

TEMPLATENAME = "General_Purpose.dbc"//存在多个的话,可以都改了

CHARACTERSET = "ZHS16GBK"    //字符集,建库后一般不能更改。也可以使用AL32UTF8

TOTALMEMORY = "1024"//数据库内存,看个人情况吧,默认800

保存退出

执行静默安装

 $ /u01/app/oracle/product/11.2.0/dbhome_1/bin/dbca -silent -responseFile /u01/app/dbca.rsp 

输入 SYS 用户口令: 

输入 SYSTEM 用户口令: 

1% 已完成

3% 已完成

11% 已完成

18% 已完成

26% 已完成

37% 已完成

正在创建并启动 Oracle 实例

40% 已完成

45% 已完成

50% 已完成

55% 已完成

56% 已完成

60% 已完成

62% 已完成

正在进行数据库创建

66% 已完成

70% 已完成

73% 已完成

85% 已完成

96% 已完成

100% 已完成

有关详细信息, 请参阅日志文件 "/u01/app/oracle/cfgtoollogs/dbca/orcl/orcl.log"。

 

安装完成

 $lsnrct status//检查监听

 

LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 19-FEB-2013 18:01:22

 

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

 

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))

STATUS of the LISTENER

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

Alias                     LISTENER

Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production

Start Date                19-FEB-2013 17:00:39

Uptime                    0 days 1 hr. 0 min. 43 sec

Trace Level               off

Security                  ON: Local OS Authentication

SNMP                      OFF

Listener Parameter File   /u01/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora

Listener Log File         /u01/app/oracle/diag/tnslsnr/oracleserver/listener/alert/log.xml

Listening Endpoints Summary...

  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracleserver)(PORT=1521)))

Services Summary...

Service "orcl.oracleserver" has 1 instance(s).

  Instance "orcl", status READY, has 1 handler(s) for this service...

Service "orclXDB.oracleserver" has 1 instance(s).

  Instance "orcl", status READY, has 1 handler(s) for this service...

The command completed successfully

 

另外,附上静默删除数据库的命令

#dbca -silent -deleteDatabase -sourceDB orcl -sysDBAUserName sys -sysDBAPassword 123456

 

十四、修改数据库为归档模式,支持热备份,增量备份,打开闪回

 $ sqlplus / as sysdba

 SQL*Plus: Release 11.2.0.1.0 Production on Wed Mar 14 07:18:16 2012

 Copyright (c) 1982, 2009, Oracle.  All rights reserved.

 

 Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

 

SQL> shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL>  startup mount;

ORACLE instance started.

 

Total System Global Area  835104768 bytes

Fixed Size                  2217952 bytes

Variable Size             490735648 bytes

Database Buffers          339738624 bytes

Redo Buffers                2412544 bytes

Database mounted.

 SQL> alter database archivelog;

 Database altered.

 SQL> alter database flashback on;

 Database altered.

 SQL> alter database open;

 Database altered.

 SQL> execute utl_recomp.recomp_serial();

 PL/SQL procedure successfully completed.

 SQL> alter system archive log current;

 System altered.

 SQL> archive log list;

Database log mode              Archive Mode

Automatic archival             Enabled

Archive destination            USE_DB_RECOVERY_FILE_DEST

Oldest online log sequence     3

Next log sequence to archive   5

Current log sequence           5

 SQL> exit

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

 

 

十五、修改oracle启动配置文件

 $vi /etc/oratab

 把N改成Y

 orcl:/u01/app/oracle/product/11.2.0/dbhome_1:Y

 

 这样就可以通过dbstart 启动此实例,也可以通过dbshut关闭此实例了。

 $ dbshut /u01/app/oracle/product/11.2.0/dbhome_1/

 Processing Database instance "orcl": log file /u01/app/oracle/product/11.2.0/dbhome_1/shutdown.log

 此时所有oracle的进程关闭,监听器也停止。

 $ dbstart /u01/app/oracle/product/11.2.0/dbhome_1/

 Processing Database instance "orcl": log file /u01/app/oracle/product/11.2.0/dbhome_1/startup.log

 此时监听器工作,orcl实例运行,再次查看监听器状态。

 $ lsnrctl status

一切正常

 

十六、创建表空间和用户

 

 创建临时表空间

create temporary tablespace user_temp tempfile '/u01/app/oracle/oradata/ORCL/jrtsch_user_temp.dbf' size 100m

 autoextend on

 next 50m maxsize 10240m

 extent management local;

 

创建数据表空间

 create tablespace user_data  

 logging  

 datafile '/u01/app/oracle/oradata/ORCL/user_data.dbf' 

 size 100m

 autoextend on  

 next 50m maxsize 10240m  

 extent management local; 

 

创建用户并指定表空间

 create user jrtsch identified by jrtsch

 default tablespace user_data  

 temporary tablespace user_temp; 

 给用户授予权限

 grant connect,resource to jrtsch;

 

使用新建的用户登录

 $ sqlplus jrtsch/jrtsch@orcl

成功!!

 

 

 

 

2019-08-31 13:06:24 weixin_43291944 阅读数 46

工作中查看Linux命令的帮助文档可以有两种方式,以curl命令为例:

curl --help
man curl

curl命令可以对URL地址发起请求,有-s-I-v等等命令

  • 以-s、-I命令为例,先来看看–help查询到的帮助信息:
-s --silent        Silent mode (don't output anything)
-I, --head          Show document info only

翻译成中文大概意思就是

-s --silent 静默模式,不输出任何东西
-I --head  仅显示文档信息

信息查到了,第一次看其实还是有点懵,比如说-s命令,用
curl -s https://testerhome.com | grep href 访问testerhome社区,说好的不输出任何东西,但是整个访问返回的网页信息都输出了啊:

qinzhendeMacBook-Pro:~ qinzhen$ curl -s https://testerhome.com | grep href
  <link rel="icon" href="/assets/favicon-cd32144f74c18746f3dce33e1040e7dfe4c07c8e611e37f3868b1c16b5095da3.png"/>
  <link rel="apple-touch-icon-precomposed" href="/assets/ios-icon-cd32144f74c18746f3dce33e1040e7dfe4c07c8e611e37f3868b1c16b5095da3.png"/>
  <link rel="shortcut icon" href="/assets/big_logo-cd32144f74c18746f3dce33e1040e7dfe4c07c8e611e37f3868b1c16b5095da3.png"/>
  <link rel="apple-touch-icon" href="/assets/favicon-cd32144f74c18746f3dce33e1040e7dfe4c07c8e611e37f3868b1c16b5095da3.png">
  <link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png">
  <link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png">
  <link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png">
  <link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png">
  <link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png">
  <link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png">
  <link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png">
  <link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png">
  <link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png">
  <link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png">
  <link rel="alternate" type="application/rss+xml" title="订阅最新帖" href="https://testerhome.com/topics/feed"/>
  <link rel="stylesheet" media="screen" href="/assets/front-287044a6285b3034b763fd338d0385271dbca75872db865d6d714ba9b2628f34.css" data-turbolinks-track="reload" />
      <a href="https://testerhome.com/topics/19664" type="button" class="btn btn-info">查看详情</a>
      ......#后面的内容省略
  • 这里再来看man命令查询到的-s-I的文档解释
-s, --slient 
Silent or quiet mode. Don't show progress meter or error messages. 
-I, --head 
(HTTP FTP FILE) Fetch the headers only! 
HTTP-servers feature the command HEAD which this uses to get nothing but the header of a document. 
When used on an FTP or FILE file, curl  displays the file size and last modification time only.

翻译成中文的意思大概是

-s, --slient  无声或安静模式,不显示进度表或错误消息
-I, --head 当对应HTTP服务时只展示头信息,当使用FTP or FILE文件时,只展示文件大小和上一次的修改时间
-v, --verbose 显示更多的细节

这里的解释就比上一步中的清晰多了,分别运行

curl  https://testerhome.com | grep href
curl -s https://testerhome.com | grep href

对比如下:

qinzhendeMacBook-Pro:~ qinzhen$ curl  https://testerhome.com | grep href
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                              Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0  <link rel="icon" href="/assets/favicon-cd32144f74c18746f3dce33e1040e7dfe4c07c8e611e37f3868b1c16b5095da3.png"/>
<link rel="apple-touch-icon-precomposed" href="/assets/ios-icon-cd32144f74c18746f3dce33e1040e7dfe4c07c8e611e37f3868b1c16b5095da3.png"/>
<link rel="shortcut icon" href="/assets/big_logo-cd32144f74c18746f3dce33e1040e7dfe4c07c8e611e37f3868b1c16b5095da3.png"/>
<link rel="apple-touch-icon" href="/assets/favicon-cd32144f74c18746f3dce33e1040e7dfe4c07c8e611e37f3868b1c16b5095da3.png">
......#后面的内容省略
qinzhendeMacBook-Pro:~ qinzhen$ curl -s https://testerhome.com | grep href
  <link rel="icon" href="/assets/favicon-cd32144f74c18746f3dce33e1040e7dfe4c07c8e611e37f3868b1c16b5095da3.png"/>
  <link rel="apple-touch-icon-precomposed" href="/assets/ios-icon-cd32144f74c18746f3dce33e1040e7dfe4c07c8e611e37f3868b1c16b5095da3.png"/>
  <link rel="shortcut icon" href="/assets/big_logo-cd32144f74c18746f3dce33e1040e7dfe4c07c8e611e37f3868b1c16b5095da3.png"/>
......#后面的内容省略

这里对比发现很明显了,用-s命令后的的展示结果去掉了最上方的进度表信息

顺便执行下curl -s -I https://testerhome.com 命令看下输出结果:

qinzhendeMacBook-Pro:~ qinzhen$ curl -s  -I https://testerhome.com
HTTP/1.1 200 OK
Server: nginx/1.10.2
Date: Sat, 31 Aug 2019 04:55:46 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Vary: Accept-Encoding
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
ETag: W/"81e569bf92598df50c5397f7080b6854"
Cache-Control: max-age=0, private, must-revalidate
Content-Security-Policy: ;
Set-Cookie: user_id=bnVsbA%3D%3D--69ec4bae7d601a6036395dbe51d1d2ffcd6fa592; path=/; secure
Set-Cookie: _homeland_session=DMhTdNrEmeYU69HrTOWfG5%2Fe40T8hiZ8yLESeIT4MOa84IHLg7W34jZPVJaP3YpK1L9nDPtI1xTRKig2T0tXmkGYDle5euScakeemuCy3PLcd2uiz7u7cuc%2BZ55mFxES8LD2R0IqMRk%2Fmi5ZZGBdgdszRoNRun5vUfC9UdiKz7F5FVfIEDXfdZ5sPnljVD70Z9nf01O4JCEkBJ6wyNrLtBBjPCyCu%2FGGQqfYDSza95Mp3sBpM6YtJ7g2KNoEU5Mjj70sfe46i1WuHMpS6g2HuI%2B1usda5J1Q8w%3D%3D--7H8PB2Bo%2BVwL2SaJ--vzZKAk7OnSDCfdvd0Ej9Og%3D%3D; path=/; expires=Fri, 29 Nov 2019 04:55:46 -0000; secure; HttpOnly
X-Request-Id: 3d577fc5-e77c-42b1-9b2c-ed9791924bf6
X-Runtime: 0.089027
Strict-Transport-Security: max-age=15552000; includeSubDomains

这里也可以很明显的看到,-I命令获取的就是响应头的信息

总结

通过上述实践验证可得到一个结论:
man比–help查询到的帮助文档信息更详细

小插曲~

man其实是manual,手册的意思;不知道有没有人和我一样,第一次看到的时候想到了男人(man),然后我就想:难道说因为男人必须要牛X?所以查询到的信息也更多更详细?然后就以男人作为命令了?哈哈哈哈~ 这里我都把自己给逗乐了,不过也因此记住了它们两者的区别了~

安装icc
2010-06-07 17:57:50 iteye_17322 阅读数 318

http://software.intel.com/en-us/articles/intel-compilers-for-linux-silent-installation-guide/


Intel Compilers for Linux Versions 10.1 and 11.0 Silent Installation Guide

Submit New Article


Intel Compilers for Linux Silent Installation Guide, Versions 10.1 and 11.0

Problem : How to install the Intel Compilers for Linux without using the interactive installer.  Valid for versions 10.1 and 11.0


Environment : Linux, supported distributions.  Please see your ReleaseNotes for your compiler version to determine the supported Linux environments.  This guide covers both the Intel Fortran Compiler for Linux and the Intel C++ Compiler for Linux.  SUDO users should read the notes at the end of this document.


Description:
The Intel Compilers for Linux Silent Installation Guide demonstrates how to install the Intel Compilers for Linux (versions 10.1 and 11.0) with minimal user interaction.  This is useful for remote, automated installations and avoiding prerequisite checking.

Procedure:

0) Prerequisites:  It is assumed you have obtained and mounted your product CD or have downloaded a compiler package.   If you have downloaded the compressed tarfile from the web, find a suitable temporary directory and uncompress/untar your package ( tar -zxvf can be used, for example).

1) Create a local copy of the silent installation file template.  This file is provided in your installation package.  It is a file named 'SilentInstallConfigFile.ini'.

  • CD Media: 
    cp /mnt/cdrom/SilentInstallConfigFile.ini    /home/my_account/my_silent.ini

    where /home/my_account is your home directory or other directory where you have write permission.
    "x.xxx" is replaced with your minor version and build, for example "0.074"
  • Web download, Version 11.0:
    cp l_cprof_p_11.0.xxx/l_cprof_p_11.0.xxx/SilentInstallConfigFile.ini  /home/my_account/my_silent.ini
    or
    cp l_cprof_p_11.0.xxx_intel64/l_cprof_p_11.0.xxx/SilentInstallConfigFile.ini  /home/my_account/my_silent.ini
    or
    cp l_cprof_p_11.0.xxx_ia32/l_cprof_p_11.0.xxx/SilentInstallConfigFile.ini  /home/my_account/my_silent.ini
  • Web Download, Version 10.1
    cp l_fc_p_10.1.022/data/SilentInstallConfigFile.ini /home/my_account/my_silent.ini
    or
    cp l_cc_p_10.1.022/data/SilentInstallConfigFile.ini /home/my_account/my_silent.ini

    where /home/my_account is your home directory or other directory where you have write permission.
    ".xxx" is replaced with your minor version and build, for example ".074"
If you are installing the Intel C++ Compiler for Linux, replace "cprof" above with "cproc", and "l_fc" with "l_cc". 
C++ users please replace "cprof" with "cproc" and "l_fc" with "l_cc" throughout the remainder of this document.

2) Edit your copy of the configuration file, my_silent.ini for example, to accept license agreements and allow for overwrite of existing installations as appropriate.   Edit the file to set preferences for installation target directories and any other changes necessary.  The template file contains reasonably thorough explanations for each of the fields which may be required.  See the notes at the end of this guide for configuration suggestions.

3) Change to a root user.   If you are using 'sudo', please see notes at the end of this guide, "Sudo User Notes ".

4) Run the install program manually
  • v11.0:  Change directory to the main package directory.  For example, if you untarred a web package, this would be:
    cd  ./l_cprof_p_11.0.xxx
    or
    cd ./l_cprof_p_11.0.xxx_intel64
    or
    cd ./l_cprof_p_11.0.xxx_ia32
  • v10.1: Change directory to the main package directory.  For example,
    cd ./l_fc_p_10.1.xxx
    or
    cd ./l_cc_p_10.1.xxx
  • Change directory to the product installation directory:
    • For version 11.0 kits, this is name the same as the package, l_cprof_p_11.0.xxx.
      Your current working directory should now look like:
      <parent directory path>/l_cprof_p_11.0.xxx/l_cprof_p_11.0.xx
    • For version 10.1 kits, this is the "data" subdirectory:
      <parent directory path>/l_fc_p_10.1.xxx/data
  • Run install_fc.sh to start the installation:

    ./install_fc.sh  --run  --silent /home/my_account/my_silent.ini

    Note:  This line is typed in as:
    install_fc.sh<space><dash><dash>run<space><dash><dash>silent<space>FILENAME

    C++ users run 'install_cc.sh'
  • If there are omissions or errors due to minor mistakes in the local copy of the silent .ini file, simply correct the errors and re-run the command (use the option to overwrite prior installations).


5) Additional Installation Options:
There are additional options for 'install_fc.sh' and 'install_cc.sh'.  These options should be used by knowledgeable users and system administrators only:
<!-- --> -v                    Enables display of large amounts of verbose install internals to during the install process.

--arch              Causes the install program to install the files specific to the architecture of the next argument.  For example:

--arch x86       (or ia32)
--arch ia64      (Itanium users)
--arch intel64  (or x86_64 or em64t)

--default           Sets default options for the install process (uses TYPICAL install choice and default install path, if path is not specified

--install-path    Uses next argument as install path for top of tree install directory.  For example:
--install-path /opt/intel/cc/10.1.053

--help              Causes the install program to display a usage message and exit

--imagedir       Forces installer to use the following argument as the location for RPM file installation, instead of the default location

--license-path  Uses the next argument as the location of the license file for this installation.  For example:
--license-path /opt/inte/licenses/productx.lic

-n                   Forces the installer to perform a non-RPM installation, whether or not the target operating system supports RPM.

--tmp-path      Use the following argument as the path for temporary file extraction.  For example:
--tmp-path /alt/tmp

<!-- EndFragment-->


6)  Configuration file template example:

Below is a sample of the SilentInstallConfigFile.ini. 
Notes:

EULA should be changed to 'accept' ONLY AFTER you read the End User License Agreement (EULA).

NON_SUPPORTED_OS_INSTALL should be set to 'Yes' for users experiencing missing prerequisites.

<!-- -->

Template Silent Install Configuration File (C/C++ Version)
#
# INSTALLDIR:
#   Specify the directory to which this product will be installed.
# OPTIONS:
#   Specify the command-lines options to be passed to RPM.
# EULA:
#   Do you accept or reject the terms of the end user license agreement?
#   The set of valid values for EULA is: {accept, reject}.
# LGPL:
#   Do you accept or reject the terms of the Lesser GNU Public License?
#   The set of valid values for LGPL is: {accept, reject}.
# ECL_DISCLAIMER:
#   Do you accept or reject the terms of the CPL for Eclipse?
#   The set of valid values for ECL_DISCLAIMER is: {accept, reject}.
# NON_SUPPORTED_OS_INSTALL:
#   If your operating system is not supported by this installer, do you still
#   wish to install this product?  The set of valid values for
#   NON_SUPPORTED_OS_INSTALL is: {Yes, No}.
# REPLACE_EXISTING_INSTALLATION:
#   If this product already exists on your system, do you still wish to
#   continue the current installation?  The set of valid values for
#   REPLACE_EXISTING_INSTALLATION is: {Yes, No}.
# <REL_NUMBER>:
#   Replace if nessary with release number for this install pacakge (e.g. 10.0.032)

[global]
LICENSE_FILE_LOCATION=/opt/intel/licenses:$HOME/intel/licenses
REL_NUMBER=<REL_NUMBER>

[iidb10-ia32]
INSTALLDIR=/opt/intel/idb/<REL_NUMBER>
OPTIONS=-U --replacefiles --force --nodeps
EULA=reject
NON_SUPPORTED_OS_INSTALL=No
REPLACE_EXISTING_INSTALLATION=No

...etc...



Notes for Sudo Users

Non-root users can use sudo to install the compiler.  For this method, the username must be registered by your system administrator in the 'sudoers' file.  If you receive the error: "<username> is not in the sudoers file.  This incident will be reported." please contact your systems administrator.

1) The easiest method is to use sudo to obtain a bash shell.  This new shell will run as the root user:

sudo bash
<password must be entered.  Use your user password.>

With the invoked shell, run the silent installation as shown in the steps for this guide.  Type 'exit' to exit the root shell.


2) Invoke the installer using sudo.  Follow the procedure in this guide up to the Step 4), Run the installer.   For Step 4, invoke the installer using sudo.  This method still requires the user to interactively enter their password:

sudo ./install_fc.sh  --run --silent FILENAME
<password for user>

3) Fully remote sudo install:  If you wish to fully automate the installation, including passing your user password to sudo and have no prompts whatsoever, use this command:

echo 'your password'  | sudo -S ./install_fc.sh  --run --silent FILENAME

2010-09-21 11:23:00 yulongblue 阅读数 287

/dev/sda3     /media/sda3 ntfs-3g silent,umask=0,locale=zh_CN.utf8 0 0

/dev/sda2     /media/sda2 ntfs-3g silent,umask=0,locale=zh_CN.utf8 0 0

/dev/sda5     /media/sda5 ntfs-3g silent,umask=0,locale=zh_CN.utf8 0 0

//192.168.1.3/ipovos  /home/administrator/桌面/192.168.1.3  smbfs iocharset=utf8,username=testsoft,password=testsoft,uid=administrator 0 0

arm qt5.9配置

阅读数 32

没有更多推荐了,返回首页