rhel怎样安装himawaripy mac-master

您当前的位置: →
常用工具栏
Linux实时地球桌面|Himawaripy 1.0 免费版
====== [下面软件真实下载地址列表] ======
[版权原因部分软件停止下载] ======
Himawaripy是一款非常炫酷的Linux桌面壁纸软件,这款软件可以将你的桌面变成一张地球的照片,这张地球照片的状态是抓取Himawari 8气象卫星拍摄到的画面进行显示的,也就是说你可以在桌面看到地球的最新实时状态。欢迎大家来jz5u下载体验!
软件介绍:
下载安装Himawaripy,它就会自动抓取由Himawari 8气象卫星拍摄的接近实时的地球照片,并将之设置成你的桌面背景。
安装完成之后,你可以将它设置成每十分钟运行的定时任务,这样就可以实时获取地球照片了。
你还可以在高级设置里面选择照片质量,质量越高文件越大,那么你等待下载的时间也会相应的延长。
Himawaripy是一款开源的Python 3 小脚本,已经在Unity、LXDE、i3、MATE等桌面环境中测试并成功使用。
安装使用方法:
1、下载及解压 Himawaripy
这是最容易的步骤。点击下面的下载链接,然后下载最新版本,并解压到你的下载目录里面。
下载 Himawaripy 主干文件(.zip 格式)
2、安装 python3-setuptools
你需要手工来安装主干软件包,Ubuntu 里面默认没有安装它:
sudo apt install python3-setuptools
3、安装 Himawaripy
在终端中,你需要切换到之前解压的目录中,并运行如下安装命令:
cd ~/Downloads/himawaripy-mastersudo python3 setup.py install
4、 看看它是否可以运行并下载最新的实时图片:
himawaripy
5、 设置定时任务
如果你希望该脚本可以在后台自动运行并更新(如果你需要手动更新,只需要运行 &himarwaripy& 即可)
在终端中运行:
crontab -e
在其中新加一行(默认每10分钟运行一次)
*/10 * * * * /usr/local/bin/himawaripy
关于配置定时任务可以在 Ubuntu Wiki 上找到更多信息。
该脚本安装后你不需要不断运行它,它会自动的每十分钟在后台运行一次。
本站提供Linux实时地球桌面|Himawaripy 1.0 免费版软件免费下载,版权归原作者或公司所有。如有侵权,请与我们联系删除。
* 本站提供的软件我们都会尽可能测试再上传,都亲自运行过,同时通过卡巴斯基杀毒软件的验证,限于能力及系统等问题,无法保证所有软件都没有任何问题,如果您发现链接错误或其它问题,发email到zarong◎告诉我们,谢谢!
* 为了达到最快的下载速度,推荐使用或下载本站软件。为确保正常使用请用最新版来解压本站提供的软件!
* 为了网站可以继续发展下去,在不太影响大家的情况下还请给予点击站内广告。本站所有下载无需点击任何广告即可正常下载,由于部分是FTP下载,限制了同时连接数,因此还请使用下载工具尝试多一会连接时间。如果您发现下载链接错误,请点击谢谢!
* 站内提供的所有软件如包含破解及注册码均是由网上搜集,若无意中侵犯到您的版权利益,通知我们,我们会在收到信息一周内给予配合处理!
* 本站为非营利性站点,所有资源均是网上搜集或私下交流学习之用,任何涉及商业盈利目的均不得使用,否则产生的一切后果将由您自己承担!本站仅仅提供一个观摩学习的环境,将不对任何资源负法律责任。所有资源请在下载后24小时内删除。如果您觉得满意,请购买正版,唯有如此才能更好支持你所喜欢的软件更好发展!本站严厉谴责和鄙夷一切利用本站资源进行牟利的盗版行为!3252人阅读
OpenStack(23)
安装好keystone/glance/nova/neutron 等模块后并可正常运行, cli的方式都没问题。
1. 配置yum 源:
[openstack-havana]
name=OpenStack Havana Repository for EPEL 6
baseurl=http://repos.fedorapeople.org/repos/openstack/openstack-havana/epel-6
skip_if_unavailable=0
gpgcheck=0
priority=98
name=Extra Packages for Enterprise Linux 6 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
failovermethod=priority
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
failovermethod=priority
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 6 - $basearch - Source
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
failovermethod=priority
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
gpgcheck=1
2. Install dashboard rpm package
[root@xianghui workplace]# yum install openstack-dashboard
[root@xianghui workplace]# rpm -qa|grep dashboard
openstack-dashboard-.12.rc1.el6.noarch
[root@xianghui workplace]# yum install memcached python-memcached mod_wsgi
3.配置OpenStack支持dashboard
Open /etc/openstack-dashboard/local_settings and look for this line:
CACHES = {
'default': {
'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION' : '127.0.0.1:11211',
Edit /etc/openstack-dashboard/local_settings
ALLOWED_HOSTS = ['', 'localhost', '19.111.82.159']
Edit /etc/openstack-dashboard/local_settings and changeOPENSTACK_HOST to the hostname of your Identity Service.
OPENSTACK_HOST = &127.0.0.1&
4. start apache services
service httpd restart
service memcached restart
chkconfig httpd on
chkconfig memcached on
参考 http://docs.openstack.org/havana/install-guide/install/yum/content/ch_horizon.html
http://docs.openstack.org/user-guide/content/
最重要的就是/etc/openstack-dashboard/local_settings要配对 参考下面的example
/openstack/horizon/blob/master/openstack_dashboard/local/local_settings.py.example
Fixing Error:
如果出现 下面的错误,需要在/etc/httpd/conf/httpd.conf里面配置ServerName
添加 ServerName $host_ip:80
Starting httpd: httpd: apr_sockaddr_info_get() failed for 82-159
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
5. 登录http://$HOST_IP/dashboard/
下面是作者修改成功后的/etc/openstack-dashboard/local_settings
from django.utils.translation import ugettext_lazy as _
from openstack_dashboard import exceptions
DEBUG = True
TEMPLATE_DEBUG = DEBUG
# Required for Django 1.5.
# If horizon is running in production (DEBUG is False), set this
# with the list of host/domain names that the application can serve.
# For more information see:
# /en/dev/ref/settings/#allowed-hosts
#ALLOWED_HOSTS = ['', ]
# Set SSL proxy settings:
# For Django 1.4+ pass this header from the proxy after terminating the SSL,
# and don't forget to strip it from the client's request.
# For more information see:
# /en/1.4/ref/settings/#secure-proxy-ssl-header
# SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTOCOL', 'https')
# If Horizon is being served through SSL, then uncomment the following two
# settings to better secure the cookies from security exploits
#CSRF_COOKIE_SECURE = True
#SESSION_COOKIE_SECURE = True
# Overrides for OpenStack API versions. Use this setting to force the
# OpenStack dashboard to use a specfic API version for a given service API.
# NOTE: The version should be formatted as it appears in the URL for the
# service API. For example, The identity service APIs have inconsistent
# use of the decimal point, so valid options would be &2.0& or &3&.
# OPENSTACK_API_VERSIONS = {
# &identity&: 3
# Set this to True if running on multi-domain model. When this is enabled, it
# will require user to enter the Domain name in addition to username for login.
# OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = False
# Overrides the default domain used when running on single-domain model
# with Keystone V3. All entities will be created in the default domain.
# OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = 'Default'
# Set Console type:
# valid options would be &AUTO&, &VNC& or &SPICE&
# CONSOLE_TYPE = &AUTO&
# Default OpenStack Dashboard configuration.
HORIZON_CONFIG = {
'dashboards': ('nova', 'syspanel', 'settings',),
'default_dashboard': 'nova',
'user_home': 'openstack_dashboard.views.get_user_home',
'ajax_queue_limit': 10,
'auto_fade_alerts': {
'delay': 3000,
'fade_duration': 1500,
'types': ['alert-success', 'alert-info']
'help_url': &http://docs.openstack.org&,
'exceptions': {'recoverable': exceptions.RECOVERABLE,
'not_found': exceptions.NOT_FOUND,
'unauthorized': exceptions.UNAUTHORIZED},
# Specify a regular expression to validate user passwords.
# HORIZON_CONFIG[&password_validator&] = {
# &regex&: '.*',
# &help_text&: _(&Your password does not meet the requirements.&)
# Disable simplified floating IP address management for deployments with
# multiple floating IP pools or complex network requirements.
# HORIZON_CONFIG[&simple_ip_management&] = False
# Turn off browser autocompletion for the login form if so desired.
# HORIZON_CONFIG[&password_autocomplete&] = &off&
LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
# Set custom secret key:
# You can either set it to a specific value or you can let horizion generate a
# default secret key that is unique on this machine, e.i. regardless of the
# amount of Python WSGI workers (if used behind Apache+mod_wsgi): However, there
# may be situations where you would want to set this explicitly, e.g. when
# multiple dashboard instances are distributed on different machines (usually
# behind a load-balancer). Either you have to make sure that a session gets all
# requests routed to the same dashboard instance or you set the same SECRET_KEY
# for all of them.
from horizon.utils import secret_key
#SECRET_KEY = secret_key.generate_or_read_from_file(os.path.join(LOCAL_PATH, '.secret_key_store'))
SECRET_KEY = 'elj1IWiLoWHgryYxFT6j7cM5fGOOxWY0'
# We recommend you use memca otherwise after every reload
# of the django development server, you will have to login again. To use
# memcached set CACHES to something like
# CACHES = {
# 'default': {
# 'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache',
# 'LOCATION' : '127.0.0.1:11211',
CACHES = {
'default': {
'BACKEND' : 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION' : '127.0.0.1:11211'
# Send email to the console by default
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# Or send them to /dev/null
#EMAIL_BACKEND = 'django.core.mail.backends.dummy.EmailBackend'
# Configure these for your outgoing email host
# EMAIL_HOST = 'smtp.'
# EMAIL_PORT = 25
# EMAIL_HOST_USER = 'djangomail'
# EMAIL_HOST_PASSWORD = 'top-secret!'
# For multiple regions uncomment this configuration, and add (endpoint, title).
# AVAILABLE_REGIONS = [
# (':', 'cluster1'),
# (':', 'cluster2'),
OPENSTACK_HOST = &127.0.0.1&
OPENSTACK_KEYSTONE_URL = &http://%s:& % OPENSTACK_HOST
OPENSTACK_KEYSTONE_DEFAULT_ROLE = &Member&
# Disable SSL certificate checks (useful for self-signed certificates):
# OPENSTACK_SSL_NO_VERIFY = True
# The CA certificate to use to verify SSL connections
# OPENSTACK_SSL_CACERT = '/path/to/cacert.pem'
# The OPENSTACK_KEYSTONE_BACKEND settings can be used to identify the
# capabilities of the auth backend for Keystone.
# If Keystone has been configured to use LDAP as the auth backend then set
# can_edit_user to False and name to 'ldap'.
# TODO(tres): Remove these once Keystone has an API to identify auth backend.
OPENSTACK_KEYSTONE_BACKEND = {
'name': 'native',
'can_edit_user': True,
'can_edit_group': True,
'can_edit_project': True,
'can_edit_domain': True,
'can_edit_role': True
OPENSTACK_HYPERVISOR_FEATURES = {
'can_set_mount_point': True,
# The OPENSTACK_NEUTRON_NETWORK settings can be used to enable optional
# services provided by neutron. Options currenly available are load
# balancer service, security groups, quotas, VPN service.
OPENSTACK_NEUTRON_NETWORK = {
'enable_lb': False,
'enable_firewall': False,
'enable_quotas': True,
'enable_vpn': False,
# The profile_support option is used to detect if an external router can be
# configured via the dashboard. When using specific plugins the
# profile_support can be turned on if needed.
'profile_support': None,
#'profile_support': 'cisco',
# The OPENSTACK_IMAGE_BACKEND settings can be used to customize features
# in the OpenStack Dashboard related to the Image service, such as the list
# of supported image formats.
# OPENSTACK_IMAGE_BACKEND = {
# 'image_formats': [
# ('', ''),
# ('aki', _('AKI - Amazon Kernel Image')),
# ('ami', _('AMI - Amazon Machine Image')),
# ('ari', _('ARI - Amazon Ramdisk Image')),
# ('iso', _('ISO - Optical Disk Image')),
# ('qcow2', _('QCOW2 - QEMU Emulator')),
# ('raw', _('Raw')),
# ('vdi', _('VDI')),
# ('vhd', _('VHD')),
# ('vmdk', _('VMDK'))
# OPENSTACK_ENDPOINT_TYPE specifies the endpoint type to use for the endpoints
# in the Keystone service catalog. Use this setting when Horizon is running
# external to the OpenStack environment. The default is 'publicURL'.
#OPENSTACK_ENDPOINT_TYPE = &publicURL&
# SECONDARY_ENDPOINT_TYPE specifies the fallback endpoint type to use in the
# case that OPENSTACK_ENDPOINT_TYPE is not present in the endpoints
# in the Keystone service catalog. Use this setting when Horizon is running
# external to the OpenStack environment. The default is None. This
# value should differ from OPENSTACK_ENDPOINT_TYPE if used.
#SECONDARY_ENDPOINT_TYPE = &publicURL&
# The number of objects (Swift containers/objects or images) to display
# on a single page before providing a paging element (a &more& link)
# to paginate results.
API_RESULT_LIMIT = 1000
API_RESULT_PAGE_SIZE = 20
# The timezone of the server. This should correspond with the timezone
# of your entire OpenStack installation, and hopefully be in UTC.
TIME_ZONE = &UTC&
# When launching an instance, the menu of available flavors is
# sorted by RAM usage, ascending. Provide a callback method here
# (and/or a flag for reverse sort) for the sorted() method if you'd
# like a different behaviour. For more info, see
# http://docs.python.org/2/library/functions.html#sorted
# CREATE_INSTANCE_FLAVOR_SORT = {
# 'key': my_awesome_callback_method,
# 'reverse': False,
# The Horizon Policy Enforcement engine uses these values to load per service
# policy rule files. The content of these files should match the files the
# OpenStack services are using to determine role based access control in the
# target installation.
# Path to directory containing policy.json files
#POLICY_FILES_PATH = os.path.join(ROOT_PATH, &conf&)
# Map of local copy of service policy files
#POLICY_FILES = {
# 'identity': 'keystone_policy.json',
# 'compute': 'nova_policy.json'
# Trove user and database extension support. By default support for
# creating users and databases on database instances is turned on.
# To disable these extensions set the permission here to something
# unusable such as [&!&].
# TROVE_ADD_USER_PERMS = []
# TROVE_ADD_DATABASE_PERMS = []
LOGGING = {
'version': 1,
# When set to True this will disable all logging except
# for loggers specified in this configuration dictionary. Note that
# if nothing is specified here and disable_existing_loggers is True,
# django.db.backends will still log unless it is disabled explicitly.
'disable_existing_loggers': False,
'handlers': {
'level': 'DEBUG',
'class': 'django.utils.log.NullHandler',
'console': {
# Set the level to &DEBUG& for verbose output logging.
'level': 'INFO',
'class': 'logging.StreamHandler',
'loggers': {
# Logging from django.db.backends is VERY verbose, send to null
# by default.
'django.db.backends': {
'handlers': ['null'],
'propagate': False,
'requests': {
'handlers': ['null'],
'propagate': False,
'horizon': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': False,
'openstack_dashboard': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': False,
'novaclient': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': False,
'cinderclient': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': False,
'keystoneclient': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': False,
'glanceclient': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': False,
'neutronclient': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': False,
'heatclient': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': False,
'ceilometerclient': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': False,
'troveclient': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': False,
'swiftclient': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': False,
'openstack_auth': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': False,
'nose.plugins.manager': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': False,
'django': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': False,
SECURITY_GROUP_RULES = {
'all_tcp': {
'name': 'ALL TCP',
'ip_protocol': 'tcp',
'from_port': '1',
'to_port': '65535',
'all_udp': {
'name': 'ALL UDP',
'ip_protocol': 'udp',
'from_port': '1',
'to_port': '65535',
'all_icmp': {
'name': 'ALL ICMP',
'ip_protocol': 'icmp',
'from_port': '-1',
'to_port': '-1',
'name': 'SSH',
'ip_protocol': 'tcp',
'from_port': '22',
'to_port': '22',
'name': 'SMTP',
'ip_protocol': 'tcp',
'from_port': '25',
'to_port': '25',
'name': 'DNS',
'ip_protocol': 'tcp',
'from_port': '53',
'to_port': '53',
'name': 'HTTP',
'ip_protocol': 'tcp',
'from_port': '80',
'to_port': '80',
'name': 'POP3',
'ip_protocol': 'tcp',
'from_port': '110',
'to_port': '110',
'name': 'IMAP',
'ip_protocol': 'tcp',
'from_port': '143',
'to_port': '143',
'name': 'LDAP',
'ip_protocol': 'tcp',
'from_port': '389',
'to_port': '389',
'https': {
'name': 'HTTPS',
'ip_protocol': 'tcp',
'from_port': '443',
'to_port': '443',
'smtps': {
'name': 'SMTPS',
'ip_protocol': 'tcp',
'from_port': '465',
'to_port': '465',
'imaps': {
'name': 'IMAPS',
'ip_protocol': 'tcp',
'from_port': '993',
'to_port': '993',
'pop3s': {
'name': 'POP3S',
'ip_protocol': 'tcp',
'from_port': '995',
'to_port': '995',
'ms_sql': {
'name': 'MS SQL',
'ip_protocol': 'tcp',
'from_port': '1443',
'to_port': '1443',
'mysql': {
'name': 'MYSQL',
'ip_protocol': 'tcp',
'from_port': '3306',
'to_port': '3306',
'name': 'RDP',
'ip_protocol': 'tcp',
'from_port': '3389',
'to_port': '3389',
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:78024次
积分:1036
积分:1036
排名:千里之外
原创:23篇
转载:30篇
评论:13条
(1)(4)(13)(2)(9)(7)(13)(4)在CentOS系统上安装机器学习框架Caffe的方法
作者:佚名
字体:[ ] 来源:运维生存时间 时间:12-14 12:03:04
这篇文章主要介绍了在CentOS系统上安装机器学习框架Caffe的方法,Caffe是由NVIDIA支持的深度学习开源工具(比较高大上...),需要的朋友可以参考下
注:系统安装好后,先确认kernel kernel-headers kernel-devel kernel-firmware四个包的版本要相同代码如下:#rpm -qa |grep kernel注: 先修改yum配置文件 /etc/yum.conf 修改 keepcache=11. 安装库代码如下:yum -y install epel-release.noarch(wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm)rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txtrpm -K rpmforge-release-0.5.3-1.el6.rf.*.rpmrpm -ivh rpmforge-release-0.5.3-1.el6.rf.*.rpm rpmforge-releaser2、JDK安装代码如下:tar &xf jdk-7u25-linux-x64.tar.gz && mv jdk1.7.0_25/ jdk1.7 mv jdk1.7/ /optvim /etc/profileexport JAVA_HOME=/opt/jdk1.7export JAVA_BIN=/opt/jdk1.7/binexport PATH=$PATH:$JAVA_HOME/binexport CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarexport PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATHsource /etc/profile3、编译安装python2.7(centOS6上用的是python2.6)python官网:https://www.python.org/downloads/release/python-279/替换python要在安装boost依赖之前代码如下:# wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz编译安装python2.7(必须先安装zlib与openssl的包再执行编译)先安装gcc zlib openssl 等包代码如下:tar -xvf Python-2.7.9.tgz -C /usr/srccd /usr/src/Python-2.7.9./configure --enable-sharedmake -j12make altinstall(altinstall在安装时会区分已存在的版本)(解决libpython2.7.so.1.0办法:vi /etc/ld.so.conf 添加/usr/local/lib,然后ldconfig)替换系统中的python代码如下:ls -l `which python python2 python2.6`rm /usr/bin/pythonln -s -f /usr/local/bin/python2.7 /usr/bin/python保持yum可用性代码如下:vim /usr/bin/yum#!/usr/bin/python 改为 #!/usr/bin/python2.64、安装pip代码如下:curl -O https://bootstrap.pypa.io/get-pip.py # 得到一个get-pip.pypython get-pip.pyInstalling collected packages: pip, setuptools, wheelSuccessfully installed pip-7.1.0 setuptools-18.0.1 wheel-0.24.0(必须先安装openssl-devel与zlib的包,再执行python编译,若执行该命令的时候出现红色cann't remove easy-install.pth的提醒,但目录下又无此文件,可新建后再次执行一遍命令,安装系统的时候最好把开发工具的选项给勾上,出现&Successfully installed pip-6.0.8 setuptools-14.3.1为安装成功&)5、安装cuda-6.5及驱动代码如下:wget http://developer./compute/cuda/repos/rhel6/x86_64/cuda-repo-rhel6-6.5-14.x86_64.rpmrpm -ivh cuda-repo-rhel6-6.5-14.x86_64.rpmyum install cuda-6-5GTX 660显卡装cuda后会导致Xorg狂奔,直至系统死机,需要将/etc/inittab中的启动级别改为3注,驱动包文件结构不对,导致nvidia_uvm.ko模块无法编译,需手动解决代码如下:cd /var/lib/dkms/nvidia/346.46cp -rv /usr/src/nvidia-346.46 build如果使用yum 方式安装的使用下载下的驱动包升级下代码如下:chmod +x NVIDIA-Linux-x86_64-346.72.run./NVIDIA-Linux-x86_64-346.72.run重启后,dkms会在开机时完成nvidia_uvm.ko的编译/lib/modules/版本号/extra/下有两个包:nvidia.ko nvidia_uvm.ko代码如下:lsmod|grep nvidiavi /etc/rc.local #编辑该文件modprobe nvidia_uvm #添加该条5.1 run包安装方式代码如下:chmod +x cuda_6.5.19_linux_64.run./ cuda_6.5.19_linux_64.run6、安装blas代码如下:yum -y install blas.x86_64 blas-devel.x86_64 \atlas.x86_64 atlas-devel.x86_64 atlas-sse3.x86_64 atlas-sse3-devel.x86_647、安装opencv代码如下:yum -y install ant.x86_64 gcc.x86_64 gcc-c++.x86_64 cmake.x86_64 git.x86_64 pkgconfig.x86_64 gtk2.x86_64 gtk2-devel.x86_64 libdc libdc1394-devel.x86_64 libjpeg-turbo.x86_64 libjpeg-turbo-devel.x86_64 libpng.x86_64 libpng-devel.x86_64 libtiff.x86_64 libtiff-devel.x86_64 jasper.x86_64 jasper-libs.x86_64 jasper-devel.x86_64 yasm.x86_64 yasm-devel.x86_64pip install numpy安装ffmpeg: #此包不需要通过yum安装,yum安装版本不对代码如下:tar -xf ffmpeg-2.6.1.tar.bz2 -C /usr/srccd /usr/src/ffmpeg-2.6.1/./configure --enable-shared #要以共享库方式配置,否则opencv编译时链接静态库会出错make -j12 && make installunzip opencv-2.4.9cd opencv-2.4.9mkdir release && cd release修改源文件NCVPixelOperations.hpp,文件替换到opencv路径下的modules/gpu/src/nvidia/core/NCVPixelOperations.hpp配置环境变量:代码如下:vim /etc/profile.d/custom.sh 配置完成source /etc/profile.d/custom.sh#!/bin/bashexport PATH=/usr/local/MATLAB/R2014a/bin:/usr/local/cuda-6.5/bin:$PATHexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/boost-1.55.0/lib:/usr/local/cuda-6.5/lib64:/opt/caffe-master/build/lib:/usr/lib64/atlasexport LIBRARY_PATH=$LIBRARY_PATH:/usr/local/boost-1.55.0/lib:/usr/local/cuda-6.5/lib64:/opt/caffe-master/build/lib:/usr/lib64/atlasexport C_INCLUDE_PATH=$C_INCLUDE_PATH:/usr/local/boost-1.55.0/include:/usr/local/cuda-6.5/include:/opt/caffe-master/build/src:/opt/caffe-master/includeexport CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/usr/local/boost-1.55.0/include:/usr/local/cuda-6.5/include:/opt/caffe-master/build/src:/opt/caffe-master/includeexport PYTHONPATH=$PYTHONPATH:/opt/caffe-master/pythonexport HISTTIMEFORMAT="%F %T "cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..make &j12make install8、安装boost-1.55(1.56不兼容)代码如下:yum -y install libicu.x86_64 libicu-devel.x86_64 bzip2-libs.x86_64 bzip2-devel.x86_64tar &xf boost_1_55_0.tar.gz && cd boost_1_55_0./bootstrap.sh./b2./b2 install运行./b2 install命令,默认安装在/usr/local/lib目录下,头文件在/usr/local/include/boost目录下9、安装caffe其他依赖:代码如下:yum -y install snappy.x86_64 snappy-devel.x86_64 hdf5.x86_64 hdf5-devel.x86_64 epel-release leveldb.x86_64 leveldb-devel.x86_64 libgfortran.x86_64------ 编译安装protobuf-2.5.0 protobuf-2.5.0------ tar -xvf protobuf-2.5.0.tar.gz------ cd /usr/src/protobuf-2.5.0./configuremakemake checkmake install------ export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH10、编译安装caffe其他依赖包代码如下:glogwget https://google-/files/glog-0.3.3.tar.gztar zxvf glog-0.3.3.tar.gzcd glog-0.3.3./configuremake && make installgflagswget /schuhschuh/gflags/archive/master.zipunzip gflags-master.zipcd gflags-mastermkdir build && cd buildexport CXXFLAGS="-fPIC" && cmake .. && make VERBOSE=1make && make installlmdbgit clone git://gitorious.org/mdb/mdb.gittar &xf lmdb.tarcd mdb/libraries/liblmdbmake && make install #若提示man1错误,手动建立一个mkdir -p /usr/local/man/man111、将matlab上传至服务器,通过图形方式安装安装秘钥-安装完成后导入lic文件,然后替换libmwservices.so到/usr/local/MATLAB/R2014a/bin/glnxa64/进行覆盖,结束安装。12、解决python依赖代码如下:pip install 'six&=1.3'easy_install -U distributepip2.7 install PIL --allow-external PIL --allow-unverified PIL解包caffe-master.zip,并将该包移至opt目录代码如下:cd /opt/caffe-master/pythonfor i in $(cat requirements.txt); do pip install $i; done #需要多执行几遍注:会出现一个报错,关于PIL.Image &= 1.1.7,则可使用命令pip install 'PIL' 进行安装后再次执行以上的for循环语句,需要将python升级至2.7以上版本(安装及注意事项下:)
13、安装caffe修改caffe-master/Makefile.config文件,增加如下几句代码如下:cp /opt/caffe-master/Makefile.config.example Makefile.configvim Makefile.configMATLAB_DIR := /usr/local/MATLAB/R2014a/BLAS := atlasBLAS_LIB := /usr/lib64/atlasPYTHON_INCLUDE := /usr/include/python2.7 \/usr/local/lib/python2.7/site-packages/numpy/core/include \/usr/local/include/python2.7执行 ldconfigmake all -j12make &j12 pycaffemake &j12 matcaffemake test &j12make runtest &j12如果matlab要使用静态编译libprotobuf.a的话,修改Makefile在MATLAB_CXXFLAGS项上添加-static参数即可但使用动态库的matlab模型可能不可用若一切没有问题,至此caffe环境安装结束,待测试。以下为可选部分编译安装protobuf-2.5.0 protobuf-2.5.0代码如下:tar -xvf protobuf-2.5.0.tar.gzcd /usr/src/protobuf-2.5.0./configuremakemake checkmake installexport LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH继续安装protobuf的python模块(如果不用python,可跳过这一步)代码如下:#cd ./python #python setup.py build #python setup.py test #python setup.py install安装cudnnLINUX代码如下:cd &installpath&export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATHAdd &installpath& to your build and link process by adding -I&installpath& to your compile line and -L&installpath& -lcudnn to your link line.
a. 编辑确保Makefile.config,启用GPU &# CPU_ONLY := 1&,并设置 &USE_CUDNN := 1&。b. 安装cuDNN代码如下:tar -xzvf cudnn-6.5-linux-R1.tgzcd cudnn-6.5-linux-R1cp lib* /usr/local/cuda-6.5/lib64/cp cudnn.h /usr/local/cuda-6.5/include/cd /usr/local/cuda-6.5/lib64/rm -rf libcudnn.so libcudnn.so.6.5chmod u=rwx,g=rx,o=rx libcudnn.so.6.5.18ln -s libcudnn.so.6.5.18 libcudnn.so.6.5ln -s libcudnn.so.6.5 libcudnn.soldconfig注1:将相关的头文件,库文件放到profile中定义的系统路径里即可,matlab的mex运行时需要加载对应库caffe编译时也可在Makefile.config中修改,添加cuDNN的路径/cache/INSTALL_cuDNN/cudnn-6.5-linux-R1代码如下:INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /cache/INSTALL_cuDNN/cudnn-6.5-linux-R1LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /cache/INSTALL_cuDNN/cudnn-6.5-linux-R1注2:在使用tesla-c2050显卡时,需要在Makefile.config里改如下几个地方:代码如下:PYTHON_LIB := /usr/lib64 #原为PYTHON_LIB := /usr/libLIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib64 /usr/lib64 #原为如下:LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib注3:protobuf手动安装,不需要通过yum,yum安装版本不对,make runtest会报错,使用protobuf2.5的版本,安装方式见上,在编译caffe前安装好后再进行编译。包:咖啡环境需要上传的包:gflags-master.zip、opencv-2.4.9.zip、boost_1_55_0.tar.gz、caffe-master.zip、glog-0.3.3.tar.gz、protobuf-2.5.0.tar.gz、cuda-repo-rhel6-6.5-14.x86_64.rpm、jdk-7u25-linux-x64.tar.gz、lmdb.tar、Python-2.7.9.tgz、 ffmpeg-2.6.1.tar.bz2、rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm、NVIDIA-Linux-x86_64-346.72.run、NCVPixelOperations.hpp、matlab文件夹
大家感兴趣的内容
12345678910
最近更新的内容

我要回帖

更多关于 himawaripy下载 的文章

 

随机推荐