科学网

 找回密码
  注册

tag 标签: Centos

相关帖子

版块 作者 回复/查看 最后发表

没有相关内容

相关日志

Centos 7和Windows 双系统安装
blazing216 2016-1-9 16:07
Centos U盘安装 最小安装 没有图形界面 1、给Centos7腾出空间 右键“计算机”-“管理”,选择“存储”-“磁盘管理”,找一个比较空的盘,用“压缩卷”或“删除卷”提供一些空闲空间 2、制作U盘启动 UltraISO或其他软件 3、BIOS或临时选择U盘启动 4、安装 这样安装后,没有用网上说的EasyBCD,所以安装后只能从Windows或Linux启动,根据启动盘选择而决定。想要启动选项出现Linux和Windows共存的情况,需要1、从BIOS中将安装有Linux的盘放在Windows盘之前;2、修改grub。 Centos 7用的是grub2。启动选项根据/boot/grub2/grub.cfg决定,官方不推荐直接修改该文件,而是修改/etc/grub.d下的文件,然后用 sudo grub2-mkconfig -o /boot/grub2/grub.cfg完成配置。 另外,关于启动时等待时间,默认启动项等可以在/etc/default/grub中修改。 我修改的是/etc/grub.d下的40_custom文件。在文件最后添加 menuentry 'Windows 7'{ insmod ntfs set root=(hd1, msdos2) chainloader +1 } 其中(hd1, msdos2)根据具体情况而定。可以通过以下方式查询 1、选择安装有Linux的盘(或安装有grub的盘)启动 2、启动选项画面时,按c进入命令行模式 3、输入ls查看可选的名字;输入ls -l 显示详细信息,根据盘的名字和大小,判断哪个是Windows安装的盘 Centos 7最小安装没有图形界面,用起来虽然也可以,但有时可能不是很方便
个人分类: Linux|3916 次阅读|0 个评论
[转载]Centos中vsftp安装、配置及卸载
chuangma2006 2015-12-9 10:34
1. 安装VSFTP 1 # yum -y install vsftpd 2. 配置vsftpd.conf文件 # vi /etc/vsftpd/vsftpd.conf 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 025 026 027 028 029 030 031 032 033 034 035 036 037 038 039 040 041 042 043 044 045 046 047 048 049 050 051 052 053 054 055 056 057 058 059 060 061 062 063 064 065 066 067 068 069 070 071 072 073 074 075 076 077 078 079 080 081 082 083 084 085 086 087 088 089 090 091 092 093 094 095 096 097 098 099 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 # Example config file /etc/vsftpd/vsftpd.conf # # The default compiled in settings are fairly paranoid. This sample file # loosens things up a bit, to make the ftp daemon more usable. # Please see vsftpd.conf.5 for all compiled in defaults. # # READ THIS: This example file is NOT an exhaustive list of vsftpd options. # Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's # capabilities. # # Allow anonymous FTP? (Beware - allowed by default if you comment this out). #anonymous_enable=YES # # Uncomment this to allow local users to log in. local_enable=YES # # Uncomment this to enable any form of FTP write command. write_enable=YES # # Default umask for local users is 077. You may wish to change this to 022, # if your users expect that (022 is used by most other ftpd's) local_umask=022 # # Uncomment this to allow the anonymous FTP user to upload files. This only # has an effect if the above global write enable is activated. Also, you will # obviously need to create a directory writable by the FTP user. #anon_upload_enable=YES # # Uncomment this if you want the anonymous FTP user to be able to create # new directories. #anon_mkdir_write_enable=YES # # Activate directory messages - messages given to remote users when they # go into a certain directory. dirmessage_enable=YES # # The target log file can be vsftpd_log_file or xferlog_file. # This depends on setting xferlog_std_format parameter xferlog_enable=YES # # Make sure PORT transfer connections originate from port 20 (ftp-data). connect_from_port_20=YES # # If you want, you can arrange for uploaded anonymous files to be owned by # a different user. Note! Using root for uploaded files is not # recommended! #chown_uploads=YES #chown_username=whoever # # The name of log file when xferlog_enable=YES and xferlog_std_format=YES # WARNING - changing this filename affects /etc/logrotate.d/vsftpd.log #xferlog_file=/var/log/xferlog # # Switches between logging into vsftpd_log_file and xferlog_file files. # NO writes to vsftpd_log_file, YES to xferlog_file xferlog_std_format=YES # # You may change the default value for timing out an idle session. idle_session_timeout=600 # # You may change the default value for timing out a data connection. data_connection_timeout=120 # # It is recommended that you define on your system a unique user which the # ftp server can use as a totally isolated and unprivileged user. #nopriv_user=ftpsecure # # Enable this and the server will recognise asynchronous ABOR requests. Not # recommended for security (the code is non-trivial). Not enabling it, # however, may confuse older FTP clients. #async_abor_enable=YES # # By default the server will pretend to allow ASCII mode but in fact ignore # the request. Turn on the below options to have the server actually do ASCII # mangling on files when in ASCII mode. # Beware that on some FTP servers, ASCII support allows a denial of service # attack (DoS) via the command SIZE /big/file in ASCII mode. vsftpd # predicted this attack and has always been safe, reporting the size of the # raw file. # ASCII mangling is a horrible feature of the protocol. ascii_upload_enable=YES ascii_download_enable=YES # # You may fully customise the login banner string: ftpd_banner=Welcome to lightnear FTP service. # # You may specify a file of disallowed anonymous e-mail addresses. Apparently # useful for combatting certain DoS attacks. #deny_email_enable=YES # (default follows) #banned_email_file=/etc/vsftpd/banned_emails # # You may specify an explicit list of local users to chroot() to their home # directory. If chroot_local_user is YES, then this list becomes a list of # users to NOT chroot(). chroot_local_user=YES #chroot_list_enable=YES # (default follows) #chroot_list_file=/etc/vsftpd/chroot_list # # You may activate the -R option to the builtin ls. This is disabled by # default to avoid remote users being able to cause excessive I/O on large # sites. However, some broken FTP clients such as ncftp and mirror assume # the presence of the -R option, so there is a strong case for enabling it. ls_recurse_enable=YES # # When listen directive is enabled, vsftpd runs in standalone mode and # listens on IPv4 sockets. This directive cannot be used in conjunction # with the listen_ipv6 directive. listen=YES # # This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6 # sockets, you must run two copies of vsftpd with two configuration files. # Make sure, that one of the listen options is commented !! #listen_ipv6=YES pam_service_name=vsftpd userlist_enable=YES userlist_deny=NO #local_root=/var/public_root ##Note: for wordpress ftp download local_root=/var/www tcp_wrappers=YES use_localtime=YES 3. 增加FTP帐户 这里设置的账户名为“cent”,密码为“cent” 1 2 # useradd cent -s /sbin/nologin # passwd cent 4. 编辑user_list文件,允许cent用户访问FTP 1 # vi /etc/vsftpd/user_list 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 # vsftpd userlist # If userlist_deny=NO, only allow users in this file # If userlist_deny=YES (default), never allow users in this file, and # do not even prompt for a password. # Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers # for users that are denied. root bin daemon adm lp sync shutdown halt mail news uucp operator games nobody cent 5. 建立我们的根目录,并设置访问权限 1 2 3 # mkdir /var/public_root # chown -R cent /var/public_root # chmod -R 755 /var/public_root 6. 开启vsftpd服务 1 # service vsftpd start 7.默认开启vsftp服务 1 # chkconfig vsftpd on centos 卸载vsftpd方法 如果服务器上安装了vsftpd,配置出错需要卸载vsftpd 1 # rpm -aq vsftpd vsftpd-2.0.5-16.el5_5.1 #此处是查找vsftpd的返回结果 1 # rpm -e vsftpd-2.0.5-16.el5_5.1 #用rpm -e 查找结果 进行删除就ok了。 warning: /etc/vsftpd/user_list saved as /etc/vsftpd/user_list.rpmsave warning: /etc/vsftpd/ftpusers saved as /etc/vsftpd/ftpusers.rpmsave #删除时将备份vsftp的用户列表文件。 看下是否卸载了vsftpd,进行stop及start操作: 1 # /sbin/service vsftpd stop vsftpd: unrecognized service #找不到vsftpd 1 # /sbin/service vsftpd start vsftpd: unrecognized service #找不到vsftpd记住,在卸载vsftpd之前,先停止vsftpd。 zz: http://www.w3cways.com/1509.html
个人分类: OS|2 次阅读|0 个评论
centos的perl GD 画图环境配置
hsm 2015-10-9 15:09
首先,安装GD作图库。yum install gd* 其次,安装perl的GD模块, http://search.cpan.org/~lds/GD-2.35/GD.pm
个人分类: 生物信息|3669 次阅读|0 个评论
CentOS及RHEL下GAMIT10.6的安装
PurpleSky 2015-7-18 17:29
今年 7 月份, MIT 终于发布了 GAMIT/GLOBK 软件的10.6版本 。相比于之前版本,不仅增加了对多系统 GNSS 的支持(如 GLONASS 、北斗和 Galileo 等等),而且其安装方法相对于以前的版本也做了优化,使得在安装时方便了不少(可对比上个版本的安装过程: GAMIT10.5 的安装方法 ,以下简称上文)。现在简述一下我的安装过程。安装方法适用于 CentOS 及 Red Hat Enterprise Linux ( RHEL ) 6.5 以上的版本。较旧的版本没有测试过,读者可以自己尝试一下。 安装方法 首先还是安装编译及使用 GAMIT/GLOBK 所需要的软件。这部分可以参考上文链接给出的 GAMIT10.5 第一、二步,不再赘述。 将 GAMIT10.6 的安装包上传至要安装的目录(如 /opt ),使用 chmod 命令为其中的文件加上可执行及其他用户的可访问权限。这部分与上文类似。如 sudo chmod 755 -R gamit10.6 使用 cd 命令进入 gamit10.6 文件夹 cd gamit10.6/ 执行安装脚本 ./install_software 此版本的改变就在于安装脚本可以自动搜索 X11 依赖库所在的路径(如下图),一路输入 y 确认安装路径。 直到出现提示: maxsit = 80 maxepc = 2880 maxatm = 13 maxsat = 32 此时,如果你觉得参数合适,依然输入 y ,否则输入 n 之后修改 libraries 文件夹下的 Makefile.config 文件中的相关参数以满足你的要求,之后使用上面的命令重新执行 install_software 文件。此后一路输入 y ,软件即可自动完成编译安装的剩余过程。直到提示: +++++++++++++++++ GLOBK installed +++++++++++++++++ 软件安装完成。 参考上文方法为软件配置路径: set gamitpath = /opt/ gamit10.6 set path = (. \$gamitpath/gamit/bin \$gamitpath/kf/bin \$gamitpath/com \$path) setenv HELP_DIR $gamitpath/help/ 至此,软件已经可以使用。执行命令: sh_gamit 可以看到其中添加了新的参数“ -gnss ”参数,可选参数有“ G R C E J I ”。其中默认参数为“ G ”,代表 GPS 。 总结 对比上文 GAMIT10.5 的安装,可以看到,安装时不再需要手动编辑 X11 依赖库路径以及操作系统的版本号。 至于对 GLONASS 以及北斗系统的观测数据的解算,最近还没有来得及试一试,有时间尝试之后再把经验分享给大家。 安装方法参考了 GAMIT/GLOBK 的官方 README。 -----------------------------------------------------------------------------------------10月5日新增-------------------------------------------------------------------------------------------- 抱歉,在本文开头我在自己没有亲身检验的情况下断言新版本的GAMIT/GLOBK10.6支持多GNSS系统。经过师弟试验证实目前版本的GAMIT/GLOBK只是整合了部分多GNSS系统的代码,但是还没有实现数据解算。
个人分类: GAMIT/GLOBK|6253 次阅读|0 个评论
centos7 安装R
zoubinbin100 2015-3-25 14:40
再R官网下载R源码 解压 ./configure 报错 configure: error: --with-readline=yes (default) and headers/libs are not available 解决: yum install readline-devel : http://blog.csdn.net/Tony_Stark_Fu/article/details/41032025 make 报错jni.h:没有那个文件或目录 解决 sudo yum install java-1.7.0-openjdk java-1.7.0-openjdk-devel
个人分类: 生物信息|1 次阅读|0 个评论
centos 按照tvc
zoubinbin100 2015-3-25 13:05
http://updates.iontorrent.com/tvc_standalone/README.txt Compilation instructions for TVC # Steps 1 through 11 explain how to compile TVC. Step 12 onward explain how to deploy and run the compiled version on the cluster or another computer. # 1. Download source files wget updates.iontorrent.com/tvc_standalone/tvc-4.2.3.tar.gz wget updates.iontorrent.com/tvc_standalone/ion_gatk-4.2.2.tar.gz # 2. Copy source files into build root directory BUILD_ROOT_DIR=`mktemp -d` cp tvc-4.2.3.tar.gz $BUILD_ROOT_DIR cp ion_gatk-4.2.2.tar.gz $BUILD_ROOT_DIR TVC_VERSION=tvc-4.2.3 # 3. Install dependencies # 3.1 RedHat/CentOS yum -y install gcc-c++ cmake zlib-devel bzip2-devel \ ncurses-devel python-simplejson java atlas-devel blas-devel lapack-devel # 3.2 Debian/Ubuntu sudo aptitude install g++ cmake zlib1g-dev libbz2-dev libncurses-dev \ libatlas-dev liblapack-dev default-jre # 3.3 cmake # Required is cmake (=2.8.0), you can check the installed version with e.g.: # $ cmake -version # cmake version 2.8.0 # Installation of a newer cmake version is only required if the installed version is older than 2.8.0 # To delete the old cmake package: # Redhat/CentOS: yum -y erase cmake # Debian/Ubuntu: aptitude purge cmake cd ~ wget http://www.cmake.org/files/v2.8/cmake-2.8.11.2.tar.gz tar xvzf cmake-2.8.11.2.tar.gz cd cmake-2.8.11.2 ./configure make -j5 make install # 4. build armadillo cd $BUILD_ROOT_DIR wget http://sourceforge.net/projects/arma/files/armadillo-4.300.8.tar.gz tar xvzf armadillo-4.300.8.tar.gz cd armadillo-4.300.8/ sed -i 's:^// #define ARMA_USE_LAPACK$:#define ARMA_USE_LAPACK:g' include/armadillo_bits/config.hpp sed -i 's:^// #define ARMA_USE_BLAS$:#define ARMA_USE_BLAS:g' include/armadillo_bits/config.hpp cmake . make -j4 # 5. build bamtools cd $BUILD_ROOT_DIR wget updates.iontorrent.com/updates/software/external/bamtools-2.3.0.20131211+git67178ae187.tar.gz tar xvzf bamtools-2.3.0.20131211+git67178ae187.tar.gz mkdir bamtools-2.3.0.20131211+git67178ae187-build cd bamtools-2.3.0.20131211+git67178ae187-build cmake ../bamtools-2.3.0.20131211+git67178ae187 make -j4 # 6. build samtools cd $BUILD_ROOT_DIR wget http://downloads.sourceforge.net/project/samtools/samtools/0.1.19/samtools-0.1.19.tar.bz2 tar xvjf samtools-0.1.19.tar.bz2 cd samtools-0.1.19/ make -j4 # 7. build vcftools cd $BUILD_ROOT_DIR wget http://downloads.sourceforge.net/project/vcftools/vcftools_0.1.11.tar.gz tar xvzf vcftools_0.1.11.tar.gz cd vcftools_0.1.11 make -j4 # 8. build htslib cd $BUILD_ROOT_DIR wget --no-check-certificate https://github.com/samtools/htslib/archive/0.2.0-rc8.tar.gz -O htslib-0.2.0-rc8.tar.gz tar xvzf htslib-0.2.0-rc8.tar.gz cd htslib-0.2.0-rc8/ make -j4 # 9. download ION-GATK cd $BUILD_ROOT_DIR tar xvzf ion_gatk-4.2.2.tar.gz # 10. build TVC cd $BUILD_ROOT_DIR tar xvzf $TVC_VERSION.tar.gz TVC_SOURCE_DIR=$BUILD_ROOT_DIR/$TVC_VERSION DISTRIBUTION_CODENAME=`lsb_release -is`_`lsb_release -rs`_`uname -m` TVC_INSTALL_DIR=$BUILD_ROOT_DIR/$TVC_VERSION-$DISTRIBUTION_CODENAME-binary mkdir $TVC_VERSION-build cd $TVC_VERSION-build cmake $TVC_SOURCE_DIR -DCMAKE_INSTALL_PREFIX:PATH=$TVC_INSTALL_DIR make -j4 install # 11. copy binaries into TVC_INSTALL_DIR cd $BUILD_ROOT_DIR cp -r ion_gatk-4.2.2/jar $TVC_INSTALL_DIR/share/TVC/ cp vcftools_0.1.11/bin/vcftools $TVC_INSTALL_DIR/bin/ cp samtools-0.1.19/samtools $TVC_INSTALL_DIR/bin/ cp htslib-0.2.0-rc8/tabix $TVC_INSTALL_DIR/bin/ cp htslib-0.2.0-rc8/bgzip $TVC_INSTALL_DIR/bin/ tar cvzf $TVC_VERSION-$DISTRIBUTION_CODENAME-binary.tar.gz $TVC_VERSION-$DISTRIBUTION_CODENAME-binary ###################################################################################### # 12.1 Either use the TVC version from the (temporary) TVC_INSTALL_DIR directory TVC_ROOT_DIR=$TVC_INSTALL_DIR # 12.2 Or use the TVC binary version. tar xvzf $TVC_VERSION-$DISTRIBUTION_CODENAME-binary.tar.gz TVC_ROOT_DIR=`pwd`/$TVC_VERSION-$DISTRIBUTION_CODENAME-binary # 13. export PATH, following tools are required: samtools vcftools bgzip tabix zip tvc export PATH=$PATH:$TVC_ROOT_DIR/bin # 14. adjust some file paths and invoke TVC # Required are 1 reference, 2 bed files, 1 aligned bam file, and 1 tvc parameter file # Example 1: $TVC_ROOT_DIR/bin/variant_caller_pipeline.py \ --input-bam $TVC_ROOT_DIR/share/TVC/examples/example1/test.bam \ --reference-fasta $TVC_ROOT_DIR/share/TVC/examples/example1/reference.fasta \ --region-bed $TVC_ROOT_DIR/share/TVC/examples/example1/test_merged_plain.bed \ --primer-trim-bed $TVC_ROOT_DIR/share/TVC/examples/example1/test_unmerged_detail.bed # Example 1 with specified parameter file and output directory: $TVC_ROOT_DIR/bin/variant_caller_pipeline.py \ --input-bam $TVC_ROOT_DIR/share/TVC/examples/example1/test.bam \ --reference-fasta $TVC_ROOT_DIR/share/TVC/examples/example1/reference.fasta \ --region-bed $TVC_ROOT_DIR/share/TVC/examples/example1/test_merged_plain.bed \ --primer-trim-bed $TVC_ROOT_DIR/share/TVC/examples/example1/test_unmerged_detail.bed \ --parameters-file $TVC_ROOT_DIR/share/TVC/pluginMedia/parameter_sets/ccp_somatic_lowstringency_pgm_parameters.json \ --output-dir /tmp/tvc_example1 # Example 2 (not included yet) : # Required are 1 reference, 2 bed files, 1 aligned bam file, and 1 tvc parameter file REF=/mnt/TS/source/hg19/hg19.fasta BED_UNMERGED_DETAIL=/mnt/TS/source/tvc_test_GB1-118-CSI/unmerged/detail/Exome_draft_Designed_20130531.bed BED_MERGED_PLAIN=/mnt/TS/source/tvc_test_GB1-118-CSI/merged/plain/Exome_draft_Designed_20130531.bed BAM=/mnt/TS/source/tvc_test_GB1-118-CSI/IonXpress_045_rawlib.bam TVC_PARAM=$TVC_ROOT_DIR/share/TVC/pluginMedia/configs/germline_low_stringency_proton.json TMP_DIR=`mktemp -d` $TVC_ROOT_DIR/bin/variant_caller_pipeline.py \ --parameters-file $TVC_PARAM \ --input-bam $BAM \ --reference-fasta $REF \ --region-bed $BED_MERGED_PLAIN \ --primer-trim-bed $BED_UNMERGED_DETAIL \ --postprocessed-bam $TMP_DIR/trimmed.bam \ --output-dir $TMP_DIR # Example 3 (hotspot) (not included yet): REF=/mnt/TS/source/hg19/hg19.fasta BED_UNMERGED_DETAIL=/mnt/TS/source/tvc_test_Z06-506-CCP/unmerged_detail_CCP.20131001.designed.bed BED_MERGED_PLAIN=/mnt/TS/source/tvc_test_Z06-506-CCP/merged_plain_CCP.20131001.designed.bed BAM=/mnt/TS/source/tvc_test_Z06-506-CCP/IonXpress_019_rawlib.bam TVC_PARAM=/mnt/TS/source/tvc_test_Z06-506-CCP/local_parameters.json HOTSPOT=/mnt/TS/source/tvc_test_Z06-506-CCP/hotspot.vcf TMP_DIR=`mktemp -d` time $TVC_ROOT_DIR/bin/variant_caller_pipeline.py \ --parameters-file $TVC_PARAM \ --input-bam $BAM \ --reference-fasta $REF \ --region-bed $BED_MERGED_PLAIN \ --primer-trim-bed $BED_UNMERGED_DETAIL \ --hotspot-vcf $HOTSPOT \ --postprocessed-bam $TMP_DIR/trimmed.bam \ --output-dir $TMP_DIR
个人分类: 生物信息|0 个评论
CentOS下的GAMIT10.5安装
PurpleSky 2014-10-13 10:55
有关GAMIT/GLOBK软件的Ubuntu下的安装博文已经很多了,但是在CentOS下的安装流程还不多。这里介绍一下我的安装过程。所用环境为CentOS6.5,GAMIT版本为10.5。 第一步 切换SHELL,终端输入命令: chsh 输入: /bin/tcsh 将默认 SHELL 更改为 TC Shell 。 更改之后注销一下,重新登陆系统 第二步 1.安装 libX11-devel ( GAMIT 安装必备库) 终端执行:(若提示没有权限可以在命令前加上sudo) yum install libX11-devel 2.安装FTP工具(用于自动下载数据) 执行 yum install ftp 第三步 1.拷贝GAMIT安装包到/opt(当然,可以是你想将gamit安装到的任何路径,此处以/opt为例) 然后执行: sudo c hmod 755 -R gamit10.5 2.进入gamit10.5文件夹: cd ./gamit10.5 执行: ./install_software 在提示安装参数: MAXSIT 60 MAXSAT 32 MAXATM 13 MAXEP C 2880 处时,输入n。 打开libraties文件夹下的Makefile.config文件, 修改 MAXSIT 60 MAXSAT 32 MAXATM 13 MAXEP C 2880 为你的任务所需参数 释义: MAXSIT (最大测站数,视你的解算任务); MAXSAT (最大卫星数,一般不用修改); MAXATM (最大对流层延迟数,建议修过为 25 ) MAXEPC (最大解算历元数,一般不用修改) # ----- for Linuxfrom 0.0.1 to 3.0.0 -- # OS_IDLinux 0001 3000 为 # ----- for Linuxfrom 0.0.1 to 3.0.0 -- # OS_ID Linux 0001 2632 该处的修改值是你linux的内核版本号,修改值视情况而定,我的系统是centos6.5。可新开一个终端,执行uname -a命令查看你所用的系统版本。 更改以上之后,保存。重新执行: ./install_software 一切询问选择y,安装成功之后会提示: ++++++++++++++++ GLOBK installed ++++++++++++++++ 最后 配置路径 进入 /etc 文件夹,编辑 csh.cshrc 文件 ,在底部添加以下代码: set gamitpath = /opt/gamit10.5 setenv PATH \$gamitpath/gamit/bin:\$gamitpath/kf/bin:\$gamitpath/com:\$PATH setenv HELP_DIR $gamitpath/help/ 保存,退出。 至此,Gamit/globk软件安装完成。你可以在终端下运行doy命令检验。 另:若要完整使用gamit软件的各项功能,如绘图等,你还需要安装Ghostscript,imagemagic和gmt等软件。
个人分类: GAMIT/GLOBK|5064 次阅读|0 个评论
关于安装centos7.0
热度 2 marine429 2014-7-25 14:27
对于linux,本人是个小白,以前接触过linux但未安装和使用过centos,前段时间centos出了7.0版本,也想学习下centos,于是开始在自己的笔记本上尝试安装centos7.0,与win7共存成双系统,折腾了一天,还是没有成功,试过硬盘安装,也试了upan安装,一直遇到各种各样的问题,遇到问题便去度年,结果又出现新的问题,因笔记本上资料众多,担心操作不当把数据搞没了,也就换装了其他版本,等新电脑来到之后,就可以无后顾之忧的继续试验了。 虽昨天没有安装成功,但安装步骤已大致了解,首先就是要分区,找出空闲空间来存放centos,若是硬盘安装的话还得留出一块来放安装文件,U盘启动的话则需要将镜像文件写入优盘,接下来就是问题最多的地方,重启后一直读不出镜像文件,后来度娘到改一行代码则可,之后就按照流程来装,最重要的就是划分磁盘空间,因对linux各个文档不熟悉,这里还不是很清楚,安装之后网上说会遇到win7无法启动的问题,也有各种各样的方法,没有走到这一步,这些方法也没有尝试。 安装时看到很多不错的帖子,先放在这个地方,以后要装的时候直接来取。 http://blog.sina.com.cn/s/blog_86e874d30101e3d8.html http://tieba.baidu.com/p/3152957061 http://blog.sina.com.cn/s/blog_ea91389e0102uxo5.html
8791 次阅读|3 个评论
CentOS 6.5 yum install R
xiangxing 2014-5-2 00:48
$ yum install r Loaded plugins: fastestmirror, priorities, refresh-packagekit, security You need to be root to perform this command. $ su 密码: # yum install r Loaded plugins: fastestmirror, priorities, refresh-packagekit, security Loading mirror speeds from cached hostfile * epel: mirrors.neusoft.edu.cn Setting up Install Process No package r available. * Maybe you meant: R Error: Nothing to do # yum install R Loaded plugins: fastestmirror, priorities, refresh-packagekit, security Loading mirror speeds from cached hostfile * epel: mirrors.neusoft.edu.cn Setting up Install Process Resolving Dependencies -- Running transaction check --- Package R.i686 0:3.0.2-1.el6 will be installed -- Processing Dependency: libRmath-devel = 3.0.2-1.el6 for package: R-3.0.2-1.el6.i686 -- Processing Dependency: R-java = 3.0.2-1.el6 for package: R-3.0.2-1.el6.i686 -- Processing Dependency: R-devel = 3.0.2-1.el6 for package: R-3.0.2-1.el6.i686 -- Running transaction check --- Package R-devel.i686 0:3.0.2-1.el6 will be installed -- Processing Dependency: R-java-devel = 3.0.2-1.el6 for package: R-devel-3.0.2-1.el6.i686 -- Processing Dependency: R-core-devel = 3.0.2-1.el6 for package: R-devel-3.0.2-1.el6.i686 --- Package R-java.i686 0:3.0.2-1.el6 will be installed --- Package libRmath-devel.i686 0:3.0.2-1.el6 will be installed -- Processing Dependency: libRmath = 3.0.2-1.el6 for package: libRmath-devel-3.0.2-1.el6.i686 -- Running transaction check --- Package R-core-devel.i686 0:3.0.2-1.el6 will be installed -- Processing Dependency: zlib-devel for package: R-core-devel-3.0.2-1.el6.i686 -- Processing Dependency: tk-devel for package: R-core-devel-3.0.2-1.el6.i686 -- Processing Dependency: texinfo-tex for package: R-core-devel-3.0.2-1.el6.i686 -- Processing Dependency: tcl-devel for package: R-core-devel-3.0.2-1.el6.i686 -- Processing Dependency: pcre-devel for package: R-core-devel-3.0.2-1.el6.i686 -- Processing Dependency: libX11-devel for package: R-core-devel-3.0.2-1.el6.i686 -- Processing Dependency: bzip2-devel for package: R-core-devel-3.0.2-1.el6.i686 --- Package R-java-devel.i686 0:3.0.2-1.el6 will be installed --- Package libRmath.i686 0:3.0.2-1.el6 will be installed -- Running transaction check --- Package bzip2-devel.i686 0:1.0.5-7.el6_0 will be installed --- Package libX11-devel.i686 0:1.5.0-4.el6 will be installed -- Processing Dependency: pkgconfig(xcb) = 1.1.92 for package: libX11-devel-1.5.0-4.el6.i686 -- Processing Dependency: pkgconfig(xproto) for package: libX11-devel-1.5.0-4.el6.i686 -- Processing Dependency: pkgconfig(xcb) for package: libX11-devel-1.5.0-4.el6.i686 -- Processing Dependency: pkgconfig(kbproto) for package: libX11-devel-1.5.0-4.el6.i686 --- Package pcre-devel.i686 0:7.8-6.el6 will be installed --- Package tcl-devel.i686 1:8.5.7-6.el6 will be installed --- Package texinfo-tex.i686 0:4.13a-8.el6 will be installed -- Processing Dependency: texinfo = 4.13a-8.el6 for package: texinfo-tex-4.13a-8.el6.i686 --- Package tk-devel.i686 1:8.5.7-5.el6 will be installed -- Processing Dependency: libXft-devel for package: 1:tk-devel-8.5.7-5.el6.i686 --- Package zlib-devel.i686 0:1.2.3-29.el6 will be installed -- Running transaction check --- Package libXft-devel.i686 0:2.3.1-2.el6 will be installed -- Processing Dependency: pkgconfig(xrender) for package: libXft-devel-2.3.1-2.el6.i686 -- Processing Dependency: pkgconfig(freetype2) for package: libXft-devel-2.3.1-2.el6.i686 -- Processing Dependency: pkgconfig(fontconfig) for package: libXft-devel-2.3.1-2.el6.i686 --- Package libxcb-devel.i686 0:1.8.1-1.el6 will be installed -- Processing Dependency: pkgconfig(xau) = 0.99.2 for package: libxcb-devel-1.8.1-1.el6.i686 --- Package texinfo.i686 0:4.13a-8.el6 will be installed --- Package xorg-x11-proto-devel.noarch 0:7.6-25.el6 will be installed -- Running transaction check --- Package fontconfig-devel.i686 0:2.8.0-3.el6 will be installed --- Package freetype-devel.i686 0:2.3.11-14.el6_3.1 will be installed --- Package libXau-devel.i686 0:1.0.6-4.el6 will be installed --- Package libXrender-devel.i686 0:0.9.7-2.el6 will be installed -- Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: R i686 3.0.2-1.el6 epel 20 k Installing for dependencies: R-core-devel i686 3.0.2-1.el6 epel 90 k R-devel i686 3.0.2-1.el6 epel 19 k R-java i686 3.0.2-1.el6 epel 20 k R-java-devel i686 3.0.2-1.el6 epel 20 k bzip2-devel i686 1.0.5-7.el6_0 base 250 k fontconfig-devel i686 2.8.0-3.el6 base 209 k freetype-devel i686 2.3.11-14.el6_3.1 base 364 k libRmath i686 3.0.2-1.el6 epel 104 k libRmath-devel i686 3.0.2-1.el6 epel 24 k libX11-devel i686 1.5.0-4.el6 base 1.0 M libXau-devel i686 1.0.6-4.el6 base 14 k libXft-devel i686 2.3.1-2.el6 base 19 k libXrender-devel i686 0.9.7-2.el6 base 16 k libxcb-devel i686 1.8.1-1.el6 base 174 k pcre-devel i686 7.8-6.el6 base 318 k tcl-devel i686 1:8.5.7-6.el6 base 162 k texinfo i686 4.13a-8.el6 base 660 k texinfo-tex i686 4.13a-8.el6 base 132 k tk-devel i686 1:8.5.7-5.el6 base 496 k xorg-x11-proto-devel noarch 7.6-25.el6 base 274 k zlib-devel i686 1.2.3-29.el6 base 44 k Transaction Summary ================================================================================ Install 22 Package(s) Total download size: 4.3 M Installed size: 14 M Is this ok : y Downloading Packages: (1/22): R-3.0.2-1.el6.i686.rpm | 20 kB 00:00 (2/22): R-core-devel-3.0.2-1.el6.i686.rpm | 90 kB 00:00 (3/22): R-devel-3.0.2-1.el6.i686.rpm | 19 kB 00:00 (4/22): R-java-3.0.2-1.el6.i686.rpm | 20 kB 00:00 (5/22): R-java-devel-3.0.2-1.el6.i686.rpm | 20 kB 00:00 (6/22): bzip2-devel-1.0.5-7.el6_0.i686.rpm | 250 kB 00:00 (7/22): fontconfig-devel-2.8.0-3.el6.i686.rpm | 209 kB 00:00 (8/22): freetype-devel-2.3.11-14.el6_3.1.i686.rpm | 364 kB 00:00 (9/22): libRmath-3.0.2-1.el6.i686.rpm | 104 kB 00:00 (10/22): libRmath-devel-3.0.2-1.el6.i686.rpm | 24 kB 00:00 (11/22): libX11-devel-1.5.0-4.el6.i686.rpm | 1.0 MB 00:01 (12/22): libXau-devel-1.0.6-4.el6.i686.rpm | 14 kB 00:00 (13/22): libXft-devel-2.3.1-2.el6.i686.rpm | 19 kB 00:00 (14/22): libXrender-devel-0.9.7-2.el6.i686.rpm | 16 kB 00:00 (15/22): libxcb-devel-1.8.1-1.el6.i686.rpm | 174 kB 00:00 (16/22): pcre-devel-7.8-6.el6.i686.rpm | 318 kB 00:00 (17/22): tcl-devel-8.5.7-6.el6.i686.rpm | 162 kB 00:00 (18/22): texinfo-4.13a-8.el6.i686.rpm | 660 kB 00:00 (19/22): texinfo-tex-4.13a-8.el6.i686.rpm | 132 kB 00:00 (20/22): tk-devel-8.5.7-5.el6.i686.rpm | 496 kB 00:00 (21/22): xorg-x11-proto-devel-7.6-25.el6.noarch.rpm | 274 kB 00:00 (22/22): zlib-devel-1.2.3-29.el6.i686.rpm | 44 kB 00:00 -------------------------------------------------------------------------------- Total 473 kB/s | 4.3 MB 00:09 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : xorg-x11-proto-devel-7.6-25.el6.noarch 1/22 Installing : 1:tcl-devel-8.5.7-6.el6.i686 2/22 Installing : zlib-devel-1.2.3-29.el6.i686 3/22 Installing : freetype-devel-2.3.11-14.el6_3.1.i686 4/22 Installing : fontconfig-devel-2.8.0-3.el6.i686 5/22 Installing : libXau-devel-1.0.6-4.el6.i686 6/22 Installing : libxcb-devel-1.8.1-1.el6.i686 7/22 Installing : libX11-devel-1.5.0-4.el6.i686 8/22 Installing : libXrender-devel-0.9.7-2.el6.i686 9/22 Installing : libXft-devel-2.3.1-2.el6.i686 10/22 Installing : 1:tk-devel-8.5.7-5.el6.i686 11/22 Installing : R-java-3.0.2-1.el6.i686 12/22 Installing : pcre-devel-7.8-6.el6.i686 13/22 Installing : bzip2-devel-1.0.5-7.el6_0.i686 14/22 Installing : libRmath-3.0.2-1.el6.i686 15/22 Installing : libRmath-devel-3.0.2-1.el6.i686 16/22 Installing : texinfo-4.13a-8.el6.i686 17/22 Installing : texinfo-tex-4.13a-8.el6.i686 18/22 Installing : R-core-devel-3.0.2-1.el6.i686 19/22 Installing : R-java-devel-3.0.2-1.el6.i686 20/22 Installing : R-devel-3.0.2-1.el6.i686 21/22 Installing : R-3.0.2-1.el6.i686 22/22 Verifying : R-java-devel-3.0.2-1.el6.i686 1/22 Verifying : libXrender-devel-0.9.7-2.el6.i686 2/22 Verifying : texinfo-4.13a-8.el6.i686 3/22 Verifying : libRmath-3.0.2-1.el6.i686 4/22 Verifying : bzip2-devel-1.0.5-7.el6_0.i686 5/22 Verifying : texinfo-tex-4.13a-8.el6.i686 6/22 Verifying : zlib-devel-1.2.3-29.el6.i686 7/22 Verifying : pcre-devel-7.8-6.el6.i686 8/22 Verifying : R-devel-3.0.2-1.el6.i686 9/22 Verifying : libXau-devel-1.0.6-4.el6.i686 10/22 Verifying : R-java-3.0.2-1.el6.i686 11/22 Verifying : freetype-devel-2.3.11-14.el6_3.1.i686 12/22 Verifying : 1:tcl-devel-8.5.7-6.el6.i686 13/22 Verifying : libXft-devel-2.3.1-2.el6.i686 14/22 Verifying : libX11-devel-1.5.0-4.el6.i686 15/22 Verifying : xorg-x11-proto-devel-7.6-25.el6.noarch 16/22 Verifying : 1:tk-devel-8.5.7-5.el6.i686 17/22 Verifying : R-core-devel-3.0.2-1.el6.i686 18/22 Verifying : libRmath-devel-3.0.2-1.el6.i686 19/22 Verifying : fontconfig-devel-2.8.0-3.el6.i686 20/22 Verifying : R-3.0.2-1.el6.i686 21/22 Verifying : libxcb-devel-1.8.1-1.el6.i686 22/22 Installed: R.i686 0:3.0.2-1.el6 Dependency Installed: R-core-devel.i686 0:3.0.2-1.el6 R-devel.i686 0:3.0.2-1.el6 R-java.i686 0:3.0.2-1.el6 R-java-devel.i686 0:3.0.2-1.el6 bzip2-devel.i686 0:1.0.5-7.el6_0 fontconfig-devel.i686 0:2.8.0-3.el6 freetype-devel.i686 0:2.3.11-14.el6_3.1 libRmath.i686 0:3.0.2-1.el6 libRmath-devel.i686 0:3.0.2-1.el6 libX11-devel.i686 0:1.5.0-4.el6 libXau-devel.i686 0:1.0.6-4.el6 libXft-devel.i686 0:2.3.1-2.el6 libXrender-devel.i686 0:0.9.7-2.el6 libxcb-devel.i686 0:1.8.1-1.el6 pcre-devel.i686 0:7.8-6.el6 tcl-devel.i686 1:8.5.7-6.el6 texinfo.i686 0:4.13a-8.el6 texinfo-tex.i686 0:4.13a-8.el6 tk-devel.i686 1:8.5.7-5.el6 xorg-x11-proto-devel.noarch 0:7.6-25.el6 zlib-devel.i686 0:1.2.3-29.el6 Complete! # r bash: r: command not found # R R version 3.0.2 (2013-09-25) -- Frisbee Sailing Copyright (C) 2013 The R Foundation for Statistical Computing Platform: i686-redhat-linux-gnu (32-bit) R是自由软件,不带任何担保。 在某些条件下你可以将其自由散布。 用'license()'或'licence()'来看散布的详细条件。 R是个合作计划,有许多人为之做出了贡献. 用'contributors()'来看合作者的详细情况 用'citation()'会告诉你如何在出版物中正确地引用R或R程序包。 用'demo()'来看一些示范程序,用'help()'来阅读在线帮助文件,或 用'help.start()'通过HTML浏览器来看帮助文件。 用'q()'退出R. demo(graphics) demo(graphics) ---- ~~~~~~~~ Type Return to start : # Copyright (C) 1997-2009 The R Core Team require(datasets) require(grDevices); require(graphics) ## Here is some code which illustrates some of the differences between ## R and S graphics capabilities. Note that colors are generally specified ## by a character string name (taken from the X11 rgb.txt file) and that line ## textures are given similarly. The parameter bg sets the background ## parameter for the plot and there is also an fg parameter which sets ## the foreground color. x - stats::rnorm(50) opar - par(bg = white) plot(x, ann = FALSE, type = n) 按Return键来看下一个图: abline(h = 0, col = gray(.90)) lines(x, col = green4, lty = dotted) points(x, bg = limegreen, pch = 21) title(main = Simple Use of Color In a Plot, + xlab = Just a Whisper of a Label, + col.main = blue, col.lab = gray(.8), + cex.main = 1.2, cex.lab = 1.0, font.main = 4, font.lab = 3) ## A little color wheel. This code just plots equally spaced hues in ## a pie chart. If you have a cheap SVGA monitor (like me) you will ## probably find that numerically equispaced does not mean visually ## equispaced. On my display at home, these colors tend to cluster at ## the RGB primaries. On the other hand on the SGI Indy at work the ## effect is near perfect. par(bg = gray) pie(rep(1,24), col = rainbow(24), radius = 0.9) 按Return键来看下一个图: title(main = A Sample Color Wheel, cex.main = 1.4, font.main = 3) title(xlab = (Use this as a test of monitor linearity), + cex.lab = 0.8, font.lab = 3) ## We have already confessed to having these. This is just showing off X11 ## color names (and the example (from the postscript manual) is pretty cute. pie.sales - c(0.12, 0.3, 0.26, 0.16, 0.04, 0.12) names(pie.sales) - c(Blueberry, Cherry, + Apple, Boston Cream, Other, Vanilla Cream) pie(pie.sales, + col = c(purple,violetred1,green3,cornsilk,cyan,white)) 按Return键来看下一个图: title(main = January Pie Sales, cex.main = 1.8, font.main = 1) title(xlab = (Don't try this at home kids), cex.lab = 0.8, font.lab = 3) ## Boxplots: I couldn't resist the capability for filling the box. ## The use of color seems like a useful addition, it focuses attention ## on the central bulk of the data. par(bg=cornsilk) n - 10 g - gl(n, 100, n*100) x - rnorm(n*100) + sqrt(as.numeric(g)) boxplot(split(x,g), col=lavender, notch=TRUE) 按Return键来看下一个图: title(main=Notched Boxplots, xlab=Group, font.main=4, font.lab=1) ## An example showing how to fill between curves. par(bg=white) n - 100 x - c(0,cumsum(rnorm(n))) y - c(0,cumsum(rnorm(n))) xx - c(0:n, n:0) yy - c(x, rev(y)) plot(xx, yy, type=n, xlab=Time, ylab=Distance) 按Return键来看下一个图: polygon(xx, yy, col=gray) title(Distance Between Brownian Motions) ## Colored plot margins, axis labels and titles. You do need to be ## careful with these kinds of effects. It's easy to go completely ## over the top and you can end up with your lunch all over the keyboard. ## On the other hand, my market research clients love it. x - c(0.00, 0.40, 0.86, 0.85, 0.69, 0.48, 0.54, 1.09, 1.11, 1.73, 2.05, 2.02) par(bg=lightgray) plot(x, type=n, axes=FALSE, ann=FALSE) 按Return键来看下一个图: usr - par(usr) rect(usr , usr , usr , usr , col=cornsilk, border=black) lines(x, col=blue) points(x, pch=21, bg=lightcyan, cex=1.25) axis(2, col.axis=blue, las=1) axis(1, at=1:12, lab=month.abb, col.axis=blue) box() title(main= The Level of Interest in R, font.main=4, col.main=red) title(xlab= 1996, col.lab=red) ## A filled histogram, showing how to change the font used for the ## main title without changing the other annotation. par(bg=cornsilk) x - rnorm(1000) hist(x, xlim=range(-4, 4, x), col=lavender, main=) 按Return键来看下一个图: title(main=1000 Normal Random Variates, font.main=3) ## A scatterplot matrix ## The good old Iris data (yet again) pairs(iris , main=Edgar Anderson's Iris Data, font.main=4, pch=19) 按Return键来看下一个图: pairs(iris , main=Edgar Anderson's Iris Data, pch=21, + bg = c(red, green3, blue) ) 按Return键来看下一个图: ## Contour plotting ## This produces a topographic map of one of Auckland's many volcanic peaks. x - 10*1:nrow(volcano) y - 10*1:ncol(volcano) lev - pretty(range(volcano), 10) par(bg = lightcyan) pin - par(pin) xdelta - diff(range(x)) ydelta - diff(range(y)) xscale - pin /xdelta yscale - pin /ydelta scale - min(xscale, yscale) xadd - 0.5*(pin /scale - xdelta) yadd - 0.5*(pin /scale - ydelta) plot(numeric(0), numeric(0), + xlim = range(x)+c(-1,1)*xadd, ylim = range(y)+c(-1,1)*yadd, + type = n, ann = FALSE) 按Return键来看下一个图: usr - par(usr) rect(usr , usr , usr , usr , col=green3) contour(x, y, volcano, levels = lev, col=yellow, lty=solid, add=TRUE) box() title(A Topographic Map of Maunga Whau, font= 4) title(xlab = Meters North, ylab = Meters West, font= 3) mtext(10 Meter Contour Spacing, side=3, line=0.35, outer=FALSE, + at = mean(par(usr) ), cex=0.7, font=3) ## Conditioning plots par(bg=cornsilk) coplot(lat ~ long | depth, data = quakes, pch = 21, bg = green3) 按Return键来看下一个图: par(opar) x - c(1,2,3,4,5,6) x 1 2 3 4 5 6 plot(x) 按Return键来看下一个图: q() Save workspace image? : y #
个人分类: 数据生活|10474 次阅读|0 个评论
Centos屏幕分辨率调整
clrscr 2013-10-18 09:37
重装Centos后,屏幕分辨率最大值远远低于实际的屏幕分辨率,因此无法通过一般命令或图形界面调整。在网上找到方法并设置成功。 参考链接: http://aaa103439.blog.163.com/blog/static/17690106720129111230424/ 主要方法(从链接地址复制,特此说明)如下: 原文: 0. telinit 3 1. remove nomodeset from kernel line in grub.conf. Just scroll to end of this line and you will see it there. 2. remove xorg.conf file ! It will load intel driver automatically 3.reboot. 译文: 0 . 执行命令 telinit 3 ,需要root权限,即退出图形界面,回到命令行界面。 1. 从文件/etc/grub.conf 的kernel行中删除“nomodeset 。只要翻到该行的末尾,就可以看到这个词。 2. 删除文件/etc/X11/xorg.conf !INTEL驱动程序会自动被加载。 3. 执行命令reboot, 重启系统。 2013/10/18 初稿 2013/10/18 为防止链接失效,复制链接中主要内容
个人分类: Linux|7757 次阅读|0 个评论
FK在centos下的安装
clrscr 2013-10-10 22:57
需安装g77 yum install compat-gcc-34-g77.x86_64 需安装perl yum install perl 添加系统路径 make 2013/10/10 初稿
个人分类: Linux|2724 次阅读|0 个评论
sac在Centos下的安装
clrscr 2013-10-10 15:18
参考: http://seisman.blog.ustc.edu.cn/index.php/archives/38 sac正常运行,需安装 libXpm yum install libXpm 2013/10/10 初稿 2013/10/11 修改内容
个人分类: Linux|3108 次阅读|0 个评论
cd命令
clrscr 2013-10-3 03:27
cd . 更换路径到当前目录 cd .. 更换路径到上级目录 cd - 更换路径到前一路径 cd ~ 更换路径到当前用户目录 cd / 更换路径到/ 2013/10/3 初稿
个人分类: Linux|2102 次阅读|0 个评论
Centos6.3之重生
clrscr 2013-10-3 02:24
还是解释下吧,Centos被我搞死了(一个小数点惹的祸啊,本意是删除当前路径下下usr文件夹的,命令:rm -r -f /usr,然后就挂了)。不得已重装了一遍,这下各种软件and文件又得再来遍了,以下为记录命令: su ****** yum install gcc yum install gcc-c++ vim /boot/grub/grub.conf 注释掉hidemenu行,Other更名 GMT安装 .tar.bz2 解压:tar jxvf FileName.tar.bz2 或tar --bzip xvf FileName.tar.bz2 yum install gcc-gfortran.x86_64 致谢:感谢谭冰峰博士刻录并提供Centos系统盘。 2013/10/3 初稿 2013/10/7 增加Centos死亡原因 2013/10/10 Centos再次死亡,原因待查。Linux还需要好好学。
个人分类: Linux|2181 次阅读|0 个评论
Centos利用ntfs-3g挂载windows分区
clrscr 2013-10-1 18:40
用途不作多余解释,先给主要参考: 1. http://wjw7702.blog.51cto.com/5210820/1181368 2. http://www.tuxera.com/community/ntfs-3g-download/ 步骤: 1.安装gcc和gcc-c++ yum install gcc yum install gcc-c++ 2. 下载安装ntfs-3g 下载见参考2 tar zxvf *.tgz -C /安装目录 cd /安装目录 ./configure make make install 安装完检查是否安装成功:whereis ntfs-3g,如果出现一长串目录就表示安装成功。 3.挂载 查看硬盘状态 fdisk -l %需要root权限 mkdir /mnt/windows mount -t ntfs-3g /dev/sda1 /mnt/windows 需要每次开机自动挂载 在/etc/fstab后添加 /dev/sda1 /mnt/windows ntfs-3g defaults 0 0 Note:回车命令前请检查命令是否输错,老弹错误消息真的很揪心。万能的Tab,救我啊!!! 具体细节请根据自己电脑琢磨下,欢迎交流。 2013/10/1 初稿 2013/10/10 修改
个人分类: Linux|2934 次阅读|0 个评论
GMT在centos下的安装
clrscr 2013-9-21 23:30
1.下载需要的文件,详见参考。 2.按参考安装文件,注意部分代码需要根据文件名不同修改。 note:在centos下export只会在当前shell下能使用GMT。 解决办法: 使用root账户打开/etc/profile文件,在文件末加入下面两行 export GMTHOME=/usr/local/GMT4.5.9 export PATH=\${GMTHOME}/bin:\$PATH 然后 source /etc/profile 参考: http://seisman.info/install-new-gmt-under-linux.html 2013/9/21 初稿 2013/9/21 增加note中解决办法 2013/9/21 修改由于缺少转义字符造成代码错误 2013/9/22 新建GMT分类并归入此分类 2013/10/3 修改写入/etc/profile文件内容 2013/10/10 修改内容 2013/10/11 更新参考链接
个人分类: GMT|2783 次阅读|0 个评论
centos启动管理
clrscr 2013-9-3 23:45
老是记不住centos启动管理文件地址,粘贴如下: /boot/grub/grub.conf 2013/9/3 初稿 2013/9/22 新建Centos分类,并将该文归入Centos分类
个人分类: Linux|2270 次阅读|0 个评论
CWP/Seismic Uinx(SU 43R3) 安装
iggcasligang 2013-6-16 20:22
科罗拉多矿院波动研究中心的CWP/Seismic Uinx是应用较广地震开源软件之一。相比以前较旧版本,最新版本的SU( 下载地址: ftp://ftp.cwp.mines.edu/pub/cwpcodes/cwp_su_all_43R3.tgz )安装相对简单,具体安装过程如下(CentOS 6.4, i686): (1) 首先建立存放SU源文件的cwp_su_all_43R3.tgz文件夹: # mkdir home/li/softs/su (2) 设置环境变量: # vi .bashrc 进入编辑模式,在文件最后添加: 最后 Esc+:wq!保存退出,在终端输入: # source .bashrc (3) # cd $CWPROOT # tar -xzvf cwp_su_all_43R3.tgz # cd src # cp configs/Makefile.config_Linux_i686 $CWPROOT/src/Makefile.config 这儿根据自己的Liunx系统选择相应的config文件; (4) 开始安装: # make install # make xtinstall (5) 安装完毕后,在终端输入: # suplane |suxwigb 出现以下图像,安装成功!
个人分类: 专业点滴|15484 次阅读|0 个评论

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-12 21:45

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部